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: 1680
[ {
"id" : "07d162d2-bf23-45eb-89cd-57ab6849b8eb",
"realmId" : "f2c70a46-30bd-446e-b862-41f7a0e71bb9",
"name" : "World Wide Imports",
"label" : "WW-Imports-225",
"identityProviders" : [ ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 895267000,
"epochSecond" : 1784225698
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}, {
"id" : "1ac4d012-bf9b-4473-934d-0719b3ff6360",
"realmId" : "f2c70a46-30bd-446e-b862-41f7a0e71bb9",
"name" : "World Wide Imports",
"label" : "WW-Imports-124",
"identityProviders" : [ {
"id" : "7fadfd34-851d-4f8b-8bc4-0780c3462a2a",
"organizationId" : "1ac4d012-bf9b-4473-934d-0719b3ff6360",
"auth0ConnectionId" : "auth0-opaque-connectionId-125",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 238184000,
"epochSecond" : 1784225696
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 235995000,
"epochSecond" : 1784225696
},
"updatedAt" : null,
"deletedBy" : null,
"deletedAt" : null,
"deleted" : false
}, {
"id" : "32a0367e-54f7-4364-a906-0267a91b19d6",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "Admin",
"label" : "admin",
"identityProviders" : [ ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 855529000,
"epochSecond" : 1784225645
},
"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" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "ACME International, Inc.",
"label" : "ACME-2",
"identityProviders" : [ {
"id" : "54d6b425-f6b9-4c92-8e79-fb9994e494a0",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 877590000,
"epochSecond" : 1784225645
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "16f10dda-d511-4f44-858a-1e6537b9560c",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 885669000,
"epochSecond" : 1784225645
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ {
"id" : "1eeb8fd9-51b3-4de6-935e-57be7f12ea4e",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"name" : "Standard Role - 10188085-33fa-4d83-8baa-8c1d37930593",
"roleType" : "Standard",
"roleId" : "10188085-33fa-4d83-8baa-8c1d37930593",
"createdBy" : "5610d4bc-8d71-4036-b296-696fe5deb525",
"createdAt" : {
"nano" : 973903000,
"epochSecond" : 1784225645
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "f024ff47-3bf7-4685-89d6-b2e3e20a1e9c",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"name" : "Custom Role - 50a3482a-1ffa-41b6-bf07-e5c7ee06c814",
"roleType" : "Custom",
"roleId" : "50a3482a-1ffa-41b6-bf07-e5c7ee06c814",
"createdBy" : "baf7eb92-3152-44ef-9402-d25dc9b2a5da",
"createdAt" : {
"nano" : 984118000,
"epochSecond" : 1784225645
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 874152000,
"epochSecond" : 1784225645
},
"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/8720a542-11b2-4622-b737-8a7123ed4fcf' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2220
{
"id" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "ACME International, Inc.",
"label" : "ACME-2",
"identityProviders" : [ {
"id" : "54d6b425-f6b9-4c92-8e79-fb9994e494a0",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 877590000,
"epochSecond" : 1784225645
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "16f10dda-d511-4f44-858a-1e6537b9560c",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 885669000,
"epochSecond" : 1784225645
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ {
"id" : "1eeb8fd9-51b3-4de6-935e-57be7f12ea4e",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"name" : "Standard Role - 10188085-33fa-4d83-8baa-8c1d37930593",
"roleType" : "Standard",
"roleId" : "10188085-33fa-4d83-8baa-8c1d37930593",
"createdBy" : "5610d4bc-8d71-4036-b296-696fe5deb525",
"createdAt" : {
"nano" : 973903000,
"epochSecond" : 1784225645
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "f024ff47-3bf7-4685-89d6-b2e3e20a1e9c",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"name" : "Custom Role - 50a3482a-1ffa-41b6-bf07-e5c7ee06c814",
"roleType" : "Custom",
"roleId" : "50a3482a-1ffa-41b6-bf07-e5c7ee06c814",
"createdBy" : "baf7eb92-3152-44ef-9402-d25dc9b2a5da",
"createdAt" : {
"nano" : 984118000,
"epochSecond" : 1784225645
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
} ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 874152000,
"epochSecond" : 1784225645
},
"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" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"realmId" : "2b551792-324e-4200-ab38-3d17f27ac13d",
"name" : "ACME International, Inc.",
"label" : "ACME-2",
"active" : true,
"identityProviders" : [ {
"id" : "54d6b425-f6b9-4c92-8e79-fb9994e494a0",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 877590000,
"epochSecond" : 1784225645
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "16f10dda-d511-4f44-858a-1e6537b9560c",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 885669000,
"epochSecond" : 1784225645
},
"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" : "bd67a6f7-f36a-4d5a-9174-5349282d8c78",
"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" : "439d9288-081f-43f9-b3b3-8c9ce1ae97bf",
"realmId" : "bd67a6f7-f36a-4d5a-9174-5349282d8c78",
"name" : "Best Corp.",
"label" : "BEST-CORP",
"identityProviders" : [ {
"id" : "d39c6940-d194-498b-ba85-222253876ba2",
"organizationId" : "439d9288-081f-43f9-b3b3-8c9ce1ae97bf",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Best Corp.",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 685836000,
"epochSecond" : 1784225708
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 684956000,
"epochSecond" : 1784225708
},
"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/a7281ece-89bc-4b01-97a1-aba7c8714b9d/deactivate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 893
{
"id" : "a7281ece-89bc-4b01-97a1-aba7c8714b9d",
"realmId" : "f2c70a46-30bd-446e-b862-41f7a0e71bb9",
"name" : "World Wide Imports",
"label" : "WW-Imports-340",
"identityProviders" : [ {
"id" : "4b32253c-8928-40da-9f59-ed9926a12436",
"organizationId" : "a7281ece-89bc-4b01-97a1-aba7c8714b9d",
"auth0ConnectionId" : "auth0-opaque-connectionId-341",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 573635000,
"epochSecond" : 1784225709
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : false,
"mfaProvider" : null,
"createdAt" : {
"nano" : 572418000,
"epochSecond" : 1784225709
},
"updatedAt" : {
"nano" : 585532000,
"epochSecond" : 1784225709
},
"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/1b29352d-d689-4dbf-90de-da1ae1fdc890/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" : "1b29352d-d689-4dbf-90de-da1ae1fdc890",
"realmId" : "f2c70a46-30bd-446e-b862-41f7a0e71bb9",
"name" : "World Wide Imports",
"label" : "WW-Imports-336",
"identityProviders" : [ {
"id" : "77da58c9-e6c8-4ae6-aa29-5cec538f2d28",
"organizationId" : "1b29352d-d689-4dbf-90de-da1ae1fdc890",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 405891000,
"epochSecond" : 1784225709
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "4df91966-9c1f-40f5-ab02-dbce23e14aee",
"organizationId" : "1b29352d-d689-4dbf-90de-da1ae1fdc890",
"auth0ConnectionId" : "auth0-opaque-connectionId-337",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 380253000,
"epochSecond" : 1784225709
},
"updatedAt" : null,
"deletedAt" : null
} ],
"defaultRoles" : [ ],
"active" : true,
"mfaProvider" : null,
"createdAt" : {
"nano" : 378611000,
"epochSecond" : 1784225709
},
"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: 1218
[ {
"id" : "6926b3db-6cd5-4f58-98ee-65a84e10859d",
"issuer" : "https://ebe6b379-6f24-4966-b80e-3d2c85e1d1f8.issuer.idp",
"jwksUri" : "https://ebe6b379-6f24-4966-b80e-3d2c85e1d1f8.issuer.idp/jwks",
"active" : true,
"createdBy" : "8aecc511-e387-4c7e-a6ec-ebd7819c95e5",
"createdAt" : {
"nano" : 36273000,
"epochSecond" : 1784225707
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "6c72dba0-a155-4804-9a70-89da12149793",
"issuer" : "https://accounts.google.com",
"jwksUri" : "https://www.googleapis.com/oauth2/v3/certs",
"active" : true,
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 566527000,
"epochSecond" : 1784225642
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "92b880ce-a2ae-4c77-8dee-8fc70c335f0b",
"issuer" : "https://b3a0dcef-e0c1-4ac4-9ae6-0e1c9900cf82.issuer.idp",
"jwksUri" : "https://b3a0dcef-e0c1-4ac4-9ae6-0e1c9900cf82.issuer.idp/jwks",
"active" : true,
"createdBy" : "08a248d8-e90b-45c4-9c0b-5b9d90395d97",
"createdAt" : {
"nano" : 549095000,
"epochSecond" : 1784225706
},
"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/a37d6f87-2bfa-4fa9-9ac2-2ea2abe9fa4e' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 419
{
"id" : "a37d6f87-2bfa-4fa9-9ac2-2ea2abe9fa4e",
"issuer" : "https://71dd1006-3ee5-4636-8e49-9f76d425ca2a.issuer.idp",
"jwksUri" : "https://71dd1006-3ee5-4636-8e49-9f76d425ca2a.issuer.idp/jwks",
"active" : true,
"createdBy" : "357aa5fa-e3cd-4d64-985e-54cb0f3ba0c8",
"createdAt" : {
"nano" : 398708000,
"epochSecond" : 1784225707
},
"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://a66e8795-f7d0-439f-9f3b-47d9c5a9e9c5.issuer.idp",
"jwksUri" : "https://a66e8795-f7d0-439f-9f3b-47d9c5a9e9c5.issuer.idp/jwks",
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 419
{
"id" : "6454510c-26ac-4c6b-bd1c-8d41f3f285bb",
"issuer" : "https://a66e8795-f7d0-439f-9f3b-47d9c5a9e9c5.issuer.idp",
"jwksUri" : "https://a66e8795-f7d0-439f-9f3b-47d9c5a9e9c5.issuer.idp/jwks",
"active" : true,
"createdBy" : "2e751858-97ef-44c2-8d47-3455c496a94b",
"createdAt" : {
"nano" : 357776000,
"epochSecond" : 1784225707
},
"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/ffb23bf2-0284-480e-a1d4-b175f980ee98' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"issuer" : "https://0cbcc966-1b25-4c5f-90df-6f54e7d58eb1.issuer.idp",
"jwksUri" : "https://0cbcc966-1b25-4c5f-90df-6f54e7d58eb1.issuer.idp/jwks",
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 420
{
"id" : "ffb23bf2-0284-480e-a1d4-b175f980ee98",
"issuer" : "https://0cbcc966-1b25-4c5f-90df-6f54e7d58eb1.issuer.idp",
"jwksUri" : "https://0cbcc966-1b25-4c5f-90df-6f54e7d58eb1.issuer.idp/jwks",
"active" : false,
"createdBy" : "3503cf24-630e-4b99-a72b-9ca2ea46e450",
"createdAt" : {
"nano" : 292104000,
"epochSecond" : 1784225707
},
"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/23921f9e-9061-4055-8160-1acabe7c5118' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 508
{
"id" : "23921f9e-9061-4055-8160-1acabe7c5118",
"issuer" : "https://16ded00e-b2f0-4d30-8a46-60a3aaaca10c.issuer.idp",
"jwksUri" : "https://16ded00e-b2f0-4d30-8a46-60a3aaaca10c.issuer.idp/jwks",
"active" : true,
"createdBy" : "2b53c5b3-d380-4b05-8fa7-c09235da62c1",
"createdAt" : {
"nano" : 448317000,
"epochSecond" : 1784225707
},
"deletedAt" : {
"nano" : 457068000,
"epochSecond" : 1784225707
},
"deletedBy" : "7114955c-326e-48b9-9cdc-1c6621f4ddcc",
"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" : 568933000,
"epochSecond" : 1784225642
},
"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" : 568933000,
"epochSecond" : 1784225642
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "f87e2900-569e-46e1-a316-afc0033c16c5",
"oidcIssuerId" : "44660f3b-353d-43b9-ba97-57e97e9120a6",
"clientId" : "clientId-fd3c1c92-6229-45c3-97f2-64867d33e7bb",
"clientSecret" : "clientSecret-ce830a1f-9b70-45d0-9779-6488d744afe2",
"authorizationEndpoint" : "https://b26be6c1-98b5-4de8-8258-0c0f349dcc58.issuer.idp/authorize",
"tokenEndpoint" : "https://b26be6c1-98b5-4de8-8258-0c0f349dcc58.issuer.idp/token",
"userInfoEndpoint" : "https://b26be6c1-98b5-4de8-8258-0c0f349dcc58.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "06205587-faf6-412b-bcd2-675c5238953f",
"createdAt" : {
"nano" : 553270000,
"epochSecond" : 1784225707
},
"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/ee5f45f7-8258-4d86-ad6d-c0235ddecd59' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 776
{
"id" : "ee5f45f7-8258-4d86-ad6d-c0235ddecd59",
"oidcIssuerId" : "98455d5a-3670-408c-95fc-a2708afc938e",
"clientId" : "clientId-a86f304a-0e5d-4957-a5a1-c851b9c4e977",
"clientSecret" : "clientSecret-b926aeb6-b183-4bf2-937d-5fe5968c9030",
"authorizationEndpoint" : "https://306b214d-2e0f-4fd5-b1a8-9a71c3276d8f.issuer.idp/authorize",
"tokenEndpoint" : "https://306b214d-2e0f-4fd5-b1a8-9a71c3276d8f.issuer.idp/token",
"userInfoEndpoint" : "https://306b214d-2e0f-4fd5-b1a8-9a71c3276d8f.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "1b9e444b-54b5-4210-8b31-cfc01918b9e5",
"createdAt" : {
"nano" : 939032000,
"epochSecond" : 1784225707
},
"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" : "1b76a538-0bfb-4c51-b504-9a70e964e6fc",
"clientId" : "clientId-6d725023-e75d-4499-8604-40853ff982bf",
"clientSecret" : "clientSecret-09f83178-433b-46f3-8660-20e4ba23c372",
"authorizationEndpoint" : "https://93098030-f652-440e-9827-e0aea4a0a5c9.issuer.idp/authorize",
"tokenEndpoint" : "https://93098030-f652-440e-9827-e0aea4a0a5c9.issuer.idp/token",
"userInfoEndpoint" : "https://93098030-f652-440e-9827-e0aea4a0a5c9.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 776
{
"id" : "6c281a86-6e1e-4585-ad59-ef0d37a870e6",
"oidcIssuerId" : "1b76a538-0bfb-4c51-b504-9a70e964e6fc",
"clientId" : "clientId-6d725023-e75d-4499-8604-40853ff982bf",
"clientSecret" : "clientSecret-09f83178-433b-46f3-8660-20e4ba23c372",
"authorizationEndpoint" : "https://93098030-f652-440e-9827-e0aea4a0a5c9.issuer.idp/authorize",
"tokenEndpoint" : "https://93098030-f652-440e-9827-e0aea4a0a5c9.issuer.idp/token",
"userInfoEndpoint" : "https://93098030-f652-440e-9827-e0aea4a0a5c9.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "7e0056c4-e27f-46ae-8e97-739e33a0f01c",
"createdAt" : {
"nano" : 888470000,
"epochSecond" : 1784225707
},
"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/c158f80b-4cf5-47d4-9468-628be48955d5' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"clientId" : "clientId-afa18f9a-a36d-47f5-afe5-f3c0e9a9ba20",
"clientSecret" : "clientSecret-b1f0f2c4-f362-4acd-90ab-635eb833998a",
"authorizationEndpoint" : "https://2107b5b1-e735-4820-bd63-e860b1b3bce7.issuer.idp/authorize",
"tokenEndpoint" : "https://2107b5b1-e735-4820-bd63-e860b1b3bce7.issuer.idp/token",
"userInfoEndpoint" : "https://2107b5b1-e735-4820-bd63-e860b1b3bce7.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 777
{
"id" : "c158f80b-4cf5-47d4-9468-628be48955d5",
"oidcIssuerId" : "ff9dcdc7-0d35-4240-b3db-898df419a7f0",
"clientId" : "clientId-afa18f9a-a36d-47f5-afe5-f3c0e9a9ba20",
"clientSecret" : "clientSecret-b1f0f2c4-f362-4acd-90ab-635eb833998a",
"authorizationEndpoint" : "https://2107b5b1-e735-4820-bd63-e860b1b3bce7.issuer.idp/authorize",
"tokenEndpoint" : "https://2107b5b1-e735-4820-bd63-e860b1b3bce7.issuer.idp/token",
"userInfoEndpoint" : "https://2107b5b1-e735-4820-bd63-e860b1b3bce7.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : false,
"createdBy" : "2b814f69-a6bc-436e-8dd8-70387aab6b55",
"createdAt" : {
"nano" : 812827000,
"epochSecond" : 1784225707
},
"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/33709a87-65e2-49b7-9f45-5e53b0980c7d' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 865
{
"id" : "33709a87-65e2-49b7-9f45-5e53b0980c7d",
"oidcIssuerId" : "8b306d0a-d458-4970-a8de-169dbfd5b673",
"clientId" : "clientId-26a499d4-4598-4ea0-83eb-281c61d7e21d",
"clientSecret" : "clientSecret-fcefc12e-1bdb-41f5-ad0d-5ef418071727",
"authorizationEndpoint" : "https://c4b8074b-7318-4069-b311-eb0f604a4904.issuer.idp/authorize",
"tokenEndpoint" : "https://c4b8074b-7318-4069-b311-eb0f604a4904.issuer.idp/token",
"userInfoEndpoint" : "https://c4b8074b-7318-4069-b311-eb0f604a4904.issuer.idp/userinfo",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "22508d82-be17-418d-9743-e728a8810ce8",
"createdAt" : {
"nano" : 988817000,
"epochSecond" : 1784225707
},
"deletedAt" : {
"nano" : 998580000,
"epochSecond" : 1784225707
},
"deletedBy" : "0127518d-45d9-4048-af51-caf1d00dc358",
"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: 1580
[ {
"id" : "02bac545-5a58-4e0f-8180-077c76ee3796",
"organizationId" : "f86122fb-316b-4427-8c38-248165bf4504",
"oidcPublicClientId" : "290cc71d-cbd0-4c44-bf9e-a9d33a7314e6",
"name" : "NFSUPPORT Google Account",
"active" : true,
"customQueryParameters" : "{\"audience\": \"https://gateway.{env}.netfoundry.io/\", \"connection\": \"google-oauth2\"}",
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 86636000,
"epochSecond" : 1784225642
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "10fc1349-f5cc-46c0-8368-13864a3da572",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"oidcPublicClientId" : "f4e6fcd0-1839-4566-8828-856e42b8f156",
"name" : "Google-Account",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "9f55d9b4-2379-4cfb-b5b5-6d9672dae0b0",
"createdAt" : {
"nano" : 968128000,
"epochSecond" : 1784225645
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "3bc21c0c-6eab-4182-b829-2284eed5bc2a",
"organizationId" : "95068bb0-864b-4930-b06e-9acf4957c826",
"oidcPublicClientId" : "290cc71d-cbd0-4c44-bf9e-a9d33a7314e6",
"name" : "NetFoundry Google Account",
"active" : true,
"customQueryParameters" : "{\"audience\": \"https://gateway.{env}.netfoundry.io/\", \"connection\": \"google-oauth2\"}",
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 244203000,
"epochSecond" : 1784225642
},
"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/03618b00-a6a2-4f52-8b4f-73713022c237' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 495
{
"id" : "03618b00-a6a2-4f52-8b4f-73713022c237",
"organizationId" : "78c37440-e6de-41b2-b93e-7d48df36190b",
"oidcPublicClientId" : "0a6c5c16-a288-47bc-b953-a33b34c7dc46",
"name" : "console-client-e61f69fe-dfbb-4830-8132-db1a671ecc64",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "76061e9e-1801-473b-9a31-e857eebfcb08",
"createdAt" : {
"nano" : 276368000,
"epochSecond" : 1784225710
},
"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" : "ce8d920d-7b9c-4ac5-9e05-4c68cc4675f5",
"oidcPublicClientId" : "2f9245ef-d621-4e9f-a131-9905add8b27c",
"name" : "console-client-88d70ac6-9b8d-40e6-b80e-edc07e160bac",
"active" : true,
"customQueryParameters" : "{}"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 495
{
"id" : "e7cf02f0-13b0-4345-ab53-6b65073fe6bc",
"organizationId" : "ce8d920d-7b9c-4ac5-9e05-4c68cc4675f5",
"oidcPublicClientId" : "2f9245ef-d621-4e9f-a131-9905add8b27c",
"name" : "console-client-88d70ac6-9b8d-40e6-b80e-edc07e160bac",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "d9b532fb-f711-4d2a-81ba-4d914e1b29dc",
"createdAt" : {
"nano" : 217377000,
"epochSecond" : 1784225710
},
"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/f9a4a3a3-bc35-4db4-b4e7-73b1fb38d397' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"name" : "custom-client-bbdf3bfd-58e6-4c94-a8f4-00a3f4014275",
"active" : true,
"customQueryParameters" : "{}"
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 494
{
"id" : "f9a4a3a3-bc35-4db4-b4e7-73b1fb38d397",
"organizationId" : "5a063a56-6603-4a1e-8f16-d1db2433a627",
"oidcPublicClientId" : "ecc19e96-aa3e-4a69-a685-fd54c467b22b",
"name" : "custom-client-bbdf3bfd-58e6-4c94-a8f4-00a3f4014275",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "b4422035-e34c-4699-aff2-f409acad0f39",
"createdAt" : {
"nano" : 114683000,
"epochSecond" : 1784225710
},
"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/d8cb96cf-4404-42a6-8fb1-e44175f74e1a' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 543
{
"id" : "d8cb96cf-4404-42a6-8fb1-e44175f74e1a",
"organizationId" : "a3ade403-9281-44ff-b149-cfb1180be2e4",
"oidcPublicClientId" : "45bb2038-3462-454b-b6e8-573235445986",
"name" : "number two",
"active" : true,
"customQueryParameters" : "{}",
"createdBy" : "97d4181e-d80f-4d28-b5d6-e13364d048b2",
"createdAt" : {
"nano" : 365554000,
"epochSecond" : 1784225710
},
"deletedAt" : {
"nano" : 376120000,
"epochSecond" : 1784225710
},
"deletedBy" : "cafce011-a45d-461e-9f47-f5484f83800f",
"deleted" : true
}
OIDC Audiences
Find Oidc Audiences
GET /oidc-audiences
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
oidcIssuerId |
String |
true |
|
audience |
String |
true |
|
restrictedToOrganizationIds |
Array[Object] |
true |
|
active |
Boolean |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deleted |
Boolean |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/oidc-audiences' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1282
[ {
"id" : "6a4f65ad-9db8-4ea7-b404-1d5c5f85cbdf",
"oidcIssuerId" : "fc221f2c-e97f-4994-a29e-afc26395f6b6",
"audience" : "https://gateway.{env}.netfoundry.io/",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 576999000,
"epochSecond" : 1784225642
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "734e6d90-02ab-4aff-9163-09fc9a3ef896",
"oidcIssuerId" : "a26819c4-1505-41ca-b0a8-545d8674f5ed",
"audience" : "mop-aud-85b23982-651d-49c4-8a5d-871e91975b4e",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "e216e2c1-c701-4a69-ab64-3b55bc81fa36",
"createdAt" : {
"nano" : 356094000,
"epochSecond" : 1784225706
},
"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" : 576999000,
"epochSecond" : 1784225642
},
"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/951d3cb9-0c50-40a9-a840-60fe96ff9862' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 430
{
"id" : "951d3cb9-0c50-40a9-a840-60fe96ff9862",
"oidcIssuerId" : "b3e61ab9-e5c5-490f-a505-17e58bbcf319",
"audience" : "mop-aud-3a8a7e13-60b1-4b61-973d-aed6f1f08a5b",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "b2b55337-6348-4a42-b481-17f8e1ff1105",
"createdAt" : {
"nano" : 822558000,
"epochSecond" : 1784225706
},
"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" : "e8945c9e-2c07-48de-822b-3a096980cf05",
"audience" : "mop-aud-d21801b4-5f04-4ada-b4aa-873c870ce169",
"restrictedToOrganizationIds" : [ ],
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 430
{
"id" : "790cab72-f09e-4e70-ab9a-bb1a92070e50",
"oidcIssuerId" : "e8945c9e-2c07-48de-822b-3a096980cf05",
"audience" : "mop-aud-d21801b4-5f04-4ada-b4aa-873c870ce169",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "2fe1dfab-18fc-4f21-b965-2ceb1574ba11",
"createdAt" : {
"nano" : 769980000,
"epochSecond" : 1784225706
},
"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/ad58b54c-89bd-49d3-bf70-bb726aa85343' -i -X PATCH \
-H 'Content-Type: application/json' \
-d '{
"audience" : "mop-aud-e8c778c7-e535-4b30-81d8-2eadf1ce27c5",
"restrictedToOrganizationIds" : [ ],
"active" : false
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 431
{
"id" : "ad58b54c-89bd-49d3-bf70-bb726aa85343",
"oidcIssuerId" : "d1b5bd4c-6c2a-4377-a5c0-b73bf53b84b4",
"audience" : "mop-aud-e8c778c7-e535-4b30-81d8-2eadf1ce27c5",
"restrictedToOrganizationIds" : [ ],
"active" : false,
"createdBy" : "3479272b-b942-4f52-a7dc-f07b9473c64d",
"createdAt" : {
"nano" : 669728000,
"epochSecond" : 1784225706
},
"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/4074f251-ace3-4b96-9a22-77279dff68e0' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 519
{
"id" : "4074f251-ace3-4b96-9a22-77279dff68e0",
"oidcIssuerId" : "cd60e3e0-4f50-4390-bd0f-4a0ec90d60f8",
"audience" : "mop-aud-6842504e-270b-4f5b-b182-76c3725ab846",
"restrictedToOrganizationIds" : [ ],
"active" : true,
"createdBy" : "91baa199-9217-4cc9-b2cb-7271ccd66ddc",
"createdAt" : {
"nano" : 897536000,
"epochSecond" : 1784225706
},
"deletedAt" : {
"nano" : 910541000,
"epochSecond" : 1784225706
},
"deletedBy" : "2cd12e32-652d-4681-b145-b362548f5d9f",
"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/8efcf985-0a1a-4fff-bad0-b9b0254b50e5' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 460
{
"id" : "8efcf985-0a1a-4fff-bad0-b9b0254b50e5",
"userIdentityId" : "589e0cd0-b23f-469a-9c16-cf95c068cb4b",
"oidcAudienceId" : "cd9f91d1-c1f0-4121-ac95-2e125194617a",
"subject" : "console-client-9bffdb77-93a0-4600-9649-24c6bb885696",
"active" : true,
"createdBy" : "3d8e9d04-51d9-4a97-a161-a5bcb68b06b7",
"createdAt" : {
"nano" : 675486000,
"epochSecond" : 1784225714
},
"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" : "02c644c3-ac24-4f0a-ae96-8210e239a409",
"oidcAudienceId" : "365857e6-946e-4715-96df-5b20a8213dc3",
"subject" : "console-client-b1fb2dff-10e6-43dc-8b85-8013368e29a0",
"active" : true
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 460
{
"id" : "018c908c-0770-4d1c-8b1f-6ab1324af7c1",
"userIdentityId" : "02c644c3-ac24-4f0a-ae96-8210e239a409",
"oidcAudienceId" : "365857e6-946e-4715-96df-5b20a8213dc3",
"subject" : "console-client-b1fb2dff-10e6-43dc-8b85-8013368e29a0",
"active" : true,
"createdBy" : "f11434b3-7718-4283-9734-c108c7b08d91",
"createdAt" : {
"nano" : 613660000,
"epochSecond" : 1784225714
},
"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/228ee97f-9896-4c0b-8c2f-0a7dcc0be4d5' -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" : "228ee97f-9896-4c0b-8c2f-0a7dcc0be4d5",
"userIdentityId" : "474181e4-c3b4-4cfa-afcf-5e33223f6718",
"oidcAudienceId" : "c7d24885-8450-4b29-b32f-3d8a3adfa638",
"subject" : "console-client-16ad4429-48b1-418e-bd3c-06cec10a9421",
"active" : false,
"createdBy" : "9461f10f-8101-436f-b7ac-c9b993762a17",
"createdAt" : {
"nano" : 511529000,
"epochSecond" : 1784225714
},
"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/c8cce130-5d1f-4183-8b53-2933cbf8d0fb' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 549
{
"id" : "c8cce130-5d1f-4183-8b53-2933cbf8d0fb",
"userIdentityId" : "5a6b28a8-1f94-4759-8c12-6bdd5354ac84",
"oidcAudienceId" : "684913b9-2096-496e-a66e-d2cdee7736c7",
"subject" : "console-client-6c1ca855-7e20-4083-9ba8-4d96ee0cbb81",
"active" : true,
"createdBy" : "af812c4f-1d15-4590-899e-df8b7eb0264e",
"createdAt" : {
"nano" : 844491000,
"epochSecond" : 1784225714
},
"deletedAt" : {
"nano" : 865346000,
"epochSecond" : 1784225714
},
"deletedBy" : "45751181-7a2b-400d-89b5-3d003b610629",
"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: 1128
[ {
"id" : "02bac545-5a58-4e0f-8180-077c76ee3796",
"organizationId" : "f86122fb-316b-4427-8c38-248165bf4504",
"auth0ConnectionId" : "google-oauth2",
"name" : "NFSUPPORT Google Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 86636000,
"epochSecond" : 1784225642
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "0b52f0c1-0e0f-4fad-b2bf-04b925905463",
"organizationId" : "4363a370-01e9-4b49-9435-c796e6bb02e2",
"auth0ConnectionId" : "auth0-opaque-connectionId-62",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 763531000,
"epochSecond" : 1784225693
},
"updatedAt" : null,
"deletedAt" : null
}, {
"id" : "16f10dda-d511-4f44-858a-1e6537b9560c",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ConnectionId" : "auth0-opaque-connectionId-4",
"name" : "Google-Account",
"auth0ConnectionType" : "Social",
"active" : true,
"createdAt" : {
"nano" : 885669000,
"epochSecond" : 1784225645
},
"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/54d6b425-f6b9-4c92-8e79-fb9994e494a0' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 394
{
"id" : "54d6b425-f6b9-4c92-8e79-fb9994e494a0",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ConnectionId" : "auth0-opaque-connectionId-3",
"name" : "ACME Federated Active Directory",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 877590000,
"epochSecond" : 1784225645
},
"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" : "06c0bd10-d8fe-439b-bebc-2355e5172c8e",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 368
{
"id" : "0fa19db1-40ea-4d72-8c93-cc927a2d7155",
"organizationId" : "06c0bd10-d8fe-439b-bebc-2355e5172c8e",
"auth0ConnectionId" : "auth0-opaque-connection",
"name" : "Corp SAML",
"auth0ConnectionType" : "Enterprise",
"active" : true,
"createdAt" : {
"nano" : 996171000,
"epochSecond" : 1784225698
},
"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/380ae372-4c9c-42a7-8bca-ba6ec33f95b7' -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" : "380ae372-4c9c-42a7-8bca-ba6ec33f95b7",
"organizationId" : "903b1e0d-339e-4d62-9674-93531ca4d0a4",
"auth0ConnectionId" : "auth0-opaque-connectionId-236",
"name" : "New IdP Name",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 306302000,
"epochSecond" : 1784225699
},
"updatedAt" : {
"nano" : 322727000,
"epochSecond" : 1784225699
},
"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/9ed39d4e-4f91-4ae1-9b5b-5dbb3d7eccd6/activate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 379
{
"id" : "9ed39d4e-4f91-4ae1-9b5b-5dbb3d7eccd6",
"organizationId" : "7d153ce4-4873-41fa-9707-5908e28432a6",
"auth0ConnectionId" : "auth0-opaque-connectionId-230",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 97218000,
"epochSecond" : 1784225699
},
"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/67072edc-d6bd-4ad1-b188-55c0b11b886a' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 492
{
"id" : "67072edc-d6bd-4ad1-b188-55c0b11b886a",
"organizationId" : "884c79fb-0fe1-4f85-85d4-da677bcda6b4",
"auth0ConnectionId" : "auth0-opaque-connectionId-234",
"name" : "Username/Password",
"auth0ConnectionType" : "Database",
"active" : true,
"createdAt" : {
"nano" : 242647000,
"epochSecond" : 1784225699
},
"updatedAt" : {
"nano" : 257125000,
"epochSecond" : 1784225699
},
"deletedAt" : {
"nano" : 256000000,
"epochSecond" : 1784225699
}
}
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: 1395
[ {
"id" : "159934fc-5cb2-438e-8099-a54865ba823a",
"organizationId" : "f86122fb-316b-4427-8c38-248165bf4504",
"name" : "Standard Role Admin - Network Group Admin of NF Support (NFSUP)",
"roleType" : "Standard",
"roleId" : "ddd39147-0ce2-473d-93c7-25b1b404433d",
"createdBy" : "2b6f496d-36f1-4e66-a205-8abcf1d41d74",
"createdAt" : {
"nano" : 166462000,
"epochSecond" : 1784225642
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "1eeb8fd9-51b3-4de6-935e-57be7f12ea4e",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"name" : "Standard Role - 10188085-33fa-4d83-8baa-8c1d37930593",
"roleType" : "Standard",
"roleId" : "10188085-33fa-4d83-8baa-8c1d37930593",
"createdBy" : "5610d4bc-8d71-4036-b296-696fe5deb525",
"createdAt" : {
"nano" : 973903000,
"epochSecond" : 1784225645
},
"deletedAt" : null,
"deletedBy" : null,
"deleted" : false
}, {
"id" : "2368f6df-7428-4715-ae94-9434b078f75b",
"organizationId" : "f86122fb-316b-4427-8c38-248165bf4504",
"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" : 166462000,
"epochSecond" : 1784225642
},
"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/1eeb8fd9-51b3-4de6-935e-57be7f12ea4e' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 458
{
"id" : "1eeb8fd9-51b3-4de6-935e-57be7f12ea4e",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"name" : "Standard Role - 10188085-33fa-4d83-8baa-8c1d37930593",
"roleType" : "Standard",
"roleId" : "10188085-33fa-4d83-8baa-8c1d37930593",
"createdBy" : "5610d4bc-8d71-4036-b296-696fe5deb525",
"createdAt" : {
"nano" : 973903000,
"epochSecond" : 1784225645
},
"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" : "61d71d86-5dac-4512-b705-f255db5129df",
"roleType" : "Standard",
"roleId" : "22095381-e5b7-4807-9fc1-9bd0843560ab"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 458
{
"id" : "01481bbd-6fb6-4042-96f7-230583643a54",
"organizationId" : "61d71d86-5dac-4512-b705-f255db5129df",
"name" : "Standard Role - 22095381-e5b7-4807-9fc1-9bd0843560ab",
"roleType" : "Standard",
"roleId" : "22095381-e5b7-4807-9fc1-9bd0843560ab",
"createdBy" : "889f86a8-c54f-4bc0-94d6-05b574186dc6",
"createdAt" : {
"nano" : 590096000,
"epochSecond" : 1784225694
},
"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/546bdada-aac0-4a6b-890d-969714281733' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 547
{
"id" : "546bdada-aac0-4a6b-890d-969714281733",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"name" : "Standard Role - b5e6f8a4-9bf3-4df6-a758-f6aa19a40653",
"roleType" : "Standard",
"roleId" : "b5e6f8a4-9bf3-4df6-a758-f6aa19a40653",
"createdBy" : "1d4521b8-b4a7-46d7-a9b6-2c730921fcb9",
"createdAt" : {
"nano" : 340562000,
"epochSecond" : 1784225694
},
"deletedAt" : {
"nano" : 356000000,
"epochSecond" : 1784225694
},
"deletedBy" : "223a2773-7ddc-4e3e-88d7-7f55be0d228e",
"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/6e84f97d-e9f2-43fa-985e-26e9fa6cadcc/grant' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"includeIdentityIds" : [ "7797f658-ac4c-419b-b946-0c64c85ca576", "25a936d0-6d3a-45b7-bfcb-a129d6e036c3", "7704214a-73a3-4d70-8810-ce0f03e820c0" ],
"excludeIdentityIds" : [ "7661a099-0209-4154-a324-064e0dee4f3f", "25a936d0-6d3a-45b7-bfcb-a129d6e036c3", "7704214a-73a3-4d70-8810-ce0f03e820c0" ]
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 51
{
"7797f658-ac4c-419b-b946-0c64c85ca576" : true
}
User Identity
Get Identity
GET /identities/self
Authorization
This endpoint requires no specific permission, only an authenticated client.
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
id |
String |
true |
|
type |
String |
true |
|
active |
Boolean |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
organizationId |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identities/self' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 778
{
"id" : "37bfb66e-4700-4296-b6c4-5162e4de448a",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-414@acme.com",
"identityMappings" : [ {
"id" : "3a77987c-af9c-45ee-be5c-11bf08a0867c",
"auth0UserId" : "auth0-opaque-userId-415",
"identityProviderId" : "54d6b425-f6b9-4c92-8e79-fb9994e494a0",
"userIdentityId" : "37bfb66e-4700-4296-b6c4-5162e4de448a"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 914445000,
"epochSecond" : 1784225712
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "First Last",
"status" : "ACTIVE",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "UserIdentity"
}
Get Identity
GET /identities/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
id |
String |
true |
|
type |
String |
true |
|
active |
Boolean |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
organizationId |
String |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identities/e3cc0bf7-192e-4d71-b1ee-64c0866f6cb8' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 769
{
"id" : "e3cc0bf7-192e-4d71-b1ee-64c0866f6cb8",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "019173a1-bebe-42a2-ba52-8fafb99e5ce8",
"auth0UserId" : "auth0-opaque-userId-5",
"identityProviderId" : "54d6b425-f6b9-4c92-8e79-fb9994e494a0",
"userIdentityId" : "e3cc0bf7-192e-4d71-b1ee-64c0866f6cb8"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 12964000,
"epochSecond" : 1784225646
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "John Doe",
"status" : "ACTIVE",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "UserIdentity"
}
Find User Identities
GET /user-identities
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities' -i -X GET
Example response
HTTP/1.1 200 OK
Link: <https://gateway.netFoundry.io/identity/v1/user-identities?page=1>; rel="next", <https://gateway.netFoundry.io/identity/v1/user-identities?page=5>; rel="last"
Content-Type: application/json
Content-Length: 2338
[ {
"id" : "05af8b0e-73bc-42a8-80e5-38a317f9d026",
"organizationId" : "9de582b9-bd2b-40ef-9118-722a011b40dc",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-88@acme.com",
"identityMappings" : [ {
"id" : "a34f5146-e346-4943-bf00-ffaef8b0d010",
"auth0UserId" : "auth0-opaque-userId-89",
"identityProviderId" : "c6a275e1-4caa-47bd-b8ba-3f478e38930d",
"userIdentityId" : "05af8b0e-73bc-42a8-80e5-38a317f9d026"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 436673000,
"epochSecond" : 1784225694
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "First Last",
"status" : "ACTIVE",
"tenantId" : "9de582b9-bd2b-40ef-9118-722a011b40dc",
"type" : "UserIdentity"
}, {
"id" : "0e431f5b-850d-4882-8a63-c69ff403c723",
"organizationId" : "fdbd4499-5d10-4ce1-947d-31d6eb44c7b6",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-101@acme.com",
"identityMappings" : [ {
"id" : "4ae8fd29-d92a-496d-8cde-c606efc86a5f",
"auth0UserId" : "auth0-opaque-userId-102",
"identityProviderId" : "78654d88-fac2-4c43-b0de-f7535688698c",
"userIdentityId" : "0e431f5b-850d-4882-8a63-c69ff403c723"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 788579000,
"epochSecond" : 1784225694
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "First Last",
"status" : "ACTIVE",
"tenantId" : "fdbd4499-5d10-4ce1-947d-31d6eb44c7b6",
"type" : "UserIdentity"
}, {
"id" : "17ec839e-3f49-469e-83ad-c8a9ec670d96",
"organizationId" : "9de582b9-bd2b-40ef-9118-722a011b40dc",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-83@acme.com",
"identityMappings" : [ {
"id" : "4a0a84ce-0d0f-4cce-9027-4b21615ac273",
"auth0UserId" : "auth0-opaque-userId-84",
"identityProviderId" : "c6a275e1-4caa-47bd-b8ba-3f478e38930d",
"userIdentityId" : "17ec839e-3f49-469e-83ad-c8a9ec670d96"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 427607000,
"epochSecond" : 1784225694
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "First Last",
"status" : "ACTIVE",
"tenantId" : "9de582b9-bd2b-40ef-9118-722a011b40dc",
"type" : "UserIdentity"
} ]
Get User Identity
GET /user-identities/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/e3cc0bf7-192e-4d71-b1ee-64c0866f6cb8' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 769
{
"id" : "e3cc0bf7-192e-4d71-b1ee-64c0866f6cb8",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "019173a1-bebe-42a2-ba52-8fafb99e5ce8",
"auth0UserId" : "auth0-opaque-userId-5",
"identityProviderId" : "54d6b425-f6b9-4c92-8e79-fb9994e494a0",
"userIdentityId" : "e3cc0bf7-192e-4d71-b1ee-64c0866f6cb8"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 12964000,
"epochSecond" : 1784225646
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "John Doe",
"status" : "ACTIVE",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "UserIdentity"
}
Get User Identity By Mapping
GET /user-identities/mapping/{auth0UserId}/{identityProviderId}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
auth0UserId |
String |
false |
|
identityProviderId |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/mapping/auth0-opaque-userId-5/54d6b425-f6b9-4c92-8e79-fb9994e494a0' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 769
{
"id" : "e3cc0bf7-192e-4d71-b1ee-64c0866f6cb8",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"firstName" : "John",
"lastName" : "Doe",
"email" : "john.doe@acme.com",
"identityMappings" : [ {
"id" : "019173a1-bebe-42a2-ba52-8fafb99e5ce8",
"auth0UserId" : "auth0-opaque-userId-5",
"identityProviderId" : "54d6b425-f6b9-4c92-8e79-fb9994e494a0",
"userIdentityId" : "e3cc0bf7-192e-4d71-b1ee-64c0866f6cb8"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 12964000,
"epochSecond" : 1784225646
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "John Doe",
"status" : "ACTIVE",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "UserIdentity"
}
Create Identity
POST /user-identities
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
tags |
Map |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"firstName" : "Jane",
"lastName" : "Doe",
"email" : "jane.doe@acme.com",
"tags" : null
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 539
{
"id" : "52592d5f-580e-4598-a83d-9423fceee62d",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"firstName" : "Jane",
"lastName" : "Doe",
"email" : "jane.doe@acme.com",
"identityMappings" : [ ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 870276000,
"epochSecond" : 1784225713
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "Jane Doe",
"status" : "ACTIVE",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "UserIdentity"
}
Update
PUT /user-identities/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
tags |
Map |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/a5eea609-ea88-48af-a67b-8e814e459bdb' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"firstName" : "Bobby",
"lastName" : "White",
"email" : "bobby.white@acme.com",
"tags" : null
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 781
{
"id" : "a5eea609-ea88-48af-a67b-8e814e459bdb",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"firstName" : "Bobby",
"lastName" : "White",
"email" : "bobby.white@acme.com",
"identityMappings" : [ {
"id" : "ffbf267f-a82c-49a9-8904-0f97c7fa3fa5",
"auth0UserId" : "auth0-opaque-userId-423",
"identityProviderId" : "54d6b425-f6b9-4c92-8e79-fb9994e494a0",
"userIdentityId" : "a5eea609-ea88-48af-a67b-8e814e459bdb"
} ],
"identityAudienceMappings" : [ ],
"active" : true,
"createdAt" : {
"nano" : 307169000,
"epochSecond" : 1784225713
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "Bobby White",
"status" : "ACTIVE",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "UserIdentity"
}
Activate Or Deactivate User Identity
PUT /user-identities/{id}/{action:activate|deactivate}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
|
action |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
firstName |
String |
true |
|
lastName |
String |
true |
|
String |
true |
||
identityMappings |
Array[Object] |
true |
|
identityMappings[].id |
String |
true |
|
identityMappings[].auth0UserId |
String |
true |
|
identityMappings[].identityProviderId |
String |
true |
|
identityMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings |
Array[Object] |
true |
|
identityAudienceMappings[].id |
String |
true |
|
identityAudienceMappings[].userIdentityId |
String |
true |
|
identityAudienceMappings[].oidcAudienceId |
String |
true |
|
identityAudienceMappings[].subject |
String |
true |
|
identityAudienceMappings[].active |
Boolean |
true |
|
identityAudienceMappings[].createdBy |
String |
true |
|
identityAudienceMappings[].createdAt |
Object |
true |
|
identityAudienceMappings[].deletedAt |
Object |
true |
|
identityAudienceMappings[].deletedBy |
String |
true |
|
identityAudienceMappings[].deleted |
Boolean |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
deletedAt |
Object |
true |
|
invited |
Boolean |
true |
|
tags |
Map |
true |
|
name |
String |
true |
|
status |
String |
true |
|
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/user-identities/4046f701-9788-4f49-91f6-96ce1b8379fc/deactivate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 781
{
"id" : "4046f701-9788-4f49-91f6-96ce1b8379fc",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"firstName" : "First",
"lastName" : "Last",
"email" : "random-426@acme.com",
"identityMappings" : [ {
"id" : "10c5f8ac-80e4-4440-bf9e-881b5e6d9793",
"auth0UserId" : "auth0-opaque-userId-427",
"identityProviderId" : "54d6b425-f6b9-4c92-8e79-fb9994e494a0",
"userIdentityId" : "4046f701-9788-4f49-91f6-96ce1b8379fc"
} ],
"identityAudienceMappings" : [ ],
"active" : false,
"createdAt" : {
"nano" : 478371000,
"epochSecond" : 1784225713
},
"deletedAt" : null,
"invited" : false,
"tags" : { },
"name" : "First Last",
"status" : "INACTIVE",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"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/d0367ad2-e407-47d0-bcd0-d957f4582f37/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/7a03329b-1c63-4eab-9eb7-3e7838fd18fb/mapping' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"auth0UserId" : "new-auth0-userId:8c8db7eb-1434-4552-b5a1-d8f8472c1f09",
"identityProviderId" : "16f10dda-d511-4f44-858a-1e6537b9560c"
}'
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 |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities' -i -X GET
Example response
HTTP/1.1 200 OK
Link: <https://gateway.netFoundry.io/identity/v1/api-account-identities?page=1>; rel="next", <https://gateway.netFoundry.io/identity/v1/api-account-identities?page=2>; rel="last"
Content-Type: application/json
Content-Length: 2190
[ {
"id" : "049482b6-7e0b-4e7b-b232-44724d98e645",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ClientId" : "006fb26f-fc82-4e81-9063-e655d928c4bb",
"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" : 70834000,
"epochSecond" : 1784225646
},
"updatedAt" : {
"nano" : 366218000,
"epochSecond" : 1784225649
},
"deletedAt" : null,
"tags" : { },
"email" : "no-reply@acme.com",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "ApiAccountIdentity"
}, {
"id" : "05bc562a-8b24-47e4-aa2c-be85a899ec54",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ClientId" : null,
"awsCognitoClientId" : "53fc2a53-d477-4758-8af7-675ec5dd9637|agyeielc",
"authenticationUrl" : "https://netfoundry-test-nqadpw.auth.us-east-1.amazoncognito.com/oauth2/token",
"name" : "Testing Limits",
"contactEmail" : "a@acme.com",
"description" : "description",
"active" : true,
"createdAt" : {
"nano" : 711834000,
"epochSecond" : 1784225653
},
"updatedAt" : null,
"deletedAt" : null,
"tags" : { },
"email" : "a@acme.com",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "ApiAccountIdentity"
}, {
"id" : "09addbb1-fafd-4f54-bc0c-9a2afbef3ddc",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ClientId" : null,
"awsCognitoClientId" : "82de037b-f321-41c2-9a1d-173c9cf270e5|mbksjyqf",
"authenticationUrl" : "https://netfoundry-test-tfdleu.auth.us-east-1.amazoncognito.com/oauth2/token",
"name" : "Test Rotation",
"contactEmail" : "hr.director@acme.com",
"description" : "description goes here",
"active" : true,
"createdAt" : {
"nano" : 824055000,
"epochSecond" : 1784225649
},
"updatedAt" : {
"nano" : 847277000,
"epochSecond" : 1784225649
},
"deletedAt" : null,
"tags" : { },
"email" : "hr.director@acme.com",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "ApiAccountIdentity"
} ]
Get Api Account Identity
GET /api-account-identities/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/049482b6-7e0b-4e7b-b232-44724d98e645' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 733
{
"id" : "049482b6-7e0b-4e7b-b232-44724d98e645",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ClientId" : "006fb26f-fc82-4e81-9063-e655d928c4bb",
"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" : 70834000,
"epochSecond" : 1784225646
},
"updatedAt" : {
"nano" : 366218000,
"epochSecond" : 1784225649
},
"deletedAt" : null,
"tags" : { },
"email" : "no-reply@acme.com",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "ApiAccountIdentity"
}
Get Api Account Identity By Mapping
GET /api-account-identities/mapping/{clientId}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
clientId |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/mapping/6092c4e9-4110-42da-8168-43935944a91b' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 698
{
"id" : "a9123684-becf-4bca-8a10-0d9c39b91504",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ClientId" : "6092c4e9-4110-42da-8168-43935944a91b",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "ACME Internal Service-37",
"contactEmail" : "service.admin-38@foo.com",
"description" : "updatable API Account description-39",
"active" : true,
"createdAt" : {
"nano" : 165552000,
"epochSecond" : 1784225686
},
"updatedAt" : null,
"deletedAt" : null,
"tags" : { },
"email" : "service.admin-38@foo.com",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "ApiAccountIdentity"
}
Create Api Account Identity
POST /api-account-identities
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
organizationId |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
grantDefaultRoles |
Boolean |
true |
|
provider |
String |
true |
Must be one of [Auth0, Cognito]. |
tags |
Map |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
apiAccountIdentity |
Object |
true |
|
apiAccountIdentity.id |
String |
true |
|
apiAccountIdentity.organizationId |
String |
true |
|
apiAccountIdentity.auth0ClientId |
String |
true |
|
apiAccountIdentity.awsCognitoClientId |
String |
true |
|
apiAccountIdentity.authenticationUrl |
String |
true |
|
apiAccountIdentity.name |
String |
true |
|
apiAccountIdentity.contactEmail |
String |
true |
|
apiAccountIdentity.description |
String |
true |
|
apiAccountIdentity.active |
Boolean |
true |
|
apiAccountIdentity.createdAt |
Object |
true |
|
apiAccountIdentity.updatedAt |
Object |
true |
|
apiAccountIdentity.deletedAt |
Object |
true |
|
apiAccountIdentity.tags |
Map |
true |
|
apiAccountIdentity.email |
String |
true |
|
apiAccountIdentity.tenantId |
String |
true |
Deprecated.. |
apiAccountIdentity.type |
String |
true |
|
clientId |
String |
true |
|
password |
String |
true |
|
authenticationUrl |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"name" : "HR Bridge Service",
"contactEmail" : "hr.director@acme.com",
"description" : "description goes here",
"grantDefaultRoles" : true,
"provider" : "Cognito",
"tags" : null
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 958
{
"apiAccountIdentity" : {
"id" : "5a849955-9a42-4c78-95f2-447dd401c7af",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ClientId" : null,
"awsCognitoClientId" : "82de037b-f321-41c2-9a1d-173c9cf270e5|gnvnnefi",
"authenticationUrl" : "https://netfoundry-test-tfdleu.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" : 157692000,
"epochSecond" : 1784225651
},
"updatedAt" : null,
"deletedAt" : null,
"tags" : { },
"email" : "hr.director@acme.com",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "ApiAccountIdentity"
},
"clientId" : "gnvnnefi",
"password" : "grexlhvwonnfqgdlfkqwgscs",
"authenticationUrl" : "https://netfoundry-test-tfdleu.auth.us-east-1.amazoncognito.com/oauth2/token"
}
Update Identity Info
PUT /api-account-identities/{id}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
tags |
Map |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/378ef9fe-cf3b-4faa-9c3a-93a4dd511c26' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"name" : "Robot",
"contactEmail" : "robot@acme.com",
"description" : "description here.",
"tags" : null
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 696
{
"id" : "378ef9fe-cf3b-4faa-9c3a-93a4dd511c26",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ClientId" : "230bd9de-57a2-4062-9e81-f17a2cac30b6",
"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" : 119406000,
"epochSecond" : 1784225646
},
"updatedAt" : {
"nano" : 851118000,
"epochSecond" : 1784225646
},
"deletedAt" : null,
"tags" : { },
"email" : "robot@acme.com",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "ApiAccountIdentity"
}
Activate Or Deactivate Api Account Identity
PUT /api-account-identities/{id}/{action:activate|deactivate}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
|
action |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
organizationId |
String |
true |
|
auth0ClientId |
String |
true |
|
awsCognitoClientId |
String |
true |
|
authenticationUrl |
String |
true |
|
name |
String |
true |
|
contactEmail |
String |
true |
|
description |
String |
true |
|
active |
Boolean |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedAt |
Object |
true |
|
tags |
Map |
true |
|
String |
true |
||
tenantId |
String |
true |
Deprecated.. |
type |
String |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/api-account-identities/fefb14b9-5c38-461d-aac0-fe21516048ee/deactivate' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 755
{
"id" : "fefb14b9-5c38-461d-aac0-fe21516048ee",
"organizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"auth0ClientId" : "399b8de3-6177-4d39-ba51-5ffc55715377",
"awsCognitoClientId" : null,
"authenticationUrl" : "http://127.0.0.1:1234/IdP/OAuth2/login",
"name" : "ACME Internal Service-28",
"contactEmail" : "service.admin-29@foo.com",
"description" : "updatable API Account description-30",
"active" : false,
"createdAt" : {
"nano" : 895986000,
"epochSecond" : 1784225685
},
"updatedAt" : {
"nano" : 914335000,
"epochSecond" : 1784225685
},
"deletedAt" : null,
"tags" : { },
"email" : "service.admin-29@foo.com",
"tenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"type" : "ApiAccountIdentity"
}
Invitation
Find Invitations
GET /invitations
Query parameters
Supports standard paging query parameters.
| Parameter | Type | Optional | Description |
|---|---|---|---|
fromIdentityId |
Object |
true |
|
toTenantId |
Object |
true |
Deprecated.. |
toOrganizationId |
Object |
true |
|
invitedEmailAddress |
String |
true |
|
targetIdentityId |
Object |
true |
|
states |
Object |
true |
Must be one of [Open, Accepted, Declined, Expired, Revoked]. |
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1877
[ {
"id" : "0872443f-0634-447e-b79f-fe721365bf79",
"fromIdentityId" : "e3cc0bf7-192e-4d71-b1ee-64c0866f6cb8",
"toOrganizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"invitedEmailAddress" : "new.employee-243@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 573851000,
"epochSecond" : 1784830499
},
"targetUserIdentityId" : "89a179f2-f3a1-4cd2-a5b0-4a212b31b666",
"accepted" : false,
"revokedAt" : null,
"responseReceivedAt" : {
"nano" : 596082000,
"epochSecond" : 1784225699
},
"state" : "Declined",
"toTenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf"
}, {
"id" : "0a629483-8247-44d2-982c-8d477e016aa4",
"fromIdentityId" : "b7fc6815-9329-422d-bfd7-e551e1455dc2",
"toOrganizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"invitedEmailAddress" : "new.employee@acme.com",
"invitationHost" : "acme.cloudziti.io",
"expiration" : {
"nano" : 719246000,
"epochSecond" : 1784830499
},
"targetUserIdentityId" : "90368445-3b64-4409-b8be-bb3d6348f521",
"accepted" : null,
"revokedAt" : null,
"responseReceivedAt" : null,
"state" : "Open",
"toTenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf"
}, {
"id" : "b56bed62-d6ae-40a1-974c-e1954c06b051",
"fromIdentityId" : "e3cc0bf7-192e-4d71-b1ee-64c0866f6cb8",
"toOrganizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"invitedEmailAddress" : "new.employee-250@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 972992000,
"epochSecond" : 1784830499
},
"targetUserIdentityId" : "6c33358d-9fed-4a2f-b053-e80f665a337d",
"accepted" : null,
"revokedAt" : {
"nano" : 993537000,
"epochSecond" : 1784225699
},
"responseReceivedAt" : {
"nano" : 993538000,
"epochSecond" : 1784225699
},
"state" : "Revoked",
"toTenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf"
} ]
Get Invitation By Id
GET /invitations/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/c1305aa4-a391-41d0-b55e-eb19876501a6' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 564
{
"id" : "c1305aa4-a391-41d0-b55e-eb19876501a6",
"fromIdentityId" : "e3cc0bf7-192e-4d71-b1ee-64c0866f6cb8",
"toOrganizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"invitedEmailAddress" : "new.employee-263@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 420499000,
"epochSecond" : 1784830500
},
"targetUserIdentityId" : "e5d6e919-2c7a-4ba4-bf21-0d5a2b075f9f",
"accepted" : null,
"revokedAt" : null,
"responseReceivedAt" : null,
"state" : "Open",
"toTenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf"
}
Create Invitation
POST /invitations
Authorization
This endpoint requires:
-
createaction on thisinvitationresource. -
readaction on theuser-identityresource identified by thetargetUserIdentityIdproperty.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationUrl |
String |
true |
|
targetUserIdentityId |
String |
true |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"toOrganizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"invitedEmailAddress" : "new.employee@acme.com",
"invitationUrl" : "http://acme.cloudziti.io/invitation",
"targetUserIdentityId" : "90368445-3b64-4409-b8be-bb3d6348f521"
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 565
{
"id" : "0a629483-8247-44d2-982c-8d477e016aa4",
"fromIdentityId" : "b7fc6815-9329-422d-bfd7-e551e1455dc2",
"toOrganizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"invitedEmailAddress" : "new.employee@acme.com",
"invitationHost" : "acme.cloudziti.io",
"expiration" : {
"nano" : 719246000,
"epochSecond" : 1784830499
},
"targetUserIdentityId" : "90368445-3b64-4409-b8be-bb3d6348f521",
"accepted" : null,
"revokedAt" : null,
"responseReceivedAt" : null,
"state" : "Open",
"toTenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf"
}
Respond To Invitation
PUT /invitations/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}/{action:accept|decline}
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
|
action |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/0ab5d43c-2445-4eb4-a54c-787d7e460fa9/decline' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 625
{
"id" : "0ab5d43c-2445-4eb4-a54c-787d7e460fa9",
"fromIdentityId" : "e3cc0bf7-192e-4d71-b1ee-64c0866f6cb8",
"toOrganizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"invitedEmailAddress" : "new.employee-255@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 230758000,
"epochSecond" : 1784830500
},
"targetUserIdentityId" : "4d3ff21c-486b-411e-a130-99d9ea7b84ec",
"accepted" : false,
"revokedAt" : null,
"responseReceivedAt" : {
"nano" : 247948000,
"epochSecond" : 1784225700
},
"state" : "Declined",
"toTenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf"
}
Revoke Invitation
PUT /invitations/{id:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}}/revoke
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
id |
Object |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
fromIdentityId |
String |
true |
|
toOrganizationId |
String |
true |
|
invitedEmailAddress |
String |
true |
|
invitationHost |
String |
true |
|
expiration |
Object |
true |
|
targetUserIdentityId |
String |
true |
|
accepted |
Boolean |
true |
|
revokedAt |
Object |
true |
|
responseReceivedAt |
Object |
true |
|
state |
String |
true |
|
toTenantId |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/a3507e49-bd09-4add-877f-74ae6a38e5a6/revoke' -i -X PUT
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 679
{
"id" : "a3507e49-bd09-4add-877f-74ae6a38e5a6",
"fromIdentityId" : "e3cc0bf7-192e-4d71-b1ee-64c0866f6cb8",
"toOrganizationId" : "8720a542-11b2-4622-b737-8a7123ed4fcf",
"invitedEmailAddress" : "new.employee-271@acme.com",
"invitationHost" : "cloudziti.io",
"expiration" : {
"nano" : 579747000,
"epochSecond" : 1784830500
},
"targetUserIdentityId" : "64432b15-9966-4863-8efc-643ebb0e00e2",
"accepted" : null,
"revokedAt" : {
"nano" : 591857000,
"epochSecond" : 1784225700
},
"responseReceivedAt" : {
"nano" : 591859000,
"epochSecond" : 1784225700
},
"state" : "Revoked",
"toTenantId" : "8720a542-11b2-4622-b737-8a7123ed4fcf"
}
Support
Create Support Request
POST /nfconsole/support/requests
Authorization
Authorization not required for this request.
Request fields
| Path | Type | Optional | Description |
|---|---|---|---|
name |
String |
true |
|
String |
true |
||
selectedOrganizationId |
String |
true |
|
selectedNetworkId |
String |
true |
|
subject |
String |
true |
|
comment |
String |
true |
|
type |
String |
true |
Must be one of [problem, incident, question, task]. |
priority |
String |
true |
Must be one of [urgent, high, normal, low]. |
severity |
String |
true |
Must be one of [Severity1, Severity2, Severity3]. |
recentErrorMessages |
Array[String] |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/nfconsole/support/requests' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"name" : "Curious George",
"email" : "george@curious-client.com",
"selectedOrganizationId" : null,
"selectedNetworkId" : null,
"subject" : "Sales Contact Request",
"comment" : "This looks great! I'd like a sales rep to contact me.",
"type" : "question",
"priority" : "high",
"severity" : "Severity3",
"recentErrorMessages" : null
}'
Example response
HTTP/1.1 200 OK
Invitation Flow
Get Invitation By Key
GET /invitations/key/{key:\p{Alnum}{36}}
Authorization
Authorization not required for this request.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
key |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
fromIdentity |
Object |
true |
|
fromIdentity.name |
String |
true |
|
fromIdentity.email |
String |
true |
|
targetIdentity |
Object |
true |
|
targetIdentity.name |
String |
true |
|
targetIdentity.email |
String |
true |
|
invitedEmailAddress |
String |
true |
|
toOrganizationName |
String |
true |
|
toOrganizationLabel |
String |
true |
|
expiration |
Object |
true |
|
accepted |
Boolean |
true |
|
state |
String |
true |
Must be one of [Open, Accepted, Declined, Expired, Revoked]. |
toTenantName |
String |
true |
Deprecated.. |
toTenantLabel |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/key/spYSCU0dp5sgP9uMppydhAPeYqy6eudVt6vB' -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-305@acme.com"
},
"invitedEmailAddress" : "new.employee-307@acme.com",
"toOrganizationName" : "ACME International, Inc.",
"toOrganizationLabel" : "ACME-280",
"expiration" : {
"nano" : 874312000,
"epochSecond" : 1784830505
},
"accepted" : null,
"state" : "Open",
"toTenantName" : "ACME International, Inc.",
"toTenantLabel" : "ACME-280"
}
Decline Invitation
PUT /invitations/key/{key:\p{Alnum}{36}}/decline
Authorization
Authorization not required for this request.
Path parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
key |
String |
false |
Response fields
| Path | Type | Optional | Description |
|---|---|---|---|
fromIdentity |
Object |
true |
|
fromIdentity.name |
String |
true |
|
fromIdentity.email |
String |
true |
|
targetIdentity |
Object |
true |
|
targetIdentity.name |
String |
true |
|
targetIdentity.email |
String |
true |
|
invitedEmailAddress |
String |
true |
|
toOrganizationName |
String |
true |
|
toOrganizationLabel |
String |
true |
|
expiration |
Object |
true |
|
accepted |
Boolean |
true |
|
state |
String |
true |
Must be one of [Open, Accepted, Declined, Expired, Revoked]. |
toTenantName |
String |
true |
Deprecated.. |
toTenantLabel |
String |
true |
Deprecated.. |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/invitations/key/nh8Dh2OsOChB5OzzILKvViGEHgIBSy42vkIF/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-290@acme.com"
},
"invitedEmailAddress" : "new.employee-292@acme.com",
"toOrganizationName" : "ACME International, Inc.",
"toOrganizationLabel" : "ACME-280",
"expiration" : {
"nano" : 276941000,
"epochSecond" : 1784830505
},
"accepted" : false,
"state" : "Declined",
"toTenantName" : "ACME International, Inc.",
"toTenantLabel" : "ACME-280"
}
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/2AEBw6sSp4iOmUN6XeFOhIDIOlM7QWRWCBYN/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.eyJpYXQiOjE3ODQyMjU3MDUsImV4cCI6MTc4NDIyNjYwNSwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2lkZW50aXR5L3YxIiwiYXVkIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2lkZW50aXR5L3YxIiwiZmxvdyI6Imludml0YXRpb24iLCJpbnZpdGF0aW9uSWQiOiIwZjMwOThhNi0zNGViLTQwMTMtYjhlOS05NTgyZGJkMWQ2MWQiLCJ0ZW5hbnRMYWJlbCI6IkFDTUUtMjgwIiwiYXV0aDBDb25uZWN0aW9uSWRzIjpbImF1dGgwLW9wYXF1ZS1jb25uZWN0aW9uSWQtMjgyIiwiYXV0aDAtb3BhcXVlLWNvbm5lY3Rpb25JZC0yODEiXSwicmVkaXJlY3RVcmwiOiJodHRwOi8vY29uc29sZS5uZmFkbWluLm5ldGZvdW5kcnkuaW8vaW52aXRhdGlvbiJ9.fB0vhpeBc_aVG_BfuER5DPNbb97TkHrHFl5FY0M9ZwqzYaxN0uEUKnXV2iuzOuTJSyEj-96WhEtegifYZD2HKwqG-ZV9vJNXrERNFBclPcW2Ape9-ZcuLfIUv-8oj4rZcOKPn8pKTWj4_wXsPXUd_pChqmcEs2XZscNEZIdFQ7f_sCLeJWyWpuEJgGwr10mjkUKRDVt9N3ciGsb45jQ4owwTqCMEtuTwtGqpYXJUB4jXHfWGeUqjbxvPPLYzTqLxlZFVC3kMmGIMZzuHQQdFvZWFAW2xOXEm6MnNub0PPMX8sAP5Nn9ZlKRNXLnXraPaE6BaeTpqB1EFQe9Fgzk4Cg",
"auth0ConnectionIds" : [ "auth0-opaque-connectionId-282", "auth0-opaque-connectionId-281" ]
}
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.eyJpYXQiOjE3ODQyMjU3MDYsImV4cCI6MTc4NDIyNjYwNiwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgwL2lkZW50aXR5L3YxIiwiYXVkIjoiaHR0cHM6Ly9uZXRmb3VuZHJ5LXNhbmRib3guYXV0aDAuY29tLyIsImZsb3ciOiJsb2dpbiIsInRlbmFudExhYmVsIjoiQUNNRS0yIiwiYXV0aDBDb25uZWN0aW9uSWRzIjpbImF1dGgwLW9wYXF1ZS1jb25uZWN0aW9uSWQtMyIsImF1dGgwLW9wYXF1ZS1jb25uZWN0aW9uSWQtNCJdLCJyZWRpcmVjdFVybCI6Imh0dHA6Ly9jb25zb2xlLm5mYWRtaW4ubmV0Zm91bmRyeS5pby9pbnZpdGF0aW9uIn0.h6TmczuwrHbLZ4WSJAiJWsAsV5P1Zn6sRUluoSuZ7H185bx6Un84zdRMabXh22CmHdAhu0GKLGzTnu0ncifzyAoyXVnGVAsqqdFPPiGQ9jhvD1Aau542Wtl4aB_yjguKWe8xQ-Qul6ZR0Rq1IXhPUoJMza4gcfG1K-uVSj5os3_WhlO9gbY56JDXXYZZsNq1Tu_xmwI8N1tamGoeix71ouDhhq36OQqmrpl5sOXtAsvlysyMXcmOpCkzkXL3K39iirrsahRrB-wbbGymAqAtqpAGvfp7um4clLIwNhd13O-YFBjg0l8BsCDYJcUUXCrBhT3B7i_BaeU-QzExQjLzog",
"auth0ConnectionIds" : [ "auth0-opaque-connectionId-3", "auth0-opaque-connectionId-4" ]
}
Identity Preference Flow
Find Identity Preferences
GET /identity-preferences
Response fields
Standard paging response where content field is list of following objects:
| Path | Type | Optional | Description |
|---|---|---|---|
id |
String |
true |
|
userIdentityId |
String |
true |
|
preferences |
Object |
true |
|
createdBy |
String |
true |
|
createdAt |
Object |
true |
|
updatedAt |
Object |
true |
|
deletedBy |
String |
true |
|
deletedAt |
Object |
true |
Example request
$ curl 'https://gateway.netFoundry.io/identity/v1/identity-preferences' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1296
[ {
"id" : "60de61e3-a894-48da-8474-a26ab3eccffe",
"userIdentityId" : "251f89a3-036f-4381-a384-01ae76e8de87",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "251f89a3-036f-4381-a384-01ae76e8de87",
"createdAt" : {
"nano" : 119115000,
"epochSecond" : 1784225696
},
"updatedAt" : {
"nano" : 119115000,
"epochSecond" : 1784225696
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "88a16f69-a8e4-4918-8db3-ed9f7997e009",
"userIdentityId" : "a33824bf-2219-4ace-9b52-628f0f609f41",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "a33824bf-2219-4ace-9b52-628f0f609f41",
"createdAt" : {
"nano" : 53276000,
"epochSecond" : 1784225696
},
"updatedAt" : {
"nano" : 53276000,
"epochSecond" : 1784225696
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "90a14dad-eef6-437e-a35a-0a92c3076c1d",
"userIdentityId" : "bdc61d55-997c-4474-8eb1-db33eedd4968",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "bdc61d55-997c-4474-8eb1-db33eedd4968",
"createdAt" : {
"nano" : 955210000,
"epochSecond" : 1784225695
},
"updatedAt" : {
"nano" : 955210000,
"epochSecond" : 1784225695
},
"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/526e0e6d-ab74-4967-88d0-a055682193d7' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 415
{
"id" : "526e0e6d-ab74-4967-88d0-a055682193d7",
"userIdentityId" : "dc5ee70b-cd6c-4223-96e6-c25f64747dad",
"preferences" : {
"hello" : "world"
},
"createdBy" : "dc5ee70b-cd6c-4223-96e6-c25f64747dad",
"createdAt" : {
"nano" : 310468000,
"epochSecond" : 1784225697
},
"updatedAt" : {
"nano" : 310468000,
"epochSecond" : 1784225697
},
"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" : "3a15bf93-074f-4534-98b7-9862772fa7ac",
"userIdentityId" : "431a6f09-cf37-4292-b6b4-09e8ac524c31",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "431a6f09-cf37-4292-b6b4-09e8ac524c31",
"createdAt" : {
"nano" : 593661000,
"epochSecond" : 1784225696
},
"updatedAt" : {
"nano" : 593661000,
"epochSecond" : 1784225696
},
"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/cad17b23-ff68-4e98-86bf-386bb386e902' -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" : "cad17b23-ff68-4e98-86bf-386bb386e902",
"userIdentityId" : "9b2764e3-3394-46d4-a6fd-960f73e18adc",
"preferences" : {
"updated" : "my second preference."
},
"createdBy" : "9b2764e3-3394-46d4-a6fd-960f73e18adc",
"createdAt" : {
"nano" : 320336000,
"epochSecond" : 1784225698
},
"updatedAt" : {
"nano" : 345768000,
"epochSecond" : 1784225698
},
"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/64f2591f-c30d-4be1-8b36-ac874dc842f9' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 505
{
"id" : "64f2591f-c30d-4be1-8b36-ac874dc842f9",
"userIdentityId" : "fd847213-0036-478f-9510-3de9a5f50dbe",
"preferences" : {
"hello" : "world"
},
"createdBy" : "fd847213-0036-478f-9510-3de9a5f50dbe",
"createdAt" : {
"nano" : 913838000,
"epochSecond" : 1784225696
},
"updatedAt" : {
"nano" : 927418000,
"epochSecond" : 1784225696
},
"deletedBy" : "b6d4e471-7694-48ea-b1c3-b0221f52d45c",
"deletedAt" : {
"nano" : 926000000,
"epochSecond" : 1784225696
}
}
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" : "46aa8b77-bfe7-415a-a8c7-6c692e868b25",
"organizationId" : "5b611ca8-9bfa-442a-9f97-6014cd244c5a",
"preferences" : {
"hello" : "world"
},
"createdBy" : "d2c4c712-0d29-422a-9b56-7ad5b79bacc7",
"createdAt" : {
"nano" : 774663000,
"epochSecond" : 1784225710
},
"updatedAt" : {
"nano" : 774663000,
"epochSecond" : 1784225710
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "68a30b8e-8e36-41a0-b912-c6e580919705",
"organizationId" : "440bd9d7-0d66-40b6-874d-7dcadd7321eb",
"preferences" : {
"hello" : "world"
},
"createdBy" : "4ed3bf30-dbd1-4317-847d-93801cb38c62",
"createdAt" : {
"nano" : 970774000,
"epochSecond" : 1784225710
},
"updatedAt" : {
"nano" : 970774000,
"epochSecond" : 1784225710
},
"deletedBy" : null,
"deletedAt" : null
}, {
"id" : "a66d9a13-f395-4872-a7b0-f95920ee3140",
"organizationId" : "495c585c-461f-4290-878f-8c9290123f70",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "58c4027e-9a3d-4ef2-9e20-c1c6342b2209",
"createdAt" : {
"nano" : 871264000,
"epochSecond" : 1784225710
},
"updatedAt" : {
"nano" : 871264000,
"epochSecond" : 1784225710
},
"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/68a30b8e-8e36-41a0-b912-c6e580919705' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 415
{
"id" : "68a30b8e-8e36-41a0-b912-c6e580919705",
"organizationId" : "440bd9d7-0d66-40b6-874d-7dcadd7321eb",
"preferences" : {
"hello" : "world"
},
"createdBy" : "4ed3bf30-dbd1-4317-847d-93801cb38c62",
"createdAt" : {
"nano" : 970774000,
"epochSecond" : 1784225710
},
"updatedAt" : {
"nano" : 970774000,
"epochSecond" : 1784225710
},
"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" : "495c585c-461f-4290-878f-8c9290123f70",
"preferences" : {
"first" : "my first preference."
}
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 430
{
"id" : "a66d9a13-f395-4872-a7b0-f95920ee3140",
"organizationId" : "495c585c-461f-4290-878f-8c9290123f70",
"preferences" : {
"first" : "my first preference."
},
"createdBy" : "58c4027e-9a3d-4ef2-9e20-c1c6342b2209",
"createdAt" : {
"nano" : 871264000,
"epochSecond" : 1784225710
},
"updatedAt" : {
"nano" : 871264000,
"epochSecond" : 1784225710
},
"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/193714dd-6279-44b4-ba83-30ac45eb4611' -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" : "193714dd-6279-44b4-ba83-30ac45eb4611",
"organizationId" : "38ba5ee6-303f-4aea-9a7d-e29e3661b4b5",
"preferences" : {
"updated" : "my second preference."
},
"createdBy" : "c55f138a-6c8d-4d56-b33c-026fc28ed9c1",
"createdAt" : {
"nano" : 127974000,
"epochSecond" : 1784225711
},
"updatedAt" : {
"nano" : 144885000,
"epochSecond" : 1784225711
},
"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/e938764c-9233-46b6-a1aa-a7137a53ebe3' -i -X DELETE
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 505
{
"id" : "e938764c-9233-46b6-a1aa-a7137a53ebe3",
"organizationId" : "65cc2d7b-16c4-4755-b390-3b828d746fa7",
"preferences" : {
"hello" : "world"
},
"createdBy" : "66e4744b-0931-4854-ab91-bcd2342b9cab",
"createdAt" : {
"nano" : 914098000,
"epochSecond" : 1784225710
},
"updatedAt" : {
"nano" : 927291000,
"epochSecond" : 1784225710
},
"deletedBy" : "69781cf5-4d54-4831-a3ef-f5e684ed1e50",
"deletedAt" : {
"nano" : 926000000,
"epochSecond" : 1784225710
}
}