Introduction
This is the NetFoundry identity service
Overview
HTTP verbs
NetFoundry adheres closely to standard HTTP and REST conventions in its use of HTTP verbs.
| Verb | Usage |
|---|---|
|
Used to retrieve a resource |
|
Used to create a new resource |
|
Used to update an existing resource, full updates only |
|
Used to delete an existing resource |
The PATCH method is not used (yet).
|
HTTP status codes
NetFoundry adheres closely to standard HTTP and REST conventions in its use of HTTP status codes.
| Status code | Usage |
|---|---|
|
The actual response will depend on the request method used. In a GET request, the response will contain an entity corresponding to the requested resource. In a POST request, the response will contain an entity describing or containing the result of the action. |
|
The request has been fulfilled and resulted in a new resource being created. |
|
The request has been accepted and is being processed asynchronously Standard response for successful HTTP requests which invoke back-end services. |
|
The server successfully processed the request, but is not returning any content. |
|
The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). |
|
The request lacks valid authentication credentials for the target resource. |
|
The request is authenticated with valid credentials however that set of credentials is not authorized to access this resource. |
|
The requested resource could not be found but may be available again in the future. Subsequent requests by the client are permissible. |
Resources
Organization
Find Organizations
GET /organizations
Query parameters
Supports standard paging query parameters.
| Parameter | Type | Optional | Description |
|---|---|---|---|
realmId |
Object |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
mfaProviders |
Object |
true |
Must be one of [None, GoogleAuthenticator]. |
includeDeleted |
Boolean |
true |
Default value: 'false'. |
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
identityProviders |
Array[Object] |
true |
|
identityProviders[].id |
String |
true |
|
identityProviders[].organizationId |
String |
true |
|
identityProviders[].auth0ConnectionId |
String |
true |
|
identityProviders[].name |
String |
true |
|
identityProviders[].auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
identityProviders[].active |
Boolean |
true |
|
identityProviders[].createdAt |
Object |
true |
|
identityProviders[].updatedAt |
Object |
true |
|
identityProviders[].deletedAt |
Object |
true |
|
defaultRoles |
Array[Object] |
true |
|
defaultRoles[].id |
String |
true |
|
defaultRoles[].organizationId |
String |
true |
|
defaultRoles[].name |
String |
true |
|
defaultRoles[].roleType |
String |
true |
Must be one of [Standard, Custom]. |
defaultRoles[].roleId |
String |
true |
|
defaultRoles[].createdBy |
String |
true |
|
defaultRoles[].createdAt |
Object |
true |
|
defaultRoles[].deletedAt |
Object |
true |
|
defaultRoles[].deletedBy |
String |
true |
|
defaultRoles[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
mfaProvider |
String |
true |
Must be one of [None, GoogleAuthenticator]. |
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations' -i -X GET
Example response
HTTP/1.1 200 OK
Link: <https://gateway.netFoundry.io/identity/v1/organizations?page=1>; rel="next", <https://gateway.netFoundry.io/identity/v1/organizations?page=1>; rel="last"
Content-Type: application/json
Content-Length: 2490
[ {
"id" : "18be1065-f248-421b-be79-7f65dd16843d",
"realmId" : "979d8819-d78a-4210-8013-902ee17b0122",
"name" : "World Wide Imports",
"label" : "WW-Imports-164",
"identityProviders" : [ {
"id" : "8226583a-4191-423c-8eac-87ca4b1e4d21",
"organizationId" : "18be1065-f248-421b-be79-7f65dd16843d",
"auth0ConnectionId" : "auth0-opaque-connectionId-165",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 416910000,
"epochSecond" : 1788187511
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 404109000,
"epochSecond" : 1788187511
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}, {
"id" : "24ac9728-c83b-4564-8d75-a7d3ad37c0c6",
"realmId" : "979d8819-d78a-4210-8013-902ee17b0122",
"name" : "World Wide Imports",
"label" : "WW-Imports-182",
"identityProviders" : [ {
"id" : "b1c5f5fc-3de6-4dbc-b7e3-02fbaacb6ed0",
"organizationId" : "24ac9728-c83b-4564-8d75-a7d3ad37c0c6",
"auth0ConnectionId" : "auth0-opaque-connectionId-183",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 3335000,
"epochSecond" : 1788187513
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 997276000,
"epochSecond" : 1788187512
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}, {
"id" : "4080c596-8cce-44eb-b358-e55613be64fb",
"realmId" : "984adfdb-ebe6-4aea-9d36-3beff35d59ea",
"name" : "Best Corp.",
"label" : "BEST-CORP",
"identityProviders" : [ {
"id" : "1f611eaa-c004-4cfc-b5e1-8f6c7cd6cd27",
"organizationId" : "4080c596-8cce-44eb-b358-e55613be64fb",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Best Corp.",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 988725000,
"epochSecond" : 1788187535
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 987962000,
"epochSecond" : 1788187535
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
} ]
Get Organization By Self
GET /organizations/self
Response fields
No response body.
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations/self' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2220
{
"id" : "e89aebd2-c560-4754-a65e-4683be48e524",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "ACME International, Inc.",
"label" : "ACME-2",
"identityProviders" : [ {
"id" : "b3079608-562a-4ba5-ad4a-f305c339ef65",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 303346000,
"epochSecond" : 1788187444
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "77e0bb56-f8bc-40ed-9221-ecf39901847b",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 326761000,
"epochSecond" : 1788187444
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ {
"id" : "5501f602-4252-4ffd-9af9-66ad7b8c0e35",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"name" : "Custom Role - dd99b16b-75f1-43f8-a3f4-5335dd5a34d9",
"roleType" : "Custom",
"roleId" : "dd99b16b-75f1-43f8-a3f4-5335dd5a34d9",
"createdBy" : "98524e3e-73cd-4123-b2a1-e16c0ec2d329",
"createdAt" : {
"nano" : 564765000,
"epochSecond" : 1788187444
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "edb5425b-4a8a-4062-a0c3-1039ebe16b38",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"name" : "Standard Role - f8fe5ce6-46cb-47a8-8d42-b7a0bddb1e26",
"roleType" : "Standard",
"roleId" : "f8fe5ce6-46cb-47a8-8d42-b7a0bddb1e26",
"createdBy" : "371d020e-b9f2-42a5-bc1b-c31096173b6b",
"createdAt" : {
"nano" : 528112000,
"epochSecond" : 1788187444
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 297730000,
"epochSecond" : 1788187444
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}
Get Organization By Id
GET /organizations/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
identityProviders |
Array[Object] |
true |
|
identityProviders[].id |
String |
true |
|
identityProviders[].organizationId |
String |
true |
|
identityProviders[].auth0ConnectionId |
String |
true |
|
identityProviders[].name |
String |
true |
|
identityProviders[].auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
identityProviders[].active |
Boolean |
true |
|
identityProviders[].createdAt |
Object |
true |
|
identityProviders[].updatedAt |
Object |
true |
|
identityProviders[].deletedAt |
Object |
true |
|
defaultRoles |
Array[Object] |
true |
|
defaultRoles[].id |
String |
true |
|
defaultRoles[].organizationId |
String |
true |
|
defaultRoles[].name |
String |
true |
|
defaultRoles[].roleType |
String |
true |
Must be one of [Standard, Custom]. |
defaultRoles[].roleId |
String |
true |
|
defaultRoles[].createdBy |
String |
true |
|
defaultRoles[].createdAt |
Object |
true |
|
defaultRoles[].deletedAt |
Object |
true |
|
defaultRoles[].deletedBy |
String |
true |
|
defaultRoles[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
mfaProvider |
String |
true |
Must be one of [None, GoogleAuthenticator]. |
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations/e89aebd2-c560-4754-a65e-4683be48e524' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2220
{
"id" : "e89aebd2-c560-4754-a65e-4683be48e524",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "ACME International, Inc.",
"label" : "ACME-2",
"identityProviders" : [ {
"id" : "b3079608-562a-4ba5-ad4a-f305c339ef65",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 303346000,
"epochSecond" : 1788187444
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "77e0bb56-f8bc-40ed-9221-ecf39901847b",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 326761000,
"epochSecond" : 1788187444
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ {
"id" : "5501f602-4252-4ffd-9af9-66ad7b8c0e35",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"name" : "Custom Role - dd99b16b-75f1-43f8-a3f4-5335dd5a34d9",
"roleType" : "Custom",
"roleId" : "dd99b16b-75f1-43f8-a3f4-5335dd5a34d9",
"createdBy" : "98524e3e-73cd-4123-b2a1-e16c0ec2d329",
"createdAt" : {
"nano" : 564765000,
"epochSecond" : 1788187444
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "edb5425b-4a8a-4062-a0c3-1039ebe16b38",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"name" : "Standard Role - f8fe5ce6-46cb-47a8-8d42-b7a0bddb1e26",
"roleType" : "Standard",
"roleId" : "f8fe5ce6-46cb-47a8-8d42-b7a0bddb1e26",
"createdBy" : "371d020e-b9f2-42a5-bc1b-c31096173b6b",
"createdAt" : {
"nano" : 528112000,
"epochSecond" : 1788187444
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 297730000,
"epochSecond" : 1788187444
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}
Get Organization By Label
GET /organizations/label/{label:[a-zA-Z0-9]+[-a-zA-Z0-9]{1,62}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
label |
String |
false |
Query parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
realm |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
active |
Boolean |
true |
|
identityProviders |
Array[Object] |
true |
|
identityProviders[].id |
String |
true |
|
identityProviders[].organizationId |
String |
true |
|
identityProviders[].auth0ConnectionId |
String |
true |
|
identityProviders[].name |
String |
true |
|
identityProviders[].auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
identityProviders[].active |
Boolean |
true |
|
identityProviders[].createdAt |
Object |
true |
|
identityProviders[].updatedAt |
Object |
true |
|
identityProviders[].deletedAt |
Object |
true |
|
mfaProvider |
String |
true |
Must be one of [None, GoogleAuthenticator]. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations/label/ACME-2' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1060
{
"id" : "e89aebd2-c560-4754-a65e-4683be48e524",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "ACME International, Inc.",
"label" : "ACME-2",
"active" : true,
"identityProviders" : [ {
"id" : "b3079608-562a-4ba5-ad4a-f305c339ef65",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 303346000,
"epochSecond" : 1788187444
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "77e0bb56-f8bc-40ed-9221-ecf39901847b",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 326761000,
"epochSecond" : 1788187444
},
"updatedAt" : null,
"deletedAt" : null
} ],
"mfaProvider" : null
}
Create Organization
POST /organizations
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
auth0ConnectionId |
String |
true |
|
identityProviderName |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
identityProviders |
Array[Object] |
true |
|
identityProviders[].id |
String |
true |
|
identityProviders[].organizationId |
String |
true |
|
identityProviders[].auth0ConnectionId |
String |
true |
|
identityProviders[].name |
String |
true |
|
identityProviders[].auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
identityProviders[].active |
Boolean |
true |
|
identityProviders[].createdAt |
Object |
true |
|
identityProviders[].updatedAt |
Object |
true |
|
identityProviders[].deletedAt |
Object |
true |
|
defaultRoles |
Array[Object] |
true |
|
defaultRoles[].id |
String |
true |
|
defaultRoles[].organizationId |
String |
true |
|
defaultRoles[].name |
String |
true |
|
defaultRoles[].roleType |
String |
true |
Must be one of [Standard, Custom]. |
defaultRoles[].roleId |
String |
true |
|
defaultRoles[].createdBy |
String |
true |
|
defaultRoles[].createdAt |
Object |
true |
|
defaultRoles[].deletedAt |
Object |
true |
|
defaultRoles[].deletedBy |
String |
true |
|
defaultRoles[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
mfaProvider |
String |
true |
Must be one of [None, GoogleAuthenticator]. |
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"realmId" : "984adfdb-ebe6-4aea-9d36-3beff35d59ea",
"name" : "Best Corp.",
"label" : "BEST-CORP",
"auth0ConnectionId" : "auth0-opaque-connection",
"identityProviderName" : "Corp SAML",
"auth0ConnectionType" : "Enterprise"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 812
{
"id" : "4080c596-8cce-44eb-b358-e55613be64fb",
"realmId" : "984adfdb-ebe6-4aea-9d36-3beff35d59ea",
"name" : "Best Corp.",
"label" : "BEST-CORP",
"identityProviders" : [ {
"id" : "1f611eaa-c004-4cfc-b5e1-8f6c7cd6cd27",
"organizationId" : "4080c596-8cce-44eb-b358-e55613be64fb",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Best Corp.",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 988725000,
"epochSecond" : 1788187535
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 987962000,
"epochSecond" : 1788187535
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}
Activate Or Deactivate Organization
PUT /organizations/{id}/{action:activate|deactivate}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
|
action |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
identityProviders |
Array[Object] |
true |
|
identityProviders[].id |
String |
true |
|
identityProviders[].organizationId |
String |
true |
|
identityProviders[].auth0ConnectionId |
String |
true |
|
identityProviders[].name |
String |
true |
|
identityProviders[].auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
identityProviders[].active |
Boolean |
true |
|
identityProviders[].createdAt |
Object |
true |
|
identityProviders[].updatedAt |
Object |
true |
|
identityProviders[].deletedAt |
Object |
true |
|
defaultRoles |
Array[Object] |
true |
|
defaultRoles[].id |
String |
true |
|
defaultRoles[].organizationId |
String |
true |
|
defaultRoles[].name |
String |
true |
|
defaultRoles[].roleType |
String |
true |
Must be one of [Standard, Custom]. |
defaultRoles[].roleId |
String |
true |
|
defaultRoles[].createdBy |
String |
true |
|
defaultRoles[].createdAt |
Object |
true |
|
defaultRoles[].deletedAt |
Object |
true |
|
defaultRoles[].deletedBy |
String |
true |
|
defaultRoles[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
mfaProvider |
String |
true |
Must be one of [None, GoogleAuthenticator]. |
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations/27272de8-9589-4a51-95d8-6a26697208d0/deactivate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 893
{
"id" : "27272de8-9589-4a51-95d8-6a26697208d0",
"realmId" : "979d8819-d78a-4210-8013-902ee17b0122",
"name" : "World Wide Imports",
"label" : "WW-Imports-380",
"identityProviders" : [ {
"id" : "a2a057f6-ccc0-4ffa-b8f3-540c55e5f3d6",
"organizationId" : "27272de8-9589-4a51-95d8-6a26697208d0",
"auth0ConnectionId" : "auth0-opaque-connectionId-381",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 918288000,
"epochSecond" : 1788187537
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : false,
"mfaProvider" : null,
"createdAt" : {
"nano" : 913346000,
"epochSecond" : 1788187537
},
"updatedAt" : {
"nano" : 931540000,
"epochSecond" : 1788187537
},
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}
Add Identity Provider
POST /organizations/{id}/identity-providers
Authorization
This endpoint requires:
-
create-identity-provideraction on thisorganizationresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
auth0ConnectionId |
String |
true |
|
identityProviderName |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
realmId |
String |
true |
|
name |
String |
true |
|
label |
String |
true |
|
identityProviders |
Array[Object] |
true |
|
identityProviders[].id |
String |
true |
|
identityProviders[].organizationId |
String |
true |
|
identityProviders[].auth0ConnectionId |
String |
true |
|
identityProviders[].name |
String |
true |
|
identityProviders[].auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
identityProviders[].active |
Boolean |
true |
|
identityProviders[].createdAt |
Object |
true |
|
identityProviders[].updatedAt |
Object |
true |
|
identityProviders[].deletedAt |
Object |
true |
|
defaultRoles |
Array[Object] |
true |
|
defaultRoles[].id |
String |
true |
|
defaultRoles[].organizationId |
String |
true |
|
defaultRoles[].name |
String |
true |
|
defaultRoles[].roleType |
String |
true |
Must be one of [Standard, Custom]. |
defaultRoles[].roleId |
String |
true |
|
defaultRoles[].createdBy |
String |
true |
|
defaultRoles[].createdAt |
Object |
true |
|
defaultRoles[].deletedAt |
Object |
true |
|
defaultRoles[].deletedBy |
String |
true |
|
defaultRoles[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
mfaProvider |
String |
true |
Must be one of [None, GoogleAuthenticator]. |
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations/1fd5f998-06f0-488c-8e1b-d0d5af0545cd/identity-providers' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"auth0ConnectionId" : "auth0-opaque-connection",
"identityProviderName" : "Corp SAML",
"auth0ConnectionType" : "Enterprise"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 1232
{
"id" : "1fd5f998-06f0-488c-8e1b-d0d5af0545cd",
"realmId" : "979d8819-d78a-4210-8013-902ee17b0122",
"name" : "World Wide Imports",
"label" : "WW-Imports-376",
"identityProviders" : [ {
"id" : "fce195ad-bc4e-4755-b341-a300a3469168",
"organizationId" : "1fd5f998-06f0-488c-8e1b-d0d5af0545cd",
"auth0ConnectionId" : "auth0-opaque-connectionId-377",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 528064000,
"epochSecond" : 1788187537
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "a5468ed6-19d9-4340-b025-d00b0a47ba1b",
"organizationId" : "1fd5f998-06f0-488c-8e1b-d0d5af0545cd",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 556299000,
"epochSecond" : 1788187537
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 524621000,
"epochSecond" : 1788187537
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}
OIDC Issuers
Find Oidc Issuers
GET /oidc-issuers
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-issuers' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1265
[ {
"id" : "03e83093-6d65-4127-ab96-0a109ffc08c4",
"issuer" : "https://e9e9e70e-20cc-4eca-a863-3ad63232a2e1.issuer.idp",
"jwksUri" : "https://e9e9e70e-20cc-4eca-a863-3ad63232a2e1.issuer.idp/jwks",
"active" : true,
"createdBy" : "02b6db14-4657-4e32-ba45-e075bfe30dbd",
"createdAt" : {
"nano" : 228621000,
"epochSecond" : 1788187533
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "0558d735-3611-434e-9a67-f21d320096cb",
"issuer" : "https://cd81486c-a427-4738-8d39-15e098bc3e7d.issuer.idp",
"jwksUri" : "https://cd81486c-a427-4738-8d39-15e098bc3e7d.issuer.idp/jwks",
"active" : true,
"createdBy" : "4d3ba91a-41cf-4493-9a2e-f0fbbaea0dab",
"createdAt" : {
"nano" : 633277000,
"epochSecond" : 1788187532
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "1a952d46-d1eb-472b-984a-777f8a7237f0",
"issuer" : "https://715b10a0-e809-415d-bc34-a9d4f9137a5c.issuer.idp",
"jwksUri" : "https://715b10a0-e809-415d-bc34-a9d4f9137a5c.issuer.idp/jwks",
"active" : true,
"createdBy" : "75720691-7f43-4095-8c4a-38fe08c074bc",
"createdAt" : {
"nano" : 270162000,
"epochSecond" : 1788187532
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ]
Get Oidc Issuer
GET /oidc-issuers/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-issuers/545def51-c49d-4834-8679-75b1ed6cfaf7' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 419
{
"id" : "545def51-c49d-4834-8679-75b1ed6cfaf7",
"issuer" : "https://3ae22356-f777-4d27-8118-a51cbb62069b.issuer.idp",
"jwksUri" : "https://3ae22356-f777-4d27-8118-a51cbb62069b.issuer.idp/jwks",
"active" : true,
"createdBy" : "b44cdebc-1ba0-404d-9bc9-b0dd4535e73a",
"createdAt" : {
"nano" : 244628000,
"epochSecond" : 1788187534
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Create Oidc Issuer
POST /oidc-issuers
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-issuers' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"issuer" : "https://b8dfe3be-f9d1-4816-a216-52a37fc10523.issuer.idp",
"jwksUri" : "https://b8dfe3be-f9d1-4816-a216-52a37fc10523.issuer.idp/jwks",
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 419
{
"id" : "e21843f6-9fa5-4925-8322-c894638bf99e",
"issuer" : "https://b8dfe3be-f9d1-4816-a216-52a37fc10523.issuer.idp",
"jwksUri" : "https://b8dfe3be-f9d1-4816-a216-52a37fc10523.issuer.idp/jwks",
"active" : true,
"createdBy" : "b3cb3c6f-a342-400e-b8f0-d9a8b777f1e3",
"createdAt" : {
"nano" : 206572000,
"epochSecond" : 1788187534
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Update Oidc Issuer
PATCH /oidc-issuers/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-issuers/7dfa5c8d-1024-4748-af8c-a63177e334f2' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"issuer" : "https://5e5b67d3-2095-48bb-9287-c405fbfaf894.issuer.idp",
"jwksUri" : "https://5e5b67d3-2095-48bb-9287-c405fbfaf894.issuer.idp/jwks",
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 420
{
"id" : "7dfa5c8d-1024-4748-af8c-a63177e334f2",
"issuer" : "https://5e5b67d3-2095-48bb-9287-c405fbfaf894.issuer.idp",
"jwksUri" : "https://5e5b67d3-2095-48bb-9287-c405fbfaf894.issuer.idp/jwks",
"active" : false,
"createdBy" : "4503b9d4-65da-45ba-a3f0-15076580f766",
"createdAt" : {
"nano" : 122478000,
"epochSecond" : 1788187534
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Delete Oidc Issuer
DELETE /oidc-issuers/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
issuer |
String |
true |
|
jwksUri |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-issuers/9a01e1ce-1380-4c17-83d9-177fcd2fe7e9' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 508
{
"id" : "9a01e1ce-1380-4c17-83d9-177fcd2fe7e9",
"issuer" : "https://27cc1444-15b0-4e2d-bdd8-49c6bffe0fc7.issuer.idp",
"jwksUri" : "https://27cc1444-15b0-4e2d-bdd8-49c6bffe0fc7.issuer.idp/jwks",
"active" : true,
"createdBy" : "a3aef536-e2dd-4168-bea1-2d7a3808b626",
"createdAt" : {
"nano" : 292391000,
"epochSecond" : 1788187534
},
"deletedAt" : {
"nano" : 309513000,
"epochSecond" : 1788187534
},
"deletedBy" : "40a2dd52-4347-4388-aa57-e61279d62f91",
"deleted" : true
}
OIDC Public Clients
Find Oidc Public Clients
GET /oidc-public-clients
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-public-clients' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2070
[ {
"id" : "290cc71d-cbd0-4c44-bf9e-a9d33a7314e6",
"oidcIssuerId" : "fc221f2c-e97f-4994-a29e-afc26395f6b6",
"clientId" : "{clientId}",
"clientSecret" : "{clientSecret}",
"authorizationEndpoint" : "https://{auth0-tenant}.auth0.com/authorize",
"tokenEndpoint" : "https://{auth0-tenant}.auth0.com/oauth/token",
"userInfoEndpoint" : "https://{auth0-tenant}.auth0.com/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 369772000,
"epochSecond" : 1788187436
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "c4f7abfd-e3c1-449b-9ae6-42c76c55514f",
"oidcIssuerId" : "d859c3de-673d-41f6-a3e3-aa22354321b2",
"clientId" : "clientId-c34ea357-05c1-4421-9383-503ddbb50186",
"clientSecret" : "clientSecret-600771cc-c526-4a74-ba83-72b3fae31943",
"authorizationEndpoint" : "https://a7515e46-78d8-4a45-89c0-daa3f9b6a2db.issuer.idp/authorize",
"tokenEndpoint" : "https://a7515e46-78d8-4a45-89c0-daa3f9b6a2db.issuer.idp/token",
"userInfoEndpoint" : "https://a7515e46-78d8-4a45-89c0-daa3f9b6a2db.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "ef135c0b-8b0a-4bbb-89bb-941d85163b10",
"createdAt" : {
"nano" : 411529000,
"epochSecond" : 1788187534
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "f4e6fcd0-1839-4566-8828-856e42b8f156",
"oidcIssuerId" : "6c72dba0-a155-4804-9a70-89da12149793",
"clientId" : "{clientId}",
"clientSecret" : "{clientSecret}",
"authorizationEndpoint" : "https://accounts.google.com/o/oauth2/v2/auth",
"tokenEndpoint" : "https://oauth2.googleapis.com/token",
"userInfoEndpoint" : "https://openidconnect.googleapis.com/v1/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 369772000,
"epochSecond" : 1788187436
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ]
Get Oidc Public Client
GET /oidc-public-clients/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-public-clients/f4e6e93a-23c1-49f6-8f7d-2f24c159d178' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 775
{
"id" : "f4e6e93a-23c1-49f6-8f7d-2f24c159d178",
"oidcIssuerId" : "bbbfe9c0-1d5a-4943-9f7d-f865771c64ef",
"clientId" : "clientId-e33161dd-2f94-4acd-9dff-d0760df03487",
"clientSecret" : "clientSecret-8a6d0ddd-d32e-4e12-ad45-7201147939ae",
"authorizationEndpoint" : "https://2769df0a-c43e-462d-84a3-b7b09393b7fc.issuer.idp/authorize",
"tokenEndpoint" : "https://2769df0a-c43e-462d-84a3-b7b09393b7fc.issuer.idp/token",
"userInfoEndpoint" : "https://2769df0a-c43e-462d-84a3-b7b09393b7fc.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "48165f5b-bbaf-43dc-8c4c-962151c2c7f8",
"createdAt" : {
"nano" : 76301000,
"epochSecond" : 1788187535
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Create Oidc Public Client
POST /oidc-public-clients
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
oidcIssuerId |
String |
true |
|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-public-clients' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"oidcIssuerId" : "fe2464e9-9874-4b7d-9a9c-6b941adb518b",
"clientId" : "clientId-e8e98289-c669-4b0e-88bf-0da16244dfa0",
"clientSecret" : "clientSecret-63d88835-3dc1-4d7b-9192-a80a6586041e",
"authorizationEndpoint" : "https://42f029a2-f0d0-4c5f-98ca-ef0d64a729fe.issuer.idp/authorize",
"tokenEndpoint" : "https://42f029a2-f0d0-4c5f-98ca-ef0d64a729fe.issuer.idp/token",
"userInfoEndpoint" : "https://42f029a2-f0d0-4c5f-98ca-ef0d64a729fe.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 775
{
"id" : "bb61811a-c3f0-4301-9a6e-0c2e9e614484",
"oidcIssuerId" : "fe2464e9-9874-4b7d-9a9c-6b941adb518b",
"clientId" : "clientId-e8e98289-c669-4b0e-88bf-0da16244dfa0",
"clientSecret" : "clientSecret-63d88835-3dc1-4d7b-9192-a80a6586041e",
"authorizationEndpoint" : "https://42f029a2-f0d0-4c5f-98ca-ef0d64a729fe.issuer.idp/authorize",
"tokenEndpoint" : "https://42f029a2-f0d0-4c5f-98ca-ef0d64a729fe.issuer.idp/token",
"userInfoEndpoint" : "https://42f029a2-f0d0-4c5f-98ca-ef0d64a729fe.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "5cd0f71e-dbc9-4b5c-80f3-b381861edf85",
"createdAt" : {
"nano" : 11182000,
"epochSecond" : 1788187535
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Update Oidc Public Client
PATCH /oidc-public-clients/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-public-clients/132cfd1b-d29a-474f-977d-f898974b0487' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"clientId" : "clientId-5243fdef-eb79-4ac9-b130-e447db9021b9",
"clientSecret" : "clientSecret-0fee8179-5ecd-40bc-91c8-11de1bff82b8",
"authorizationEndpoint" : "https://ecda6dba-a438-4cad-aa44-16b998880106.issuer.idp/authorize",
"tokenEndpoint" : "https://ecda6dba-a438-4cad-aa44-16b998880106.issuer.idp/token",
"userInfoEndpoint" : "https://ecda6dba-a438-4cad-aa44-16b998880106.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 777
{
"id" : "132cfd1b-d29a-474f-977d-f898974b0487",
"oidcIssuerId" : "90a2a51c-0c08-4ce1-bb95-fc9baeb6a208",
"clientId" : "clientId-5243fdef-eb79-4ac9-b130-e447db9021b9",
"clientSecret" : "clientSecret-0fee8179-5ecd-40bc-91c8-11de1bff82b8",
"authorizationEndpoint" : "https://ecda6dba-a438-4cad-aa44-16b998880106.issuer.idp/authorize",
"tokenEndpoint" : "https://ecda6dba-a438-4cad-aa44-16b998880106.issuer.idp/token",
"userInfoEndpoint" : "https://ecda6dba-a438-4cad-aa44-16b998880106.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : false,
"createdBy" : "79c64e69-3fcf-4d09-ad9a-912f77c5e4ef",
"createdAt" : {
"nano" : 834625000,
"epochSecond" : 1788187534
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Delete Oidc Public Client
DELETE /oidc-public-clients/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
clientId |
String |
true |
|
clientSecret |
String |
true |
|
authorizationEndpoint |
String |
true |
|
tokenEndpoint |
String |
true |
|
userInfoEndpoint |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-public-clients/683c3e5c-bdab-4ce7-b20e-28401698af64' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 865
{
"id" : "683c3e5c-bdab-4ce7-b20e-28401698af64",
"oidcIssuerId" : "693f35fb-7f7d-4655-b23b-294fa7e0078a",
"clientId" : "clientId-c964c255-2513-4d7a-bbe6-f977ea0fc015",
"clientSecret" : "clientSecret-6be6880a-f42c-470b-a9c7-ff27edf7f314",
"authorizationEndpoint" : "https://1fae4c14-3c51-47f7-b866-cb05d5645fa3.issuer.idp/authorize",
"tokenEndpoint" : "https://1fae4c14-3c51-47f7-b866-cb05d5645fa3.issuer.idp/token",
"userInfoEndpoint" : "https://1fae4c14-3c51-47f7-b866-cb05d5645fa3.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "19d3e5e4-bee3-4249-97d3-400321ff3314",
"createdAt" : {
"nano" : 125333000,
"epochSecond" : 1788187535
},
"deletedAt" : {
"nano" : 139832000,
"epochSecond" : 1788187535
},
"deletedBy" : "65927cc2-4781-4181-9378-b30f26bab28a",
"deleted" : true
}
Organization to OIDC Public Client Mappings
Find Organization Oidc Public Client Mappings
GET /organization-oidc-public-client-mappings
Authorization
This endpoint requires:
-
readaction on thisorganization-oidc-public-client-mappingresource.
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
oidcPublicClientId |
String |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-oidc-public-client-mappings' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1536
[ {
"id" : "0aed1fa6-58ef-42f8-831c-e1b0f3696122",
"organizationId" : "7e7a4b05-6563-45f4-88f7-40d69fe9594c",
"oidcPublicClientId" : "aee0fa80-442e-480a-ab1d-f91ed2edb4b2",
"name" : "console-client-ae5cc290-fe52-4f53-8396-cb3986453044",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "1d1d15ab-c324-4e6f-b5ac-ad8d04fbdb9b",
"createdAt" : {
"nano" : 441515000,
"epochSecond" : 1788187538
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "370124cb-22d0-430e-af5a-22c390873964",
"organizationId" : "95068bb0-864b-4930-b06e-9acf4957c826",
"oidcPublicClientId" : "290cc71d-cbd0-4c44-bf9e-a9d33a7314e6",
"name" : "NetFoundry Google Account",
"active" : true,
"customQueryParameters" : "{\"audience\": \"https://gateway.{env}.netfoundry.io/\", \"connection\": \"google-oauth2\"}",
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 850799000,
"epochSecond" : 1788187435
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "3b5a231c-ebcb-4fde-a3ea-c78fb6100b3b",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"oidcPublicClientId" : "290cc71d-cbd0-4c44-bf9e-a9d33a7314e6",
"name" : "ACME Federated Active Directory",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "ab48c464-3271-468a-828a-dbe600952266",
"createdAt" : {
"nano" : 458052000,
"epochSecond" : 1788187444
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ]
Get Organization Oidc Public Client Mapping
GET /organization-oidc-public-client-mappings/{id}
Authorization
This endpoint requires:
-
readaction on thisorganization-oidc-public-client-mappingresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
oidcPublicClientId |
String |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-oidc-public-client-mappings/84b05143-134c-4e81-83c6-ed218191bfbf' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 494
{
"id" : "84b05143-134c-4e81-83c6-ed218191bfbf",
"organizationId" : "fbbe7c50-5df5-4bfd-8965-5ea5faa488bf",
"oidcPublicClientId" : "d0b2678d-0a63-43bc-8acc-a87ffb904d3b",
"name" : "console-client-481d46db-69b0-4c96-bbcf-a681891f9f76",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "4e2e4d82-b719-4da2-88b4-af21f8e326e5",
"createdAt" : {
"nano" : 73716000,
"epochSecond" : 1788187539
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Create Organization Oidc Public Client Mapping
POST /organization-oidc-public-client-mappings
Authorization
This endpoint requires:
-
createaction on thisorganization-oidc-public-client-mappingresource. -
readaction on theoidc-public-clientresource identified by theoidcPublicClientIdproperty.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
oidcPublicClientId |
String |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
oidcPublicClientId |
String |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-oidc-public-client-mappings' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "ce9730d5-f438-4fb0-8a9e-8006415ff465",
"oidcPublicClientId" : "237063dc-74cd-4b04-aadd-b88f15c89855",
"name" : "console-client-417bc0a3-143f-4704-bd43-d0582e27bf2a",
"active" : true,
"customQueryParameters" : "{}"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 494
{
"id" : "97c9d231-1015-4807-b6fc-f5faa115a631",
"organizationId" : "ce9730d5-f438-4fb0-8a9e-8006415ff465",
"oidcPublicClientId" : "237063dc-74cd-4b04-aadd-b88f15c89855",
"name" : "console-client-417bc0a3-143f-4704-bd43-d0582e27bf2a",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "972b2261-41c7-4e96-8e66-82a08b45282e",
"createdAt" : {
"nano" : 15820000,
"epochSecond" : 1788187539
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Update Organization Oidc Public Client Mapping
PATCH /organization-oidc-public-client-mappings/{id}
Authorization
This endpoint requires:
-
updateaction on thisorganization-oidc-public-client-mappingresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
oidcPublicClientId |
String |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-oidc-public-client-mappings/ecae53ae-9f41-4855-a8a4-580c340cae2d' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"name" : "custom-client-b2aecad5-896b-458e-bb9a-b8148d32fb8b",
"active" : true,
"customQueryParameters" : "{}"
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 494
{
"id" : "ecae53ae-9f41-4855-a8a4-580c340cae2d",
"organizationId" : "29145473-a5b3-4e42-86fe-92774ed33efe",
"oidcPublicClientId" : "d33d9192-31e9-4207-826d-ee3761a5429e",
"name" : "custom-client-b2aecad5-896b-458e-bb9a-b8148d32fb8b",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "d4d6aca1-7942-4606-8a7a-8b52b819cfd2",
"createdAt" : {
"nano" : 920180000,
"epochSecond" : 1788187538
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Delete Organization Oidc Public Client Mapping
DELETE /organization-oidc-public-client-mappings/{id}
Authorization
This endpoint requires:
-
deleteaction on thisorganization-oidc-public-client-mappingresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
oidcPublicClientId |
String |
true |
|
name |
String |
true |
|
active |
Boolean |
true |
|
customQueryParameters |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-oidc-public-client-mappings/fb9824b8-fb30-4605-9c8a-a9d141c2046e' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 543
{
"id" : "fb9824b8-fb30-4605-9c8a-a9d141c2046e",
"organizationId" : "64d9cd25-7e37-473a-81fd-5884c243d5e5",
"oidcPublicClientId" : "9d8c40e4-c97f-48be-b98e-ec67d4936f23",
"name" : "number two",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "6068a518-11b7-4637-b3e0-4fc5d41cc315",
"createdAt" : {
"nano" : 136696000,
"epochSecond" : 1788187539
},
"deletedAt" : {
"nano" : 148816000,
"epochSecond" : 1788187539
},
"deletedBy" : "ed851851-5cab-403c-a4d2-ff7e3edfc943",
"deleted" : true
}
OIDC Audiences
Find Oidc Audiences
GET /oidc-audiences
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-audiences' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1282
[ {
"id" : "6a4f65ad-9db8-4ea7-b404-1d5c5f85cbdf",
"oidcIssuerId" : "fc221f2c-e97f-4994-a29e-afc26395f6b6",
"audience" : "https://gateway.{env}.netfoundry.io/",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 392266000,
"epochSecond" : 1788187436
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "951984c2-cdd6-4a57-a76a-60084f0fc2e8",
"oidcIssuerId" : "1a952d46-d1eb-472b-984a-777f8a7237f0",
"audience" : "mop-aud-38110d92-a9f7-494f-b185-8d2777858a3c",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "430a6c3f-fbc9-4098-9779-f63bf2fbded2",
"createdAt" : {
"nano" : 290121000,
"epochSecond" : 1788187532
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "b71d8edd-6bf1-4ed3-84e8-f3b5fe82868f",
"oidcIssuerId" : "6c72dba0-a155-4804-9a70-89da12149793",
"audience" : "https://gateway.{env}.netfoundry.io/",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 392266000,
"epochSecond" : 1788187436
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ]
Get Oidc Audience
GET /oidc-audiences/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-audiences/8c9bb248-d638-42a8-aad0-1495c86a9e30' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 430
{
"id" : "8c9bb248-d638-42a8-aad0-1495c86a9e30",
"oidcIssuerId" : "03e83093-6d65-4127-ab96-0a109ffc08c4",
"audience" : "mop-aud-4b2fbbcb-e7e3-463d-94c8-7d8d6f7cd5fa",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "b5cff99d-5dbd-4ef8-a71f-7a4d2cdf7b80",
"createdAt" : {
"nano" : 236865000,
"epochSecond" : 1788187533
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Create Oidc Audience
POST /oidc-audiences
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
oidcIssuerId |
String |
true |
|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-audiences' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"oidcIssuerId" : "589406b1-869d-4e8f-8412-465aff9d6982",
"audience" : "mop-aud-b69628fe-0ad6-4bf7-9d7d-3ec7ce0361aa",
"restrictedToOrganizationIds" : [ ],
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 430
{
"id" : "f51a972e-22ed-4fec-86fb-fb0a18be1882",
"oidcIssuerId" : "589406b1-869d-4e8f-8412-465aff9d6982",
"audience" : "mop-aud-b69628fe-0ad6-4bf7-9d7d-3ec7ce0361aa",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "ed52a632-f7cf-48c7-a460-2fc1a041b927",
"createdAt" : {
"nano" : 141956000,
"epochSecond" : 1788187533
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Update Oidc Audience
PATCH /oidc-audiences/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-audiences/efaa517d-129c-4a79-b865-f8eccef1920c' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"audience" : "mop-aud-b5ed2bdf-a967-499f-94f1-286f211ccf42",
"restrictedToOrganizationIds" : [ ],
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 431
{
"id" : "efaa517d-129c-4a79-b865-f8eccef1920c",
"oidcIssuerId" : "ad9340d8-dc3f-48a1-98fa-3d47f8cbd9c1",
"audience" : "mop-aud-b5ed2bdf-a967-499f-94f1-286f211ccf42",
"restrictedToOrganizationIds" : [ ],
"active" : false,
"createdBy" : "ba7d3459-8091-4e46-b622-d3f687b1b64b",
"createdAt" : {
"nano" : 918229000,
"epochSecond" : 1788187532
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Delete Oidc Audience
DELETE /oidc-audiences/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-audiences/808bf060-946c-4d32-9097-7d075bb9751f' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 519
{
"id" : "808bf060-946c-4d32-9097-7d075bb9751f",
"oidcIssuerId" : "cc89a741-eb01-4c91-a0ec-8d7cb496838a",
"audience" : "mop-aud-a5e03f3f-0cf9-4f79-bae7-1831ed554fce",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "6cf1a694-2e5b-4b40-baa2-0747ee40f63d",
"createdAt" : {
"nano" : 353231000,
"epochSecond" : 1788187533
},
"deletedAt" : {
"nano" : 377437000,
"epochSecond" : 1788187533
},
"deletedBy" : "69a16fb8-2143-4632-bfb0-0c03290c9da0",
"deleted" : true
}
User Identity to OIDC Audience Mappings
Find User Identity Audience Mappings
GET /user-identity-oidc-audience-mappings
Authorization
This endpoint requires:
-
readaction on thisuser-identity-oidc-audience-mappingresource.
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
oidcAudienceId |
String |
true |
|
subject |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identity-oidc-audience-mappings' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 3
[ ]
Get User Identity Audience Mapping
GET /user-identity-oidc-audience-mappings/{id}
Authorization
This endpoint requires:
-
readaction on thisuser-identity-oidc-audience-mappingresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
oidcAudienceId |
String |
true |
|
subject |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identity-oidc-audience-mappings/322a5478-c9c7-447b-a0a5-a4aeef43377b' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 460
{
"id" : "322a5478-c9c7-447b-a0a5-a4aeef43377b",
"userIdentityId" : "bae5f5f5-a6dd-420d-ae0f-ef9346ead233",
"oidcAudienceId" : "a192c410-f80b-457e-bc0a-79caba5c235a",
"subject" : "console-client-a83f07c8-b90f-4304-97d6-f6652a612049",
"active" : true,
"createdBy" : "bb8f2e7a-4700-4d30-a39e-602fc73c75d0",
"createdAt" : {
"nano" : 301963000,
"epochSecond" : 1788187544
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Create User Identity Audience Mapping
POST /user-identity-oidc-audience-mappings
Authorization
This endpoint requires:
-
createaction on thisuser-identity-oidc-audience-mappingresource. -
create-identity-mappingaction on theuser-identityresource identified by theuserIdentityIdproperty. -
readaction on theoidc-audienceresource identified by theoidcAudienceIdproperty.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
userIdentityId |
String |
true |
|
oidcAudienceId |
String |
true |
|
subject |
String |
true |
|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
oidcAudienceId |
String |
true |
|
subject |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identity-oidc-audience-mappings' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"userIdentityId" : "95966df6-adaf-4ade-b43e-0007e5708bfb",
"oidcAudienceId" : "422fe58e-6d6a-4bc6-a948-affa7deaef5b",
"subject" : "console-client-cd82eb89-1894-4d83-b356-9164906c2ca1",
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 459
{
"id" : "1f6fb1a0-0de2-402a-aa9b-5e54c31078bc",
"userIdentityId" : "95966df6-adaf-4ade-b43e-0007e5708bfb",
"oidcAudienceId" : "422fe58e-6d6a-4bc6-a948-affa7deaef5b",
"subject" : "console-client-cd82eb89-1894-4d83-b356-9164906c2ca1",
"active" : true,
"createdBy" : "01e9d51e-1428-4d4c-b4e0-7777ac24ca3a",
"createdAt" : {
"nano" : 97894000,
"epochSecond" : 1788187544
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Update User Identity Audience Mapping
PATCH /user-identity-oidc-audience-mappings/{id}
Authorization
This endpoint requires:
-
updateaction on thisuser-identity-oidc-audience-mappingresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
active |
Boolean |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
oidcAudienceId |
String |
true |
|
subject |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identity-oidc-audience-mappings/e2b1432d-64de-4bc4-b824-50f672d75f1f' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 461
{
"id" : "e2b1432d-64de-4bc4-b824-50f672d75f1f",
"userIdentityId" : "c8840c99-7df1-4932-bc57-c4fcba65780b",
"oidcAudienceId" : "69fbc235-aebf-4d99-9ba5-6ba05f550e42",
"subject" : "console-client-6d9b2371-bce2-43e2-85b3-7360cb11fa87",
"active" : false,
"createdBy" : "42468cb2-7f25-44a3-a639-fdebc9316419",
"createdAt" : {
"nano" : 775475000,
"epochSecond" : 1788187543
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Delete User Identity Audience Mapping
DELETE /user-identity-oidc-audience-mappings/{id}
Authorization
This endpoint requires:
-
deleteaction on thisuser-identity-oidc-audience-mappingresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
oidcAudienceId |
String |
true |
|
subject |
String |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identity-oidc-audience-mappings/5be35807-6b61-46d4-ba34-2a902c970c0b' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 549
{
"id" : "5be35807-6b61-46d4-ba34-2a902c970c0b",
"userIdentityId" : "e942d3fd-bd6c-41e8-b58c-56b8b2430b2c",
"oidcAudienceId" : "f87d9e0b-40b7-468c-8074-5e2072000c3a",
"subject" : "console-client-f9ec2feb-9024-4044-a929-afb31ce30e35",
"active" : true,
"createdBy" : "27748767-fb61-4bc0-94b9-f06a86e48a65",
"createdAt" : {
"nano" : 486415000,
"epochSecond" : 1788187544
},
"deletedAt" : {
"nano" : 541611000,
"epochSecond" : 1788187544
},
"deletedBy" : "3e273ac5-12dc-41b5-9589-321a649ceb46",
"deleted" : true
}
Identity Providers
Find Identity Providers
GET /identity-providers
Query parameters
Supports standard paging query parameters.
| Parameter | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
organizationId |
Object |
true |
|
auth0ConnectionId |
Object |
true |
|
auth0ConnectionType |
Object |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
deleted |
Object |
true |
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-providers' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1183
[ {
"id" : "26a559ff-1962-4131-8375-6946cfd71b8c",
"organizationId" : "a275581b-9968-4303-a2ff-8a6bf7eaa169",
"auth0ConnectionId" : "auth0-opaque-connectionId-266",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : false,
"createdAt" : {
"nano" : 401818000,
"epochSecond" : 1788187517
},
"updatedAt" : {
"nano" : 447878000,
"epochSecond" : 1788187517
},
"deletedAt" : null
}, {
"id" : "370124cb-22d0-430e-af5a-22c390873964",
"organizationId" : "95068bb0-864b-4930-b06e-9acf4957c826",
"auth0ConnectionId" : "google-oauth2",
"name" : "NetFoundry Google Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 850799000,
"epochSecond" : 1788187435
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "64f2bdd7-15b5-4dbe-8a86-1ef9b62af0c6",
"organizationId" : "cfa2fd35-d361-4b3d-af66-1212b4b92fd7",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 599253000,
"epochSecond" : 1788187517
},
"updatedAt" : null,
"deletedAt" : null
} ]
Get Identity Provider
GET /identity-providers/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-providers/b3079608-562a-4ba5-ad4a-f305c339ef65' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 394
{
"id" : "b3079608-562a-4ba5-ad4a-f305c339ef65",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 303346000,
"epochSecond" : 1788187444
},
"updatedAt" : null,
"deletedAt" : null
}
Create Identity Provider
POST /identity-providers
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-providers' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "cfa2fd35-d361-4b3d-af66-1212b4b92fd7",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 368
{
"id" : "64f2bdd7-15b5-4dbe-8a86-1ef9b62af0c6",
"organizationId" : "cfa2fd35-d361-4b3d-af66-1212b4b92fd7",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 599253000,
"epochSecond" : 1788187517
},
"updatedAt" : null,
"deletedAt" : null
}
Update Identity Provider
PUT /identity-providers/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-providers/a8fc50d6-bb0a-4386-9641-896d68050c20' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"name" : "New IdP Name"
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 431
{
"id" : "a8fc50d6-bb0a-4386-9641-896d68050c20",
"organizationId" : "8df239dc-6dc6-4aa2-86a6-255cc5f44722",
"auth0ConnectionId" : "auth0-opaque-connectionId-276",
"name" : "New IdP Name",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 251879000,
"epochSecond" : 1788187518
},
"updatedAt" : {
"nano" : 307454000,
"epochSecond" : 1788187518
},
"deletedAt" : null
}
Activate Or Deactivate Identity Provider
PUT /identity-providers/{id}/{action:activate|deactivate}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
|
action |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-providers/769048f6-fbb3-4559-8010-b094ab9943ca/activate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 380
{
"id" : "769048f6-fbb3-4559-8010-b094ab9943ca",
"organizationId" : "bdd046aa-ef66-427c-a75e-ea360a925026",
"auth0ConnectionId" : "auth0-opaque-connectionId-270",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 791929000,
"epochSecond" : 1788187517
},
"updatedAt" : null,
"deletedAt" : null
}
Delete Identity Provider
DELETE /identity-providers/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ConnectionId |
String |
true |
|
name |
String |
true |
|
auth0ConnectionType |
String |
true |
Must be one of [Database, Social, Enterprise, Passwordless]. |
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-providers/1fec69c5-9d04-4efc-be76-3fdf2931d0ef' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 492
{
"id" : "1fec69c5-9d04-4efc-be76-3fdf2931d0ef",
"organizationId" : "91dfca97-624f-4471-bf71-afbcf06fde4c",
"auth0ConnectionId" : "auth0-opaque-connectionId-274",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 112268000,
"epochSecond" : 1788187518
},
"updatedAt" : {
"nano" : 149593000,
"epochSecond" : 1788187518
},
"deletedAt" : {
"nano" : 148000000,
"epochSecond" : 1788187518
}
}
Default Roles
Find Default Roles
GET /default-roles
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
name |
String |
true |
|
roleType |
String |
true |
Must be one of [Standard, Custom]. |
roleId |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/default-roles' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1384
[ {
"id" : "00682bc9-3b95-4558-b7f2-5a4d368f6d50",
"organizationId" : "70e32464-1456-42dd-9b04-4a6f60d90d14",
"name" : "Standard Role - 6251512b-eaeb-41a3-bfe3-14d59a45a272",
"roleType" : "Standard",
"roleId" : "6251512b-eaeb-41a3-bfe3-14d59a45a272",
"createdBy" : "b0502d3a-9c6b-421c-9108-be1e0850b5eb",
"createdAt" : {
"nano" : 433589000,
"epochSecond" : 1788187506
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "08669cd6-9491-4860-a9b0-7644d9e4ef05",
"organizationId" : "610c2dd1-db8e-4ac3-a4fb-b8c7b8f35127",
"name" : "Standard Role - a977d5bb-5bff-4568-9e8f-09fe7625ea73",
"roleType" : "Standard",
"roleId" : "a977d5bb-5bff-4568-9e8f-09fe7625ea73",
"createdBy" : "bd1cc5c5-77a0-458b-b8bd-bf88cd0e347d",
"createdAt" : {
"nano" : 283622000,
"epochSecond" : 1788187506
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "1346d0e1-de7f-4d28-93f2-bd0e9e9f5d12",
"organizationId" : "cc2433a9-c951-4a30-a57f-c23567fe7b87",
"name" : "Network Group Admin - NF Support (NFSUP) Network Group",
"roleType" : "Standard",
"roleId" : "cf53e966-a3ad-4e80-a5fc-380fe8d48e57",
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 221798000,
"epochSecond" : 1788187504
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ]
Get Default Role
GET /default-roles/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
name |
String |
true |
|
roleType |
String |
true |
Must be one of [Standard, Custom]. |
roleId |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/default-roles/3e00eaad-2910-4140-a493-c0fd711253fb' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 454
{
"id" : "3e00eaad-2910-4140-a493-c0fd711253fb",
"organizationId" : "610c2dd1-db8e-4ac3-a4fb-b8c7b8f35127",
"name" : "Custom Role - 0d7e9df4-23c0-4862-9a8f-9f881e94688c",
"roleType" : "Custom",
"roleId" : "0d7e9df4-23c0-4862-9a8f-9f881e94688c",
"createdBy" : "4f20d5b6-433a-4417-a0c2-e154c720805e",
"createdAt" : {
"nano" : 286445000,
"epochSecond" : 1788187506
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Create Default Role
POST /default-roles
Authorization
This endpoint requires:
-
createaction on thisdefault-roleresource. -
updateaction on theorganizationresource identified by theorganizationproperty.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
roleType |
String |
true |
Must be one of [Standard, Custom]. |
roleId |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
name |
String |
true |
|
roleType |
String |
true |
Must be one of [Standard, Custom]. |
roleId |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/default-roles' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "5357d252-7b1f-413d-9f8a-7b58ad6fbf2c",
"roleType" : "Standard",
"roleId" : "887a890e-d8d8-4b23-9321-20794e2b7b14"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 457
{
"id" : "179dc6e0-fa07-4ab7-81bb-3bd207db1107",
"organizationId" : "5357d252-7b1f-413d-9f8a-7b58ad6fbf2c",
"name" : "Standard Role - 887a890e-d8d8-4b23-9321-20794e2b7b14",
"roleType" : "Standard",
"roleId" : "887a890e-d8d8-4b23-9321-20794e2b7b14",
"createdBy" : "84d6ce4e-b228-4a43-a7bc-8b2b1e42cce7",
"createdAt" : {
"nano" : 93833000,
"epochSecond" : 1788187508
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}
Delete Default Role
DELETE /default-roles/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
name |
String |
true |
|
roleType |
String |
true |
Must be one of [Standard, Custom]. |
roleId |
String |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/default-roles/ac280486-a22a-4120-8da2-b87c95f838c6' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 547
{
"id" : "ac280486-a22a-4120-8da2-b87c95f838c6",
"organizationId" : "610c2dd1-db8e-4ac3-a4fb-b8c7b8f35127",
"name" : "Standard Role - e22396cc-e57e-4358-b4dd-f76d7a79890a",
"roleType" : "Standard",
"roleId" : "e22396cc-e57e-4358-b4dd-f76d7a79890a",
"createdBy" : "c1bb2a4f-6ccf-4274-9a00-62854f088b62",
"createdAt" : {
"nano" : 536482000,
"epochSecond" : 1788187507
},
"deletedAt" : {
"nano" : 574000000,
"epochSecond" : 1788187507
},
"deletedBy" : "81ac1ea3-51e4-4839-9307-bcf13e0566f4",
"deleted" : true
}
Grant Default Role
POST /default-roles/{id}/grant
Authorization
This endpoint requires:
-
readaction on thisdefault-roleresource. -
createaction on theinvitationresource identified by theorganizationproperty.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
No request body.
Response fields
No response body.
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/default-roles/00682bc9-3b95-4558-b7f2-5a4d368f6d50/grant' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"includeIdentityIds" : [ "b0c5dbc4-113a-48fc-b01f-a9098c3c97a9", "237433be-b4a1-43a3-bc0d-57bf816c5b48", "080d22e2-1895-442f-a36c-9f50988c883b" ],
"excludeIdentityIds" : [ "b0c5dbc4-113a-48fc-b01f-a9098c3c97a9", "237433be-b4a1-43a3-bc0d-57bf816c5b48", "05dd2e95-e769-4b32-884a-47622902009d" ]
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 51
{
"080d22e2-1895-442f-a36c-9f50988c883b" : true
}
User Identity
Get Identity
GET /identities/self
Authorization
This endpoint requires no specific permission, only an authenticated client.
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
id |
String |
true |
|
type |
String |
true |
|
active |
Boolean |
true |
|
organizationId |
String |
true |
|
deletedAt |
Object |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
createdAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identities/self' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 778
{
"id" : "8a8079a0-7a0e-4f4b-8b54-868a7726fe3f",
"organizationId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-454@acme.com",
"identityMappings" : [ {
"id" : "a04f2a80-b8aa-4505-af85-9c57a1bbe94d",
"auth0UserId" : "auth0-opaque-userId-455",
"identityProviderId" : "86dd55bc-9ec8-4319-afe5-32a8e02a61a6",
"userIdentityId" : "8a8079a0-7a0e-4f4b-8b54-868a7726fe3f"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 396936000,
"epochSecond" : 1788187541
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "First Last",
"status" : "ACTIVE",
"tenantId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"type" : "UserIdentity"
}
Get Identity
GET /identities/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
id |
String |
true |
|
type |
String |
true |
|
active |
Boolean |
true |
|
organizationId |
String |
true |
|
deletedAt |
Object |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
createdAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identities/0337320b-2682-40e7-86c4-701f0bdc317c' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 772
{
"id" : "0337320b-2682-40e7-86c4-701f0bdc317c",
"organizationId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "d1d39262-0eb7-4163-a59d-7cd61aeb1b46",
"auth0UserId" : "auth0-opaque-userId-323",
"identityProviderId" : "e5b2f8ad-a336-4f99-a3b7-bdf7890a9791",
"userIdentityId" : "0337320b-2682-40e7-86c4-701f0bdc317c"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 555631000,
"epochSecond" : 1788187528
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "John Doe",
"status" : "ACTIVE",
"tenantId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"type" : "UserIdentity"
}
Find User Identities
GET /user-identities
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities' -i -X GET
Example response
HTTP/1.1 200 OK
Link: <https://gateway.netFoundry.io/identity/v1/user-identities?page=1>; rel="next", <https://gateway.netFoundry.io/identity/v1/user-identities?page=1>; rel="last"
Content-Type: application/json
Content-Length: 2336
[ {
"id" : "0337320b-2682-40e7-86c4-701f0bdc317c",
"organizationId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "d1d39262-0eb7-4163-a59d-7cd61aeb1b46",
"auth0UserId" : "auth0-opaque-userId-323",
"identityProviderId" : "e5b2f8ad-a336-4f99-a3b7-bdf7890a9791",
"userIdentityId" : "0337320b-2682-40e7-86c4-701f0bdc317c"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 555631000,
"epochSecond" : 1788187528
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "John Doe",
"status" : "ACTIVE",
"tenantId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"type" : "UserIdentity"
}, {
"id" : "1bc91abc-e4f2-4954-8a2c-79f895a5e8eb",
"organizationId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-457@acme.com",
"identityMappings" : [ {
"id" : "d994797c-1051-427b-a2d3-046bdc0c1cbe",
"auth0UserId" : "auth0-opaque-userId-458",
"identityProviderId" : "86dd55bc-9ec8-4319-afe5-32a8e02a61a6",
"userIdentityId" : "1bc91abc-e4f2-4954-8a2c-79f895a5e8eb"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 518843000,
"epochSecond" : 1788187541
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "First Last",
"status" : "ACTIVE",
"tenantId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"type" : "UserIdentity"
}, {
"id" : "1e251a9a-bc8c-4613-aee3-2def234b38d2",
"organizationId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-336@acme.com",
"identityMappings" : [ {
"id" : "68de042d-edb4-4214-ab52-fd5806490d06",
"auth0UserId" : "auth0-opaque-userId-337",
"identityProviderId" : "86dd55bc-9ec8-4319-afe5-32a8e02a61a6",
"userIdentityId" : "1e251a9a-bc8c-4613-aee3-2def234b38d2"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 183739000,
"epochSecond" : 1788187530
},
"deletedAt" : null,
"invited" : true,
"tags" : { },
"name" : "First Last",
"status" : "PENDING",
"tenantId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"type" : "UserIdentity"
} ]
Get User Identity
GET /user-identities/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/0337320b-2682-40e7-86c4-701f0bdc317c' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 772
{
"id" : "0337320b-2682-40e7-86c4-701f0bdc317c",
"organizationId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "d1d39262-0eb7-4163-a59d-7cd61aeb1b46",
"auth0UserId" : "auth0-opaque-userId-323",
"identityProviderId" : "e5b2f8ad-a336-4f99-a3b7-bdf7890a9791",
"userIdentityId" : "0337320b-2682-40e7-86c4-701f0bdc317c"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 555631000,
"epochSecond" : 1788187528
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "John Doe",
"status" : "ACTIVE",
"tenantId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"type" : "UserIdentity"
}
Get User Identity By Mapping
GET /user-identities/mapping/{auth0UserId}/{identityProviderId}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
auth0UserId |
String |
false |
|
identityProviderId |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/mapping/auth0-opaque-userId-323/e5b2f8ad-a336-4f99-a3b7-bdf7890a9791' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 772
{
"id" : "0337320b-2682-40e7-86c4-701f0bdc317c",
"organizationId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "d1d39262-0eb7-4163-a59d-7cd61aeb1b46",
"auth0UserId" : "auth0-opaque-userId-323",
"identityProviderId" : "e5b2f8ad-a336-4f99-a3b7-bdf7890a9791",
"userIdentityId" : "0337320b-2682-40e7-86c4-701f0bdc317c"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 555631000,
"epochSecond" : 1788187528
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "John Doe",
"status" : "ACTIVE",
"tenantId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"type" : "UserIdentity"
}
Create Identity
POST /user-identities
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
tags |
Map |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"firstName" : "Jane",
"lastName" : "Doe",
"email" : "jane.doe@acme.com",
"tags" : null
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 539
{
"id" : "8d9dc307-6819-4d11-af72-39f22b6c2667",
"organizationId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"firstName" : "Jane",
"lastName" : "Doe",
"email" : "jane.doe@acme.com",
"identityMappings" : [ ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 845607000,
"epochSecond" : 1788187542
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "Jane Doe",
"status" : "ACTIVE",
"tenantId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"type" : "UserIdentity"
}
Update
PUT /user-identities/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
tags |
Map |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/b3c1a42d-86bc-489d-ad0d-d7b31c75a6f7' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"firstName" : "Bobby",
"lastName" : "White",
"email" : "bobby.white@acme.com",
"tags" : null
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 781
{
"id" : "b3c1a42d-86bc-489d-ad0d-d7b31c75a6f7",
"organizationId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"firstName" : "Bobby",
"lastName" : "White",
"email" : "bobby.white@acme.com",
"identityMappings" : [ {
"id" : "2d3af88a-72ae-4ac7-84cb-79eb1e49d89f",
"auth0UserId" : "auth0-opaque-userId-467",
"identityProviderId" : "86dd55bc-9ec8-4319-afe5-32a8e02a61a6",
"userIdentityId" : "b3c1a42d-86bc-489d-ad0d-d7b31c75a6f7"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 979981000,
"epochSecond" : 1788187541
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "Bobby White",
"status" : "ACTIVE",
"tenantId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"type" : "UserIdentity"
}
Activate Or Deactivate User Identity
PUT /user-identities/{id}/{action:activate|deactivate}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
|
action |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/6764e577-d27a-47ea-8711-cea468226408/deactivate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 781
{
"id" : "6764e577-d27a-47ea-8711-cea468226408",
"organizationId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-470@acme.com",
"identityMappings" : [ {
"id" : "b0b71049-d035-4f46-8a7f-238e432dd662",
"auth0UserId" : "auth0-opaque-userId-471",
"identityProviderId" : "86dd55bc-9ec8-4319-afe5-32a8e02a61a6",
"userIdentityId" : "6764e577-d27a-47ea-8711-cea468226408"
} ],
"identityAudienceMappings" : [ ],
"active" : false,
"createdAt" : {
"nano" : 294927000,
"epochSecond" : 1788187542
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "First Last",
"status" : "INACTIVE",
"tenantId" : "e8fec28f-a9d0-4aa3-b5b8-c46657943ae1",
"type" : "UserIdentity"
}
Reset User Identity Mfa Settings
PUT /user-identities/{id}/reset-mfa
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
No response body.
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/de3557c5-1839-42f2-8d39-54659671c3e0/reset-mfa' -i -X PUT
Example response
HTTP/1.1 200 OK
Delete User Identity Passkeys
DELETE /user-identities/{id}/passkeys
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
No response body.
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/d6c3773f-a3f4-48cf-b6d9-5bf46f28d31e/passkeys' -i -X DELETE
Example response
HTTP/1.1 204 No Content
Map Identity
POST /user-identities/{id}/mapping
Authorization
This endpoint requires:
-
create-identity-mappingaction on thisuser-identityresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
auth0UserId |
String |
true |
|
identityProviderId |
String |
true |
Response fields
No response body.
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/d2ecd8b0-a7fd-4787-8e24-771461bad1cf/mapping' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"auth0UserId" : "new-auth0-userId:56cf7e71-dd9a-4f03-9016-e78d83ec9887",
"identityProviderId" : "e5b2f8ad-a336-4f99-a3b7-bdf7890a9791"
}'
Example response
HTTP/1.1 200 OK
API Account Identity
Find Api Account Identities
GET /api-account-identities
Query parameters
Supports standard paging query parameters.
| Parameter | Type | Optional | Description |
|---|---|---|---|
provider |
String |
true |
Must be one of [Auth0, Cognito]. |
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities' -i -X GET
Example response
HTTP/1.1 200 OK
Link: <https://gateway.netFoundry.io/identity/v1/api-account-identities?page=1>; rel="next", <https://gateway.netFoundry.io/identity/v1/api-account-identities?page=2>; rel="last"
Content-Type: application/json
Content-Length: 2099
[ {
"id" : "0ccea0e2-879a-43b1-b628-880c3d6b5146",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ClientId" : "9793c18e-478e-4e12-ae88-dcea8ee96d74",
"awsCognitoClientId" : null,
"authenticationUrl" : "https://netfoundry-sandbox.auth0.com/oauth/token",
"name" : "HR Bridge Service",
"contactEmail" : "hr.director@acme.com",
"description" : "description goes here",
"active" : true,
"createdAt" : {
"nano" : 627248000,
"epochSecond" : 1788187453
},
"updatedAt" : null,
"deletedAt" : null,
"tags" : { },
"email" : "hr.director@acme.com",
"tenantId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"type" : "ApiAccountIdentity"
}, {
"id" : "274eda92-36bb-4037-84d7-7828a6e45bb7",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ClientId" : "a4a7d62d-41b0-4da0-8465-c62a355b9ec8",
"awsCognitoClientId" : null,
"authenticationUrl" : "https://netfoundry-sandbox.auth0.com/oauth/token",
"name" : "HR Bridge Service",
"contactEmail" : "hr.director@acme.com",
"description" : "description goes here",
"active" : true,
"createdAt" : {
"nano" : 455749000,
"epochSecond" : 1788187456
},
"updatedAt" : null,
"deletedAt" : null,
"tags" : { },
"email" : "hr.director@acme.com",
"tenantId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"type" : "ApiAccountIdentity"
}, {
"id" : "2f5a2b6e-5684-4cee-aa44-7217ec5ad611",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ClientId" : "bb3ec24a-77ff-4752-9896-3a27b28b844a",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "Robot",
"contactEmail" : "service.admin-13@foo.com",
"description" : "updatable API Account description-14",
"active" : true,
"createdAt" : {
"nano" : 354622000,
"epochSecond" : 1788187452
},
"updatedAt" : {
"nano" : 392806000,
"epochSecond" : 1788187452
},
"deletedAt" : null,
"tags" : { },
"email" : "service.admin-13@foo.com",
"tenantId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"type" : "ApiAccountIdentity"
} ]
Get Api Account Identity
GET /api-account-identities/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/c4a3ffc7-fa13-4c9a-a43e-2c14598e998e' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 734
{
"id" : "c4a3ffc7-fa13-4c9a-a43e-2c14598e998e",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ClientId" : "117a05cd-0508-48e9-aebb-9803ac17e77a",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "api-account",
"contactEmail" : "no-reply@acme.com",
"description" : "This is an ACME non-interactive API client.",
"active" : true,
"createdAt" : {
"nano" : 789221000,
"epochSecond" : 1788187444
},
"updatedAt" : {
"nano" : 701961000,
"epochSecond" : 1788187452
},
"deletedAt" : null,
"tags" : { },
"email" : "no-reply@acme.com",
"tenantId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"type" : "ApiAccountIdentity"
}
Get Api Account Identity By Mapping
GET /api-account-identities/mapping/{clientId}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
clientId |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/mapping/61571361-dfda-4855-827b-0206cfc794ff' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 698
{
"id" : "f820706f-1162-4ff6-8393-650553c46c18",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ClientId" : "61571361-dfda-4855-827b-0206cfc794ff",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "ACME Internal Service-58",
"contactEmail" : "service.admin-59@foo.com",
"description" : "updatable API Account description-60",
"active" : true,
"createdAt" : {
"nano" : 873450000,
"epochSecond" : 1788187493
},
"updatedAt" : null,
"deletedAt" : null,
"tags" : { },
"email" : "service.admin-59@foo.com",
"tenantId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"type" : "ApiAccountIdentity"
}
Create Api Account Identity
POST /api-account-identities
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
grantDefaultRoles |
Boolean |
true |
|
provider |
String |
true |
Must be one of [Auth0, Cognito]. |
tags |
Map |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
apiAccountIdentity |
Object |
true |
|
apiAccountIdentity.id |
String |
true |
|
apiAccountIdentity.organizationId |
String |
true |
|
apiAccountIdentity.auth0ClientId |
String |
true |
|
apiAccountIdentity.awsCognitoClientId |
String |
true |
|
apiAccountIdentity.authenticationUrl |
String |
true |
|
apiAccountIdentity.name |
String |
true |
|
apiAccountIdentity.contactEmail |
String |
true |
|
apiAccountIdentity.description |
String |
true |
|
apiAccountIdentity.active |
Boolean |
true |
|
apiAccountIdentity.createdAt |
Object |
true |
|
apiAccountIdentity.updatedAt |
Object |
true |
|
apiAccountIdentity.deletedAt |
Object |
true |
|
apiAccountIdentity.tags |
Map |
true |
|
apiAccountIdentity.email |
String |
true |
|
apiAccountIdentity.tenantId |
String |
true |
Deprecated.. |
apiAccountIdentity.type |
String |
true |
|
clientId |
String |
true |
|
password |
String |
true |
|
authenticationUrl |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"name" : "HR Bridge Service",
"contactEmail" : "hr.director@acme.com",
"description" : "description goes here",
"grantDefaultRoles" : true,
"provider" : "Cognito",
"tags" : null
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 958
{
"apiAccountIdentity" : {
"id" : "a697c4ed-c281-482c-9bfb-afe304fafd2a",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ClientId" : null,
"awsCognitoClientId" : "b7941925-71f5-4a53-ad6f-f47e78687e56|oxfwbgvj",
"authenticationUrl" : "https://netfoundry-test-wklock.auth.us-east-1.amazoncognito.com/oauth2/token",
"name" : "HR Bridge Service",
"contactEmail" : "hr.director@acme.com",
"description" : "description goes here",
"active" : true,
"createdAt" : {
"nano" : 215384000,
"epochSecond" : 1788187456
},
"updatedAt" : null,
"deletedAt" : null,
"tags" : { },
"email" : "hr.director@acme.com",
"tenantId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"type" : "ApiAccountIdentity"
},
"clientId" : "oxfwbgvj",
"password" : "jjudsqxjqgapmqyfcrhenfsp",
"authenticationUrl" : "https://netfoundry-test-wklock.auth.us-east-1.amazoncognito.com/oauth2/token"
}
Update Identity Info
PUT /api-account-identities/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
tags |
Map |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/bea8a37d-5931-4c5c-8307-156b8cffe0b3' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"name" : "Robot",
"contactEmail" : "robot@acme.com",
"description" : "description here.",
"tags" : null
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 696
{
"id" : "bea8a37d-5931-4c5c-8307-156b8cffe0b3",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ClientId" : "e4caf785-ca6b-41f1-90f6-35d138a97430",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "Robot",
"contactEmail" : "robot@acme.com",
"description" : "description here.",
"active" : true,
"createdAt" : {
"nano" : 897953000,
"epochSecond" : 1788187444
},
"updatedAt" : {
"nano" : 990410000,
"epochSecond" : 1788187446
},
"deletedAt" : null,
"tags" : { },
"email" : "robot@acme.com",
"tenantId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"type" : "ApiAccountIdentity"
}
Activate Or Deactivate Api Account Identity
PUT /api-account-identities/{id}/{action:activate|deactivate}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
|
action |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/9ba6da6d-4dc2-45ee-97b2-b87c55a3b971/deactivate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 755
{
"id" : "9ba6da6d-4dc2-45ee-97b2-b87c55a3b971",
"organizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"auth0ClientId" : "0a3c199e-8351-4125-976b-d20e1865b373",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "ACME Internal Service-40",
"contactEmail" : "service.admin-41@foo.com",
"description" : "updatable API Account description-42",
"active" : false,
"createdAt" : {
"nano" : 221152000,
"epochSecond" : 1788187493
},
"updatedAt" : {
"nano" : 268569000,
"epochSecond" : 1788187493
},
"deletedAt" : null,
"tags" : { },
"email" : "service.admin-41@foo.com",
"tenantId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"type" : "ApiAccountIdentity"
}
Invitation
Find Invitations
GET /invitations
Query parameters
Supports standard paging query parameters.
| Parameter | Type | Optional | Description |
|---|---|---|---|
fromIdentityId |
Object |
true |
|
toTenantId |
Object |
true |
Deprecated.. |
toOrganizationId |
Object |
true |
|
invitedEmailAddress |
String |
true |
|
targetIdentityId |
Object |
true |
|
states |
Object |
true |
Must be one of [Open, Accepted, Declined, Expired, Revoked]. |
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1877
[ {
"id" : "2ecef2c8-665c-4912-b53a-ceef4eae5147",
"fromIdentityId" : "2c31ac00-a570-4a6a-b559-dff2ee3fb4e7",
"toOrganizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"invitedEmailAddress" : "new.employee@acme.com",
"invitationHost" : "acme.cloudziti.io",
"expiration" : {
"nano" : 105246000,
"epochSecond" : 1788792319
},
"targetUserIdentityId" : "d21c7e16-a496-4393-92d2-cde00aa48823",
"accepted" : null,
"revokedAt" : null,
"responseReceivedAt" : null,
"state" : "Open",
"toTenantId" : "e89aebd2-c560-4754-a65e-4683be48e524"
}, {
"id" : "91afa2e4-00b9-49e0-8080-083ae147b636",
"fromIdentityId" : "3c0d8bc6-aede-4b9e-ad43-94015db67947",
"toOrganizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"invitedEmailAddress" : "new.employee-290@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 482483000,
"epochSecond" : 1788792319
},
"targetUserIdentityId" : "425b064e-0dbc-4bde-a5ab-26d6aafb3a0a",
"accepted" : null,
"revokedAt" : {
"nano" : 522189000,
"epochSecond" : 1788187519
},
"responseReceivedAt" : {
"nano" : 522191000,
"epochSecond" : 1788187519
},
"state" : "Revoked",
"toTenantId" : "e89aebd2-c560-4754-a65e-4683be48e524"
}, {
"id" : "b042724a-117b-4c38-bb18-79ee322f0800",
"fromIdentityId" : "3c0d8bc6-aede-4b9e-ad43-94015db67947",
"toOrganizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"invitedEmailAddress" : "new.employee-283@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 841526000,
"epochSecond" : 1788792318
},
"targetUserIdentityId" : "5e6063eb-cef0-4033-9ac4-0e3e972f56f3",
"accepted" : false,
"revokedAt" : null,
"responseReceivedAt" : {
"nano" : 906100000,
"epochSecond" : 1788187518
},
"state" : "Declined",
"toTenantId" : "e89aebd2-c560-4754-a65e-4683be48e524"
} ]
Get Invitation By Id
GET /invitations/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/763d6a8f-fe23-447f-a24e-cf6e7e97ee6f' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 564
{
"id" : "763d6a8f-fe23-447f-a24e-cf6e7e97ee6f",
"fromIdentityId" : "3c0d8bc6-aede-4b9e-ad43-94015db67947",
"toOrganizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"invitedEmailAddress" : "new.employee-303@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 397126000,
"epochSecond" : 1788792320
},
"targetUserIdentityId" : "4be2238d-63c8-41f3-acd6-f390e0a3e667",
"accepted" : null,
"revokedAt" : null,
"responseReceivedAt" : null,
"state" : "Open",
"toTenantId" : "e89aebd2-c560-4754-a65e-4683be48e524"
}
Create Invitation
POST /invitations
Authorization
This endpoint requires:
-
createaction on thisinvitationresource. -
readaction on theuser-identityresource identified by thetargetUserIdentityIdproperty.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationUrl |
String |
true |
|
targetUserIdentityId |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"toOrganizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"invitedEmailAddress" : "new.employee@acme.com",
"invitationUrl" : "http://acme.cloudziti.io/invitation",
"targetUserIdentityId" : "d21c7e16-a496-4393-92d2-cde00aa48823"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 565
{
"id" : "2ecef2c8-665c-4912-b53a-ceef4eae5147",
"fromIdentityId" : "2c31ac00-a570-4a6a-b559-dff2ee3fb4e7",
"toOrganizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"invitedEmailAddress" : "new.employee@acme.com",
"invitationHost" : "acme.cloudziti.io",
"expiration" : {
"nano" : 105246000,
"epochSecond" : 1788792319
},
"targetUserIdentityId" : "d21c7e16-a496-4393-92d2-cde00aa48823",
"accepted" : null,
"revokedAt" : null,
"responseReceivedAt" : null,
"state" : "Open",
"toTenantId" : "e89aebd2-c560-4754-a65e-4683be48e524"
}
Respond To Invitation
PUT /invitations/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}/{action:accept|decline}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
|
action |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/73612a20-46a5-4cd3-ae57-281df76f72bd/decline' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 625
{
"id" : "73612a20-46a5-4cd3-ae57-281df76f72bd",
"fromIdentityId" : "3c0d8bc6-aede-4b9e-ad43-94015db67947",
"toOrganizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"invitedEmailAddress" : "new.employee-295@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 928212000,
"epochSecond" : 1788792319
},
"targetUserIdentityId" : "e7bec75e-8aa0-4c23-858c-c4d5c28552f1",
"accepted" : false,
"revokedAt" : null,
"responseReceivedAt" : {
"nano" : 963340000,
"epochSecond" : 1788187519
},
"state" : "Declined",
"toTenantId" : "e89aebd2-c560-4754-a65e-4683be48e524"
}
Revoke Invitation
PUT /invitations/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}/revoke
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/042f1b99-2fdf-4cba-be38-76636e2802ec/revoke' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 679
{
"id" : "042f1b99-2fdf-4cba-be38-76636e2802ec",
"fromIdentityId" : "3c0d8bc6-aede-4b9e-ad43-94015db67947",
"toOrganizationId" : "e89aebd2-c560-4754-a65e-4683be48e524",
"invitedEmailAddress" : "new.employee-311@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 735233000,
"epochSecond" : 1788792320
},
"targetUserIdentityId" : "ba5cb00d-ff58-4179-854c-93a181f5895f",
"accepted" : null,
"revokedAt" : {
"nano" : 754395000,
"epochSecond" : 1788187520
},
"responseReceivedAt" : {
"nano" : 754397000,
"epochSecond" : 1788187520
},
"state" : "Revoked",
"toTenantId" : "e89aebd2-c560-4754-a65e-4683be48e524"
}
Support
Create Support Request
POST /nfconsole/support/requests
Authorization
Authorization not required for this request.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
String |
true |
||
selectedOrganizationId |
String |
true |
|
selectedNetworkId |
String |
true |
|
subject |
String |
true |
|
comment |
String |
true |
|
type |
String |
true |
Must be one of [problem, incident, question, task]. |
priority |
String |
true |
Must be one of [urgent, high, normal, low]. |
severity |
String |
true |
Must be one of [Severity1, Severity2, Severity3]. |
recentErrorMessages |
Array[String] |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/nfconsole/support/requests' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"name" : "Curious George",
"email" : "george@curious-client.com",
"selectedOrganizationId" : null,
"selectedNetworkId" : null,
"subject" : "Sales Contact Request",
"comment" : "This looks great! I'd like a sales rep to contact me.",
"type" : "question",
"priority" : "high",
"severity" : "Severity3",
"recentErrorMessages" : null
}'
Example response
HTTP/1.1 200 OK
Invitation Flow
Get Invitation By Key
GET /invitations/key/{key:\p{Alnum}{36}}
Authorization
Authorization not required for this request.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
key |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
fromIdentity |
Object |
true |
|
fromIdentity.name |
String |
true |
|
fromIdentity.email |
String |
true |
|
targetIdentity |
Object |
true |
|
targetIdentity.name |
String |
true |
|
targetIdentity.email |
String |
true |
|
invitedEmailAddress |
String |
true |
|
toOrganizationName |
String |
true |
|
toOrganizationLabel |
String |
true |
|
expiration |
Object |
true |
|
accepted |
Boolean |
true |
|
state |
String |
true |
Must be one of [Open, Accepted, Declined, Expired, Revoked]. |
toTenantName |
String |
true |
Deprecated.. |
toTenantLabel |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/key/Krj76Do1kAPRz8hbrmHYOOSghcr13jklWFG0' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 523
{
"fromIdentity" : {
"name" : "John Doe",
"email" : "john.doe@acme.com"
},
"targetIdentity" : {
"name" : "First Last",
"email" : "random-345@acme.com"
},
"invitedEmailAddress" : "new.employee-347@acme.com",
"toOrganizationName" : "ACME International, Inc.",
"toOrganizationLabel" : "ACME-320",
"expiration" : {
"nano" : 968813000,
"epochSecond" : 1788792330
},
"accepted" : null,
"state" : "Open",
"toTenantName" : "ACME International, Inc.",
"toTenantLabel" : "ACME-320"
}
Decline Invitation
PUT /invitations/key/{key:\p{Alnum}{36}}/decline
Authorization
Authorization not required for this request.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
key |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
fromIdentity |
Object |
true |
|
fromIdentity.name |
String |
true |
|
fromIdentity.email |
String |
true |
|
targetIdentity |
Object |
true |
|
targetIdentity.name |
String |
true |
|
targetIdentity.email |
String |
true |
|
invitedEmailAddress |
String |
true |
|
toOrganizationName |
String |
true |
|
toOrganizationLabel |
String |
true |
|
expiration |
Object |
true |
|
accepted |
Boolean |
true |
|
state |
String |
true |
Must be one of [Open, Accepted, Declined, Expired, Revoked]. |
toTenantName |
String |
true |
Deprecated.. |
toTenantLabel |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/key/4btHr9TDz12M57aLd9YL0kRCadWV783HNlo6/decline' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 528
{
"fromIdentity" : {
"name" : "John Doe",
"email" : "john.doe@acme.com"
},
"targetIdentity" : {
"name" : "First Last",
"email" : "random-330@acme.com"
},
"invitedEmailAddress" : "new.employee-332@acme.com",
"toOrganizationName" : "ACME International, Inc.",
"toOrganizationLabel" : "ACME-320",
"expiration" : {
"nano" : 717770000,
"epochSecond" : 1788792329
},
"accepted" : false,
"state" : "Declined",
"toTenantName" : "ACME International, Inc.",
"toTenantLabel" : "ACME-320"
}
Initiate Accept Invitation
POST /invitations/key/{key:\p{Alnum}{36}}/accept-initiate
Authorization
Authorization not required for this request.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
key |
String |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
intermediateReturnUrl |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
nfToken |
String |
true |
|
auth0ConnectionIds |
Array[String] |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/key/V5fY8eCN2J9L5cClKl2ipx5HdIStjxrtUKGR/accept-initiate' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"intermediateReturnUrl" : "http://console.nfadmin.netfoundry.io/invitation"
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 987
{
"nfToken" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3ODgxODc1MjksImV4cCI6MTc4ODE4ODQyOSwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2lkZW50aXR5L3YxIiwiYXVkIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2lkZW50aXR5L3YxIiwiZmxvdyI6Imludml0YXRpb24iLCJpbnZpdGF0aW9uSWQiOiIwYWJiOWYxOS1kZjAyLTQ4ZWItODc2My1lMjFkNmJmN2YyYTciLCJ0ZW5hbnRMYWJlbCI6IkFDTUUtMzIwIiwiYXV0aDBDb25uZWN0aW9uSWRzIjpbImF1dGgwLW9wYXF1ZS1jb25uZWN0aW9uSWQtMzIyIiwiYXV0aDAtb3BhcXVlLWNvbm5lY3Rpb25JZC0zMjEiXSwicmVkaXJlY3RVcmwiOiJodHRwOi8vY29uc29sZS5uZmFkbWluLm5ldGZvdW5kcnkuaW8vaW52aXRhdGlvbiJ9.kXA2OCv5btf6Pqx7rRWiVxNmma9H27VibzCz6oHHCKfYISrp4bJ6LWMx07ZCfS7T__FAjZqJaK--brQYL_O9mioSLALQHxkmEKJeZzC7TOw7HcPPbU6XEnNBh8X6KkPck61lupL9BIlxpaDHZlgnnPVCf1rz1a6Lq9OLRvP-CMLmg_UsR2UjH0Vay4mqi9u6ma25aodMnst1MaNkdjVKnAuhJgWUHHtLkAcIbtothT7EQnZYMzHXn6j0dH8itM0_RSOAkGQ11v6kyG39_8M0XBQWyU1sj_yNfxQKNIInEv6XmOIUDpsii69rITdE8GcBh6GJh7XZljcrx3xz938gdw",
"auth0ConnectionIds" : [ "auth0-opaque-connectionId-322", "auth0-opaque-connectionId-321" ]
}
Login Flow
Initiate Interactive Authorization
POST /organizations/authorize-initiate
Authorization
Authorization not required for this request.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
realmLabel |
String |
true |
|
label |
String |
true |
|
intermediateReturnUrl |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
nfToken |
String |
true |
|
auth0ConnectionIds |
Array[String] |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organizations/authorize-initiate' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"realmLabel" : "netfoundry",
"label" : "ACME-2",
"intermediateReturnUrl" : "http://console.nfadmin.netfoundry.io/invitation"
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 902
{
"nfToken" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3ODgxODc1MzEsImV4cCI6MTc4ODE4ODQzMSwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2lkZW50aXR5L3YxIiwiYXVkIjoiaHR0cHM6Ly9uZXRmb3VuZHJ5LXNhbmRib3guYXV0aDAuY29tLyIsImZsb3ciOiJsb2dpbiIsInRlbmFudExhYmVsIjoiQUNNRS0yIiwiYXV0aDBDb25uZWN0aW9uSWRzIjpbImF1dGgwLW9wYXF1ZS1jb25uZWN0aW9uSWQtMyIsImF1dGgwLW9wYXF1ZS1jb25uZWN0aW9uSWQtNCJdLCJyZWRpcmVjdFVybCI6Imh0dHA6Ly9jb25zb2xlLm5mYWRtaW4ubmV0Zm91bmRyeS5pby9pbnZpdGF0aW9uIn0.cfTOQgIEvavXhwJrblwWtu5s8ZYff6CoyYTa60NpcnZ5focXV5CjoWOzPMK-woerT9FYdM22pT7uW2suu8hPwHIOG_Q1O5iOwZLcYg6ghFwF1C56lahPJx4Kqs2ienT8O3DR2n7MyXWxsphjt9fPLd6-uC93ZDk4jL0y9bSUfbQGREBaAyMDFv2DQi_nIPhvn15PDTaMrQptbOU829D0o37BOHihL0wpqWic21TKsdkIX0x__weTgJJDQsb4w85UHL6oQ-OVuRIIkIbcn94DBOm5KEJVbWp7LEz2fANcmUdKpEFkkzlJlpTwHHPH1wkVeypBSJ2eYy_Dtr-mwr7juQ",
"auth0ConnectionIds" : [ "auth0-opaque-connectionId-3", "auth0-opaque-connectionId-4" ]
}
Identity Preference Flow
Find Identity Preferences
GET /identity-preferences
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-preferences' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1298
[ {
"id" : "588ab77f-8332-48d6-a617-009089f1c4a7",
"userIdentityId" : "86863df6-514e-49f9-b7dd-c91ab536c99e",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "86863df6-514e-49f9-b7dd-c91ab536c99e",
"createdAt" : {
"nano" : 937766000,
"epochSecond" : 1788187510
},
"updatedAt" : {
"nano" : 937766000,
"epochSecond" : 1788187510
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "878127aa-4252-4a17-a2b9-6991c79d0f67",
"userIdentityId" : "328698c9-6a87-40b3-ae09-927e0392e98e",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "328698c9-6a87-40b3-ae09-927e0392e98e",
"createdAt" : {
"nano" : 780942000,
"epochSecond" : 1788187510
},
"updatedAt" : {
"nano" : 780942000,
"epochSecond" : 1788187510
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "9ce7f458-11ec-4d7c-9029-2e6266feddca",
"userIdentityId" : "21c25bc6-da73-4486-960b-8cec5f5312b9",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "21c25bc6-da73-4486-960b-8cec5f5312b9",
"createdAt" : {
"nano" : 586491000,
"epochSecond" : 1788187510
},
"updatedAt" : {
"nano" : 586491000,
"epochSecond" : 1788187510
},
"deletedBy" : null,
"deletedAt" : null
} ]
Get Identity Preference
GET /identity-preferences/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-preferences/04731808-55a4-488e-b429-a51fa9b35104' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 415
{
"id" : "04731808-55a4-488e-b429-a51fa9b35104",
"userIdentityId" : "6ba44c25-48e4-480e-9aa4-230ef80d5f1e",
"preferences" : {
"hello" : "world"
},
"createdBy" : "6ba44c25-48e4-480e-9aa4-230ef80d5f1e",
"createdAt" : {
"nano" : 511427000,
"epochSecond" : 1788187514
},
"updatedAt" : {
"nano" : 511427000,
"epochSecond" : 1788187514
},
"deletedBy" : null,
"deletedAt" : null
}
Upsert Identity Preference
POST /identity-preferences
Authorization
This endpoint requires no specific permission, only an authenticated client.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-preferences' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"userIdentityId" : null,
"preferences" : {
"first" : "my first preference."
}
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 430
{
"id" : "0d24fba3-d0ab-43fb-a099-7159a3a91f04",
"userIdentityId" : "414dcf50-0c31-4fe6-8006-397ffad97a9f",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "414dcf50-0c31-4fe6-8006-397ffad97a9f",
"createdAt" : {
"nano" : 532136000,
"epochSecond" : 1788187512
},
"updatedAt" : {
"nano" : 532136000,
"epochSecond" : 1788187512
},
"deletedBy" : null,
"deletedAt" : null
}
Upsert Identity Preference By Id
PUT /identity-preferences/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Authorization
This endpoint requires:
-
createaction on thisidentity-preferenceresource. -
updateaction on thisidentity-preferenceresource.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-preferences/7cf8b873-1853-4bc9-a29e-10bf9c80647b' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"preferences" : {
"updated" : "my second preference."
}
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 433
{
"id" : "7cf8b873-1853-4bc9-a29e-10bf9c80647b",
"userIdentityId" : "b0103ec0-fc25-48e1-b139-b770336338f4",
"preferences" : {
"updated" : "my second preference."
},
"createdBy" : "b0103ec0-fc25-48e1-b139-b770336338f4",
"createdAt" : {
"nano" : 530185000,
"epochSecond" : 1788187516
},
"updatedAt" : {
"nano" : 570761000,
"epochSecond" : 1788187516
},
"deletedBy" : null,
"deletedAt" : null
}
Delete Identity Preference By Id
DELETE /identity-preferences/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-preferences/ba10f8ed-6cc3-4931-a408-257f46c7611f' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 505
{
"id" : "ba10f8ed-6cc3-4931-a408-257f46c7611f",
"userIdentityId" : "cc279e11-1c77-42fe-87e0-5bc0b42cd8f2",
"preferences" : {
"hello" : "world"
},
"createdBy" : "cc279e11-1c77-42fe-87e0-5bc0b42cd8f2",
"createdAt" : {
"nano" : 329825000,
"epochSecond" : 1788187513
},
"updatedAt" : {
"nano" : 399516000,
"epochSecond" : 1788187513
},
"deletedBy" : "00aae49c-3ea5-46d2-b1d8-e2299193b8f9",
"deletedAt" : {
"nano" : 399000000,
"epochSecond" : 1788187513
}
}
Organization Preference Flow
Find Organization Preferences
GET /organization-preferences
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-preferences' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1268
[ {
"id" : "6c2a6d04-c5d5-4dfc-9ac4-6c46f79968f0",
"organizationId" : "b8ee2af7-4f99-41ae-97f4-2d9d36151ec5",
"preferences" : {
"hello" : "world"
},
"createdBy" : "28748408-68ef-4d73-951e-d539824cf0fd",
"createdAt" : {
"nano" : 485112000,
"epochSecond" : 1788187539
},
"updatedAt" : {
"nano" : 485112000,
"epochSecond" : 1788187539
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "6c51e581-3172-4222-89ab-09f8d69dd4e2",
"organizationId" : "b34a1cde-926a-45f5-92d1-f3ee508c2645",
"preferences" : {
"hello" : "world"
},
"createdBy" : "ad92f2fc-3d44-4ab1-aa6c-6508d433352e",
"createdAt" : {
"nano" : 647834000,
"epochSecond" : 1788187539
},
"updatedAt" : {
"nano" : 647834000,
"epochSecond" : 1788187539
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "f7182a68-fd13-4cb2-ab2f-b973b793db81",
"organizationId" : "8713b0ad-a0f5-4ceb-9bd1-2ba15969f175",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "eba4e71d-ee5f-423b-a8e8-6aad2b9d5b9c",
"createdAt" : {
"nano" : 574870000,
"epochSecond" : 1788187539
},
"updatedAt" : {
"nano" : 574870000,
"epochSecond" : 1788187539
},
"deletedBy" : null,
"deletedAt" : null
} ]
Get Organization Preference
GET /organization-preferences/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-preferences/6c51e581-3172-4222-89ab-09f8d69dd4e2' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 415
{
"id" : "6c51e581-3172-4222-89ab-09f8d69dd4e2",
"organizationId" : "b34a1cde-926a-45f5-92d1-f3ee508c2645",
"preferences" : {
"hello" : "world"
},
"createdBy" : "ad92f2fc-3d44-4ab1-aa6c-6508d433352e",
"createdAt" : {
"nano" : 647834000,
"epochSecond" : 1788187539
},
"updatedAt" : {
"nano" : 647834000,
"epochSecond" : 1788187539
},
"deletedBy" : null,
"deletedAt" : null
}
Create Organization Preference
POST /organization-preferences
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
preferences |
Object |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-preferences' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "8713b0ad-a0f5-4ceb-9bd1-2ba15969f175",
"preferences" : {
"first" : "my first preference."
}
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 430
{
"id" : "f7182a68-fd13-4cb2-ab2f-b973b793db81",
"organizationId" : "8713b0ad-a0f5-4ceb-9bd1-2ba15969f175",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "eba4e71d-ee5f-423b-a8e8-6aad2b9d5b9c",
"createdAt" : {
"nano" : 574870000,
"epochSecond" : 1788187539
},
"updatedAt" : {
"nano" : 574870000,
"epochSecond" : 1788187539
},
"deletedBy" : null,
"deletedAt" : null
}
Update Organization Preference
PUT /organization-preferences/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
preferences |
Object |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-preferences/59f70553-c558-4bf4-ab52-f62b4264086e' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"preferences" : {
"updated" : "my second preference."
}
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 433
{
"id" : "59f70553-c558-4bf4-ab52-f62b4264086e",
"organizationId" : "aec59a7b-c2d6-4862-82b7-b1f1b30d013a",
"preferences" : {
"updated" : "my second preference."
},
"createdBy" : "8f463e25-c37f-44e6-a91d-27fefb997c1a",
"createdAt" : {
"nano" : 825265000,
"epochSecond" : 1788187539
},
"updatedAt" : {
"nano" : 844899000,
"epochSecond" : 1788187539
},
"deletedBy" : null,
"deletedAt" : null
}
Delete Organization Preference
DELETE /organization-preferences/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/organization-preferences/dcd44dfe-c872-42a5-81a8-491ebdc2b0dd' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 505
{
"id" : "dcd44dfe-c872-42a5-81a8-491ebdc2b0dd",
"organizationId" : "44d8596b-30dc-405e-9945-3e0dbd035085",
"preferences" : {
"hello" : "world"
},
"createdBy" : "28d76e5a-c001-4736-bbf2-c0b21e1018ae",
"createdAt" : {
"nano" : 607739000,
"epochSecond" : 1788187539
},
"updatedAt" : {
"nano" : 617064000,
"epochSecond" : 1788187539
},
"deletedBy" : "855ce733-fe3c-43ed-8879-b8487e8c7ae2",
"deletedAt" : {
"nano" : 616000000,
"epochSecond" : 1788187539
}
}