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: 3053
[ {
"id" : "1a80ddc5-0cba-4f0d-b323-dc63b2e175ad",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "Admin",
"label" : "admin",
"identityProviders" : [ ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 361453000,
"epochSecond" : 1782388702
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}, {
"id" : "27bd17f7-68bd-4767-982f-f9c034f32c10",
"realmId" : "cd4a0312-73ba-424f-b5b0-55fd3f487a6a",
"name" : "World Wide Imports",
"label" : "WW-Imports-66",
"identityProviders" : [ {
"id" : "b2b3e2b2-b5b0-4f1b-9a53-0c56edd1df2f",
"organizationId" : "27bd17f7-68bd-4767-982f-f9c034f32c10",
"auth0ConnectionId" : "auth0-opaque-connectionId-67",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 933691000,
"epochSecond" : 1782388749
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ {
"id" : "a383dc6c-f201-427e-bc4e-02618aa4de17",
"organizationId" : "27bd17f7-68bd-4767-982f-f9c034f32c10",
"name" : "Custom Role - 5f3270c9-2a1d-4b29-8a25-b0cc0c8acbbf",
"roleType" : "Custom",
"roleId" : "5f3270c9-2a1d-4b29-8a25-b0cc0c8acbbf",
"createdBy" : "cffcdff1-1073-4822-a266-cd24f748e904",
"createdAt" : {
"nano" : 946033000,
"epochSecond" : 1782388749
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 931726000,
"epochSecond" : 1782388749
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}, {
"id" : "2c457327-540b-4ec7-96f8-40b8b0d2c7a9",
"realmId" : "cd4a0312-73ba-424f-b5b0-55fd3f487a6a",
"name" : "World Wide Imports",
"label" : "WW-Imports-84",
"identityProviders" : [ {
"id" : "c0e8c8a0-eb77-43ec-8e60-78beeb46500b",
"organizationId" : "2c457327-540b-4ec7-96f8-40b8b0d2c7a9",
"auth0ConnectionId" : "auth0-opaque-connectionId-85",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 319405000,
"epochSecond" : 1782388750
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ {
"id" : "893d1143-b4e5-4d27-a130-8c3b56c0789d",
"organizationId" : "2c457327-540b-4ec7-96f8-40b8b0d2c7a9",
"name" : "Standard Role - 0b02489e-5c85-47f1-89ce-6b2f7ee5a10b",
"roleType" : "Standard",
"roleId" : "0b02489e-5c85-47f1-89ce-6b2f7ee5a10b",
"createdBy" : "9cd255bf-14b1-49e2-af6d-8e5865f4c572",
"createdAt" : {
"nano" : 390706000,
"epochSecond" : 1782388750
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 317006000,
"epochSecond" : 1782388750
},
"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" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "ACME International, Inc.",
"label" : "ACME-2",
"identityProviders" : [ {
"id" : "83b72d14-743a-426b-8734-df0abe47bb34",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 393436000,
"epochSecond" : 1782388702
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "5eb5c245-fe7f-458b-9316-889f65a9a2f2",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 385417000,
"epochSecond" : 1782388702
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ {
"id" : "3ea39126-2561-40b8-8d87-877ccacd7bc3",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "Custom Role - 484fc214-ffce-4bfb-a5be-22729f05fe1b",
"roleType" : "Custom",
"roleId" : "484fc214-ffce-4bfb-a5be-22729f05fe1b",
"createdBy" : "239b5300-9133-489d-873a-3600e75fd4fa",
"createdAt" : {
"nano" : 484262000,
"epochSecond" : 1782388702
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "31177a0c-a823-41bd-ab82-3f4ba39db45c",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "Standard Role - 5ebcb87c-5fac-4340-9fb5-f8a2fd53f834",
"roleType" : "Standard",
"roleId" : "5ebcb87c-5fac-4340-9fb5-f8a2fd53f834",
"createdBy" : "6a729644-a8ad-46e1-a1f9-3d463cf18578",
"createdAt" : {
"nano" : 474258000,
"epochSecond" : 1782388702
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 382487000,
"epochSecond" : 1782388702
},
"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/f669b621-fc6e-4282-a9f0-ef6db493755b' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2220
{
"id" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "ACME International, Inc.",
"label" : "ACME-2",
"identityProviders" : [ {
"id" : "83b72d14-743a-426b-8734-df0abe47bb34",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 393436000,
"epochSecond" : 1782388702
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "5eb5c245-fe7f-458b-9316-889f65a9a2f2",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 385417000,
"epochSecond" : 1782388702
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ {
"id" : "3ea39126-2561-40b8-8d87-877ccacd7bc3",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "Custom Role - 484fc214-ffce-4bfb-a5be-22729f05fe1b",
"roleType" : "Custom",
"roleId" : "484fc214-ffce-4bfb-a5be-22729f05fe1b",
"createdBy" : "239b5300-9133-489d-873a-3600e75fd4fa",
"createdAt" : {
"nano" : 484262000,
"epochSecond" : 1782388702
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "31177a0c-a823-41bd-ab82-3f4ba39db45c",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "Standard Role - 5ebcb87c-5fac-4340-9fb5-f8a2fd53f834",
"roleType" : "Standard",
"roleId" : "5ebcb87c-5fac-4340-9fb5-f8a2fd53f834",
"createdBy" : "6a729644-a8ad-46e1-a1f9-3d463cf18578",
"createdAt" : {
"nano" : 474258000,
"epochSecond" : 1782388702
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 382487000,
"epochSecond" : 1782388702
},
"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" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "ACME International, Inc.",
"label" : "ACME-2",
"active" : true,
"identityProviders" : [ {
"id" : "83b72d14-743a-426b-8734-df0abe47bb34",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 393436000,
"epochSecond" : 1782388702
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "5eb5c245-fe7f-458b-9316-889f65a9a2f2",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 385417000,
"epochSecond" : 1782388702
},
"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" : "5b4d237e-3c6c-4b16-ac47-851f13ec4a20",
"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" : "3f35683b-2a50-4f6a-97d0-bf2254465233",
"realmId" : "5b4d237e-3c6c-4b16-ac47-851f13ec4a20",
"name" : "Best Corp.",
"label" : "BEST-CORP",
"identityProviders" : [ {
"id" : "b64f294a-6af8-452f-96e2-2409876844dc",
"organizationId" : "3f35683b-2a50-4f6a-97d0-bf2254465233",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Best Corp.",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 972498000,
"epochSecond" : 1782388764
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 971611000,
"epochSecond" : 1782388764
},
"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/c54b4708-e2d8-47c0-8ab5-0fc724d27d75/deactivate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 893
{
"id" : "c54b4708-e2d8-47c0-8ab5-0fc724d27d75",
"realmId" : "cd4a0312-73ba-424f-b5b0-55fd3f487a6a",
"name" : "World Wide Imports",
"label" : "WW-Imports-334",
"identityProviders" : [ {
"id" : "efa69374-81f1-475a-ba55-49a5aae4e1e8",
"organizationId" : "c54b4708-e2d8-47c0-8ab5-0fc724d27d75",
"auth0ConnectionId" : "auth0-opaque-connectionId-335",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 191928000,
"epochSecond" : 1782388766
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : false,
"mfaProvider" : null,
"createdAt" : {
"nano" : 190761000,
"epochSecond" : 1782388766
},
"updatedAt" : {
"nano" : 205305000,
"epochSecond" : 1782388766
},
"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/0992add4-85c0-4df2-ac7d-b4fa7573f014/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" : "0992add4-85c0-4df2-ac7d-b4fa7573f014",
"realmId" : "cd4a0312-73ba-424f-b5b0-55fd3f487a6a",
"name" : "World Wide Imports",
"label" : "WW-Imports-330",
"identityProviders" : [ {
"id" : "7ce5c389-9a22-4b94-9c91-0516f18e1195",
"organizationId" : "0992add4-85c0-4df2-ac7d-b4fa7573f014",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 976429000,
"epochSecond" : 1782388765
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "e36fe7c1-14ea-4f65-a280-f19a6330e529",
"organizationId" : "0992add4-85c0-4df2-ac7d-b4fa7573f014",
"auth0ConnectionId" : "auth0-opaque-connectionId-331",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 949734000,
"epochSecond" : 1782388765
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 948131000,
"epochSecond" : 1782388765
},
"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: 1264
[ {
"id" : "0a788ac0-5dba-4790-81f7-53c0941d3fcc",
"issuer" : "https://5dc5da2b-e8f3-479d-ba56-53a0d1b4692a.issuer.idp",
"jwksUri" : "https://5dc5da2b-e8f3-479d-ba56-53a0d1b4692a.issuer.idp/jwks",
"active" : true,
"createdBy" : "f0b789a5-6b67-4b80-80fd-fa166d81ef5a",
"createdAt" : {
"nano" : 295482000,
"epochSecond" : 1782388763
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "3937e1a9-6dc3-4230-9955-b64947ad8f8b",
"issuer" : "https://956f68de-7427-4ad6-9cfc-990cd25e775d.issuer.idp",
"jwksUri" : "https://956f68de-7427-4ad6-9cfc-990cd25e775d.issuer.idp/jwks",
"active" : true,
"createdBy" : "7d253d37-b643-4282-bfd1-7b3fdebb1603",
"createdAt" : {
"nano" : 181159000,
"epochSecond" : 1782388763
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "54734c76-365b-499f-939f-c6e9d5651047",
"issuer" : "https://10f5ce14-c386-4b3e-8f97-4e8779c70140.issuer.idp",
"jwksUri" : "https://10f5ce14-c386-4b3e-8f97-4e8779c70140.issuer.idp/jwks",
"active" : true,
"createdBy" : "52e130f8-3c6d-4405-9bc2-19ee6b1ac697",
"createdAt" : {
"nano" : 45951000,
"epochSecond" : 1782388763
},
"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/a71f4864-8e2e-4550-a49a-5451a6b2089c' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 419
{
"id" : "a71f4864-8e2e-4550-a49a-5451a6b2089c",
"issuer" : "https://1c4f1703-f6e8-4761-b281-ae39d3ff1c2c.issuer.idp",
"jwksUri" : "https://1c4f1703-f6e8-4761-b281-ae39d3ff1c2c.issuer.idp/jwks",
"active" : true,
"createdBy" : "ea0e75e1-3260-419c-95cb-e7ed9b49d336",
"createdAt" : {
"nano" : 963132000,
"epochSecond" : 1782388763
},
"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://23aea547-4fc5-4ca7-9f0a-c0afcd8b3638.issuer.idp",
"jwksUri" : "https://23aea547-4fc5-4ca7-9f0a-c0afcd8b3638.issuer.idp/jwks",
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 419
{
"id" : "7dccad7f-4bcd-4398-82c9-6d5e37cbf936",
"issuer" : "https://23aea547-4fc5-4ca7-9f0a-c0afcd8b3638.issuer.idp",
"jwksUri" : "https://23aea547-4fc5-4ca7-9f0a-c0afcd8b3638.issuer.idp/jwks",
"active" : true,
"createdBy" : "05ff11a4-5f0c-45ce-b7be-e7fd0d6d3aa0",
"createdAt" : {
"nano" : 908551000,
"epochSecond" : 1782388763
},
"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/99629353-3f4d-4070-bb22-4685daa68507' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"issuer" : "https://ae6089d5-89d9-46e3-8886-c02a555b27a9.issuer.idp",
"jwksUri" : "https://ae6089d5-89d9-46e3-8886-c02a555b27a9.issuer.idp/jwks",
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 420
{
"id" : "99629353-3f4d-4070-bb22-4685daa68507",
"issuer" : "https://ae6089d5-89d9-46e3-8886-c02a555b27a9.issuer.idp",
"jwksUri" : "https://ae6089d5-89d9-46e3-8886-c02a555b27a9.issuer.idp/jwks",
"active" : false,
"createdBy" : "fe7a1f2c-ff1f-49c2-bc46-2faa509622cf",
"createdAt" : {
"nano" : 833700000,
"epochSecond" : 1782388763
},
"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/c1a2cc16-203c-4ad2-90b4-12dace2bb10e' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 506
{
"id" : "c1a2cc16-203c-4ad2-90b4-12dace2bb10e",
"issuer" : "https://90af087c-f2b0-4dfd-a6e9-bef00d6d4b25.issuer.idp",
"jwksUri" : "https://90af087c-f2b0-4dfd-a6e9-bef00d6d4b25.issuer.idp/jwks",
"active" : true,
"createdBy" : "175758b4-ab19-4ce6-95f2-53c0133592f2",
"createdAt" : {
"nano" : 29571000,
"epochSecond" : 1782388764
},
"deletedAt" : {
"nano" : 43317000,
"epochSecond" : 1782388764
},
"deletedBy" : "874f67cc-4718-4393-ada0-6ec961aa0b36",
"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" : 724153000,
"epochSecond" : 1782388698
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "f2fcba09-0599-45ce-9b0f-cf29975d7707",
"oidcIssuerId" : "bb24a231-d9da-4452-b7c6-54579c9566db",
"clientId" : "clientId-f2bf3017-28a1-4963-8f6a-5c3906b03631",
"clientSecret" : "clientSecret-efc74ebd-a93a-4968-894e-7d567c084576",
"authorizationEndpoint" : "https://c3d8a488-779f-457a-a489-42b2f8bc4f6f.issuer.idp/authorize",
"tokenEndpoint" : "https://c3d8a488-779f-457a-a489-42b2f8bc4f6f.issuer.idp/token",
"userInfoEndpoint" : "https://c3d8a488-779f-457a-a489-42b2f8bc4f6f.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "0cc060a7-8599-41aa-822f-d85016a586dc",
"createdAt" : {
"nano" : 157924000,
"epochSecond" : 1782388764
},
"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" : 724153000,
"epochSecond" : 1782388698
},
"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/8456b45b-6138-46c4-9d97-6567d26957a3' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 776
{
"id" : "8456b45b-6138-46c4-9d97-6567d26957a3",
"oidcIssuerId" : "5544ee79-681d-408f-a498-1877c04ec5e0",
"clientId" : "clientId-a21e0376-ed33-4b70-9de3-9087e90005f0",
"clientSecret" : "clientSecret-386e5bf9-47ce-4c58-ab93-7ac669829608",
"authorizationEndpoint" : "https://e868153b-7ebf-4e54-b5fa-de913cfe7fb3.issuer.idp/authorize",
"tokenEndpoint" : "https://e868153b-7ebf-4e54-b5fa-de913cfe7fb3.issuer.idp/token",
"userInfoEndpoint" : "https://e868153b-7ebf-4e54-b5fa-de913cfe7fb3.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "02c60043-dbda-4dd8-9ec6-42d88bb1dea4",
"createdAt" : {
"nano" : 607158000,
"epochSecond" : 1782388764
},
"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" : "1bb85dfd-77e2-4c69-98a4-b606a3df4cca",
"clientId" : "clientId-d141a100-eafb-4d88-b5a6-265588c8c889",
"clientSecret" : "clientSecret-b8961dd5-8317-494d-a5fc-c3a153991379",
"authorizationEndpoint" : "https://f1b212cd-e76c-4718-b6b8-76bea06f802f.issuer.idp/authorize",
"tokenEndpoint" : "https://f1b212cd-e76c-4718-b6b8-76bea06f802f.issuer.idp/token",
"userInfoEndpoint" : "https://f1b212cd-e76c-4718-b6b8-76bea06f802f.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 776
{
"id" : "87694919-c460-450d-b89a-5545063508a8",
"oidcIssuerId" : "1bb85dfd-77e2-4c69-98a4-b606a3df4cca",
"clientId" : "clientId-d141a100-eafb-4d88-b5a6-265588c8c889",
"clientSecret" : "clientSecret-b8961dd5-8317-494d-a5fc-c3a153991379",
"authorizationEndpoint" : "https://f1b212cd-e76c-4718-b6b8-76bea06f802f.issuer.idp/authorize",
"tokenEndpoint" : "https://f1b212cd-e76c-4718-b6b8-76bea06f802f.issuer.idp/token",
"userInfoEndpoint" : "https://f1b212cd-e76c-4718-b6b8-76bea06f802f.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "3390212b-90aa-4d93-af32-8569c8c999c5",
"createdAt" : {
"nano" : 556066000,
"epochSecond" : 1782388764
},
"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/1da38063-eaed-49c4-a89f-8660f4a58ff4' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"clientId" : "clientId-2ebf4b37-0e55-4e59-8da6-b63d86570343",
"clientSecret" : "clientSecret-8903106a-cfea-480e-b9ef-7730151f3fd0",
"authorizationEndpoint" : "https://55f6d92a-a599-4370-89f1-7b9e71aedf96.issuer.idp/authorize",
"tokenEndpoint" : "https://55f6d92a-a599-4370-89f1-7b9e71aedf96.issuer.idp/token",
"userInfoEndpoint" : "https://55f6d92a-a599-4370-89f1-7b9e71aedf96.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 777
{
"id" : "1da38063-eaed-49c4-a89f-8660f4a58ff4",
"oidcIssuerId" : "7786c689-cdde-4b88-ba26-3147969f6d8f",
"clientId" : "clientId-2ebf4b37-0e55-4e59-8da6-b63d86570343",
"clientSecret" : "clientSecret-8903106a-cfea-480e-b9ef-7730151f3fd0",
"authorizationEndpoint" : "https://55f6d92a-a599-4370-89f1-7b9e71aedf96.issuer.idp/authorize",
"tokenEndpoint" : "https://55f6d92a-a599-4370-89f1-7b9e71aedf96.issuer.idp/token",
"userInfoEndpoint" : "https://55f6d92a-a599-4370-89f1-7b9e71aedf96.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : false,
"createdBy" : "67cead71-4b49-412a-844f-a95e5f63ac9d",
"createdAt" : {
"nano" : 483486000,
"epochSecond" : 1782388764
},
"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/b0ee6fb5-df5f-47b8-ab66-1a7aca06e6c8' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 865
{
"id" : "b0ee6fb5-df5f-47b8-ab66-1a7aca06e6c8",
"oidcIssuerId" : "5a97dd1c-d017-423a-a792-7387a9df0f71",
"clientId" : "clientId-de92a326-5603-463e-a53c-0addae4850fb",
"clientSecret" : "clientSecret-76baba1e-731f-41a0-b629-c651cc879540",
"authorizationEndpoint" : "https://4ed7868e-aae4-4fde-a451-ca0e8d20e1fb.issuer.idp/authorize",
"tokenEndpoint" : "https://4ed7868e-aae4-4fde-a451-ca0e8d20e1fb.issuer.idp/token",
"userInfoEndpoint" : "https://4ed7868e-aae4-4fde-a451-ca0e8d20e1fb.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "122f1d7e-00ee-4868-887f-e1988a23d818",
"createdAt" : {
"nano" : 666138000,
"epochSecond" : 1782388764
},
"deletedAt" : {
"nano" : 676479000,
"epochSecond" : 1782388764
},
"deletedBy" : "83d165b4-8160-4867-9c6a-ad40932d84be",
"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: 1501
[ {
"id" : "32a7e50b-30f5-478d-ad55-dfb24d902ece",
"organizationId" : "cc2433a9-c951-4a30-a57f-c23567fe7b87",
"oidcPublicClientId" : "290cc71d-cbd0-4c44-bf9e-a9d33a7314e6",
"name" : "NFSUPPORT-RO Google Account",
"active" : true,
"customQueryParameters" : "{\"audience\": \"https://gateway.{env}.netfoundry.io/\", \"connection\": \"google-oauth2\"}",
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 333052000,
"epochSecond" : 1782388698
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "66a019f8-5042-4906-9c00-5d7b9d0548fb",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"oidcPublicClientId" : "290cc71d-cbd0-4c44-bf9e-a9d33a7314e6",
"name" : "ACME Federated Active Directory",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "af0f5401-1c78-4fc3-bf07-7fe3053ea892",
"createdAt" : {
"nano" : 452028000,
"epochSecond" : 1782388702
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "a0bbc085-e1d7-488d-a25f-f7c8ce8b8886",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"oidcPublicClientId" : "f4e6fcd0-1839-4566-8828-856e42b8f156",
"name" : "Google-Account",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "d2618b02-258d-4074-a6f5-de1672b96c60",
"createdAt" : {
"nano" : 468522000,
"epochSecond" : 1782388702
},
"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/decbc794-180c-4c4b-9b24-928e00346c3b' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 495
{
"id" : "decbc794-180c-4c4b-9b24-928e00346c3b",
"organizationId" : "b56c1b77-dd5b-4d5d-8f5f-35288198ba19",
"oidcPublicClientId" : "a7d2a6a2-4353-4656-9118-5fe76ba51957",
"name" : "console-client-6bc5bd38-1d02-4afe-a0ad-0437a5b58f48",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "8d1d6724-69d3-438d-92dd-e71644ce6fc9",
"createdAt" : {
"nano" : 906373000,
"epochSecond" : 1782388766
},
"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" : "ca561a67-1594-4b9d-a4f0-dd6ea5a1d861",
"oidcPublicClientId" : "90c8df51-eccb-4569-9bf3-f063448bd3d6",
"name" : "console-client-8e1ddd79-7c48-419f-be3b-bf3b819f499b",
"active" : true,
"customQueryParameters" : "{}"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 495
{
"id" : "797c3fbc-e3ce-47e0-a5bf-330d36396772",
"organizationId" : "ca561a67-1594-4b9d-a4f0-dd6ea5a1d861",
"oidcPublicClientId" : "90c8df51-eccb-4569-9bf3-f063448bd3d6",
"name" : "console-client-8e1ddd79-7c48-419f-be3b-bf3b819f499b",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "67c5cab4-4895-46d9-8ce2-81b417f9553c",
"createdAt" : {
"nano" : 838632000,
"epochSecond" : 1782388766
},
"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/f339d227-9a50-4074-9212-8ac59983bddc' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"name" : "custom-client-c40fefec-f8da-4926-b434-d6000b1bcff2",
"active" : true,
"customQueryParameters" : "{}"
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 494
{
"id" : "f339d227-9a50-4074-9212-8ac59983bddc",
"organizationId" : "e8621786-85c2-482f-899a-caf2e3659581",
"oidcPublicClientId" : "7820328a-0efa-4469-9f45-05fd1508b42d",
"name" : "custom-client-c40fefec-f8da-4926-b434-d6000b1bcff2",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "adf44586-59ba-4bb6-a0ff-279459add246",
"createdAt" : {
"nano" : 744122000,
"epochSecond" : 1782388766
},
"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/e7f53a90-06c0-4c5c-b4f3-90ff2d72d377' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 543
{
"id" : "e7f53a90-06c0-4c5c-b4f3-90ff2d72d377",
"organizationId" : "662ebd82-09bd-43a6-b636-8b00dfd4190b",
"oidcPublicClientId" : "60820e46-1cb0-4436-af95-7a7d18a130e4",
"name" : "number two",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "ecbe7756-b405-48be-a837-64c548e66acb",
"createdAt" : {
"nano" : 976076000,
"epochSecond" : 1782388766
},
"deletedAt" : {
"nano" : 990572000,
"epochSecond" : 1782388766
},
"deletedBy" : "3e94de70-e530-48c2-bb73-23dae085480b",
"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" : "12100da7-884f-489a-a0e6-93d5bdc8a42b",
"oidcIssuerId" : "c0b0ddfc-8309-4d76-afae-4b84cd2ffef3",
"audience" : "mop-aud-c54ac485-3145-4236-811e-7baf57d4db0a",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "df86c5a0-5375-4967-88f9-e65443ee309f",
"createdAt" : {
"nano" : 786271000,
"epochSecond" : 1782388762
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"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" : 731198000,
"epochSecond" : 1782388698
},
"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" : 731198000,
"epochSecond" : 1782388698
},
"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/07e486b0-b15e-4395-bf4b-f7fd2fff0280' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 430
{
"id" : "07e486b0-b15e-4395-bf4b-f7fd2fff0280",
"oidcIssuerId" : "ac1b3aaf-2749-47f2-85ef-15006dbc94c9",
"audience" : "mop-aud-23da2e21-af69-4b9f-905a-9afae1496ef2",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "5e70239d-a075-4407-bbbb-a1e67a9664f6",
"createdAt" : {
"nano" : 359812000,
"epochSecond" : 1782388763
},
"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" : "0a788ac0-5dba-4790-81f7-53c0941d3fcc",
"audience" : "mop-aud-0b324b0f-256a-41df-bb24-4c46c5770e97",
"restrictedToOrganizationIds" : [ ],
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 430
{
"id" : "4461a150-fb3a-4db3-aab4-274b2c908ae9",
"oidcIssuerId" : "0a788ac0-5dba-4790-81f7-53c0941d3fcc",
"audience" : "mop-aud-0b324b0f-256a-41df-bb24-4c46c5770e97",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "975fbb72-c41b-4ef9-9b49-599b7dac6d1b",
"createdAt" : {
"nano" : 306843000,
"epochSecond" : 1782388763
},
"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/526bd87f-76e1-4ee8-b6c4-cecca56bf9c6' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"audience" : "mop-aud-3cb8286a-e336-4bd9-8169-7dfff71c1f0a",
"restrictedToOrganizationIds" : [ ],
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 431
{
"id" : "526bd87f-76e1-4ee8-b6c4-cecca56bf9c6",
"oidcIssuerId" : "3937e1a9-6dc3-4230-9955-b64947ad8f8b",
"audience" : "mop-aud-3cb8286a-e336-4bd9-8169-7dfff71c1f0a",
"restrictedToOrganizationIds" : [ ],
"active" : false,
"createdBy" : "4a8d4c6d-73ae-4c52-a06b-fb91571158b7",
"createdAt" : {
"nano" : 187291000,
"epochSecond" : 1782388763
},
"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/5052708e-de87-47ea-b881-950bc918d852' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 519
{
"id" : "5052708e-de87-47ea-b881-950bc918d852",
"oidcIssuerId" : "692f21a6-a7b7-4f1b-a3bd-7dc001496c91",
"audience" : "mop-aud-ffe9c079-f766-44ea-981f-dd331bcf6385",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "1dfb20dd-329c-4602-b790-437b9ed8e4a9",
"createdAt" : {
"nano" : 424866000,
"epochSecond" : 1782388763
},
"deletedAt" : {
"nano" : 441049000,
"epochSecond" : 1782388763
},
"deletedBy" : "7e1435bc-c52e-481c-8983-7c55e664018b",
"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/daaf8ef9-426f-4929-b318-d2208b76418c' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 460
{
"id" : "daaf8ef9-426f-4929-b318-d2208b76418c",
"userIdentityId" : "233d8d72-5929-437d-985f-393f1c4a5f41",
"oidcAudienceId" : "088bd203-babb-4a14-a92d-bf7e48707156",
"subject" : "console-client-0a301e35-a4c3-4db0-9c76-2a6734b7c0f9",
"active" : true,
"createdBy" : "8c2b5eb0-f951-4c3f-a318-479926c022dd",
"createdAt" : {
"nano" : 963828000,
"epochSecond" : 1782388770
},
"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" : "5f368241-8578-4dda-bc66-35de875d10e3",
"oidcAudienceId" : "ad3ff426-8f19-4d7f-91eb-e3fcf5bdb157",
"subject" : "console-client-83ba9d82-8952-463b-a858-b4d25e56f970",
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 460
{
"id" : "279dfef2-55eb-4ae6-a2c5-ddb207a3ae1b",
"userIdentityId" : "5f368241-8578-4dda-bc66-35de875d10e3",
"oidcAudienceId" : "ad3ff426-8f19-4d7f-91eb-e3fcf5bdb157",
"subject" : "console-client-83ba9d82-8952-463b-a858-b4d25e56f970",
"active" : true,
"createdBy" : "eea028be-4890-4b60-9027-f6a18e7168ac",
"createdAt" : {
"nano" : 907413000,
"epochSecond" : 1782388770
},
"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/09bd5413-5121-4164-9f7e-2542ef34c1b7' -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" : "09bd5413-5121-4164-9f7e-2542ef34c1b7",
"userIdentityId" : "5828ec93-6094-42d4-ac3e-c2efa89d5418",
"oidcAudienceId" : "21b14a0b-2b4a-4c56-a65a-813c7c36e258",
"subject" : "console-client-69b080ba-6bea-4911-a4bf-1b03a5b107b2",
"active" : false,
"createdBy" : "21b6b910-c537-4cf3-85f5-b7f5526639db",
"createdAt" : {
"nano" : 811492000,
"epochSecond" : 1782388770
},
"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/d299f1a0-1002-4de9-88e7-fcf31fbff057' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 547
{
"id" : "d299f1a0-1002-4de9-88e7-fcf31fbff057",
"userIdentityId" : "6ee16ab2-8f15-4032-9e1d-aad2a7536cee",
"oidcAudienceId" : "bc8dd75a-dec9-47b2-b77a-7a5b48d514e0",
"subject" : "console-client-755cec7a-da20-48ec-9ab7-3488a9b002b8",
"active" : true,
"createdBy" : "96060aa4-3148-49ce-aed1-36247faebf9c",
"createdAt" : {
"nano" : 44020000,
"epochSecond" : 1782388771
},
"deletedAt" : {
"nano" : 62005000,
"epochSecond" : 1782388771
},
"deletedBy" : "0293e38b-170a-462d-9272-07fe283499df",
"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
Link: <https://gateway.netFoundry.io/identity/v1/identity-providers?page=1>; rel="next", <https://gateway.netFoundry.io/identity/v1/identity-providers?page=1>; rel="last"
Content-Type: application/json
Content-Length: 1138
[ {
"id" : "180b9baa-751a-4c0c-96ad-5f31eb1ad10b",
"organizationId" : "a48cdc22-0d39-464e-8548-3d1d2d9f5463",
"auth0ConnectionId" : "auth0-opaque-connectionId-65",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 695074000,
"epochSecond" : 1782388749
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "196b9888-0f18-417e-8869-309424316867",
"organizationId" : "8dae45ef-7695-49d5-a05b-6d85938763a3",
"auth0ConnectionId" : "auth0-opaque-connectionId-56",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 316775000,
"epochSecond" : 1782388749
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "32a7e50b-30f5-478d-ad55-dfb24d902ece",
"organizationId" : "cc2433a9-c951-4a30-a57f-c23567fe7b87",
"auth0ConnectionId" : "google-oauth2",
"name" : "NFSUPPORT-RO Google Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 333052000,
"epochSecond" : 1782388698
},
"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/83b72d14-743a-426b-8734-df0abe47bb34' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 373
{
"id" : "83b72d14-743a-426b-8734-df0abe47bb34",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 393436000,
"epochSecond" : 1782388702
},
"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" : "385e4e70-16ef-428c-87c0-ed0dc1669858",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 367
{
"id" : "898f75f1-f263-4a09-8d37-1fbfd19ff0d7",
"organizationId" : "385e4e70-16ef-428c-87c0-ed0dc1669858",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 10066000,
"epochSecond" : 1782388755
},
"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/814cc9d5-c019-44c6-be11-b6649f3e8cd0' -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" : "814cc9d5-c019-44c6-be11-b6649f3e8cd0",
"organizationId" : "1bb0d433-cbd0-47d9-b9ec-f0dbf5d78ab6",
"auth0ConnectionId" : "auth0-opaque-connectionId-230",
"name" : "New IdP Name",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 420248000,
"epochSecond" : 1782388755
},
"updatedAt" : {
"nano" : 434854000,
"epochSecond" : 1782388755
},
"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/b82be3c6-361c-4e02-af46-1d5d218a4e69/activate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 380
{
"id" : "b82be3c6-361c-4e02-af46-1d5d218a4e69",
"organizationId" : "29d8aa2d-b15b-43fc-a550-82152a80bfc8",
"auth0ConnectionId" : "auth0-opaque-connectionId-224",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 140328000,
"epochSecond" : 1782388755
},
"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/3bb7955e-7002-47f6-8629-0a14b3a58370' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 492
{
"id" : "3bb7955e-7002-47f6-8629-0a14b3a58370",
"organizationId" : "64e73326-e204-4026-a58e-e2b504c56bc7",
"auth0ConnectionId" : "auth0-opaque-connectionId-228",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 330448000,
"epochSecond" : 1782388755
},
"updatedAt" : {
"nano" : 346774000,
"epochSecond" : 1782388755
},
"deletedAt" : {
"nano" : 346000000,
"epochSecond" : 1782388755
}
}
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" : "18435ff1-998d-43c3-81c2-c584d63a5ef4",
"organizationId" : "8dae45ef-7695-49d5-a05b-6d85938763a3",
"name" : "Standard Role - bffbd28e-7997-4efe-a983-8c9d30ee5ccc",
"roleType" : "Standard",
"roleId" : "bffbd28e-7997-4efe-a983-8c9d30ee5ccc",
"createdBy" : "5a8b831e-b551-47bb-ae61-f93602181ac6",
"createdAt" : {
"nano" : 349438000,
"epochSecond" : 1782388749
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "2c636333-5ecc-43f2-94d0-173c129b87e2",
"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" : 377732000,
"epochSecond" : 1782388698
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "31177a0c-a823-41bd-ab82-3f4ba39db45c",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "Standard Role - 5ebcb87c-5fac-4340-9fb5-f8a2fd53f834",
"roleType" : "Standard",
"roleId" : "5ebcb87c-5fac-4340-9fb5-f8a2fd53f834",
"createdBy" : "6a729644-a8ad-46e1-a1f9-3d463cf18578",
"createdAt" : {
"nano" : 474258000,
"epochSecond" : 1782388702
},
"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/3ea39126-2561-40b8-8d87-877ccacd7bc3' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 454
{
"id" : "3ea39126-2561-40b8-8d87-877ccacd7bc3",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "Custom Role - 484fc214-ffce-4bfb-a5be-22729f05fe1b",
"roleType" : "Custom",
"roleId" : "484fc214-ffce-4bfb-a5be-22729f05fe1b",
"createdBy" : "239b5300-9133-489d-873a-3600e75fd4fa",
"createdAt" : {
"nano" : 484262000,
"epochSecond" : 1782388702
},
"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" : "2c457327-540b-4ec7-96f8-40b8b0d2c7a9",
"roleType" : "Standard",
"roleId" : "0b02489e-5c85-47f1-89ce-6b2f7ee5a10b"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 458
{
"id" : "893d1143-b4e5-4d27-a130-8c3b56c0789d",
"organizationId" : "2c457327-540b-4ec7-96f8-40b8b0d2c7a9",
"name" : "Standard Role - 0b02489e-5c85-47f1-89ce-6b2f7ee5a10b",
"roleType" : "Standard",
"roleId" : "0b02489e-5c85-47f1-89ce-6b2f7ee5a10b",
"createdBy" : "9cd255bf-14b1-49e2-af6d-8e5865f4c572",
"createdAt" : {
"nano" : 390706000,
"epochSecond" : 1782388750
},
"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/82cfc7f0-7052-415c-af4f-077967437130' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 545
{
"id" : "82cfc7f0-7052-415c-af4f-077967437130",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "Standard Role - d0451645-0a92-425f-b1e4-baa5243b85d5",
"roleType" : "Standard",
"roleId" : "d0451645-0a92-425f-b1e4-baa5243b85d5",
"createdBy" : "6f4d9d68-ef0d-47a7-926c-9b28886779fe",
"createdAt" : {
"nano" : 70084000,
"epochSecond" : 1782388750
},
"deletedAt" : {
"nano" : 80000000,
"epochSecond" : 1782388750
},
"deletedBy" : "f6c05555-9a42-40a4-8363-7390e4494393",
"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/18435ff1-998d-43c3-81c2-c584d63a5ef4/grant' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"includeIdentityIds" : [ "8b987e0a-d221-4170-b412-11c5be045003", "bfd4ba2f-62b3-4628-9608-a663675fca1b", "d0e5396a-7177-424d-9da0-8cde356027d5" ],
"excludeIdentityIds" : [ "6a766728-366a-4620-8564-d79ce01ecd33", "8b987e0a-d221-4170-b412-11c5be045003", "bfd4ba2f-62b3-4628-9608-a663675fca1b" ]
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 51
{
"d0e5396a-7177-424d-9da0-8cde356027d5" : 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 |
|---|---|---|---|
active |
Boolean |
true |
|
deletedAt |
Object |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
organizationId |
String |
true |
|
createdAt |
Object |
true |
|
name |
String |
true |
|
id |
String |
true |
|
type |
String |
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: 762
{
"id" : "4e3c30fd-8183-45b9-b6a8-f5b970472fb4",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-406@acme.com",
"identityMappings" : [ {
"id" : "faae4d1b-763d-44b1-bc1e-7a39268cd920",
"auth0UserId" : "auth0-opaque-userId-407",
"identityProviderId" : "83b72d14-743a-426b-8734-df0abe47bb34",
"userIdentityId" : "4e3c30fd-8183-45b9-b6a8-f5b970472fb4"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 672427000,
"epochSecond" : 1782388769
},
"deletedAt" : null,
"invited" : false,
"status" : "ACTIVE",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "First Last",
"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 |
|---|---|---|---|
active |
Boolean |
true |
|
deletedAt |
Object |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
organizationId |
String |
true |
|
createdAt |
Object |
true |
|
name |
String |
true |
|
id |
String |
true |
|
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identities/94dcbec0-b137-4191-b6e5-325f42eaa8b8' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 754
{
"id" : "94dcbec0-b137-4191-b6e5-325f42eaa8b8",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "759de720-d237-47e2-8f6b-5c5c697a0fc8",
"auth0UserId" : "auth0-opaque-userId-5",
"identityProviderId" : "5eb5c245-fe7f-458b-9316-889f65a9a2f2",
"userIdentityId" : "94dcbec0-b137-4191-b6e5-325f42eaa8b8"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 537742000,
"epochSecond" : 1782388702
},
"deletedAt" : null,
"invited" : false,
"status" : "ACTIVE",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "John Doe",
"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 |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
name |
String |
true |
|
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=5>; rel="last"
Content-Type: application/json
Content-Length: 2288
[ {
"id" : "20183f65-04bc-4745-9d57-6d80ce4029f4",
"organizationId" : "50423230-8775-4bd8-a76f-8b1fb8d120b8",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-95@acme.com",
"identityMappings" : [ {
"id" : "0383910c-1aee-4b37-bb8c-36b7737cf02a",
"auth0UserId" : "auth0-opaque-userId-96",
"identityProviderId" : "810f3cf3-1dd6-465a-b204-a0e9d9844330",
"userIdentityId" : "20183f65-04bc-4745-9d57-6d80ce4029f4"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 583067000,
"epochSecond" : 1782388750
},
"deletedAt" : null,
"invited" : false,
"status" : "ACTIVE",
"tenantId" : "50423230-8775-4bd8-a76f-8b1fb8d120b8",
"name" : "First Last",
"type" : "UserIdentity"
}, {
"id" : "207c2304-e6ad-4632-b0ca-eeb1b2929ba3",
"organizationId" : "27bd17f7-68bd-4767-982f-f9c034f32c10",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-68@acme.com",
"identityMappings" : [ {
"id" : "d56e1d78-8780-4b7d-b7aa-03305ec253af",
"auth0UserId" : "auth0-opaque-userId-69",
"identityProviderId" : "b2b3e2b2-b5b0-4f1b-9a53-0c56edd1df2f",
"userIdentityId" : "207c2304-e6ad-4632-b0ca-eeb1b2929ba3"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 937775000,
"epochSecond" : 1782388749
},
"deletedAt" : null,
"invited" : false,
"status" : "ACTIVE",
"tenantId" : "27bd17f7-68bd-4767-982f-f9c034f32c10",
"name" : "First Last",
"type" : "UserIdentity"
}, {
"id" : "25d61302-d2a5-448b-b7f9-5a578ae9c85f",
"organizationId" : "d02a3d89-4a7d-4bd5-ab22-58e7a7184ff4",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-88@acme.com",
"identityMappings" : [ {
"id" : "31531afd-6e3c-4d5f-aec7-b9a8b367b503",
"auth0UserId" : "auth0-opaque-userId-89",
"identityProviderId" : "ccd6bb9a-bde0-4836-9c9c-aab6a89ead92",
"userIdentityId" : "25d61302-d2a5-448b-b7f9-5a578ae9c85f"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 485167000,
"epochSecond" : 1782388750
},
"deletedAt" : null,
"invited" : false,
"status" : "ACTIVE",
"tenantId" : "d02a3d89-4a7d-4bd5-ab22-58e7a7184ff4",
"name" : "First Last",
"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 |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
name |
String |
true |
|
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/94dcbec0-b137-4191-b6e5-325f42eaa8b8' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 754
{
"id" : "94dcbec0-b137-4191-b6e5-325f42eaa8b8",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "759de720-d237-47e2-8f6b-5c5c697a0fc8",
"auth0UserId" : "auth0-opaque-userId-5",
"identityProviderId" : "5eb5c245-fe7f-458b-9316-889f65a9a2f2",
"userIdentityId" : "94dcbec0-b137-4191-b6e5-325f42eaa8b8"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 537742000,
"epochSecond" : 1782388702
},
"deletedAt" : null,
"invited" : false,
"status" : "ACTIVE",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "John Doe",
"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 |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
name |
String |
true |
|
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/mapping/auth0-opaque-userId-5/5eb5c245-fe7f-458b-9316-889f65a9a2f2' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 754
{
"id" : "94dcbec0-b137-4191-b6e5-325f42eaa8b8",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "759de720-d237-47e2-8f6b-5c5c697a0fc8",
"auth0UserId" : "auth0-opaque-userId-5",
"identityProviderId" : "5eb5c245-fe7f-458b-9316-889f65a9a2f2",
"userIdentityId" : "94dcbec0-b137-4191-b6e5-325f42eaa8b8"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 537742000,
"epochSecond" : 1782388702
},
"deletedAt" : null,
"invited" : false,
"status" : "ACTIVE",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "John Doe",
"type" : "UserIdentity"
}
Create Identity
POST /user-identities
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
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 |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
name |
String |
true |
|
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"firstName" : "Jane",
"lastName" : "Doe",
"email" : "jane.doe@acme.com"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 523
{
"id" : "30741c07-3a45-4096-9220-16dd1240f8a3",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"firstName" : "Jane",
"lastName" : "Doe",
"email" : "jane.doe@acme.com",
"identityMappings" : [ ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 359049000,
"epochSecond" : 1782388770
},
"deletedAt" : null,
"invited" : false,
"status" : "ACTIVE",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "Jane Doe",
"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 |
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 |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
name |
String |
true |
|
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/c818603c-5e3e-4f4b-8e4d-bd9b65b9824d' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"firstName" : "Bobby",
"lastName" : "White",
"email" : "bobby.white@acme.com"
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 765
{
"id" : "c818603c-5e3e-4f4b-8e4d-bd9b65b9824d",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"firstName" : "Bobby",
"lastName" : "White",
"email" : "bobby.white@acme.com",
"identityMappings" : [ {
"id" : "bb0d7df2-dcae-4ede-aa22-c73ed46cc4d2",
"auth0UserId" : "auth0-opaque-userId-411",
"identityProviderId" : "83b72d14-743a-426b-8734-df0abe47bb34",
"userIdentityId" : "c818603c-5e3e-4f4b-8e4d-bd9b65b9824d"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 882851000,
"epochSecond" : 1782388769
},
"deletedAt" : null,
"invited" : false,
"status" : "ACTIVE",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "Bobby White",
"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 |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
name |
String |
true |
|
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/8daa15c6-8a1d-407e-afc6-ee82c5ab65e9/deactivate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 765
{
"id" : "8daa15c6-8a1d-407e-afc6-ee82c5ab65e9",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-412@acme.com",
"identityMappings" : [ {
"id" : "0610cdb3-950d-40f3-90ef-dee60afe404e",
"auth0UserId" : "auth0-opaque-userId-413",
"identityProviderId" : "83b72d14-743a-426b-8734-df0abe47bb34",
"userIdentityId" : "8daa15c6-8a1d-407e-afc6-ee82c5ab65e9"
} ],
"identityAudienceMappings" : [ ],
"active" : false,
"createdAt" : {
"nano" : 960213000,
"epochSecond" : 1782388769
},
"deletedAt" : null,
"invited" : false,
"status" : "INACTIVE",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "First Last",
"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/04645abd-2958-4285-99b1-c5929403d5f5/reset-mfa' -i -X PUT
Example response
HTTP/1.1 200 OK
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/5ba3b978-3778-4e37-8177-86189f29d6d6/mapping' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"auth0UserId" : "new-auth0-userId:b9671604-85d1-441e-b24d-a926d3cc99c7",
"identityProviderId" : "5eb5c245-fe7f-458b-9316-889f65a9a2f2"
}'
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 |
|---|---|---|---|
tenantId |
Object |
true |
Deprecated.. |
organizationId |
Object |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
active |
Boolean |
true |
|
includeDeleted |
Boolean |
true |
Default value: 'false'. |
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 |
|
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: 2080
[ {
"id" : "1d5e44a3-7b36-4c90-8ca7-93264df978f4",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ClientId" : null,
"awsCognitoClientId" : "5e6a0162-ebf4-484f-a9de-f5afa8122e91|qyhoamwj",
"authenticationUrl" : "https://netfoundry-test-pqsaui.auth.us-east-1.amazoncognito.com/oauth2/token",
"name" : "Testing Limits",
"contactEmail" : "a@acme.com",
"description" : "description",
"active" : true,
"createdAt" : {
"nano" : 389511000,
"epochSecond" : 1782388713
},
"updatedAt" : null,
"deletedAt" : null,
"email" : "a@acme.com",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"type" : "ApiAccountIdentity"
}, {
"id" : "21dcafc7-3820-40fe-b982-74e4ec2f474b",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ClientId" : null,
"awsCognitoClientId" : "24b3d163-11f2-4027-bad7-38117bdf1132|mdetucax",
"authenticationUrl" : "https://netfoundry-test-ydiovp.auth.us-east-1.amazoncognito.com/oauth2/token",
"name" : "Testing Limits",
"contactEmail" : "a@acme.com",
"description" : "description",
"active" : true,
"createdAt" : {
"nano" : 681636000,
"epochSecond" : 1782388708
},
"updatedAt" : null,
"deletedAt" : null,
"email" : "a@acme.com",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"type" : "ApiAccountIdentity"
}, {
"id" : "39b01b20-cbfc-42a4-ad35-4838f515205c",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ClientId" : "b7bca15e-f23d-4407-973c-0ae85d90d142",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "ACME Internal Service-13",
"contactEmail" : "service.admin-14@acme.com",
"description" : "updatable API Account description-15",
"active" : true,
"createdAt" : {
"nano" : 593300000,
"epochSecond" : 1782388704
},
"updatedAt" : {
"nano" : 642418000,
"epochSecond" : 1782388704
},
"deletedAt" : null,
"email" : "service.admin-14@acme.com",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"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 |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/d2350a69-6cb1-45d3-a38b-7487acc2283b' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 718
{
"id" : "d2350a69-6cb1-45d3-a38b-7487acc2283b",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ClientId" : "34bdf9a2-44e5-4f0b-a983-4728e4bd5aba",
"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" : 589694000,
"epochSecond" : 1782388702
},
"updatedAt" : {
"nano" : 508904000,
"epochSecond" : 1782388704
},
"deletedAt" : null,
"email" : "no-reply@acme.com",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"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 |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/mapping/4274a0e3-dc26-4e63-bdf3-4178ea83b897' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 682
{
"id" : "d71ab446-0b08-4783-9eb3-c8c270766015",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ClientId" : "4274a0e3-dc26-4e63-bdf3-4178ea83b897",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "ACME Internal Service-31",
"contactEmail" : "service.admin-32@foo.com",
"description" : "updatable API Account description-33",
"active" : true,
"createdAt" : {
"nano" : 127714000,
"epochSecond" : 1782388742
},
"updatedAt" : null,
"deletedAt" : null,
"email" : "service.admin-32@foo.com",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"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]. |
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.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" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"name" : "HR Bridge Service",
"contactEmail" : "hr.director@acme.com",
"description" : "description goes here",
"grantDefaultRoles" : true,
"provider" : "Cognito"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 940
{
"apiAccountIdentity" : {
"id" : "c146eee6-773f-42b3-91a3-f09f16a114b2",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ClientId" : null,
"awsCognitoClientId" : "24b3d163-11f2-4027-bad7-38117bdf1132|wixcysho",
"authenticationUrl" : "https://netfoundry-test-ydiovp.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" : 375061000,
"epochSecond" : 1782388708
},
"updatedAt" : null,
"deletedAt" : null,
"email" : "hr.director@acme.com",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"type" : "ApiAccountIdentity"
},
"clientId" : "wixcysho",
"password" : "axgppfsfbdvipipjgbgsfvuu",
"authenticationUrl" : "https://netfoundry-test-ydiovp.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 |
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 |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/d67e3ed7-e846-4e5f-ab1e-837aca53a7d6' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"name" : "Robot",
"contactEmail" : "robot@acme.com",
"description" : "description here."
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 680
{
"id" : "d67e3ed7-e846-4e5f-ab1e-837aca53a7d6",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ClientId" : "5005119c-8a6b-4a9b-81a1-c0077e162e1c",
"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" : 615072000,
"epochSecond" : 1782388702
},
"updatedAt" : {
"nano" : 361778000,
"epochSecond" : 1782388703
},
"deletedAt" : null,
"email" : "robot@acme.com",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"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 |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/08c85bee-4f5b-4a91-bc34-fb6a5946a34b/deactivate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 739
{
"id" : "08c85bee-4f5b-4a91-bc34-fb6a5946a34b",
"organizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"auth0ClientId" : "450bb372-fa22-4342-83da-f993471cf062",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "ACME Internal Service-25",
"contactEmail" : "service.admin-26@foo.com",
"description" : "updatable API Account description-27",
"active" : false,
"createdAt" : {
"nano" : 936275000,
"epochSecond" : 1782388741
},
"updatedAt" : {
"nano" : 970155000,
"epochSecond" : 1782388741
},
"deletedAt" : null,
"email" : "service.admin-26@foo.com",
"tenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"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 |
|
toTenantId |
String |
true |
Deprecated.. |
state |
String |
true |
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" : "8e0a8af6-6a22-4bf8-936c-e5e6a7f6422d",
"fromIdentityId" : "a617b68c-cccd-4f02-9330-e27ab1e8b549",
"toOrganizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"invitedEmailAddress" : "new.employee@acme.com",
"invitationHost" : "acme.cloudziti.io",
"expiration" : {
"nano" : 869148000,
"epochSecond" : 1782993555
},
"targetUserIdentityId" : "03053d05-5a0e-40b9-9c8e-a710598b6465",
"accepted" : null,
"revokedAt" : null,
"responseReceivedAt" : null,
"toTenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"state" : "Open"
}, {
"id" : "9368e293-93e2-4fe9-835e-544765b5477a",
"fromIdentityId" : "94dcbec0-b137-4191-b6e5-325f42eaa8b8",
"toOrganizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"invitedEmailAddress" : "new.employee-244@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 113874000,
"epochSecond" : 1782993556
},
"targetUserIdentityId" : "7ac73b19-1459-4202-ad27-35a8846a1c62",
"accepted" : null,
"revokedAt" : {
"nano" : 127324000,
"epochSecond" : 1782388756
},
"responseReceivedAt" : {
"nano" : 127326000,
"epochSecond" : 1782388756
},
"toTenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"state" : "Revoked"
}, {
"id" : "dd4b6ffb-f592-4d6b-8fa5-aeca61639a61",
"fromIdentityId" : "94dcbec0-b137-4191-b6e5-325f42eaa8b8",
"toOrganizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"invitedEmailAddress" : "new.employee-237@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 705402000,
"epochSecond" : 1782993555
},
"targetUserIdentityId" : "1aa7947f-5685-4731-8cc9-ace6c1a93c49",
"accepted" : false,
"revokedAt" : null,
"responseReceivedAt" : {
"nano" : 743170000,
"epochSecond" : 1782388755
},
"toTenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"state" : "Declined"
} ]
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 |
|
toTenantId |
String |
true |
Deprecated.. |
state |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/022c9621-8509-424a-a6bf-e1b233f7de1e' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 564
{
"id" : "022c9621-8509-424a-a6bf-e1b233f7de1e",
"fromIdentityId" : "94dcbec0-b137-4191-b6e5-325f42eaa8b8",
"toOrganizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"invitedEmailAddress" : "new.employee-257@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 470433000,
"epochSecond" : 1782993556
},
"targetUserIdentityId" : "99d92ab6-2711-459f-810f-205183b25eda",
"accepted" : null,
"revokedAt" : null,
"responseReceivedAt" : null,
"toTenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"state" : "Open"
}
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 |
|
toTenantId |
String |
true |
Deprecated.. |
state |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"toOrganizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"invitedEmailAddress" : "new.employee@acme.com",
"invitationUrl" : "http://acme.cloudziti.io/invitation",
"targetUserIdentityId" : "03053d05-5a0e-40b9-9c8e-a710598b6465"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 565
{
"id" : "8e0a8af6-6a22-4bf8-936c-e5e6a7f6422d",
"fromIdentityId" : "a617b68c-cccd-4f02-9330-e27ab1e8b549",
"toOrganizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"invitedEmailAddress" : "new.employee@acme.com",
"invitationHost" : "acme.cloudziti.io",
"expiration" : {
"nano" : 869148000,
"epochSecond" : 1782993555
},
"targetUserIdentityId" : "03053d05-5a0e-40b9-9c8e-a710598b6465",
"accepted" : null,
"revokedAt" : null,
"responseReceivedAt" : null,
"toTenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"state" : "Open"
}
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 |
|
toTenantId |
String |
true |
Deprecated.. |
state |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/9d613631-a72b-452a-b4eb-3e3cb80925d5/decline' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 625
{
"id" : "9d613631-a72b-452a-b4eb-3e3cb80925d5",
"fromIdentityId" : "94dcbec0-b137-4191-b6e5-325f42eaa8b8",
"toOrganizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"invitedEmailAddress" : "new.employee-249@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 271294000,
"epochSecond" : 1782993556
},
"targetUserIdentityId" : "daaeb3bd-e0ea-4918-9f65-e27d90ea6760",
"accepted" : false,
"revokedAt" : null,
"responseReceivedAt" : {
"nano" : 280352000,
"epochSecond" : 1782388756
},
"toTenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"state" : "Declined"
}
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 |
|
toTenantId |
String |
true |
Deprecated.. |
state |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/b0d11a0b-6d36-4942-aa3e-67110cd82ca8/revoke' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 679
{
"id" : "b0d11a0b-6d36-4942-aa3e-67110cd82ca8",
"fromIdentityId" : "94dcbec0-b137-4191-b6e5-325f42eaa8b8",
"toOrganizationId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"invitedEmailAddress" : "new.employee-265@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 658562000,
"epochSecond" : 1782993556
},
"targetUserIdentityId" : "04565c2b-438f-4156-b130-c864ed3f8cf7",
"accepted" : null,
"revokedAt" : {
"nano" : 674897000,
"epochSecond" : 1782388756
},
"responseReceivedAt" : {
"nano" : 674898000,
"epochSecond" : 1782388756
},
"toTenantId" : "f669b621-fc6e-4282-a9f0-ef6db493755b",
"state" : "Revoked"
}
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]. |
toTenantLabel |
String |
true |
Deprecated.. |
toTenantName |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/key/UISxlhXDYUgjgDyuLkEHiv0ZvO8EOuN8Bakj' -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-299@acme.com"
},
"invitedEmailAddress" : "new.employee-301@acme.com",
"toOrganizationName" : "ACME International, Inc.",
"toOrganizationLabel" : "ACME-274",
"expiration" : {
"nano" : 285053000,
"epochSecond" : 1782993562
},
"accepted" : null,
"state" : "Open",
"toTenantLabel" : "ACME-274",
"toTenantName" : "ACME International, Inc."
}
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]. |
toTenantLabel |
String |
true |
Deprecated.. |
toTenantName |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/key/hoPb7hLlvFrF0qyWYJNMMYZ6ZdqtLsKjDybU/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-284@acme.com"
},
"invitedEmailAddress" : "new.employee-286@acme.com",
"toOrganizationName" : "ACME International, Inc.",
"toOrganizationLabel" : "ACME-274",
"expiration" : {
"nano" : 720560000,
"epochSecond" : 1782993561
},
"accepted" : false,
"state" : "Declined",
"toTenantLabel" : "ACME-274",
"toTenantName" : "ACME International, Inc."
}
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/sW69D8OVk8mG8HDGE518XKOQZZcda7czGiwf/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.eyJpYXQiOjE3ODIzODg3NjEsImV4cCI6MTc4MjM4OTY2MSwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2lkZW50aXR5L3YxIiwiYXVkIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2lkZW50aXR5L3YxIiwiZmxvdyI6Imludml0YXRpb24iLCJpbnZpdGF0aW9uSWQiOiI2NDNmMmU2Ni02ZWJhLTQwMjQtOWRjNS00MjRjY2M4ZWYzZWYiLCJ0ZW5hbnRMYWJlbCI6IkFDTUUtMjc0IiwiYXV0aDBDb25uZWN0aW9uSWRzIjpbImF1dGgwLW9wYXF1ZS1jb25uZWN0aW9uSWQtMjc1IiwiYXV0aDAtb3BhcXVlLWNvbm5lY3Rpb25JZC0yNzYiXSwicmVkaXJlY3RVcmwiOiJodHRwOi8vY29uc29sZS5uZmFkbWluLm5ldGZvdW5kcnkuaW8vaW52aXRhdGlvbiJ9.sD3JOUu6W_xryNwnLEbm82qiO3zcqUtAbanhnOnMkNeUqMmtd4XjP5xBIDEhDhno3zSPm3mkHOELjkHtY-ekDD8aSGvQMbBY6rI11qiN6g3vwWUy78vO-0SLJQMh4bCrMqbuufKlkV3_e4ErIjQaLPjNM0anEL_3-K0V2NVVmYCW1smpKRb1iLtHfgJ_JIEKxYUzk-EhWAercszQpJT6yfhaJlTtaixOfz9JNkPg_O9AGMzjRx138CetxIqeuA_A7Qsko64KCS7EaRbiUln3LprzxCGiiOSX6qju1RZEjaiCLnBK4tUBETlRjkMhgJSGLfmV_Vzf32VZwI0a_YPnCw",
"auth0ConnectionIds" : [ "auth0-opaque-connectionId-275", "auth0-opaque-connectionId-276" ]
}
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.eyJpYXQiOjE3ODIzODg3NjIsImV4cCI6MTc4MjM4OTY2MiwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2lkZW50aXR5L3YxIiwiYXVkIjoiaHR0cHM6Ly9uZXRmb3VuZHJ5LXNhbmRib3guYXV0aDAuY29tLyIsImZsb3ciOiJsb2dpbiIsInRlbmFudExhYmVsIjoiQUNNRS0yIiwiYXV0aDBDb25uZWN0aW9uSWRzIjpbImF1dGgwLW9wYXF1ZS1jb25uZWN0aW9uSWQtNCIsImF1dGgwLW9wYXF1ZS1jb25uZWN0aW9uSWQtMyJdLCJyZWRpcmVjdFVybCI6Imh0dHA6Ly9jb25zb2xlLm5mYWRtaW4ubmV0Zm91bmRyeS5pby9pbnZpdGF0aW9uIn0.IRCsHfGnQpgV2PflgeWpj9TTEggp2KUeaI5kvwFKgZp-XKojfDAGbDfOR-puJw0qQk_9a9GrjdmP3hWXvhnWaeXxc6Q_v91P0Gid6kWTN0COzACfZbTJ3k4arY53vfPGr26GMKXXY3FUdfbj23vK2ION1Tl0Lr3ix00HeZqXXxvXuDfN9rvIokoaEiNrbbM0cJaH8DA42D0R6uZD0L_uG6fC059GeeH8YVYKd6bAxb89BnyJZXFsjXdJamWy-DN8H7shB1ie_ylYjk7ytyhg7QvO83koqU-8GqJYeAJ9qk5191QASmm6ajC0tKHJ7dBxD2FD-cupUGooYwCai_T0cA",
"auth0ConnectionIds" : [ "auth0-opaque-connectionId-4", "auth0-opaque-connectionId-3" ]
}
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: 1283
[ {
"id" : "09028880-891e-4bf0-8d4b-112cebd1e281",
"userIdentityId" : "ab332f07-6c89-4654-a9dc-352844b14f45",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "ab332f07-6c89-4654-a9dc-352844b14f45",
"createdAt" : {
"nano" : 845748000,
"epochSecond" : 1782388751
},
"updatedAt" : {
"nano" : 845748000,
"epochSecond" : 1782388751
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "3aca723f-029d-4332-b387-6d44942a2c43",
"userIdentityId" : "f5fbad83-d5e4-466f-95fe-07eb25c51e9f",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "f5fbad83-d5e4-466f-95fe-07eb25c51e9f",
"createdAt" : {
"nano" : 686193000,
"epochSecond" : 1782388751
},
"updatedAt" : {
"nano" : 686193000,
"epochSecond" : 1782388751
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "b240b0fb-623b-40fa-b722-0799058faf3c",
"userIdentityId" : "584da3f0-eef5-4852-b1f8-1e7131852407",
"preferences" : {
"hello" : "world"
},
"createdBy" : "584da3f0-eef5-4852-b1f8-1e7131852407",
"createdAt" : {
"nano" : 903939000,
"epochSecond" : 1782388751
},
"updatedAt" : {
"nano" : 903939000,
"epochSecond" : 1782388751
},
"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/cd202d9e-b0d9-4509-8add-b7d28bf208a8' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 415
{
"id" : "cd202d9e-b0d9-4509-8add-b7d28bf208a8",
"userIdentityId" : "558d310c-40d7-4877-87d4-c9b76afad98c",
"preferences" : {
"hello" : "world"
},
"createdBy" : "558d310c-40d7-4877-87d4-c9b76afad98c",
"createdAt" : {
"nano" : 476879000,
"epochSecond" : 1782388753
},
"updatedAt" : {
"nano" : 476879000,
"epochSecond" : 1782388753
},
"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" : "09a61251-cb73-4217-ad92-8da0838f8903",
"userIdentityId" : "6ad22e56-bf93-4c68-8869-b2729d1d4357",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "6ad22e56-bf93-4c68-8869-b2729d1d4357",
"createdAt" : {
"nano" : 482090000,
"epochSecond" : 1782388752
},
"updatedAt" : {
"nano" : 482090000,
"epochSecond" : 1782388752
},
"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/95018e27-52da-4d4f-a724-f6ee776dadd0' -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" : "95018e27-52da-4d4f-a724-f6ee776dadd0",
"userIdentityId" : "29ce78aa-4790-4e53-8cae-278ab01c9b07",
"preferences" : {
"updated" : "my second preference."
},
"createdBy" : "29ce78aa-4790-4e53-8cae-278ab01c9b07",
"createdAt" : {
"nano" : 487759000,
"epochSecond" : 1782388754
},
"updatedAt" : {
"nano" : 501324000,
"epochSecond" : 1782388754
},
"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/4845494d-b210-402d-9d2f-da9104a75eba' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 502
{
"id" : "4845494d-b210-402d-9d2f-da9104a75eba",
"userIdentityId" : "9954704e-dc5c-4861-a6e3-acd1cff2016c",
"preferences" : {
"hello" : "world"
},
"createdBy" : "9954704e-dc5c-4861-a6e3-acd1cff2016c",
"createdAt" : {
"nano" : 15942000,
"epochSecond" : 1782388753
},
"updatedAt" : {
"nano" : 28367000,
"epochSecond" : 1782388753
},
"deletedBy" : "b9bbfe93-ef33-4606-a1a1-ca4447cffa24",
"deletedAt" : {
"nano" : 27000000,
"epochSecond" : 1782388753
}
}
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" : "55f38c0b-35fe-4e23-8f5b-4e7e6bc26707",
"organizationId" : "fde5df0f-c92e-4f1d-8c17-85581748bb8e",
"preferences" : {
"hello" : "world"
},
"createdBy" : "7fd90ea6-1bb2-44c5-b73f-9171af3090a0",
"createdAt" : {
"nano" : 430265000,
"epochSecond" : 1782388767
},
"updatedAt" : {
"nano" : 430265000,
"epochSecond" : 1782388767
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "683251a1-2a43-476c-b85e-4f2fd8da715a",
"organizationId" : "abdd97b4-c8e9-401e-82e1-f0fdd29caf36",
"preferences" : {
"hello" : "world"
},
"createdBy" : "1b654c57-3b09-470d-8a42-8f0fa378b0be",
"createdAt" : {
"nano" : 640100000,
"epochSecond" : 1782388767
},
"updatedAt" : {
"nano" : 640100000,
"epochSecond" : 1782388767
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "e540c856-4f5c-491c-8e63-9d4700003bf7",
"organizationId" : "a248437c-27e8-4640-9026-ac7bf4626c9b",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "69e79281-dc2f-4f92-bd57-dfbc16f0c15a",
"createdAt" : {
"nano" : 525124000,
"epochSecond" : 1782388767
},
"updatedAt" : {
"nano" : 525124000,
"epochSecond" : 1782388767
},
"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/683251a1-2a43-476c-b85e-4f2fd8da715a' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 415
{
"id" : "683251a1-2a43-476c-b85e-4f2fd8da715a",
"organizationId" : "abdd97b4-c8e9-401e-82e1-f0fdd29caf36",
"preferences" : {
"hello" : "world"
},
"createdBy" : "1b654c57-3b09-470d-8a42-8f0fa378b0be",
"createdAt" : {
"nano" : 640100000,
"epochSecond" : 1782388767
},
"updatedAt" : {
"nano" : 640100000,
"epochSecond" : 1782388767
},
"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" : "a248437c-27e8-4640-9026-ac7bf4626c9b",
"preferences" : {
"first" : "my first preference."
}
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 430
{
"id" : "e540c856-4f5c-491c-8e63-9d4700003bf7",
"organizationId" : "a248437c-27e8-4640-9026-ac7bf4626c9b",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "69e79281-dc2f-4f92-bd57-dfbc16f0c15a",
"createdAt" : {
"nano" : 525124000,
"epochSecond" : 1782388767
},
"updatedAt" : {
"nano" : 525124000,
"epochSecond" : 1782388767
},
"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/87e163ea-5036-4c90-907c-476f26515f88' -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" : "87e163ea-5036-4c90-907c-476f26515f88",
"organizationId" : "9b8e16a4-413c-4096-89e8-38446e66be73",
"preferences" : {
"updated" : "my second preference."
},
"createdBy" : "d5f36122-3fed-4ca0-8793-a864dee84cf3",
"createdAt" : {
"nano" : 794227000,
"epochSecond" : 1782388767
},
"updatedAt" : {
"nano" : 809637000,
"epochSecond" : 1782388767
},
"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/235027c1-bd8f-42e5-8424-71161e2e8784' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 505
{
"id" : "235027c1-bd8f-42e5-8424-71161e2e8784",
"organizationId" : "20e1ab86-9bc3-4a46-8bd9-21c5e209a2e2",
"preferences" : {
"hello" : "world"
},
"createdBy" : "7474c2fa-0cc0-4bbb-a7ca-bcdd317da418",
"createdAt" : {
"nano" : 571099000,
"epochSecond" : 1782388767
},
"updatedAt" : {
"nano" : 590678000,
"epochSecond" : 1782388767
},
"deletedBy" : "07ebcf57-1357-4892-991c-7bda8687cca4",
"deletedAt" : {
"nano" : 590000000,
"epochSecond" : 1782388767
}
}