Introduction

This is the NetFoundry Auth service

Overview

HTTP verbs

NetFoundry adheres closely to standard HTTP and REST conventions in its use of HTTP verbs.

Verb Usage

GET

Used to retrieve a resource

POST

Used to create a new resource

PUT

Used to update an existing resource, full updates only

DELETE

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

200 OK

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.

201 Created

The request has been fulfilled and resulted in a new resource being created.

202 Accepted

The request has been accepted and is being processed asynchronously Standard response for successful HTTP requests which invoke back-end services.

204 No Content

The server successfully processed the request, but is not returning any content.

400 Bad Request

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).

401 Unauthorized

The request lacks valid authentication credentials for the target resource.

403 Forbidden

The request is authenticated with valid credentials however that set of credentials is not authorized to access this resource.

404 Not Found

The requested resource could not be found but may be available again in the future. Subsequent requests by the client are permissible.

Pagination

Paginated services will accept the following optional request parameters:

Table 1. Request parameters
Path Type Optional Description

page

Integer

true

Page you want to retrieve, 0 indexed and defaults to 0.

size

Integer

true

Size of the page you want to retrieve, defaults to 1000.

sort

String

true

Properties that should be sorted by in the format property,property(,ASC|DESC). Default sort direction is ascending. Use multiple sort parameters if you want to switch directions, e.g. ?sort=firstname&sort=lastname,asc.

Pagination response has following structure:

Table 2. Response structure
Path Type Optional Description

content

Array[Object]

false

Actual items.

totalElements

Integer

false

Total count.

totalPages

Integer

false

Total pages with current page size.

last

Boolean

false

If this page is the last one.

numberOfElements

Integer

false

Actual size of content array (number of items).

first

Boolean

false

If this page is the first one.

sort

Object

true

Sort information object.

size

Integer

false

Requested size of the page.

number

Integer

false

Page number.

empty

booloean

false

If this page is empty.

Authorization

Masquerade

POST /masquerade

Exchange a NetFoundry token with a service identity for a NetFoundry token with a user identity.

Authorization

Authorization not required for this request.

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

identityId

String

true

Must not be null.

audience

String

true

Must not be empty.
Must not be null.

claims

Map

true

Must not be null.

Response fields

Path Type Optional Description

token

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/masquerade' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJuMnczN0V1ZlJ2QVpDSE1tcGdGUFJ3IiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImM0NjczOTFhLTFiOGYtNDk3NS1hYTE4LTk1YTFkYjEyMjU1NSIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NiwiZXhwIjoxNzMwODI3NDY2LCJncmFudHMtc3VwZXIiOiJbe1wiaWRcIjpcImYyZmYwNTdkLWM2MTUtNDA3My04MTJjLWE2NjZhN2I2ZDBkN1wiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg2Nn1dIiwiZ3JhbnRzLWN1c3RvbSI6IltdIiwiZ3JhbnRzLXB1YmxpYyI6Ilt7XCJpZFwiOlwiNTVkNTIwNjMtMTEyYi00ZmM5LTg4NmUtYmFiOTFkNjUxYjc2XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODI2fSx7XCJpZFwiOlwiYWM4ZDgxMGMtZTIwZC00MDhlLWJiNzMtMDA2NWIyZmFjMjlkXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODMwfSx7XCJpZFwiOlwiN2JlM2EzODEtMGZhYy00OGEzLTg0OGItMGZjZDNjZTdlNjdhXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODI5fSx7XCJpZFwiOlwiNTc0NDc5MDItNzhhZC00ZmI1LTk4OWUtOGJhNzJiOWFiZDRlXCIsXC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2ClbdqDAx4aXCziWW7dFkEkmrEsPeJwWBZuCOwG64ESfeu6-dxjhhle5qmUC98neKvIAYI6j2fzfotc84tvavnkj8BjgIpzvRNpl8ZnhOM4VEajr5vh0yQpQk9g8RwfKCTb7BKLV-dQnOCG2-b-mPVmO7X08RKQ65myiOYY6rJJ6P1kMTSUEibMlHugTGI7DMXgzKiaNb8vmTrQhYaoL2WBQ' \
    -d '{"identityId":"b65724c5-4a88-4c69-a712-f8c1eabafb69","audience":"io.netfoundry.test","claims":{}}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2262

{
  "token" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJTV19OeEl2YjIwaTE1RU9abTNJeTZRIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImI2NTcyNGM1LTRhODgtNGM2OS1hNzEyLWY4YzFlYWJhZmI2OSIsImF1ZCI6ImlvLm5ldGZvdW5kcnkudGVzdCIsImlhdCI6MTczMDgyMzg2NiwiZXhwIjoxNzMwODI0MTY2LCJncmFudHMtc3VwZXIiOiJbe1wiaWRcIjpcIjIzNDk0ZjQxLWVjNjgtNDI0OS04OWNlLTYyNGM3MTEzMTliY1wiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg0NX0se1wiaWRcIjpcImU1NjM1MGZiLWM4ZGMtNGM5MC04ZWUyLTUzMjdiMjk4NTViOFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg2NX1dIiwiZ3JhbnRzLWN1c3RvbSI6IltdIiwiZ3JhbnRzLXB1YmxpYyI6Ilt7XCJpZFwiOlwiNTVkNTIwNjMtMTEyYi00ZmM5LTg4NmUtYmFiOTFkNjUxYjc2XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODI2fSx7XCJpZFwiOlwiYWM4ZDgxMGMtZTIwZC00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tYzA3N2M0Mzg1YTEyXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODI3fV0iLCJncmFudHMtYWN0aW9uIjoiW10iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.I4VK3ys1inLa08EVyz0GgsE-4xzPO2-5GxgH2DVQFgsaZO5Wctz6ie92ub8riHj-QXgEanAEuTc59CHWcTCRRVCNdzBJOnyuJrwc-Nglo7WINbKpE1bc6UxENIHpdtwGilMDg1uGcG_KynuC7q-YwQWszZPPSTPggCpEELQpOGM6zYtYp94yW1GjfrsbaVyzL1lrvXVYepP75CskVAjWGStPsfO_t2j3FnG5XrDKTCfA1HQxn892VOd2-dy3S71e5ZfU2p_sw9UgjKmpkVfFc3USRfiGBV3FRzn0OQ07XUos085NDiPJUp4VpieuZ4ngbLJVU3Whe8pXbM1169ES4A"
}

Core Authorization Resources

Domains

Find Domains

GET /domains

Returns a set of {@link Domain}s that the client is authorized to read.

Authorization

This endpoint requires read action on the domain resource type.

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].name

String

true

A human friendly name which can be used for UX purposes.

Must not be null.
Size must be between 1 and 256 inclusive.

[].code

String

true

A globally unique value that can be used by code to namespace other values which only have to be unique within a domain, such as a resource’s key. This value must be formatted as an inverse domain name. For example, "io.netfoundry.authorization" for the colloquial 'authorization' domain.

Must match the regular expression [0-9a-zA-Z.]+.
Must not be null.
Size must be between 1 and 128 inclusive.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link Domain} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link Domain} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/domains' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMx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ZDE3LWIyNGMtNGVlOS1hZDNlLTU2ODk5YWY1M2VlOFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcIjhmOGE3OTllLTA1MzMtNGU4My1iZThiLThjMTNkM2Y3NDFhMFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN30se1wiaWRcIjpcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiYTYyNjJmOTItODZhZS00YzYwLWEzYzctOTdkYzFlMzZmMzc5XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODU3fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.iuVvghMeaQBz_H67g617zWSF5D4s4Ui6L8F9JM_UbnkmTaZo1lWEyNdrdaaIGBZshKwT4NVz9ij9brhFytEvPRxyprr9XF7lojTbMtyGIswdvUaGiGFwvxfVijhxwvRVizHntq3QlfmscAYtlSZLtn8TSXjFfDCTcXEVlHy0bkgk-n-uZj8FzaJaMdp43E7cLSYkh3dV9bh9v-rK4tXNN-WiyMyuAaHBYsFv-A8J2VUQ3zVHDoN0EerAOkIMmlcVJ8fTtinRONqNkcd3Ziir0R9oaRjFIzM_nnBbJMxYsHfBr2er2xB1An42ylZJYiUS5-OZ2eWE5XwjYtfCSSKK1Q'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 865

[ {
  "id" : "b67a42c9-85a0-40a5-b8cf-81bcf902340c",
  "name" : "Billing",
  "code" : "io.netfoundry.billing",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:50.565500Z",
  "updatedAt" : "2024-11-05T16:23:50.565500Z",
  "_title" : "Billing"
}, {
  "id" : "c678c454-9a7f-4eb5-9845-1229fc5118c6",
  "name" : "Test Domain 3",
  "code" : "test.domain.3",
  "createdBy" : "9e9aaa82-95b0-4eb7-ad7b-e9f54cadfc9a",
  "createdAt" : "2024-11-05T16:24:14.346294Z",
  "updatedAt" : "2024-11-05T16:24:14.346294Z",
  "_title" : "Test Domain 3"
}, {
  "id" : "cdea70ee-a41f-4f0a-b6e9-001541136147",
  "name" : "Test Domain 6",
  "code" : "test.domain.6",
  "createdBy" : "9e9483d0-e919-4d09-ac62-af1e7d0fa4bb",
  "createdAt" : "2024-11-05T16:24:16.580277Z",
  "updatedAt" : "2024-11-05T16:24:16.580277Z",
  "_title" : "Test Domain 6"
} ]

Get Domain

GET /domains/{idOrCode}

Authorization

This endpoint requires read action on the domain resource type.

Path parameters

Parameter Type Optional Description

idOrCode

String

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

name

String

true

A human friendly name which can be used for UX purposes.

Must not be null.
Size must be between 1 and 256 inclusive.

code

String

true

A globally unique value that can be used by code to namespace other values which only have to be unique within a domain, such as a resource’s key. This value must be formatted as an inverse domain name. For example, "io.netfoundry.authorization" for the colloquial 'authorization' domain.

Must match the regular expression [0-9a-zA-Z.]+.
Must not be null.
Size must be between 1 and 128 inclusive.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link Domain} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link Domain} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/domains/0fb753ce-fdd8-40c8-ae0e-79d2c43622b4' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiIzY0w2QnU2SEY1azdEMzJzdmdUNlRBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjhhMTQ0OTViL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NGU4My1iZThiLThjMTNkM2Y3NDFhMFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN30se1wiaWRcIjpcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiYjcyY2E3MDYtZjJhZC00M2U3LThhYTctMTcxOWJmYzVmMWY2XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODU3fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.dfHkHuGC2IfwS3-z5w7SjUUygdM4A7lImMWv5dlzIbnst5qEMmnzCtk0-hsBeaxU5T7rsK2eMM9ETLRvXPyAj4CLC7RJR3GOlQ5HS8vhgFTLPHf9_WeGODAmyIgVHhxAAaVYRdB1upLwlbIzwlsSEcLv7t3XjPhH35Vn5BRKtYcRyGAM7Mh5IHR1DHt_YH0TPqs96SDTtlF_rrGD43Gb0STgJ6wvQR_fEgUvu--HNguXH_RyeZHFy_ZlZPyoXo0fl8uSnAbAFhG_B-Xc5pY00fWNd9gTacaMgqjznu8EZ-I2oa5luztu5yrl7NaF-q8i1TCgcvD_MDjeUouD8DmPdw'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 288

{
  "id" : "0fb753ce-fdd8-40c8-ae0e-79d2c43622b4",
  "name" : "Test Domain",
  "code" : "io.netfoundry.test",
  "createdBy" : "c650da9d-5602-4c0f-b76f-77525143a671",
  "createdAt" : "2024-11-05T16:24:05.575886Z",
  "updatedAt" : "2024-11-05T16:24:05.575886Z",
  "_title" : "Test Domain"
}

Get Domain

GET /domains/{idOrCode}

Authorization

This endpoint requires read action on the domain resource type.

Path parameters

Parameter Type Optional Description

idOrCode

String

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

name

String

true

A human friendly name which can be used for UX purposes.

Must not be null.
Size must be between 1 and 256 inclusive.

code

String

true

A globally unique value that can be used by code to namespace other values which only have to be unique within a domain, such as a resource’s key. This value must be formatted as an inverse domain name. For example, "io.netfoundry.authorization" for the colloquial 'authorization' domain.

Must match the regular expression [0-9a-zA-Z.]+.
Must not be null.
Size must be between 1 and 128 inclusive.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link Domain} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link Domain} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/domains/io.netfoundry.test' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJQbHFVOV8wYVgwbWRJN1c2MHo1VkN3IiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjE5MGFiMzc4LWMwNTMtNDZkZi04ZDE5LTlhMzc0MDMwNTdkMSIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg1OCwiZXhwIjoxNzMwODI3NDU4LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0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WUKCWkl0ccuyW97gmHHng_1QI7BCi7BCPDGItn1LLebU7Ht-HQOkPnwjc6NHWdteRnWcUhFlJj1wggg8kd5BjEBQFqqxNAZvGu17BU2Cgn6FvQd_eW1_Qi0Azi5yQB2stDzmO5GBwd3SEhU_5N8KTvnlyBwhJcy0wGd15UaiEPv7wTSQ'

Example response

HTTP/1.1 200 OK
Content-Disposition: inline;filename=f.txt
Content-Type: application/json
Content-Length: 288

{
  "id" : "0fb753ce-fdd8-40c8-ae0e-79d2c43622b4",
  "name" : "Test Domain",
  "code" : "io.netfoundry.test",
  "createdBy" : "c650da9d-5602-4c0f-b76f-77525143a671",
  "createdAt" : "2024-11-05T16:24:05.575886Z",
  "updatedAt" : "2024-11-05T16:24:05.575886Z",
  "_title" : "Test Domain"
}

Create Domain

POST /domains

Authorization

This endpoint requires create action on the domain resource type.

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

name

String

true

Must not be null.
Size must be between 1 and 256 inclusive.

code

String

true

Must match the regular expression [0-9a-zA-Z.]+.
Must not be null.
Size must be between 1 and 128 inclusive.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

name

String

true

A human friendly name which can be used for UX purposes.

Must not be null.
Size must be between 1 and 256 inclusive.

code

String

true

A globally unique value that can be used by code to namespace other values which only have to be unique within a domain, such as a resource’s key. This value must be formatted as an inverse domain name. For example, "io.netfoundry.authorization" for the colloquial 'authorization' domain.

Must match the regular expression [0-9a-zA-Z.]+.
Must not be null.
Size must be between 1 and 128 inclusive.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link Domain} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link Domain} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/domains' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6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TczMDgyMzgyN30se1wiaWRcIjpcImMyNzA0ZDE3LWIyNGMtNGVlOS1hZDNlLTU2ODk5YWY1M2VlOFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcIjhmOGE3OTllLTA1MzMtNGU4My1iZThiLThjMTNkM2Y3NDFhMFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN30se1wiaWRcIjpcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiNzM5ZTBlOGEtNjJjYS00ZGYwLTg3NDctODA1YTYyN2Q3MTg0XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODU4fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.Z5VpXHDeLfUnifHfYFPcjJK2UAUXA2jO1mkNvNuWuE7ewfPqsdpMutX6Xl5bvJDZylpCwJ_mSQHbjnto28adm_TejEYRwnzTBx4qbAb94fGpApcdI2g0bbwJmicHEyI7A3_zsmuAcAyoBXOCqrKHbD9rmbCX4jmpAPy4KQhDltIOWi2Is3KO7z0QWzqgGhUxHShG2Foi1tmYECUH6ld1crTVry5WY3JGWsFtlBDDqWl1agtuXB6yW3QYDL3nxNj801ZYW1SboFc7mVlwidOqWJiBHFsbPsvh9yxtp54ESIfdcIZw_Wz2Xgv_kb_OGC1m5chpj99331hCrzPdFzAs1w' \
    -d '{"name":"Other Test Domain","code":"other.test.domain"}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 299

{
  "id" : "3f6369cb-218a-4506-bcf2-b721172af4b6",
  "name" : "Other Test Domain",
  "code" : "other.test.domain",
  "createdBy" : "5effa4de-c44c-48b1-a325-909c7dd3e200",
  "createdAt" : "2024-11-05T16:24:18.372676Z",
  "updatedAt" : "2024-11-05T16:24:18.372676Z",
  "_title" : "Other Test Domain"
}

Resource Types

Find Resource Types

GET /resource-types

Returns a set of {@link ResourceType}s that the client is authorized to read and which match the specified (optional) query parameters.

If multiple query parameters are specified, then results must match each query parameter that is set. If a query parameter supports multiple values, then a result must match at least one of the values. In other words, distinct query parameters are AND’d while value matching within a single query parameter act as an OR condition. For example a query parameter "?x=1,2&y=3" becomes (X == 1 OR X == 2) AND (Y == 3).

{@link ResourceType}s.

Authorization

This endpoint requires read action on the resource-type resource type.

Path parameters

No parameters.

Query parameters

Parameter Type Optional Description

domainId

Object

true

Filters results to those that are in one of the specified ,{@link Domain},s.

code

Object

true

Filters results to those matching one of the specified codes.

parentId

Object

true

Filters results to those that are an immediate child of one of the specified ,{@link ResourceType},s.

Request fields

No request body.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].domainId

String

true

The id of the domain within which this {@link ResourceType} exists.

Must not be null.

[].name

String

true

The human friendly name of this {@link ResourceType}.

Must not be null.
Size must be between 1 and 256 inclusive.

[].code

String

true

A unique value (within the domain) that can be used by code as a reference to this resource type. These values should almost always be the simple type name of the resource class, such as "BillingAccount".

Must match the regular expression [0-9a-zA-Z-]+.
Must not be null.
Size must be between 1 and 64 inclusive.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link ResourceType} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link ResourceType} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[].parentId

String

true

Returns the id of the parent {@link ResourceType} or null if this is a root.

[].root

Boolean

true

[].depth

Integer

true

Returns the depth of this {@link ResourceType} within the tree, where a root {@link ResourceType} has a depth of 0.

[].childrenIds

Array[Object]

true

Returns the id of {@link ResourceType}s that are children of this.

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/resource-types' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi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af3ee74a-a71f-4ed9-97e7-c917a9888df6",
  "domainId" : "80f00055-1f1c-47c1-b992-6d4d353b8e62",
  "name" : "Test Type 16",
  "code" : "Test-Type-16",
  "createdBy" : "a9c68dae-8921-4df5-9119-d5ebce6acb63",
  "createdAt" : "2024-11-05T16:24:18.535338Z",
  "updatedAt" : "2024-11-05T16:24:18.535338Z",
  "parentId" : null,
  "root" : true,
  "depth" : 0,
  "childrenIds" : [ ],
  "_title" : "Test Type 16"
}, {
  "id" : "e77f526a-8878-4c59-8ae6-6919b98eef42",
  "domainId" : "165e39aa-e90b-4c72-bc77-c9b9f583de21",
  "name" : "Network Host",
  "code" : "network-host",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:51.371080Z",
  "updatedAt" : "2024-11-05T16:23:51.371080Z",
  "parentId" : "aa542f09-f039-4186-8388-0ea0a5e5ea33",
  "root" : false,
  "depth" : 2,
  "childrenIds" : [ ],
  "_title" : "Network Host"
}, {
  "id" : "6e65cea1-4cbd-4a95-9d74-a21324146e80",
  "domainId" : "3abfc057-2942-41c8-b2c5-54a85ff8c70a",
  "name" : "Organization Preference",
  "code" : "organization-preference",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:51.087166Z",
  "updatedAt" : "2024-11-05T16:23:51.087166Z",
  "parentId" : "779d69dc-d4af-4695-a74e-7b9246cef440",
  "root" : false,
  "depth" : 1,
  "childrenIds" : [ ],
  "_title" : "Organization Preference"
} ]

Get Resource Type

GET /resource-types/{id}

Authorization

This endpoint requires read action on the resource-type resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

domainId

String

true

The id of the domain within which this {@link ResourceType} exists.

Must not be null.

name

String

true

The human friendly name of this {@link ResourceType}.

Must not be null.
Size must be between 1 and 256 inclusive.

code

String

true

A unique value (within the domain) that can be used by code as a reference to this resource type. These values should almost always be the simple type name of the resource class, such as "BillingAccount".

Must match the regular expression [0-9a-zA-Z-]+.
Must not be null.
Size must be between 1 and 64 inclusive.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link ResourceType} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link ResourceType} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

parentId

String

true

Returns the id of the parent {@link ResourceType} or null if this is a root.

root

Boolean

true

depth

Integer

true

Returns the depth of this {@link ResourceType} within the tree, where a root {@link ResourceType} has a depth of 0.

childrenIds

Array[Object]

true

Returns the id of {@link ResourceType}s that are children of this.

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/resource-types/351f5533-5097-43ac-a005-a569af97fcf3' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJBYVc5MVJJNThJUmdtRDJVYXREdzNBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjBmNDE4NGMxLWQ3ODAtNDdmOC05MWRhLWEyOTUzMGI0YmI2NiIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NiwiZXhwIjoxNzMwODI3NDY2LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdi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lwiOWEwYmFiOGMtZTUxYi00OTJmLTkxMzItNTNlM2MzMDhhODMzXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODY2fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.fzj-wowZEG0Qve9V2peCew-I8p9UXLKf-1KtAh-7pVcJdY6NMKExnXn3d4aSuz-D3XmpqZrUvhzqwO12-BxmitZ9BGvyVan3NtiCS6-WxVXEAjS9Z9TCFpoTr9C3reCVj3b7JpgQeXuY2bSiilwQt3b0glg2B9O7x4_3JPZl-5TfuLrGZ8hSt9HnUkA7eR1oYNmntITW9nrceViWGHcQYReneJ1a9sQB2Yt1gpq_-JVGOBT_zilNw3Xx2_gCmdwfRZzNdaeXWBMQXozaRRe_E9xXwsrGHZ3UklkQnir2ympz5fCoTk3w1uw3vxSyv2Nm7maXhINjwgliI8ikXpbhWA'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 406

{
  "id" : "351f5533-5097-43ac-a005-a569af97fcf3",
  "domainId" : "0fb753ce-fdd8-40c8-ae0e-79d2c43622b4",
  "name" : "Test Type",
  "code" : "test-type",
  "createdBy" : "b95094ae-61d6-49e2-89de-a2fecc7f32d8",
  "createdAt" : "2024-11-05T16:24:05.632973Z",
  "updatedAt" : "2024-11-05T16:24:05.632973Z",
  "parentId" : null,
  "root" : true,
  "depth" : 0,
  "childrenIds" : [ ],
  "_title" : "Test Type"
}

Create Resource Type

POST /resource-types

Authorization

This endpoint requires the following actions:

  • create action on the resource-type resource type

  • read action on the domain resource type

  • read action on the resource-type resource type

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

domainId

String

true

Client must have create action under the annotated resource.
Client must have read action on the annotated resource.
Must not be null.

parentId

String

true

Client must have read action on the annotated resource.

resourceType

Object

true

Must not be null.

resourceType.name

String

true

Must not be null.
Size must be between 1 and 256 inclusive.

resourceType.code

String

true

Must match the regular expression [0-9a-zA-Z-]+.
Must not be null.
Size must be between 1 and 64 inclusive.

resourceType.children

Array[Object]

true

Response fields

Path Type Optional Description

id

String

true

Must not be null.

domainId

String

true

The id of the domain within which this {@link ResourceType} exists.

Must not be null.

name

String

true

The human friendly name of this {@link ResourceType}.

Must not be null.
Size must be between 1 and 256 inclusive.

code

String

true

A unique value (within the domain) that can be used by code as a reference to this resource type. These values should almost always be the simple type name of the resource class, such as "BillingAccount".

Must match the regular expression [0-9a-zA-Z-]+.
Must not be null.
Size must be between 1 and 64 inclusive.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link ResourceType} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link ResourceType} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

parentId

String

true

Returns the id of the parent {@link ResourceType} or null if this is a root.

root

Boolean

true

depth

Integer

true

Returns the depth of this {@link ResourceType} within the tree, where a root {@link ResourceType} has a depth of 0.

childrenIds

Array[Object]

true

Returns the id of {@link ResourceType}s that are children of this.

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/resource-types' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiIzRXU2SU55LUgtS3otV1pTcHRwbVp3IiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImQ0OTkwNjVjLWQ4MWEtNDQxMC1iMGM2LTk2NjEyYmM0MmRmNCIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NywiZXhwIjoxNzMwODI3NDY3LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE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gyMzg2M30se1wiaWRcIjpcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiNTAxNWQ3NWEtMzcyNC00NmY1LWE5YjAtZTcyMzA3N2UxOWNmXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODY3fSx7XCJpZFwiOlwiMDA2Njk1NzEtMzg1ZC00MzQ4LWJiMTAtZGY2YTE3MTI3MmJhXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODY3fSx7XCJpZFwiOlwiN2Q2ZmJjNDMtMzUzMC00Mjk5LTljZWUtNTBjN2UzYjRhMWU3XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODY3fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.hpRIcgxB-g1nrFMjoF2FqfX4vb1bKe0ZWZsEvoxe2PRwLi_39N-A5X16UKHp67P0A1xcqeOuFt_GVPjM9KobPJn163wH_C9C_ewtxj8ndWiYbIOgVj0u9XXCFxCvSPBoZAR64aElXSjcYGhEM-Madi12tqUR6LJ6GYSem3uwdGKMKx0BBKJCf0eC8tcBxxhlkqJiAgZi5a02cN2nNBm6Aziy5KvIOP0AHxpWs9CFj3g_z-e1ce43CdnD2EKBAeu0NolGyhW_wV9sbNrFE07nzfLCMZoDZZWuuOygL90PD1QwScP3oAl4oqfVWdZNoTDH9r4rpc9Ttsp56dS-SDl6Aw' \
    -d '{"domainId":"0fb753ce-fdd8-40c8-ae0e-79d2c43622b4","parentId":"351f5533-5097-43ac-a005-a569af97fcf3","resourceType":{"name":"Another Test Type","code":"anoter-test-type","children":[]}}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 464

{
  "id" : "a8d192e4-2f41-454c-9fdf-cf0162ecad1e",
  "domainId" : "0fb753ce-fdd8-40c8-ae0e-79d2c43622b4",
  "name" : "Another Test Type",
  "code" : "anoter-test-type",
  "createdBy" : "d499065c-d81a-4410-b0c6-96612bc42df4",
  "createdAt" : "2024-11-05T16:24:27.616625Z",
  "updatedAt" : "2024-11-05T16:24:27.616625Z",
  "parentId" : "351f5533-5097-43ac-a005-a569af97fcf3",
  "root" : false,
  "depth" : 1,
  "childrenIds" : [ ],
  "_title" : "Another Test Type"
}

Resource Actions

Find Resource Actions

GET /resource-actions

Returns a set of {@link ResourceAction}s that the client is authorized to read and which match the specified (optional) query parameters.

If multiple query parameters are specified, then results must match each query parameter that is set. If a query parameter supports multiple values, then a result must match at least one of the values. In other words, distinct query parameters are AND’d while value matching within a single query parameter act as an OR condition. For example a query parameter "?x=1,2&y=3" becomes (X == 1 OR X == 2) AND (Y == 3).

specified. {@link CustomRole}s. Only non-deleted {@link CustomRoleAction}s are considered. {@link StandardRoleType}s.

Authorization

This endpoint requires read action on the resource-action resource type.

Path parameters

No parameters.

Query parameters

Parameter Type Optional Description

code

Object

true

Filters results to those matching one of the specified codes.

resourceTypeId

Object

true

Filters results to those that apply to one of the ,{@link ResourceType},s specified.

domainId

Object

true

Filters results to those that are in one of the specified ,{@link Domain},s.

customRoleId

Object

true

Filters results to those that are granted by one of the specified ,{@link CustomRole},s. Only non-deleted ,{@link CustomRoleAction},s are considered.

standardRoleTypeId

Object

true

Filters results to those that are included in one of the specified ,{@link StandardRoleType},s.

Request fields

No request body.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].resourceTypeId

String

true

The type of resource that this {@link ResourceAction} applies to.

Must not be null.

[].name

String

true

A human friendly name for this action. This should be a verb only, such as "Create", "Grant", "Remove", "Activate", "Update", "Delete", etc. This can contain more than one word, and spaces are permitted and encouraged if more than one word is present. Words should be initial-caps. This value will be appended with the names of other entities, such as a resource type name, in order to compute names for the composition of this with another entity. For example, if this action is "Create" and it is composed with a resource type named "Network", then the resulting composition may be named "Create Network".

Must not be null.
Size must be between 1 and 256 inclusive.

[].code

String

true

Used by code as a reference to this action. These values should almost always be a simple verb such as "create", "update", "grant", "fetch", etc. Lower-case and hyphen separation of words is encouraged. Since this is used by code, the key value have a limited alphabet of letters, numbers, and hyphens. This value must be unique among the set of {@link ResourceAction}s targeting the same resource type.

Must match the regular expression [0-9a-zA-Z-]+.
Must not be null.
Size must be between 1 and 64 inclusive.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link ResourceAction} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link ResourceAction} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[].standardAction

Boolean

true

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/resource-actions' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJBN2JfZldVaDM4YzhkRk1yOUllWjhBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImVlYmZmMjBlLTNjNmEtNDAzYi04YThlLWYyNzQ2ZDA5OTU3MiIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NCwiZXhwIjoxNzMwODI3NDY0LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGF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IsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODY0fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.RE7x-iUXi-nyhodwcaezCnv17-RlqPN9P56g43gUx-PaYpEOVceGamdvKVrtnOjUt1M41XPBW7U7UvPEWkUbtWJCNiRQTR1MkvtdNsCBYFx9vrkL9e1LBQMdrjEsNymQh7evrW3vLcDd95YlUQ8nJDu6Uf02fCo79MueTYt-2BbhF3NHQt1ZooTehuoW6lR939Y0RsTX4xMLdWyttoP28-O8uN-FfElluX1Ua4drwqTaoZhrQSDk2ya7OEoSUVc4-zAsBV76fW3amK1MafBApfwBr7Ld6hJC8zsSYDPnPvcTfKRnb9VgztV97Wb3lgn_0DtO6EsGVO9P2wwx8SPUhg'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1146

[ {
  "id" : "e27fae1f-7634-4e32-b894-e31f9b4254cb",
  "resourceTypeId" : "e42648b9-cf5b-40b2-99bc-5e9e4e62ea66",
  "name" : "Update Active Status",
  "code" : "update-active",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:46.768783Z",
  "updatedAt" : "2024-11-05T16:23:46.768783Z",
  "standardAction" : false,
  "_title" : "Update Active Status User Identity"
}, {
  "id" : "da3743a7-2f3c-4672-b49b-471948112c54",
  "resourceTypeId" : "54b14316-f095-4f50-bf0c-2daa5f4914c7",
  "name" : "Update",
  "code" : "update",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:51.689113Z",
  "updatedAt" : "2024-11-05T16:23:51.689113Z",
  "standardAction" : true,
  "_title" : "Update BrowzerBootstrapper"
}, {
  "id" : "2ca496b3-a799-4475-9a79-188bb4b0fdb2",
  "resourceTypeId" : "599fc53c-7569-4934-a855-0f2847ec50c4",
  "name" : "Read",
  "code" : "read",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:52.316270Z",
  "updatedAt" : "2024-11-05T16:23:52.316270Z",
  "standardAction" : true,
  "_title" : "Read OIDC Issuer"
} ]

Get Resource Action

GET /resource-actions/{id}

Authorization

This endpoint requires read action on the resource-action resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

resourceTypeId

String

true

The type of resource that this {@link ResourceAction} applies to.

Must not be null.

name

String

true

A human friendly name for this action. This should be a verb only, such as "Create", "Grant", "Remove", "Activate", "Update", "Delete", etc. This can contain more than one word, and spaces are permitted and encouraged if more than one word is present. Words should be initial-caps. This value will be appended with the names of other entities, such as a resource type name, in order to compute names for the composition of this with another entity. For example, if this action is "Create" and it is composed with a resource type named "Network", then the resulting composition may be named "Create Network".

Must not be null.
Size must be between 1 and 256 inclusive.

code

String

true

Used by code as a reference to this action. These values should almost always be a simple verb such as "create", "update", "grant", "fetch", etc. Lower-case and hyphen separation of words is encouraged. Since this is used by code, the key value have a limited alphabet of letters, numbers, and hyphens. This value must be unique among the set of {@link ResourceAction}s targeting the same resource type.

Must match the regular expression [0-9a-zA-Z-]+.
Must not be null.
Size must be between 1 and 64 inclusive.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link ResourceAction} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link ResourceAction} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

standardAction

Boolean

true

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/resource-actions/5f6d27e6-ecb5-40b0-a8f2-513e5a97e082' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJ6LTIxaWNLNkJBcWMxS3RkTVZld0hRIiwiaXNzIjoiTmV0Rm91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se1wiaWRcIjpcImMyNzA0ZDE3LWIyNGMtNGVlOS1hZDNlLTU2ODk5YWY1M2VlOFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcIjhmOGE3OTllLTA1MzMtNGU4My1iZThiLThjMTNkM2Y3NDFhMFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN30se1wiaWRcIjpcImFkMTZlYjc4LThkN2QtNGJkMS1iMzY4LTg1MGMyNDE0ZjY0N1wiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg2M30se1wiaWRcIjpcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiYjQyNGFhNjAtNDVmYy00NmE3LTg5MjktNDFlNTAzZjljNzA5XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODY0fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.cmv4VaRbXugsi18VCAXeFYnAklIeVLmkPw32CEuvlNbSisxrDOgIjiYvyvgzHzjZwwBLzn3OkBil-EO-bsu7qr83vux5IAGx1Ej9tQoHKkufO8OfMZJv2-o_AK9ePVPm_7mcc7wEUgeiFJge4wudL6UtwLprtsHcEOQsQF4QGmG-jOxZsr2mU2kLs3PyMJHqu-QRZhBjPhr3CeOChaF2QIVzy5uIsdbRxMA-UBf2KDMO7ux1h1ijcM6C3O1dOVJgB1a0Ie_R6XXnVkSss4nx6nKUGzgelrvu5mBkMhA24vrG5KyrbfUJBN3MXfdc2zkVInBCUcbATE9jXz7CRynt8Q'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 380

{
  "id" : "5f6d27e6-ecb5-40b0-a8f2-513e5a97e082",
  "resourceTypeId" : "351f5533-5097-43ac-a005-a569af97fcf3",
  "name" : "Test Action",
  "code" : "test-action",
  "createdBy" : "1796979f-5fca-47a5-b05e-c28bbdfa12a4",
  "createdAt" : "2024-11-05T16:24:05.688354Z",
  "updatedAt" : "2024-11-05T16:24:05.688354Z",
  "standardAction" : false,
  "_title" : "Test Action Test Type"
}

Create Resource Action

POST /resource-actions

Authorization

This endpoint requires the following actions:

  • create action on the resource-action resource type

  • read action on the resource-type resource type

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

resourceTypeId

String

true

Client must have create action under the annotated resource.
Client must have read action on the annotated resource.
Must not be null.

actions

Array[Object]

true

Must not be empty.
Must not be null.

actions[].name

String

true

Must not be null.

actions[].code

String

true

Must not be null.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].resourceTypeId

String

true

The type of resource that this {@link ResourceAction} applies to.

Must not be null.

[].name

String

true

A human friendly name for this action. This should be a verb only, such as "Create", "Grant", "Remove", "Activate", "Update", "Delete", etc. This can contain more than one word, and spaces are permitted and encouraged if more than one word is present. Words should be initial-caps. This value will be appended with the names of other entities, such as a resource type name, in order to compute names for the composition of this with another entity. For example, if this action is "Create" and it is composed with a resource type named "Network", then the resulting composition may be named "Create Network".

Must not be null.
Size must be between 1 and 256 inclusive.

[].code

String

true

Used by code as a reference to this action. These values should almost always be a simple verb such as "create", "update", "grant", "fetch", etc. Lower-case and hyphen separation of words is encouraged. Since this is used by code, the key value have a limited alphabet of letters, numbers, and hyphens. This value must be unique among the set of {@link ResourceAction}s targeting the same resource type.

Must match the regular expression [0-9a-zA-Z-]+.
Must not be null.
Size must be between 1 and 64 inclusive.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link ResourceAction} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link ResourceAction} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[].standardAction

Boolean

true

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/resource-actions' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: B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mmFk3EjLKePV95cNOtvxWEnGDRNHdU8QggKGGXyJapA2fud4_BCqFQtdGDHoEa5iqDZbe4cmDHg38_JOCUV9gy187B_moTW_SC3DwVVsNXx2QC1rrq41V2-x-e9QyeCx7g' \
    -d '{"resourceTypeId":"351f5533-5097-43ac-a005-a569af97fcf3","actions":[{"name":"Update Custom","code":"update-custom"}]}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 390

[ {
  "id" : "17f4b834-d131-4dc8-ab88-4bee57c809c2",
  "resourceTypeId" : "351f5533-5097-43ac-a005-a569af97fcf3",
  "name" : "Update Custom",
  "code" : "update-custom",
  "createdBy" : "6c603721-d5fd-4eb8-bf13-f5e1d29998dc",
  "createdAt" : "2024-11-05T16:24:23.991300Z",
  "updatedAt" : "2024-11-05T16:24:23.991300Z",
  "standardAction" : false,
  "_title" : "Update Custom Test Type"
} ]

Authorization Grants

Grants (abstract)

Find Grants

GET /grants

Authorization

Authorization not required for this request.

Path parameters

No parameters.

Query parameters

Parameter Type Optional Description

grantType

Object

true

identityId

Object

true

resourceActionId

Object

true

path

Object

true

Request fields

No request body.

Response fields

Path Type Optional Description

[].grantType

String

true

The concrete type that this virtual {@link Grant} is based upon. Never null.

Must be one of [CustomRole, IdentityResourceAction, PublicGrant, SuperUser].

[].grantId

String

true

The id of the concrete grant resource on which this virtual {@link Grant} is based. If the grant type has separate resources for the grant and the privileges, then this will reference the grant resource (the resource with an identity id.) Never null.

[].privilegeSourceId

String

true

The id of the concrete {@link PrivilegeSource} from which this grant is based. Some grant types combine the grant and privilege aspects into a single resource. For example, a {@link SuperUser} is both a grant (it specifies an identity id) and a privilege source. In other cases, such as a {@link CustomRole} and {@link CustomRoleGrant}, they are separate. When they are the same resource, this value will match the grantId value. Never null.

[].identityId

String

true

The identity id of the holder of this grant. Almost never null, with the one exception of a grant made to all users (or all authenticated users.).

[].privileges

Map

true

The set of privileges that this grants. These are organized as a stack of 3 Maps where the keys are the domain code, then the resource type code, then the action code, and the leaf value is a set of paths on which that action can be performed.

[].createdBy

String

true

The identity id that created the grant.

Must not be null.

[].createdAt

String

true

The date-time at which the grant was created.

Must not be null.

[].deletedAt

String

true

The date-time at which the grant was deleted. This will be null for an grant that has not been deleted. If this property is not null, then the grant is 'marked' as being deleted.

[].deletedBy

String

true

The identity id that deleted the grant. This will be null until the resource is marked deleted.

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/grants' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJWMFFrQU96UUJ6ZGp4YW9EUGtBR3B3IiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImJlYjRhMmM4LWU0YTktNGI0Yy05Zjg4LWRhMWMzYTcyMjcxYyIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg1NSwiZXhwIjoxNzMwODI3NDU1LCJncmFudHMtc3VwZXIiOiJbe1wiaWRcIjpcIjk2NjRmY2Q2LTZjNjAtNDRhZC05MGMzLTJlYWMzMjA0OWJiY1wiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg1NX1dIiwiZ3JhbnRzLWN1c3RvbSI6IltdIiwiZ3JhbnRzLXB1YmxpYyI6Ilt7XCJpZFwiOlwiNTVkNTIwNjMtMTEyYi00ZmM5LTg4NmUtYmFiOTFkNjUxYjc2XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODI2fSx7XCJpZFwiOlwiYWM4ZDgxMGMtZTIwZC00MDhlLWJiNzMtMDA2NWIyZmFjMjlkXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODMwfSx7XCJpZFwiOlwiN2JlM2EzODEtMGZhYy00OGEzLTg0OGItMGZjZDNjZTdlNjdhXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwOD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Q9JiYARWpv7NlYcZJdoBaRqGIUxPvO48ECDkZmrqPg5AHusF2bafElL0E6o-gIDIxyVAabk7pzFMBNHYvVdTA'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1774

[ {
  "grantType" : "IdentityResourceAction",
  "grantId" : "c5c0b1cf-9199-48dd-986a-0ac0a50415f3",
  "privilegeSourceId" : "c5c0b1cf-9199-48dd-986a-0ac0a50415f3",
  "identityId" : "26690eb4-92e9-4ed0-acbe-6e26564eae99",
  "privileges" : {
    "io.netfoundry.identity" : {
      "api-account-identity" : {
        "read" : [ [ ] ]
      }
    }
  },
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:47.338334Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Grant Read API Account Identity, All to identity 26690eb4-92e9-4ed0-acbe-6e26564eae99"
}, {
  "grantType" : "IdentityResourceAction",
  "grantId" : "d64bbc27-0648-46de-ab77-b4f571804c3c",
  "privilegeSourceId" : "d64bbc27-0648-46de-ab77-b4f571804c3c",
  "identityId" : "26690eb4-92e9-4ed0-acbe-6e26564eae99",
  "privileges" : {
    "io.netfoundry.network" : {
      "network-controller" : {
        "read" : [ [ ] ]
      }
    }
  },
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:51.051367Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Grant Read Network Controller, All to identity 26690eb4-92e9-4ed0-acbe-6e26564eae99"
}, {
  "grantType" : "IdentityResourceAction",
  "grantId" : "9106559a-c64f-40bf-9ce0-477200a6d0c2",
  "privilegeSourceId" : "9106559a-c64f-40bf-9ce0-477200a6d0c2",
  "identityId" : "26690eb4-92e9-4ed0-acbe-6e26564eae99",
  "privileges" : {
    "io.netfoundry.identity" : {
      "invitation" : {
        "read" : [ [ ] ]
      }
    }
  },
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:48.811553Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Grant Read Invitation, All to identity 26690eb4-92e9-4ed0-acbe-6e26564eae99"
} ]

Super-User Grants

Find Super Users

GET /super-users

Returns a set of {@link SuperUser}s that the client is authorized to read and which match the specified (optional) query parameters.

If multiple query parameters are specified, then results must match each query parameter that is set. If a query parameter supports multiple values, then a result must match at least one of the values. In other words, distinct query parameters are AND’d while value matching within a single query parameter act as an OR condition. For example a query parameter "?x=1,2&y=3" becomes (X == 1 OR X == 2) AND (Y == 3).

{@link Domain}s. To search for {@link SuperUser}s that explicitly grant access to all domains (ie, the domainId is null), include this query parameter with no value. only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Authorization

This endpoint requires read action on the super-user resource type.

Path parameters

No parameters.

Query parameters

Parameter Type Optional Description

identityId

Object

true

Filters results to those that grant to an identity specified in this set.

domainId

Object

true

Filters results to those that grant access to one of the specified ,{@link Domain},s. To search for ,{@link SuperUser},s that explicitly grant access to all domains (ie, the domainId is null), include this query parameter with no value.

isDeleted

Boolean

true

When true, returns only those that are marked as deleted. When false, returns only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Request fields

No request body.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].identityId

String

true

The id of the identity to whom super-user access has been granted.

Must not be null.

[].domainId

String

true

An optional {@link Domain} id, which when set indicates that this super-user is limited to {@link ResourceAction}s in the corresponding {@link Domain}. When not set, this super-user applies to all {@link Domain}s, present and future.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link SuperUser} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link SuperUser} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[].deletedAt

String

true

The date-time at which this {@link SuperUser} was deleted. This will be null for an {@link SuperUser} that has not been deleted. If this property is not null, then the {@link SuperUser} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

[].deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

[].type

String

true

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/super-users' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJhR0VtVDRUb1UxV1N2RjgySFFjd0R3IiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjJkYThiZjFlLWZlMTItNGM2YS05YjIyLTlhNzdmMDIyNDlhYyIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NiwiZXhwIjoxNzMwODI3NDY2LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0se1wiaWRcIjpcIjU3NDQ3OTAyLTc4YWQtNGZiNS05ODllLThiYTcyYjlhYmQ0ZVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg0NX0se1wiaWRcIjpcIjQyZmYzMjAzLWE1OGMtNGY3NC1iYzYxLTE5NzFlYzI0YzQzZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg2M30se1wiaWRcIjpcIjBkOTZiMzZlLT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p1iU8oHZYwiXvYpi97WjQ_VHx7igHsl_EXeIJaAYrwLcBDTYXG81U_IyYghCrQ751aXBJ3kglyiUMmiz5nB9nLdLVR46x4DtHZ0rVc6jS4gNDp_HU7zuiFHiTG5QJ9vWLDTFuudC6g'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1568

[ {
  "id" : "e56350fb-c8dc-4c90-8ee2-5327b29855b8",
  "identityId" : "b65724c5-4a88-4c69-a712-f8c1eabafb69",
  "domainId" : null,
  "createdBy" : "7e62d3f5-da24-4380-8546-ac7a154f0a1c",
  "createdAt" : "2024-11-05T16:24:25.995015Z",
  "updatedAt" : "2024-11-05T16:24:25.995015Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "type" : "io.netfoundry.auth.domainv2.superuser.SuperUser",
  "_title" : "Grant All Actions (SU) in All Domains to identity b65724c5-4a88-4c69-a712-f8c1eabafb69"
}, {
  "id" : "c40ed219-cdca-4ffc-9a7d-9ecdcf438b64",
  "identityId" : "229f2749-14c3-4731-b250-75b20870e645",
  "domainId" : "011a76ba-e7fc-4ef3-a55a-dd802dc7c76b",
  "createdBy" : "b4f8222e-1dc4-4082-9db2-3ed8291b7d2d",
  "createdAt" : "2024-11-05T16:24:26.186214Z",
  "updatedAt" : "2024-11-05T16:24:26.236832Z",
  "deletedAt" : "2024-11-05T16:24:26.236178Z",
  "deletedBy" : "9533df53-cf29-4e95-a7c3-08b7d5b247f4",
  "type" : "io.netfoundry.auth.domainv2.superuser.SuperUser",
  "_title" : "Grant All Actions (SU) in Test Domain 55 to identity 229f2749-14c3-4731-b250-75b20870e645"
}, {
  "id" : "9664fcd6-6c60-44ad-90c3-2eac32049bbc",
  "identityId" : "beb4a2c8-e4a9-4b4c-9f88-da1c3a72271c",
  "domainId" : null,
  "createdBy" : "75f69bf7-21fd-4d74-b011-2566b0f1c4f4",
  "createdAt" : "2024-11-05T16:24:15.454447Z",
  "updatedAt" : "2024-11-05T16:24:15.454447Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "type" : "io.netfoundry.auth.domainv2.superuser.SuperUser",
  "_title" : "Grant All Actions (SU) in All Domains to identity beb4a2c8-e4a9-4b4c-9f88-da1c3a72271c"
} ]

Get Super User

GET /super-users/{id}

Authorization

This endpoint requires read action on the super-user resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

identityId

String

true

The id of the identity to whom super-user access has been granted.

Must not be null.

domainId

String

true

An optional {@link Domain} id, which when set indicates that this super-user is limited to {@link ResourceAction}s in the corresponding {@link Domain}. When not set, this super-user applies to all {@link Domain}s, present and future.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link SuperUser} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link SuperUser} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link SuperUser} was deleted. This will be null for an {@link SuperUser} that has not been deleted. If this property is not null, then the {@link SuperUser} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

type

String

true

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/super-users/23494f41-ec68-4249-89ce-624c711319bc' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJpUEFGWUxpZDBhd21pWUJKTlBXRmdnIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjY0Y2M2OTU3LTVlYTItNGI4YS04NGFjLTgxYTBhOWY2ZDBiMiIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NiwiZXhwIjoxNzMwODI3NDY2LCJncmFudHMtc3VwZXIiOiJbXSIsIm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vZGlmaWVkXCI6MTczMDgyMzgyN30se1wiaWRcIjpcImFkMTZlYjc4LThkN2QtNGJkMS1iMzY4LTg1MGMyNDE0ZjY0N1wiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg2M30se1wiaWRcIjpcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiMzQzNDNkNDgtMDQzOS00YjJkLThlNTgtZjI3OTAxZDI5YjhiXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODY2fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.rS65zC4KPELaHw4zCpqExMjZoKIv7msVxafzx2ND87oonSNEAecXVeWYCaNqv70_WDa-MmrZDKqcCgVkS2266FZ4gvmYd_rBlMLXhGGMLF7cqxZYzgbtJPMd8rRXxx1y1sBcTSEWIVJ70zavt5YvWidg6Rgz8cdKMklsUT1Qs_kCkN8mHEt-m9HZF49qD0v15EVm-aLrvrIx1T93sUT-YF7fsivrO5fscl2MuDCdtEYYpFtDxtscF5MjlMTJiCHFS2ItJRoc6XjgWbgU6KX9Em680wJM4exOexdVxJuKotKzp7rl2g4SMww-mg3wFGdvszJFrAjgW0oMLi09dcJBzQ'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 522

{
  "id" : "23494f41-ec68-4249-89ce-624c711319bc",
  "identityId" : "b65724c5-4a88-4c69-a712-f8c1eabafb69",
  "domainId" : "0fb753ce-fdd8-40c8-ae0e-79d2c43622b4",
  "createdBy" : "a5193836-5f2e-426a-87d6-4c9962970313",
  "createdAt" : "2024-11-05T16:24:05.720303Z",
  "updatedAt" : "2024-11-05T16:24:05.720303Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "type" : "io.netfoundry.auth.domainv2.superuser.SuperUser",
  "_title" : "Grant All Actions (SU) in Test Domain to identity b65724c5-4a88-4c69-a712-f8c1eabafb69"
}

Create Super User

POST /super-users

Authorization

This endpoint requires the following actions:

  • create action on the super-user resource type

  • read action on the domain resource type

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

identityId

String

true

Must not be null.

domainId

String

true

Client must have read action on the annotated resource.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

identityId

String

true

The id of the identity to whom super-user access has been granted.

Must not be null.

domainId

String

true

An optional {@link Domain} id, which when set indicates that this super-user is limited to {@link ResourceAction}s in the corresponding {@link Domain}. When not set, this super-user applies to all {@link Domain}s, present and future.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link SuperUser} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link SuperUser} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link SuperUser} was deleted. This will be null for an {@link SuperUser} that has not been deleted. If this property is not null, then the {@link SuperUser} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

type

String

true

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/super-users' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJZM0V1QjBnU0haVk9WSmFJRlZ1RUZBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjdlNjJkM2Y1LWRhMjQtNDM4MC04NTQ2LWFjN2ExNTRmMGExYyIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NSwiZXhwIjoxNzMwODI3NDY1LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJs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ImFkMTZlYjc4LThkN2QtNGJkMS1iMzY4LTg1MGMyNDE0ZjY0N1wiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg2M30se1wiaWRcIjpcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiOTllNjBiNGItZWY3Ni00OTA1LWJhNDItZTY2NDgxYzNlNjg0XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODY1fSx7XCJpZFwiOlwiNGM3N2M1ZDAtZjU1Yi00YzgzLWJlNmYtMzg1ODA2Njk1NDBmXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODY1fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.BaqTWsjlDt_fYeiLxuKobvz5jkHXEblHFVvPsKFajaX-A1D1WBHgaZzoRnT77iXfAvXLUhQMASygkJazJC-u34EYtvathT73Vu7uzNN2NymZiYTOGaNVI7J5vNKD1nshTNKnt6rP5gdw-hiHdId75mI56Uqv2slOvzOh9YnHMEbo5mZDOne1GySzj13GBoztB8dWv6Vb0RpqtxIdLp4tK80sQQ1AkSCa1Ou0qPtk1Av47GIwKml96ZM5LFFGxyyO24s86vP_MRRgsdc2YGWgyX01e3yq034-mClenoeLWZDk8LaLVSeUCn0ZDTBjGTjIBFY4lSHsCU6ZA0TFCWv5aw' \
    -d '{"identityId":"b65724c5-4a88-4c69-a712-f8c1eabafb69","domainId":null}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 488

{
  "id" : "e56350fb-c8dc-4c90-8ee2-5327b29855b8",
  "identityId" : "b65724c5-4a88-4c69-a712-f8c1eabafb69",
  "domainId" : null,
  "createdBy" : "7e62d3f5-da24-4380-8546-ac7a154f0a1c",
  "createdAt" : "2024-11-05T16:24:25.995015Z",
  "updatedAt" : "2024-11-05T16:24:25.995015Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "type" : "io.netfoundry.auth.domainv2.superuser.SuperUser",
  "_title" : "Grant All Actions (SU) in All Domains to identity b65724c5-4a88-4c69-a712-f8c1eabafb69"
}

Delete Super User

DELETE /super-users/{id}

Authorization

This endpoint requires delete action on the super-user resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

No response body.

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/super-users/c40ed219-cdca-4ffc-9a7d-9ecdcf438b64' -i -X DELETE \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiI2WHp4dlV3VlF6OU8yM1ZrS0JxWTZnIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6Ijk1MzNkZjUzLWNmMjktNGU5NS1hN2MzLTA4YjdkNWIyNDdmNCIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NiwiZXhwIjoxNzMwODI3NDY2LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0se1wiaWRcIjpcIjU3NDQ3OTAyLTc4YWQtNGZiNS05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aB8xwj1u6gtQheAyf1J4dAWGQsF-NxdRVciJcStrofxfr6N6GplonKsGBi3tsLglSMsT7srHfUSg6iWhnHYIi-2vQa3x6U4TsiSZcTisYKiIS5_KK_dzYqNQZDGhbRV9ho8f9rOzfYhJX9TvW8hRlQndN8LzYk5dYE4ak1_WxzQTdLDvssj-qvKf1A46NHxb62mGG1I9QLDX8m2lqyME3zl5pe70DNarPe8Txi82lgMM5KP1zRpBc-avOEqOMov8lypDAUcM6sUXnCdj8JjlaRwU34cuVTK3bi77m5mRwlPeSnE2lGssxbbYxjdJft4gcATEGGW_xT8g9AYil5bg'

Example response

HTTP/1.1 200 OK

Public Grants

Find Public Grants

GET /public-grants

Returns a set of {@link PublicGrant}s that the client is authorized to read and which match the specified (optional) query parameters.

If multiple query parameters are specified, then results must match each query parameter that is set. If a query parameter supports multiple values, then a result must match at least one of the values. In other words, distinct query parameters are AND’d while value matching within a single query parameter act as an OR condition. For example a query parameter "?x=1,2&y=3" becomes (X == 1 OR X == 2) AND (Y == 3).

{@link ResourceAction}s. false, filters to those with the isAnonymous property is false. When not specified, the results will include those with both true and false values for this property. example, if the path is to Network X which is under Network Group Y, this would restrict the results to {@link IdentityResourceAction}s that grant an action on any resource under Network X, an action on Network X itself, or an action on Network Group Y. Combine this query parameter with resourceActionIds to limit the results to the types of actions along the path that are of interest.
The path value must start with a domain code followed by a colon. It may then have a comma delimited sequence of colon separated resource type code and resource id pairs. The path structure must match that of the server defined resource tree for the specified resources in the specified domain. only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Authorization

This endpoint requires read action on the public-grant resource type.

Path parameters

No parameters.

Query parameters

Parameter Type Optional Description

resourceActionId

Object

true

Filters results to those that grant one of the specified ,{@link ResourceAction},s.

isAnonymous

Boolean

true

When true, filters results where the isAnonymous property is true. When false, filters to those with the isAnonymous property is false. When not specified, the results will include those with both true and false values for this property.

path

Object

true

Filters results to those that target any resource along the specified path. For example, if the path is to Network X which is under Network Group Y, this would restrict the results to ,{@link IdentityResourceAction},s that grant an action on any resource under Network X, an action on Network X itself, or an action on Network Group Y. Combine this query parameter with resourceActionIds to limit the results to the types of actions along the path that are of interest.,
, The path value must start with a domain code followed by a colon. It may then have a comma delimited sequence of colon separated resource type code and resource id pairs. The path structure must match that of the server defined resource tree for the specified resources in the specified domain.

isDeleted

Boolean

true

When true, returns only those that are marked as deleted. When false, returns only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Request fields

No request body.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].resourceActionId

String

true

Must not be null.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link PublicGrant} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link PublicGrant} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[].deletedAt

String

true

The date-time at which this {@link PublicGrant} was deleted. This will be null for an {@link PublicGrant} that has not been deleted. If this property is not null, then the {@link PublicGrant} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

[].deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

[].path

Array[Object]

true

The path (ordered pairs of resource type and id) from resource tree root to the target resource that this {@link PublicGrant} targets.

Must not be null.

[].path[].resourceId

String

true

Must not be null.

[].path[].resourceTypeId

String

true

[].anonymous

Boolean

true

If true, then any client may perform the linked action even if not authenticated. If false, then a client must be authenticated in order to perform the linked action. The actual identity id of the client does not matter for {@link PublicGrant}s.

[].type

String

true

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/public-grants' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJzZlppSWI0RjRzYXNrbkx1Ymc0anZRIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjY0MjUzYjlm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tNGVlOS1hZDNlLTU2ODk5YWY1M2VlOFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcIjhmOGE3OTllLTA1MzMtNGU4My1iZThiLThjMTNkM2Y3NDFhMFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN30se1wiaWRcIjpcImFkMTZlYjc4LThkN2QtNGJkMS1iMzY4LTg1MGMyNDE0ZjY0N1wiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg2M30se1wiaWRcIjpcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiY2M5NDE1ZDktY2JhNC00YTBhLTgxNTgtMjliZTFkZTM0MzZhXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODYzfV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.WHEaoZycvy1g4n1XCcEpzhsidHWvnn7wA0TSZUb2CY6R4vFy1OpqioIWRXoG_s1MTw2dbLqdbwTuZ1--FvsSlm7H-tM1m781puxA8oBy_WNxJM7rSlZrMxd5Kn3H5zqmv_06pepPBoVmffoZcXno2Yi1r23HRvk35BKwdOgFXd9P6-E_uVt5YHh54kMI-4AYmGor9-e5FS5z3JKKnQe5y0u0mQYrMXaOI3Mlj0Rz3O9LenotNsqGDFnuC4U55BhTn6PtGywHh0rBu_Y8rYfRNSQwQiF6RWXNbKzSlzlcpQwAo7hxWhyRU0peTX9Hlpg7T44pxox0h02i3HwHyF5S0A'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1484

[ {
  "id" : "8f8a799e-0533-4e83-be8b-8c13d3f741a0",
  "resourceActionId" : "df7a1fa4-80de-45c9-a5c2-3e58fc29afcd",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:47.637263Z",
  "updatedAt" : "2024-11-05T16:23:47.637263Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ ],
  "anonymous" : false,
  "type" : "io.netfoundry.auth.domainv2.publicgrant.PublicGrant",
  "_title" : "Grant Read Resource Action, All to All Authenticated Clients"
}, {
  "id" : "287dffaf-d8e1-4e77-901e-3de04eaaf55c",
  "resourceActionId" : "f3c8c012-c3a7-4dd4-a3b8-14509ec13c4b",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:47.632961Z",
  "updatedAt" : "2024-11-05T16:23:47.632961Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ ],
  "anonymous" : false,
  "type" : "io.netfoundry.auth.domainv2.publicgrant.PublicGrant",
  "_title" : "Grant Read Domain, All to All Authenticated Clients"
}, {
  "id" : "65b2a37e-6949-484c-a64f-afa8224dfacf",
  "resourceActionId" : "bbdc575b-490f-4240-bd54-b6980bba9c02",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:47.961061Z",
  "updatedAt" : "2024-11-05T16:23:47.961061Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ ],
  "anonymous" : false,
  "type" : "io.netfoundry.auth.domainv2.publicgrant.PublicGrant",
  "_title" : "Grant Read Network Configuration Metadata, All to All Authenticated Clients"
} ]

Get Public Grant

GET /public-grants/{id}

Authorization

This endpoint requires read action on the public-grant resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

resourceActionId

String

true

Must not be null.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link PublicGrant} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link PublicGrant} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link PublicGrant} was deleted. This will be null for an {@link PublicGrant} that has not been deleted. If this property is not null, then the {@link PublicGrant} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

path

Array[Object]

true

The path (ordered pairs of resource type and id) from resource tree root to the target resource that this {@link PublicGrant} targets.

Must not be null.

path[].resourceId

String

true

Must not be null.

path[].resourceTypeId

String

true

anonymous

Boolean

true

If true, then any client may perform the linked action even if not authenticated. If false, then a client must be authenticated in order to perform the linked action. The actual identity id of the client does not matter for {@link PublicGrant}s.

type

String

true

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/public-grants/ad16eb78-8d7d-4bd1-b368-850c2414f647' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJrSm9mNHNqS1doN1JwODJsNGZ1S2RBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjhhZTJlYjc1LWM4OWItNGY0ZC1hZGE5LTQwNDY5MTA4M2NmZiIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2MywiZXhwIjoxNzMwODI3NDYzLCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3Y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jCYXLyQcPMT1KCfp3ibqDjXblrIhaEV34-Bz_ctD2oNRRAcBrTXOMfEIH-fhuZ5HSzcWKcT12fb-NiOY72Gh4xgjT1ac7ZhKmNuJlwEwXNGDe3ZHBfM3qcv1S5cKUoGZv8Pf7DSQHze_nOuo1_9ZH5gZz7iDm5IAvft3sgXqNnRxg9X5JRZBnRZKRgWt7r2168UU1DMK6KMrRS2tFHx_RtIihpOhiXcoYKAqg9niCaorcoBLYmBUvhviN2DCNmQVQ2U_777QskhCMigAZIvUbjEjI2vj3dM_K4mluRy87DzMff5k-walAogfkK3g'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 678

{
  "id" : "ad16eb78-8d7d-4bd1-b368-850c2414f647",
  "resourceActionId" : "28f00187-49eb-4b09-aaa1-5892181fe00d",
  "createdBy" : "e464ae44-5f1d-460d-92af-c22a18976665",
  "createdAt" : "2024-11-05T16:24:23.154966Z",
  "updatedAt" : "2024-11-05T16:24:23.154966Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ {
    "resourceId" : "28a21d92-6517-4d70-88ae-b195a474f2c2",
    "resourceTypeId" : "1302cd65-846e-446f-9bd9-3e7a498440c1"
  } ],
  "anonymous" : false,
  "type" : "io.netfoundry.auth.domainv2.publicgrant.PublicGrant",
  "_title" : "Grant Test Action 45 Test Type 44 on/under Test Type 44 28a21d92-6517-4d70-88ae-b195a474f2c2 to All Authenticated Clients"
}

Create Public Grant

POST /public-grants

Authorization

This endpoint requires the following actions:

  • create action on the public-grant resource type

  • read action on the resource-action resource type

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

resourceActionId

String

true

Client must have read action on the annotated resource.
Must not be null.

path

Array[Object]

true

Must not be null.

path[].resourceId

String

true

Must not be null.

path[].resourceTypeId

String

true

anonymous

Boolean

true

Response fields

Path Type Optional Description

id

String

true

Must not be null.

resourceActionId

String

true

Must not be null.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link PublicGrant} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link PublicGrant} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link PublicGrant} was deleted. This will be null for an {@link PublicGrant} that has not been deleted. If this property is not null, then the {@link PublicGrant} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

path

Array[Object]

true

The path (ordered pairs of resource type and id) from resource tree root to the target resource that this {@link PublicGrant} targets.

Must not be null.

path[].resourceId

String

true

Must not be null.

path[].resourceTypeId

String

true

anonymous

Boolean

true

If true, then any client may perform the linked action even if not authenticated. If false, then a client must be authenticated in order to perform the linked action. The actual identity id of the client does not matter for {@link PublicGrant}s.

type

String

true

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/public-grants' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJmOFdXMzM4Z3RYUGFxODBqakF1RmZRIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjAwNDBkMzJkLWJkNWItNDVjOS1iOGE1LTk2YTBkMTQ4YmFlYiIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2MywiZXhwIjoxNzMwODI3NDYzLCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFw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0XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODYzfSx7XCJpZFwiOlwiNjg2ZGI0YzctNzBjMS00NjhkLWFlNzgtZDE5ZWVjOTg3ZjI0XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODYzfV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.PsipRdy6ZZ3XNTTxiYUfoyuydgPKDSzS29D7LIQ70rYEH8FYHuSzl3eUsEspgmbDjWMTCQc3f0NkWOmi7TiRGh8tRomfjJoXPXZPvuwHbesrMX02Xif-Fcjwo_FNqbEFQg9OcWnmrAoCN0xKGjA2hksjbYS63w7BO9sa7VZNMckxDCyYodXxqHuXiiFA3fVCCS4sp4RcPZT4LY5NT1gBQurGPQ85aicxfZGwwi1kPZCEl7pJU2nmgourXqSErFdxH3d418QYOScNOZ3k0fCwjWvCfo2oZD9tSuu9HlNpJqDEZY1Hk8Z_CLBIqnaZcdXC05l-m8jvOgfabyxK8HQ_Tg' \
    -d '{"resourceActionId":"5f6d27e6-ecb5-40b0-a8f2-513e5a97e082","path":[{"resourceId":"b4e0f6da-e0c7-4040-9dfc-767976698296","resourceTypeId":"351f5533-5097-43ac-a005-a569af97fcf3"}],"anonymous":false}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 669

{
  "id" : "42ff3203-a58c-4f74-bc61-1971ec24c43d",
  "resourceActionId" : "5f6d27e6-ecb5-40b0-a8f2-513e5a97e082",
  "createdBy" : "0040d32d-bd5b-45c9-b8a5-96a0d148baeb",
  "createdAt" : "2024-11-05T16:24:23.632395Z",
  "updatedAt" : "2024-11-05T16:24:23.632395Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ {
    "resourceId" : "b4e0f6da-e0c7-4040-9dfc-767976698296",
    "resourceTypeId" : "351f5533-5097-43ac-a005-a569af97fcf3"
  } ],
  "anonymous" : false,
  "type" : "io.netfoundry.auth.domainv2.publicgrant.PublicGrant",
  "_title" : "Grant Test Action Test Type on/under Test Type b4e0f6da-e0c7-4040-9dfc-767976698296 to All Authenticated Clients"
}

Delete Public Grant

DELETE /public-grants/{id}

Authorization

This endpoint requires delete action on the public-grant resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

No response body.

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/public-grants/baa5a55e-3b07-448c-a3d2-e254fedc5d46' -i -X DELETE \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJDV1pBV2VEcHkyRU9feFdJYjVSemNnIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjJkYWE1NTA5LWZjODktNDEyNy1hMDZjLWM3MDc2YmJkNGQ0MyIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2MywiZXhwIjoxNzMwODI3NDYzLCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0se1wiaWRcIjpcIjU3NDQ3OTAyLTc4YWQtNGZiNS05ODllLThiYTcyYjlhYmQ0ZVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg0NX0se1wiaWRcIjpcIjBk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_WM4PGv8b4NGOt3tiIOEuAEtdFaxbv1qS-Qwt5nmW1UxT2L8gJaME9s5eaFJIl2N5r7dTQuq7UISJ7meG803PSvBu4cH0FTF_WW75djHD3eRpnhvtTOO3yawFgOT0wMP4yz-HkwjSwIuFbDODr0_BXFBi55nlZ1obPJE9KpN_OgSYpaI13GWsfMfGZQyxHmAa0hA6SYK8cxBAvRMfM7ecM00s46y2c2NYGYez4uZXvrdVLB78SRvfOrpLFxiWMoLvoA'

Example response

HTTP/1.1 200 OK

Identity - Resource Action Grants

Find Identity Resource Actions

GET /identity-resource-actions

Returns a set of {@link IdentityResourceAction}s that the client is authorized to read and which match the specified (optional) query parameters.

If multiple query parameters are specified, then results must match each query parameter that is set. If a query parameter supports multiple values, then a result must match at least one of the values. In other words, distinct query parameters are AND’d while value matching within a single query parameter act as an OR condition. For example a query parameter "?x=1,2&y=3" becomes (X == 1 OR X == 2) AND (Y == 3).

{@link ResourceAction}s. For example, if the path is to Network X which is under Network Group Y, this would restrict the results to {@link CustomRoleAction}s that grant an action on any resource under Network X, an action on Network X itself, or an action on Network Group Y. Combine this query parameter with resourceActionIds to limit the results to the types of actions along the path that are of interest.
The path value must start with a domain code followed by a colon. It may then have a comma delimited sequence of colon separated resource type code and resource id pairs. The path structure must match that of the server defined resource tree for the specified resources in the specified domain. only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Authorization

This endpoint requires read action on the identity-resource-action resource type.

Path parameters

No parameters.

Query parameters

Parameter Type Optional Description

identityId

Object

true

Filters results to those that grant to an identity specified in this set.

resourceActionId

Object

true

Filters results to those that grant one of the specified ,{@link ResourceAction},s.

path

Object

true

Filters results to those that target any resource along the specified path.,
, For example, if the path is to Network X which is under Network Group Y, this would restrict the results to ,{@link CustomRoleAction},s that grant an action on any resource under Network X, an action on Network X itself, or an action on Network Group Y. Combine this query parameter with resourceActionIds to limit the results to the types of actions along the path that are of interest.,
, The path value must start with a domain code followed by a colon. It may then have a comma delimited sequence of colon separated resource type code and resource id pairs. The path structure must match that of the server defined resource tree for the specified resources in the specified domain.

isDeleted

Boolean

true

When true, returns only those that are marked as deleted. When false, returns only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Request fields

No request body.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].identityId

String

true

The id of the identity to whom this {@link IdentityResourceAction#resourceActionId} has been granted.

Must not be null.

[].resourceActionId

String

true

The {@link ResourceAction} that possession of this {@link IdentityResourceAction} grants to the linked identity for resources under the specified path.

Must not be null.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link IdentityResourceAction} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link IdentityResourceAction} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[].deletedAt

String

true

The date-time at which this {@link IdentityResourceAction} was deleted. This will be null for an {@link IdentityResourceAction} that has not been deleted. If this property is not null, then the {@link IdentityResourceAction} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

[].deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

[].path

Array[Object]

true

The path (ordered pairs of resource type and id) from resource tree root to the target resource that this {@link CustomRoleAction} targets. For example, if this {@link CustomRoleAction} is "Update Widget Service" then this property defines the (id) path of/to the "Widget Service" resource. The path, specifically the ordered list of resource types that it contains, is co-variant to the {@link ResourceAction#getResourceTypeId()}. Both must target the same {@link ResourceType}.

Must not be null.

[].path[].resourceId

String

true

Must not be null.

[].path[].resourceTypeId

String

true

[].type

String

true

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/identity-resource-actions' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJvV09iN3p5RFlmQzJGSmFNVGxITFBnIiwiaXNzIjoiTmV0Rm91bm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wiaWRcIjpcIjhmOGE3OTllLTA1MzMtNGU4My1iZThiLThjMTNkM2Y3NDFhMFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN30se1wiaWRcIjpcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiM2IyMDQzYWUtNDNlMy00NGJlLWFhNWQtZjg5ZDI4ZTU1NmMxXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODUzfV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.AEIahZTEEfyjRs-z3ODoMOVgz1uydUxtGsLfeG1svtIBSbvytaQXNmHTMIg67yxHTImScNJ6S4NefUBDw3hsP-1ls2ax6rYYwqLYe5CU7ZsiESwEHkuI3aCcvPrIhQcGIOwMja0qbs_toKkURvBEsMGcpaCHwK31U-J1Eqb3Rxw4fVprXsZ_uPCkCEUXTcvgpAWOfJs7ftWXfsMgv5AtclFYCBRg-5mSq3BLRwTv_Ix78lU_jEF3IbOtWBWnaavAiLFdgUYqTqQVBUvnzcOFByui1IKr48TQeVCp3eRjoya9TYlLbKcZbmPaSVA2bFIAgAPmaSm_HTzGgQTEdaEeDA'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1740

[ {
  "id" : "be4124f5-9846-4ccc-a4f5-4e4c19378ee8",
  "identityId" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "resourceActionId" : "0519a5df-b272-4ebe-8d83-9ea1c65d4134",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:51.409971Z",
  "updatedAt" : "2024-11-05T16:23:51.409971Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ ],
  "type" : "io.netfoundry.auth.domainv2.identityresourceaction.IdentityResourceAction",
  "_title" : "Grant Create Edge Router Restart Deployment-Edge Router, All to identity 0ab1b47d-a5de-4f39-a3bd-7b130cacf401"
}, {
  "id" : "c9885a55-641a-49a2-b530-ba6c551ece21",
  "identityId" : "a17fffad-b448-4fc0-8e16-60baadc1d5ee",
  "resourceActionId" : "24ad960e-0491-4943-be7c-71d4eb283b79",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:47.282972Z",
  "updatedAt" : "2024-11-05T16:23:47.282972Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ ],
  "type" : "io.netfoundry.auth.domainv2.identityresourceaction.IdentityResourceAction",
  "_title" : "Grant Update Endpoint Group, All to identity a17fffad-b448-4fc0-8e16-60baadc1d5ee"
}, {
  "id" : "05d5bec2-b4c0-43e7-8f69-cac751626e16",
  "identityId" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "resourceActionId" : "116fcf2e-3615-4e2c-99b9-c915ac304b2f",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:51.671579Z",
  "updatedAt" : "2024-11-05T16:23:51.671579Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ ],
  "type" : "io.netfoundry.auth.domainv2.identityresourceaction.IdentityResourceAction",
  "_title" : "Grant Read Standard Role Grant, All to identity 0ab1b47d-a5de-4f39-a3bd-7b130cacf401"
} ]

Get Identity Resource Action

GET /identity-resource-actions/{id}

Authorization

This endpoint requires read action on the identity-resource-action resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

identityId

String

true

The id of the identity to whom this {@link IdentityResourceAction#resourceActionId} has been granted.

Must not be null.

resourceActionId

String

true

The {@link ResourceAction} that possession of this {@link IdentityResourceAction} grants to the linked identity for resources under the specified path.

Must not be null.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link IdentityResourceAction} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link IdentityResourceAction} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link IdentityResourceAction} was deleted. This will be null for an {@link IdentityResourceAction} that has not been deleted. If this property is not null, then the {@link IdentityResourceAction} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

path

Array[Object]

true

The path (ordered pairs of resource type and id) from resource tree root to the target resource that this {@link CustomRoleAction} targets. For example, if this {@link CustomRoleAction} is "Update Widget Service" then this property defines the (id) path of/to the "Widget Service" resource. The path, specifically the ordered list of resource types that it contains, is co-variant to the {@link ResourceAction#getResourceTypeId()}. Both must target the same {@link ResourceType}.

Must not be null.

path[].resourceId

String

true

Must not be null.

path[].resourceTypeId

String

true

type

String

true

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/identity-resource-actions/46a1fb50-2a86-4331-92cd-52fd7d39419b' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiI3bFNCNHk4dGlxdTI1NzNpSnNxZTBnIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImJlZmZhZWE5LTlkMDItNGQwZi1iYTcxLTdlMDgzNTdkN2FkZSIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg1NCwiZXhwIjoxNzMwODI3NDU0LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn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IzODU0fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.FF2x56HcSemV2wBUEHz-Wm5QTFXjr6fgPDLL8IoylJX6brslGmfcTqdVLhEvB2ovfTZCkZz4LkJpvea33kick44_31RHvPx8nQArCZw4SaXuV83JHlGmt7decjFLxuOAJ6LYFRCfsfwbwPtu4iJLw68CG4DGJc4MrTAKN6Oh97MNuLi-ampWWdX4CxWHOuekn1QGEdcCUbC09YItHMmB-WbU12BBwRx59Idhjvu8wLYeLaDcNhyo55F9DI4kdpLFzrPzufyRlthczp7zIFkYIALx74ERAdVPJRkS3bU8Urx-R_egifSbzBlNxAGgEF2AFEBI-1defx4796LzRuFNlg'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 751

{
  "id" : "46a1fb50-2a86-4331-92cd-52fd7d39419b",
  "identityId" : "ded2158d-eac1-49ee-995f-049b97ed7ce1",
  "resourceActionId" : "2a114408-2020-4bf8-be1d-f13f9df4d9e9",
  "createdBy" : "eab6f46c-f458-4cd8-92d7-9e55aad30ce9",
  "createdAt" : "2024-11-05T16:24:14.445332Z",
  "updatedAt" : "2024-11-05T16:24:14.445332Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ {
    "resourceId" : "2a45cc31-9527-4d86-8b47-010de569fc19",
    "resourceTypeId" : "bc95b14e-9b5e-4a80-a944-1e74b6333a20"
  } ],
  "type" : "io.netfoundry.auth.domainv2.identityresourceaction.IdentityResourceAction",
  "_title" : "Grant Test Action 5 Test Type 4 on/under Test Type 4 2a45cc31-9527-4d86-8b47-010de569fc19 to identity ded2158d-eac1-49ee-995f-049b97ed7ce1"
}

Create Identity Resource Action

POST /identity-resource-actions

Authorization

This endpoint requires the following actions:

  • create action on the identity-resource-action resource type

  • read action on the resource-action resource type

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

identityId

String

true

Must not be null.

resourceActionId

String

true

Client must have read action on the annotated resource.
Must not be null.

path

Array[Object]

true

Must not be null.

path[].resourceId

String

true

Must not be null.

path[].resourceTypeId

String

true

Response fields

Path Type Optional Description

id

String

true

Must not be null.

identityId

String

true

The id of the identity to whom this {@link IdentityResourceAction#resourceActionId} has been granted.

Must not be null.

resourceActionId

String

true

The {@link ResourceAction} that possession of this {@link IdentityResourceAction} grants to the linked identity for resources under the specified path.

Must not be null.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link IdentityResourceAction} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link IdentityResourceAction} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link IdentityResourceAction} was deleted. This will be null for an {@link IdentityResourceAction} that has not been deleted. If this property is not null, then the {@link IdentityResourceAction} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

path

Array[Object]

true

The path (ordered pairs of resource type and id) from resource tree root to the target resource that this {@link CustomRoleAction} targets. For example, if this {@link CustomRoleAction} is "Update Widget Service" then this property defines the (id) path of/to the "Widget Service" resource. The path, specifically the ordered list of resource types that it contains, is co-variant to the {@link ResourceAction#getResourceTypeId()}. Both must target the same {@link ResourceType}.

Must not be null.

path[].resourceId

String

true

Must not be null.

path[].resourceTypeId

String

true

type

String

true

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/identity-resource-actions' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJoU1RoOVh5UlhjVk8wZFl2SU5mc0RBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjAzYTM3ODJkLTRlMzQtNGU3NS1iZDc5LTgwYmM3N2UwNTI4NSIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhd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pcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiNWM1N2Y1M2MtNzNjZS00NTRlLWJhNWItZjkxN2JlMjg5MjJkXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODU0fSx7XCJpZFwiOlwiNGNmM2Q2MGEtMGRmMC00NDgwLTkzMWEtNWRiOGRkNWE4NzIxXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODU0fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.I0wyLSijd0NNiF5f-t7yiBJN2_dONdWO5hul7ECfPpeKYt-IGF_PO59CGz1_iKSYjTyBIwMNJ7zKlqlK5z2fS1Lq9B-BUrdPU0vKDdvJ3EtCYjYcNMbXkvNSd6sCXEM_GeO98BHkXCG9gh89bXWaFHeus3QlZsY1lyNRBZhB0FCX2EYxNDNC6cq6nRe4laaHwNjS1o4boL4wbKPRb7owW0Lf0-959RAVx5sNpTTo1kJWpLC0-K9PZu5vfuf5b7pHWN1gXzB5ti1Xk5BMsBv0f1qiB7L1WAEavBIj_1HLOuWAdM4xRiN0K4XQ9-E66PhdptvqjczefozWhO11-FtqOQ' \
    -d '{"identityId":"fd1668dc-b347-420e-98b2-31cd449f1105","resourceActionId":"5f6d27e6-ecb5-40b0-a8f2-513e5a97e082","path":[{"resourceId":"be2b03cf-d459-48a9-98b6-9b012f649f9b","resourceTypeId":"351f5533-5097-43ac-a005-a569af97fcf3"}]}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 745

{
  "id" : "b50753e9-5fc5-46f1-b9bc-c0a4087b50ea",
  "identityId" : "fd1668dc-b347-420e-98b2-31cd449f1105",
  "resourceActionId" : "5f6d27e6-ecb5-40b0-a8f2-513e5a97e082",
  "createdBy" : "03a3782d-4e34-4e75-bd79-80bc77e05285",
  "createdAt" : "2024-11-05T16:24:15.114472Z",
  "updatedAt" : "2024-11-05T16:24:15.114472Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ {
    "resourceId" : "be2b03cf-d459-48a9-98b6-9b012f649f9b",
    "resourceTypeId" : "351f5533-5097-43ac-a005-a569af97fcf3"
  } ],
  "type" : "io.netfoundry.auth.domainv2.identityresourceaction.IdentityResourceAction",
  "_title" : "Grant Test Action Test Type on/under Test Type be2b03cf-d459-48a9-98b6-9b012f649f9b to identity fd1668dc-b347-420e-98b2-31cd449f1105"
}

Delete Identity Resource Action

DELETE /identity-resource-actions/{id}

Authorization

This endpoint requires delete action on the identity-resource-action resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

No response body.

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/identity-resource-actions/d7ea2819-307b-497d-9c46-bbce8be26813' -i -X DELETE \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJSLUNjS3NnMXJDVV9yTHVSUmg3QWF3IiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImE1YzY1NGM5LWIwYmMtNDc5NS04OTAyLWJiYTVjNzA3NjhkNSIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg1MiwiZXhwIjoxNzMwODI3NDUyLCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5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K7NJImouI8XNLtpF9Vj1fevW01ElvT_w26LECUrwYmzPH_qigZL7ebpoB6EoT_MgL7NSPgOAbLMN90-3BdNR8UrNM4hN3s5XO5sy5pu3y07LBwtRB0vLObHLUnV35deXcInRSM6m-lCXAxt-JmDYk4bDp5ahSMSiZR98x7_0DYXC2fF6kiaZsKTYu-LpQu1L86KGEIZBRXPiT5G0N7_XqaTQFTseZbYY5PWFnDqqO3Lv4Nb1qexxONV_NkDaf9Q_yaaPkdaJPFySlb5rrayQuw8rHTXm07cUIjOkl3S8oHSH6lfiWSqPzWs9TKVRKLw'

Example response

HTTP/1.1 200 OK

Custom Roles

Find Custom Roles

GET /custom-roles

Returns a set of {@link CustomRole}s that the client is authorized to read and which match the specified (optional) query parameters.

If multiple query parameters are specified, then results must match each query parameter that is set. If a query parameter supports multiple values, then a result must match at least one of the values. In other words, distinct query parameters are AND’d while value matching within a single query parameter act as an OR condition. For example a query parameter "?x=1,2&y=3" becomes (X == 1 OR X == 2) AND (Y == 3).

{@link ResourceAction}s. only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Authorization

This endpoint requires read action on the custom-role resource type.

Path parameters

No parameters.

Query parameters

Parameter Type Optional Description

identityId

Object

true

Filters results to those granted to one of the specified identity ids.

resourceActionId

Object

true

Filters results to those that grant one of the specified ,{@link ResourceAction},s.

isDeleted

Boolean

true

When true, returns only those that are marked as deleted. When false, returns only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Request fields

No request body.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].name

String

true

The human friendly name of this {@link CustomRole}.

Must not be null.
Size must be between 1 and 256 inclusive.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link CustomRole} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link CustomRole} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[].deletedAt

String

true

The date-time at which this {@link CustomRole} was deleted. This will be null for an {@link CustomRole} that has not been deleted. If this property is not null, then the {@link CustomRole} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

[].deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

[].type

String

true

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-roles' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiIxaDF5dnQwLVdMQ3ZreHZtdVhfTWlBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjA2ZjA0YTMwLTE2MGEtNGQ3MC05OGE0LTVhZjY2ZGQyYzJmNCIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NCwiZXhwIjoxNzMwODI3NDY0LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0se1wiaWRcIjpcIjU3NDQ3OTAyLTc4YWQtNGZiNS05ODllLThiYTcyYjlhYmQ0ZVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg0NX0se1wiaWRcIjpcIjQyZmYzMjAzLWE1OGMtNGY3NC1iYzYxLTE5NzFlYzI0YzQz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bp1G5eramFyuwq3W5O3r1vC0PkPpaVBOYKlEGkEnsK9OlEwDJP__j5IaTS1zIGTrXcHWrHcw1jaaAFscZhMt15a3pTihybUXv23yb5ppPdjfHvVor_hkyVvDqDeILrzz6kSJIXZ8NEDyQpib5rwP7ESvPycVYKObRDYMdZ3j663QZlexv846Ig2mlfoh5ptqC3fWOpcQviiFYesItf8kOWfum47bQ'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1191

[ {
  "id" : "233ae92e-4b5d-4cab-9549-5d55fd1cbf6c",
  "name" : "Read-Only, ALL Auth Domain Resources",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:47.492251Z",
  "updatedAt" : "2024-11-05T16:23:47.492251Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "type" : "io.netfoundry.auth.domainv2.customrole.CustomRole",
  "_title" : "Read-Only, ALL Auth Domain Resources"
}, {
  "id" : "97315ed6-2fc7-4a40-b7ea-abe53cc6a188",
  "name" : "NF Support - Intervention",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:51.794444Z",
  "updatedAt" : "2024-11-05T16:23:51.794444Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "type" : "io.netfoundry.auth.domainv2.customrole.CustomRole",
  "_title" : "NF Support - Intervention"
}, {
  "id" : "d13c6293-cf62-4edd-999c-ebcb8f50a68b",
  "name" : "Test Custom Role 32",
  "createdBy" : "2dc7eb30-8f1b-409a-8e61-dc738c26aa29",
  "createdAt" : "2024-11-05T16:24:21.365493Z",
  "updatedAt" : "2024-11-05T16:24:21.365493Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "type" : "io.netfoundry.auth.domainv2.customrole.CustomRole",
  "_title" : "Test Custom Role 32"
} ]

Get Custom Role

GET /custom-roles/{id}

Authorization

This endpoint requires read action on the custom-role resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

name

String

true

The human friendly name of this {@link CustomRole}.

Must not be null.
Size must be between 1 and 256 inclusive.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link CustomRole} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link CustomRole} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link CustomRole} was deleted. This will be null for an {@link CustomRole} that has not been deleted. If this property is not null, then the {@link CustomRole} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

type

String

true

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-roles/e6a865b7-628e-4414-8775-5ed00bdf9338' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJxU1VacTFkU21aV2h1MFYtbFF3dElBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjllY2I3NzNhLWQ4M2QtNDJlNy1hNDQ5LTE4MTQ2NzU2OGEzYiIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NCwiZXhwIjoxNzMwODI3NDY0LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzM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biI6Ilt7XCJpZFwiOlwiZjEzNmYyZDYtY2ZkZi00OTdkLTlhMzMtNzVlZDcwY2FlMjczXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODY0fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.dSt_e7Iod5r8lk8zIGOSTENDRMgDxRllHtQuVyl3NamgWn9UYKak3gMMgObkN-Cq1zsUZoct3rODMXnAALmqByJiJj3IbPBNV2yKE2c1gl4hy5l0tp-Ws6hleGu6Suxd998NYwZcc2c5MKD5yDFSwqVeECQUK1UqzrWWXVZEn5CHSx7FgWBcZSbQiQuRD0XjgZcfAbB_ZwVdu7QmIPCxIofmZEjgE_1JmmZ6ufO5ANBerZQBRAtVt18YN74tIIATBcCpcHF11B-4jeG20BVvdiyaamGcB8v-ghFBDUPXhe69E5DkRGFrgUKV5h5dPtL6pv5qvGkL_81WLJL1Xejuow'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 379

{
  "id" : "e6a865b7-628e-4414-8775-5ed00bdf9338",
  "name" : "Test Custom Role 49",
  "createdBy" : "e07fc1bb-9eb9-4d79-8084-9b2c4b74a924",
  "createdAt" : "2024-11-05T16:24:24.473962Z",
  "updatedAt" : "2024-11-05T16:24:24.473962Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "type" : "io.netfoundry.auth.domainv2.customrole.CustomRole",
  "_title" : "Test Custom Role 49"
}

Create Custom Role

POST /custom-roles

Authorization

This endpoint requires create action on the custom-role resource type.

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

name

String

true

Must not be null.
Size must be between 1 and 256 inclusive.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

name

String

true

The human friendly name of this {@link CustomRole}.

Must not be null.
Size must be between 1 and 256 inclusive.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link CustomRole} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link CustomRole} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link CustomRole} was deleted. This will be null for an {@link CustomRole} that has not been deleted. If this property is not null, then the {@link CustomRole} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

type

String

true

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-roles' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJSc2lDZk1NMjc1dEUyZlh1NGYtZ1hBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6Ijc4OGM3NGUzLTFlYWItNGEyYS05MzMwLWE2ZDUyMWY4MWJjOCIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NCwiZXhwIjoxNzMwODI3NDY0LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0se1wiaWRcIjpcIjU3NDQ3OTAyLTc4YWQtNGZiNS05ODllLThiYTcyYjlhYmQ0ZVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg0NX0se1w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mVJUM2XG8dtxtzvlerQI6ZH4gTO2RAhjRDQ7seXgwcBfXtB86FoMnFzTsKwD5QHEVD61kp_2J4-_mmgfMg-BCSXw8GqbKioixcgeK05nvwaeYmStv5o2TD3_Xu3wl9Ppoduf7RFHJOoZkiYGfKddZnZYVOqNWtY06Vhk6355zUO3_EwOgH1jFCoA-oqluluaGKDjr6KR5iNXcMpvLSs9SsRVwc26sJdfThif42KbqITNq6v6HKPRrdSPg4Q7MwIFm3_GNGMBQxFqbFZb6vw' \
    -d '{"name":"Test Custom Role Create"}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 387

{
  "id" : "c4d16cbe-49a2-4f7e-ba9f-607bf7b88160",
  "name" : "Test Custom Role Create",
  "createdBy" : "788c74e3-1eab-4a2a-9330-a6d521f81bc8",
  "createdAt" : "2024-11-05T16:24:24.987391Z",
  "updatedAt" : "2024-11-05T16:24:24.987391Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "type" : "io.netfoundry.auth.domainv2.customrole.CustomRole",
  "_title" : "Test Custom Role Create"
}

Delete Custom Role

DELETE /custom-roles/{id}

Authorization

This endpoint requires delete action on the custom-role resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

No response body.

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-roles/ffdbe301-60e6-431e-b719-566397de8fc5' -i -X DELETE \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJzTk1SdjlZS0FVdG9qWkNPWXVFN0NBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjdjYWJjNzdhLTkyYTAtNDgwMS05NmViLTc3MjAwMTU1MDU1OCIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NSwiZXhw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MtNGU4My1iZThiLThjMTNkM2Y3NDFhMFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN30se1wiaWRcIjpcImFkMTZlYjc4LThkN2QtNGJkMS1iMzY4LTg1MGMyNDE0ZjY0N1wiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg2M30se1wiaWRcIjpcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiNGU4MzJhMDEtOTEyNS00YWNhLThjOTQtMDRmMDc3YzgwMjE2XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODY1fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.C4NjRDq1YJrzL6RX0uleHa4J0h8U1itdWNfx1RAMUxQemAYFo1fGehuI7yDG0T9yCXwI8NSLflKZTgN-BF6HhxMSR-Io0loYSNi7GztnLH9XIX3FBsQ8sEo9P6LpJ7BiUjo6fJp3uywmdocutX6FPBMxRr8PQgN_cnPeYiKl0L4dsL5yTbH8sffYq8hX9XqT3KHKteCB_rWbX4lmZRSVjRKG0BrcS5gNg2YA5t9CLB6Bl9griyp_9wX7eGSA_iFqzyXcNHZt-R8JCuzsiDRKh4cOdPrAm38Zpx-CqZK51cYyMJ-Zw_YlBba3GBqhuP5TRsLr6UpKR_6MZeES0ZB4xQ'

Example response

HTTP/1.1 200 OK

Grant Custom Role (deprecated)

POST /custom-roles/{id}/identity-grants/{identityId}

Deprecated.

Deprecated. Use {@link CustomRoleGrantController#createCustomRoleGrant} to grant an identity a standard role.

Authorization

This endpoint requires the following actions:

  • read action on the custom-role resource type

  • create action on the custom-role-grant resource type

Path parameters

Parameter Type Optional Description

id

Object

false

identityId

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

No response body.

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-roles/a07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Nl5LESYsXvdWti_8YCr613kwFgS1Zu1JampfL9XpVA2vWjzOBOsQ05Ihnu0VVSoqi4rxuMDPG-Vlpexnz-EgMn7pNYld-aN6H6B3zcp13cjyR_KFkj6hv84H5iHyqaJqt5eN7ElNcw-Wv1MhEQTWhQC96NetSloOgmRooJf3mIJ8jYMKQG01mhbgBh8-pv-aK51oNWb6bMMhyg'

Example response

HTTP/1.1 200 OK

Revoke Custom Role (deprecated)

DELETE /custom-roles/{id}/identity-grants/{identityId}

Deprecated.

Deprecated. Use {@link CustomRoleGrantController#createCustomRoleGrant} to grant an identity a standard role.

Authorization

This endpoint requires the following actions:

  • read action on the custom-role resource type

  • delete action on the custom-role-grant resource type

Path parameters

Parameter Type Optional Description

id

Object

false

identityId

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

No response body.

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-roles/6ee0bcf8-1211-4be6-9f6d-7922d811f09b/identity-grants/543afbb3-5239-47c6-b4b2-6a03ba5a13f0' -i -X DELETE \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJtS0JCN0o5ZGY2UVdTZU1xRWFxdk1BIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjBjNDdmOWNhLWY4YWQtNGMzNi04MjhiLWZjZmM3ZmIyODQwNSIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NSwiZXhwIjoxNzMwODI3NDY1LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wi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Tk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiMzU1OGY3NTctOTI1ZS00NjU3LTk1NTctOGNhNmQ3NDY3YThiXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODY1fSx7XCJpZFwiOlwiNjUzMjZjN2YtMTY0Yy00MGRkLWI5MTgtMGJkNGI2NzJkOTE0XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODY1fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.mSUr8PpTJn-wGEYbNlYkKuCK5J5wIz8eNnKMFs5TCZGn2d6nl9055g5jFWf1EgzUVwEj9-jwsPN-TEu8VeOKKweRCm9EV4L1t5-nVjVdNqkoOdtITWl4Qfjk0c7IUWa7rJYYLc_8T5WXkwkMJ751k-x_1jnMsdwdUrK4yiKBzpXffgelderDovwxqyK1tBlqAP4sqM91YejeYkQsjaxuZwSwUqW-3hiEu2nuWFWmCzBtWFY8aQMb-X_eSMnkjrTee21QPa2BXjAIW3CX9hSsNL7QjPFQhB-KzKL7NWViQHSqO45tmHoTTy_OiXZgKLWwuEXMkm1Y3sxNMbytGQyamA'

Example response

HTTP/1.1 200 OK

Custom Role Actions

Find Custom Role Actions

GET /custom-role-actions

Returns a set of {@link CustomRoleAction}s that the client is authorized to read and which match the specified (optional) query parameters.

If multiple query parameters are specified, then results must match each query parameter that is set. If a query parameter supports multiple values, then a result must match at least one of the values. In other words, distinct query parameters are AND’d while value matching within a single query parameter act as an OR condition. For example a query parameter "?x=1,2&y=3" becomes (X == 1 OR X == 2) AND (Y == 3).

{@link ResourceAction}s. For example, if the path is to Network X which is under Network Group Y, this would restrict the results to {@link CustomRoleAction}s that grant an action on any resource under Network X, an action on Network X itself, or an action on Network Group Y. Combine this query parameter with resourceActionIds to limit the results to the types of actions along the path that are of interest.
The path value must start with a domain code followed by a colon. It may then have a comma delimited sequence of colon separated resource type code and resource id pairs. The path structure must match that of the server defined resource tree for the specified resources in the specified domain. only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Authorization

This endpoint requires read action on the custom-role-action resource type.

Path parameters

No parameters.

Query parameters

Parameter Type Optional Description

customRoleId

Object

true

Filters results to those from one of the specified ,{@link CustomRole},s.

resourceActionId

Object

true

Filters results to those that grant one of the specified ,{@link ResourceAction},s.

path

Object

true

Filters results to those that target any resource along the specified path.,
, For example, if the path is to Network X which is under Network Group Y, this would restrict the results to ,{@link CustomRoleAction},s that grant an action on any resource under Network X, an action on Network X itself, or an action on Network Group Y. Combine this query parameter with resourceActionIds to limit the results to the types of actions along the path that are of interest.,
, The path value must start with a domain code followed by a colon. It may then have a comma delimited sequence of colon separated resource type code and resource id pairs. The path structure must match that of the server defined resource tree for the specified resources in the specified domain.

isDeleted

Boolean

true

When true, returns only those that are marked as deleted. When false, returns only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Request fields

No request body.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].customRoleId

String

true

The {@link CustomRole} that this {@link CustomRoleAction} belongs to. This {@link CustomRoleAction} should be granted to any identity that is granted this linked {@link CustomRole}.

Must not be null.

[].resourceActionId

String

true

The {@link ResourceAction} that this {@link CustomRoleAction} confers to the identities that hold the linked {@link CustomRole}.

Must not be null.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link CustomRoleAction} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link CustomRoleAction} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[].deletedAt

String

true

The date-time at which this {@link CustomRoleAction} was deleted. This will be null for an {@link CustomRoleAction} that has not been deleted. If this property is not null, then the {@link CustomRoleAction} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

[].deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

[].path

Array[Object]

true

The path (ordered pairs of resource type and id) from resource tree root to the target resource that this {@link CustomRoleAction} targets. For example, if this {@link CustomRoleAction} is "Update Widget Service" then this property defines the (id) path of/to the "Widget Service" resource. The path, specifically the ordered list of resource types that it contains, is co-variant to the {@link ResourceAction#getResourceTypeId()}. Both must target the same {@link ResourceType}.

Must not be null.

[].path[].resourceId

String

true

Must not be null.

[].path[].resourceTypeId

String

true

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-role-actions' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJUREJMT3ZTWm5kQmpUYWhBNFh4V1VRIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImQxZGZhODE4LTI2Y2YtNGMyNS1hNGIzLTgyOGIxZTdkNzM2MiIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2MSwiZXhwIjoxNzMwODI3NDYxLCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0se1wiaWRcIjpcIjU3NDQ3OTAyLTc4YWQtNGZiNS05ODllLThiYTcyYjlhYmQ0ZVwiLFw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zGsib3v-SqQak0X9bEWAP2ogaVbUWJqb7XTvDKzKym3sn2i9Q1FS0LrhCIHmWE5iZzRKOtz4Z0JMt-9rhQDVX8l9KPB7PqV60_g'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1282

[ {
  "id" : "cbe3cc20-44c2-47f8-a795-cf644e686e70",
  "customRoleId" : "f1e3d5d9-2899-4df7-89ab-297d29cc54bc",
  "resourceActionId" : "acbc2000-4405-4b4b-9b51-5b758dcf4daf",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:51.795604Z",
  "updatedAt" : "2024-11-05T16:23:51.795604Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ ],
  "_title" : "Read App Data Type, All"
}, {
  "id" : "2efcd012-b1ef-4e53-8cca-0e678486598b",
  "customRoleId" : "97315ed6-2fc7-4a40-b7ea-abe53cc6a188",
  "resourceActionId" : "a107f94a-016c-4c82-a4b8-2e37d29c9f81",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:51.805590Z",
  "updatedAt" : "2024-11-05T16:23:51.805590Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ ],
  "_title" : "Update Config Type, All"
}, {
  "id" : "30f5f13b-3e76-4899-b677-4b67c5844d2b",
  "customRoleId" : "665bf926-a4de-4a65-a59e-1206e0ff6fcb",
  "resourceActionId" : "b0a57a33-ac3f-4f9f-bd26-09554bd4efbd",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:47.988873Z",
  "updatedAt" : "2024-11-05T16:23:47.988873Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ ],
  "_title" : "Read Transfer Node Pool, All"
} ]

Get Custom Role Action

GET /custom-role-actions/{id}

Authorization

This endpoint requires read action on the custom-role-action resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

customRoleId

String

true

The {@link CustomRole} that this {@link CustomRoleAction} belongs to. This {@link CustomRoleAction} should be granted to any identity that is granted this linked {@link CustomRole}.

Must not be null.

resourceActionId

String

true

The {@link ResourceAction} that this {@link CustomRoleAction} confers to the identities that hold the linked {@link CustomRole}.

Must not be null.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link CustomRoleAction} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link CustomRoleAction} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link CustomRoleAction} was deleted. This will be null for an {@link CustomRoleAction} that has not been deleted. If this property is not null, then the {@link CustomRoleAction} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

path

Array[Object]

true

The path (ordered pairs of resource type and id) from resource tree root to the target resource that this {@link CustomRoleAction} targets. For example, if this {@link CustomRoleAction} is "Update Widget Service" then this property defines the (id) path of/to the "Widget Service" resource. The path, specifically the ordered list of resource types that it contains, is co-variant to the {@link ResourceAction#getResourceTypeId()}. Both must target the same {@link ResourceType}.

Must not be null.

path[].resourceId

String

true

Must not be null.

path[].resourceTypeId

String

true

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-role-actions/6e13a7f0-2cf5-4be6-acad-8bb473629335' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJITnZTZWQ2UDRtY0toX2wzaC0zNlVnIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6Ijk3YzViNjk2LWFlYzYtNDVjOC1hODFkLWQyNDJkYTZlNWNjMiIsImF1ZCI6ImlvLm5ldGZvdW5k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MzgyN30se1wiaWRcIjpcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiODgwNjg1ODUtNTBkNy00OTc1LTkyZWYtMjFmNGM5NGFlYTkyXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODYxfV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.cP0EBUPpexIhJpaimjFEFWZYKL_Oz_F6OmjBWUc6YBCVhgubjts7XPGxL3CYRSoVYmKEBPC3-F8sOFuXlSQPmV9rc8bdqTmKjl6cz1a2_3dZX1J_zxqIj2ERljo58l-J_uRlKy_wDM53ugMICUiAFjxipi1AHddYeCLUcZs4z_njiP8BenfGP4eQnuJS1_czk9trQyBG09R2mSMNN_QUjNtkFdP8OjGlE9pOEb_KFWemEPm0XL8dJuV4Y2iywaKqd5SSQn1HjgE3u0rbtbTGr3rVvgM6Ry84ix5LAPBZZS1bzlciF_7wU5HRUeon6nYV1aLjhQ_wMCGLm80b5QizHg'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 613

{
  "id" : "6e13a7f0-2cf5-4be6-acad-8bb473629335",
  "customRoleId" : "d13c6293-cf62-4edd-999c-ebcb8f50a68b",
  "resourceActionId" : "1fc25f78-8426-442c-8eae-7c77ea706814",
  "createdBy" : "9d8eeb74-6ac9-4382-81cb-ccc3566f3b20",
  "createdAt" : "2024-11-05T16:24:21.403535Z",
  "updatedAt" : "2024-11-05T16:24:21.403535Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ {
    "resourceId" : "60d5bb16-6dad-4257-8379-a06dfbd3acea",
    "resourceTypeId" : "31aaa307-6984-45d1-b368-45ff9bbe3259"
  } ],
  "_title" : "Test Action 35 Test Type 34 on/under Test Type 34 60d5bb16-6dad-4257-8379-a06dfbd3acea"
}

Create Custom Role Action

POST /custom-role-actions

Authorization

This endpoint requires the following actions:

  • create action on the custom-role-action resource type

  • read action on the custom-role resource type

  • read action on the resource-action resource type

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

customRoleId

String

true

Client must have create action under the annotated resource.
Client must have read action on the annotated resource.
Must not be null.

resourceActionId

String

true

Client must have read action on the annotated resource.
Must not be null.

path

Array[Object]

true

Must not be null.

path[].resourceId

String

true

Must not be null.

path[].resourceTypeId

String

true

Response fields

Path Type Optional Description

id

String

true

Must not be null.

customRoleId

String

true

The {@link CustomRole} that this {@link CustomRoleAction} belongs to. This {@link CustomRoleAction} should be granted to any identity that is granted this linked {@link CustomRole}.

Must not be null.

resourceActionId

String

true

The {@link ResourceAction} that this {@link CustomRoleAction} confers to the identities that hold the linked {@link CustomRole}.

Must not be null.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link CustomRoleAction} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link CustomRoleAction} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link CustomRoleAction} was deleted. This will be null for an {@link CustomRoleAction} that has not been deleted. If this property is not null, then the {@link CustomRoleAction} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

path

Array[Object]

true

The path (ordered pairs of resource type and id) from resource tree root to the target resource that this {@link CustomRoleAction} targets. For example, if this {@link CustomRoleAction} is "Update Widget Service" then this property defines the (id) path of/to the "Widget Service" resource. The path, specifically the ordered list of resource types that it contains, is co-variant to the {@link ResourceAction#getResourceTypeId()}. Both must target the same {@link ResourceType}.

Must not be null.

path[].resourceId

String

true

Must not be null.

path[].resourceTypeId

String

true

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-role-actions' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6I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ba3f9c6a-7c43-4800-b566-0f24c5235e84","resourceActionId":"5f6d27e6-ecb5-40b0-a8f2-513e5a97e082","path":[{"resourceId":"723fe45a-de3f-4656-8c78-fd33cd0115b0","resourceTypeId":"351f5533-5097-43ac-a005-a569af97fcf3"}]}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 604

{
  "id" : "921eb4fd-596e-4ee5-a286-25185a350d8e",
  "customRoleId" : "ba3f9c6a-7c43-4800-b566-0f24c5235e84",
  "resourceActionId" : "5f6d27e6-ecb5-40b0-a8f2-513e5a97e082",
  "createdBy" : "827b8154-f6cb-42e2-b31e-759540ed8b0f",
  "createdAt" : "2024-11-05T16:24:21.202147Z",
  "updatedAt" : "2024-11-05T16:24:21.202147Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ {
    "resourceId" : "723fe45a-de3f-4656-8c78-fd33cd0115b0",
    "resourceTypeId" : "351f5533-5097-43ac-a005-a569af97fcf3"
  } ],
  "_title" : "Test Action Test Type on/under Test Type 723fe45a-de3f-4656-8c78-fd33cd0115b0"
}

Delete Custom Role Action

DELETE /custom-role-actions/{id}

Authorization

This endpoint requires delete action on the custom-role-action resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

No response body.

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-role-actions/6f360a1e-d49b-49ba-bc14-585c74e88511' -i -X DELETE \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJjd2xUY0RIaEV6cEpHNmJYOFh1bnV3IiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjkzMzIzNzBjLTZiMmUtNGNhNy05MDY5LTk4YzEyOWY0NWI5OCIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgy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zU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiNjIyNmI3YjAtMTE3My00MjBlLThjYzQtYzczNmVkZGYyZjQyXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODYyfV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.SPJBAVPrGYA2Mr_02u8L75YWbslXk1ZwwW8ql7RsL25AJld2gbUcrTRWMcSrFLkOxYMRgB0gqtwJ5T7tIp7_d0wNs9Ikd55Hhs6uZfTiFHx7BTSFzCnMP5UacBPfPUMKF947QEhDzkxnuSSS8DN6cMY58I_P0wAEt658yTrDFHcXo1LGioXVZ42LaqRrbjAAWqlFlCxks_7MXVoM7RoJE9YPFS3yT3nHgUfgeV6mdt5Id77MzkD2JM8fHnp2MK9hKT7w9da7xrX-Gd3RTyfAuKc3hR8TGkCassj5IcPJQ_wvxGd8ZZVMM-20ZJjVls9K59K7uxg2t3y-yZQ5gREWnQ'

Example response

HTTP/1.1 200 OK

Custom Roles Grants

Find Custom Role Grants

GET /custom-role-grants

Returns a set of {@link CustomRoleGrant}s that the client is authorized to read and which match the specified (optional) query parameters.

If multiple query parameters are specified, then results must match each query parameter that is set. If a query parameter supports multiple values, then a result must match at least one of the values. In other words, distinct query parameters are AND’d while value matching within a single query parameter act as an OR condition. For example a query parameter "?x=1,2&y=3" becomes (X == 1 OR X == 2) AND (Y == 3).

only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Authorization

This endpoint requires read action on the custom-role-grant resource type.

Path parameters

No parameters.

Query parameters

Parameter Type Optional Description

customRoleId

Object

true

Filters results to grants to one of the specified ,{@link CustomRole},s.

customRoleIds

Object

true

Deprecated..

identityId

Object

true

Filters results to those granted to one of the specified identity ids.

identityIds

Object

true

Deprecated..

isDeleted

Boolean

true

When true, returns only those that are marked as deleted. When false, returns only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Request fields

No request body.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].identityId

String

true

Must not be null.

[].customRoleId

String

true

Must not be null.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link CustomRoleGrant} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link CustomRoleGrant} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[].deletedAt

String

true

The date-time at which this {@link CustomRoleGrant} was deleted. This will be null for an {@link CustomRoleGrant} that has not been deleted. If this property is not null, then the {@link CustomRoleGrant} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

[].deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-role-grants' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiI1SkZDS1RsUUhZSEpaamdvVmZhZjNnIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImIyNGY2YjZjLTdkMzEtNDczMC1hM2VhLTk0ZThmOTAxODYxYiIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2MiwiZXhwIjoxNzMwODI3NDYyLCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibG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KnC6EhVwkfGC78Waqj5bwX4qj9uxnpRbB4rJBLAomdUsSD0W1nmuTFposSGhje4RJUL2ieJ6OkSbvAe8HQIEjHzZU8a5oOtd0cJ-Ajknq-C2jvYMReNr2NNYrX_1HCLSBs2-AMMXYAyOGFN7gwoiMZdNYscNiwV8Dq9CkUriION6c2Nc_E3i1KEHhWP4p1d57SdoVbWgkgaFIYpp07mA4UWmQrSePSwXnwdbmZnJziYfSAlC_VmoyeGlNznho9N-1P51ZwQ_ZkjyEXsAeuEGkqBwoiiUTGwaXpKJQeMTr0Qk_GcoIGfbLxqeOw'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1415

[ {
  "id" : "e7827838-097c-41c4-aa82-70884845f38c",
  "identityId" : "e5f14eba-5792-4a1a-bcf1-9fa176637dd5",
  "customRoleId" : "233ae92e-4b5d-4cab-9549-5d55fd1cbf6c",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:47.520724Z",
  "updatedAt" : "2024-11-05T16:23:47.520724Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Grant Read-Only, ALL Auth Domain Resources to identity e5f14eba-5792-4a1a-bcf1-9fa176637dd5"
}, {
  "id" : "82afc5d2-1f78-4da5-b791-18dbd18aab5f",
  "identityId" : "81fc711b-d0dd-419d-9280-5d095958c76a",
  "customRoleId" : "233ae92e-4b5d-4cab-9549-5d55fd1cbf6c",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:51.918022Z",
  "updatedAt" : "2024-11-05T16:23:51.918022Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Grant Read-Only, ALL Auth Domain Resources to identity 81fc711b-d0dd-419d-9280-5d095958c76a"
}, {
  "id" : "88c39440-b826-4267-9432-ccd6165a3a7d",
  "identityId" : "6b41cd7c-1898-48a6-98b7-f634c364db27",
  "customRoleId" : "233ae92e-4b5d-4cab-9549-5d55fd1cbf6c",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:47.519446Z",
  "updatedAt" : "2024-11-05T16:23:47.519446Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Grant Read-Only, ALL Auth Domain Resources to identity 6b41cd7c-1898-48a6-98b7-f634c364db27"
} ]

Get Custom Role Grant

GET /custom-role-grants/{id}

Authorization

This endpoint requires read action on the custom-role-grant resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

identityId

String

true

Must not be null.

customRoleId

String

true

Must not be null.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link CustomRoleGrant} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link CustomRoleGrant} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link CustomRoleGrant} was deleted. This will be null for an {@link CustomRoleGrant} that has not been deleted. If this property is not null, then the {@link CustomRoleGrant} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-role-grants/ae3f1b52-e1e9-4642-baa6-8a6ce95c5be3' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJHbTNGN2tIa0tMZDBObmcxNFU5VUNnIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImFjOTMwYjJhLWE2MWUtNDdjMi1iYjU1LWVlNmExNDVkYTFlNSIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2MiwiZX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NDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiYzBhMWE1YjctOTg1Mi00Njk4LTk1OTktZTE0ZWZkOGE3ZGZiXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODYyfV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.YzTL5z8lOETDhAkdr91BGhtpyeo2J6jiuZDmtcfStyWU89ptTzaJTIhXBGH5Bj0kRBUdRjCPJ4XExcSDa_yw6G-TyA4IzPXdz_u-5WL02jiPNdc8mTTBtbtJEAPE6w70m26c1YVw6qiyqIxdLbtcvMMO5kRLlZUVAGYPyl-KELCKr3-BlJPE85kjtJZrhSSJm2uYdunBDfh3z2iX1Z5rcg6vtQDNXBSngVjzEuabeMXhAvKOeGLP3pOtK9H68E52O_7xOJtG0qhh1qoil3ZrhfgofrFJTpLZUC1p01rKjOpXIq3pcdGIxW3RXMHFikCSo-p2OivaGVZ34p-9LGEfwQ'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 452

{
  "id" : "ae3f1b52-e1e9-4642-baa6-8a6ce95c5be3",
  "identityId" : "34affd1c-bd4c-4dca-ab4e-5b190300755b",
  "customRoleId" : "33bc75fc-d30c-409d-bffb-cf700e8fdcad",
  "createdBy" : "b49108ff-d110-40a7-9ba1-d03fbe26281f",
  "createdAt" : "2024-11-05T16:24:22.293113Z",
  "updatedAt" : "2024-11-05T16:24:22.293113Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Grant Test Custom Role 40 to identity 34affd1c-bd4c-4dca-ab4e-5b190300755b"
}

Create Custom Role Grant

POST /custom-role-grants

Authorization

This endpoint requires the following actions:

  • create action on the custom-role-grant resource type

  • read action on the custom-role resource type

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

customRoleId

String

true

Client must have create action under the annotated resource.
Client must have read action on the annotated resource.
Must not be null.

identityId

String

true

Must not be null.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

identityId

String

true

Must not be null.

customRoleId

String

true

Must not be null.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link CustomRoleGrant} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link CustomRoleGrant} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link CustomRoleGrant} was deleted. This will be null for an {@link CustomRoleGrant} that has not been deleted. If this property is not null, then the {@link CustomRoleGrant} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-role-grants' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiI5ZkJRcU5uU0dPR3loZjlWbWIyaHFRIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjE2NGRhZmQ4LWVhMGYtNDQ0Ni1iZjJhLTVkNTc2NDVkNDM0MSIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2MiwiZXhwIjoxNzMwODI3NDYyLCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTcz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WRcIjoxNzMwODIzODYyfV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.XqEfsBPEfyD2xgRk7MWUa8c7daCARJbDjjl0zZz-q4h-LLoRWr2Hza7FJRZzKFIQdG42dxkd2hW6MIIojgShRZHMhJODgDVvdRu5BgksplAWnTyDJTQk8NALQv4sERREAl_S7DhUKIbF89pwg5l0KzurNqFqHq085iV51Ffo6N5CL3Y70HiCmZ6c72XdkFKayCMYhJEbRmO44BpW52BcShkfuQtWW8_8q_8V4zlWzUxV8gpyRLiNdUBvq7xzmwipLJ78n2MtP6DTrtmOdsOB1Oy5IyrywacxDqiJHrDiLwlPouQTS2URi2CZrTWmAdYdeSsleUaLWhRROU2J0B4CCA' \
    -d '{"customRoleId":"9f4f7a57-d855-4ee6-bf91-62f3e146dc3a","identityId":"f1ce9569-90dc-4a33-99a3-0535ae5d3137"}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 452

{
  "id" : "b30b7ae0-27a8-4ea3-b0c9-2311521ef9f0",
  "identityId" : "f1ce9569-90dc-4a33-99a3-0535ae5d3137",
  "customRoleId" : "9f4f7a57-d855-4ee6-bf91-62f3e146dc3a",
  "createdBy" : "164dafd8-ea0f-4446-bf2a-5d57645d4341",
  "createdAt" : "2024-11-05T16:24:22.808552Z",
  "updatedAt" : "2024-11-05T16:24:22.808552Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Grant Test Custom Role 42 to identity f1ce9569-90dc-4a33-99a3-0535ae5d3137"
}

Delete Custom Role Grant

DELETE /custom-role-grants/{id}

Authorization

This endpoint requires delete action on the custom-role-grant resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

No response body.

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/custom-role-grants/a3a8d2de-be7b-44bb-b437-1232d0b3bfec' -i -X DELETE \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZC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6MTczMDgyMzgyN30se1wiaWRcIjpcImMyNzA0ZDE3LWIyNGMtNGVlOS1hZDNlLTU2ODk5YWY1M2VlOFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcIjhmOGE3OTllLTA1MzMtNGU4My1iZThiLThjMTNkM2Y3NDFhMFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN30se1wiaWRcIjpcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiYTg1NTc3NjAtNDdhZi00YjFjLWI4MTktZWVhZjExODI4MDRiXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODYyfV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.CCwk2HS3bockoM86f98kFhe0iKCNxmqlEy_LmGw-ZSeWr6_KsEJN5CCrjRyrPCycjngq5ejUI7LfywsmWmbC1imNzHKtySMFMB_TZBtNdqky6NxO4uH3Z7fS3xK3p2JvceT5KxluGSW0OAdRLXccOiRSoYJZxYHhHsi6JBj22aAXcj26MXzoy_wjt0GSnJiZ0MhE2J_EIMBUQbOI_tM0gF6iJl0yZOnoo72TxA5UTGOsFiTykHmdLaC1xP9YndIV-2I3Z90YiFONjGrnIkWE0dx7V3e8JHxUb9y-CiMZBLPfwVD4N8SDKUsQryCGex6Zyu6LnTLpgRpkHcz3NK2-0w'

Example response

HTTP/1.1 200 OK

Standard Roles

Find Standard Roles

GET /standard-roles

Returns a set of {@link StandardRole}s that the client is authorized to read and which match the specified (optional) query parameters.

If multiple query parameters are specified, then results must match each query parameter that is set. If a query parameter supports multiple values, then a result must match at least one of the values. In other words, distinct query parameters are AND’d while value matching within a single query parameter act as an OR condition. For example a query parameter "?x=1,2&y=3" becomes (X == 1 OR X == 2) AND (Y == 3).

{@link StandardRoleType}s. identities. resources.
For example, if Network id X is passed, this would restrict the results to instances of a Network X Standard Role, such as Network Admin of Network X, Network Read-Only of Network X, etc. This would exclude Network Group Standard Roles, even if the Network Group contains Network X. For example, if the path is to Network X which is under Network Group Y, this would restrict the results to {@link CustomRoleAction}s that grant an action on any resource under Network X, an action on Network X itself, or an action on Network Group Y. Combine this query parameter with resourceActionIds to limit the results to the types of actions along the path that are of interest.
The path value must start with a domain code followed by a colon. It may then have a comma delimited sequence of colon separated resource type code and resource id pairs. The path structure must match that of the server defined resource tree for the specified resources in the specified domain. only those that are not marked deleted. When not set, defaults to false. To get both deleted and not deleted, make two queries.

Authorization

This endpoint requires read action on the standard-role resource type.

Path parameters

No parameters.

Query parameters

Parameter Type Optional Description

standardRoleTypeId

Object

true

Filters results to those that are of one of the specified ,{@link StandardRoleType},s.

identityId

Object

true

Filters results to those which have been granted to one of the specified identities.

resourceId

Object

true

Filters results to those that specifically target one of the specified resources.,
, For example, if Network id X is passed, this would restrict the results to instances of a Network X Standard Role, such as Network Admin of Network X, Network Read-Only of Network X, etc. This would exclude Network Group Standard Roles, even if the Network Group contains Network X.

path

Object

true

Filters results to those that target any resource along the specified path.,
, For example, if the path is to Network X which is under Network Group Y, this would restrict the results to ,{@link CustomRoleAction},s that grant an action on any resource under Network X, an action on Network X itself, or an action on Network Group Y. Combine this query parameter with resourceActionIds to limit the results to the types of actions along the path that are of interest.,
, The path value must start with a domain code followed by a colon. It may then have a comma delimited sequence of colon separated resource type code and resource id pairs. The path structure must match that of the server defined resource tree for the specified resources in the specified domain.

isDeleted

Boolean

true

When true, returns only those that are marked as deleted. When false, returns only those that are not marked deleted. When not set, defaults to false. To get both deleted and not deleted, make two queries.

Request fields

No request body.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].standardRoleTypeId

String

true

The 'type' of this {@link StandardRole}.

Must not be null.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link StandardRole} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link StandardRole} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[].deletedAt

String

true

The date-time at which this {@link StandardRole} was deleted. This will be null for an {@link StandardRole} that has not been deleted. If this property is not null, then the {@link StandardRole} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

[].deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

[].path

Array[Object]

true

The path (ordered pairs of resource type and id) from resource tree root to the target resource that this {@link StandardRole} targets. For example, if this {@link StandardRole} is "ACME Corporation Account Manager" then this property defines the (id) path of/to the "ACME Corporation" resource. The path, specifically the ordered list of resource types that it contains, is co-variant to this {@link StandardRole#standardRoleType}'s resource type. Both must target the same {@link ResourceType}.

Must not be null.

[].path[].resourceId

String

true

Must not be null.

[].path[].resourceTypeId

String

true

[].type

String

true

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/standard-roles' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiI2NVlpb1IyR3RmX1UybFVQeG5mYWhBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImFjOGE0M2MzLWQzZTEtNDYxYy1iOGIyLWY2MWNiYzExZmMzNSIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2MCwiZXhwIjoxNzMwODI3NDYwLCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5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Qxc_DfrwCCA9ijsX-85hKTCQQtak8APO4AEPympc_miw4K_O96slHOlgyCbqBbrvUtuvnRspHMbh5xUGxK20_ZT4Qvz-8fF2S3kIjuGzVDf9q9KDgTmKfh5OsXM4n5sQyhANw46D9UQRTiUWlfZxcx6ZNVWHcTXtqIJVnmUlQlXYzuaXk50Di5OLzhvVKIfF3sEBf-IaVCpD3LhKViKCeZ631X8Cx87fNntt9jt_2QP7ESQSR2qAwnbizjLjKN5DKUTDRhmW6cZcivUiGAXQyQOfB1HtR3xzPZlD1iygh_aHpMVpEtH_r8_YZAM7N1IWWA'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1923

[ {
  "id" : "ddd39147-0ce2-473d-93c7-25b1b404433d",
  "standardRoleTypeId" : "6e192f61-ab46-4283-87ca-bfefc500863e",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:51.877635Z",
  "updatedAt" : "2024-11-05T16:23:51.877635Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ {
    "resourceId" : "1ddb38fd-e93e-47a9-b5f6-fb9075f2ec0d",
    "resourceTypeId" : "805b64e0-a85c-447e-aa11-1ed2e915cd8d"
  }, {
    "resourceId" : "cf53e966-a3ad-4e80-a5fc-380fe8d48e57",
    "resourceTypeId" : "b67d84aa-4a9b-41cc-b9c5-7e3df4f77c99"
  } ],
  "type" : "io.netfoundry.auth.domainv2.standardrole.StandardRole",
  "_title" : "Standard Role Admin - cf53e966-a3ad-4e80-a5fc-380fe8d48e57"
}, {
  "id" : "f8a67255-0846-4992-851a-077ee32d2024",
  "standardRoleTypeId" : "a2b3be2a-773b-4ff0-8bde-9161497bfc45",
  "createdBy" : "b39b855a-89bf-44aa-90c5-4e93465386bd",
  "createdAt" : "2024-11-05T16:24:19.983663Z",
  "updatedAt" : "2024-11-05T16:24:19.983663Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ {
    "resourceId" : "29e14784-0167-4412-8ef5-4c7fe080761b",
    "resourceTypeId" : "cf405f70-ee71-4d3a-9638-3dcb5ccc835c"
  } ],
  "type" : "io.netfoundry.auth.domainv2.standardrole.StandardRole",
  "_title" : "Test Type 24 Admin - 29e14784-0167-4412-8ef5-4c7fe080761b"
}, {
  "id" : "cf53e966-a3ad-4e80-a5fc-380fe8d48e57",
  "standardRoleTypeId" : "1ddb38fd-e93e-47a9-b5f6-fb9075f2ec0d",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:51.870864Z",
  "updatedAt" : "2024-11-05T16:23:51.870864Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ {
    "resourceId" : "f0428619-11bd-403d-8b00-a463ff8aad84",
    "resourceTypeId" : "47dc0895-ea01-46bd-984f-b67706446e51"
  } ],
  "type" : "io.netfoundry.auth.domainv2.standardrole.StandardRole",
  "_title" : "Network Group Admin - f0428619-11bd-403d-8b00-a463ff8aad84"
} ]

Get Standard Role

GET /standard-roles/{id}

Authorization

This endpoint requires read action on the standard-role resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

standardRoleTypeId

String

true

The 'type' of this {@link StandardRole}.

Must not be null.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link StandardRole} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link StandardRole} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link StandardRole} was deleted. This will be null for an {@link StandardRole} that has not been deleted. If this property is not null, then the {@link StandardRole} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

path

Array[Object]

true

The path (ordered pairs of resource type and id) from resource tree root to the target resource that this {@link StandardRole} targets. For example, if this {@link StandardRole} is "ACME Corporation Account Manager" then this property defines the (id) path of/to the "ACME Corporation" resource. The path, specifically the ordered list of resource types that it contains, is co-variant to this {@link StandardRole#standardRoleType}'s resource type. Both must target the same {@link ResourceType}.

Must not be null.

path[].resourceId

String

true

Must not be null.

path[].resourceTypeId

String

true

type

String

true

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/standard-roles/f8a67255-0846-4992-851a-077ee32d2024' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJ0NFBLSVl6Qi1ZWThUcDc3a3pVQzRBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImFkOTdlNmVjLTcwYzQtNDRhZC1iNWU5LTY0NGIzNmFlODY4MCIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2MCwiZXhwIjoxNzMwODI3NDYwLCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0se1wiaWRcIjpcIjU3NDQ3OTAyLTc4YWQtNGZiNS05ODllLThiYTcyYjlhYmQ0ZVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg0NX0se1wiaWRcIjpcIjBkOTZiMz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sGVLj_somRp2kM3o3s03uk-aa81QIqC8FSjvsXGXKbyHLlQ'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 595

{
  "id" : "f8a67255-0846-4992-851a-077ee32d2024",
  "standardRoleTypeId" : "a2b3be2a-773b-4ff0-8bde-9161497bfc45",
  "createdBy" : "b39b855a-89bf-44aa-90c5-4e93465386bd",
  "createdAt" : "2024-11-05T16:24:19.983663Z",
  "updatedAt" : "2024-11-05T16:24:19.983663Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ {
    "resourceId" : "29e14784-0167-4412-8ef5-4c7fe080761b",
    "resourceTypeId" : "cf405f70-ee71-4d3a-9638-3dcb5ccc835c"
  } ],
  "type" : "io.netfoundry.auth.domainv2.standardrole.StandardRole",
  "_title" : "Test Type 24 Admin - 29e14784-0167-4412-8ef5-4c7fe080761b"
}

Create Standard Role

POST /standard-roles

Authorization

This endpoint requires the following actions:

  • create action on the standard-role resource type

  • read action on the standard-role-type resource type

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

standardRoleTypeId

String

true

Client must have create action under the annotated resource.
Client must have read action on the annotated resource.
Must not be null.

path

Array[Object]

true

Must not be null.

path[].resourceId

String

true

Must not be null.

path[].resourceTypeId

String

true

Response fields

Path Type Optional Description

id

String

true

Must not be null.

standardRoleTypeId

String

true

The 'type' of this {@link StandardRole}.

Must not be null.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link StandardRole} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link StandardRole} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link StandardRole} was deleted. This will be null for an {@link StandardRole} that has not been deleted. If this property is not null, then the {@link StandardRole} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

path

Array[Object]

true

The path (ordered pairs of resource type and id) from resource tree root to the target resource that this {@link StandardRole} targets. For example, if this {@link StandardRole} is "ACME Corporation Account Manager" then this property defines the (id) path of/to the "ACME Corporation" resource. The path, specifically the ordered list of resource types that it contains, is co-variant to this {@link StandardRole#standardRoleType}'s resource type. Both must target the same {@link ResourceType}.

Must not be null.

path[].resourceId

String

true

Must not be null.

path[].resourceTypeId

String

true

type

String

true

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/standard-roles' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJuUWs5VVpPQ0MyNnN2V3JGc0VmUkR3IiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImEwNjM5NzljLWRmNjUtNDgzMS05ZmJhLWY3NzIyYTBmMjNkYiIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2MCwiZXhwIjoxNzMwODI3NDYwLCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0se1wiaWRcIjpcIjU3NDQ3OTAyLTc4YWQtNGZiNS05ODllLThiYTcyYjlhYmQ0ZVwiLFwibGFzdE1vZGlmaWVkXCI6MT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fKUs0nXNo2U4O0IQ00gFo9aSdHVS8adGuuGpZdbW1RatPdBdR8glmRZq7UX0g5CqdVKyXN5OjSNNn5MKhNu34bKq08VK28Gq0FWtqOInxr4JQ3zE27vhOaXMj5GLgUZ1nYC2-zQDa_Bl1n7asNM7kMPdJEO7mlt9spUw4ErH2iy7rcx6fbA' \
    -d '{"standardRoleTypeId":"3d8b95a0-0f70-4de9-b87a-53c154be75d2","path":[{"resourceId":"b61a92b9-8615-4eed-a1a7-dfa2f95c4192","resourceTypeId":"a41f4605-5898-41ed-b43a-5d7c37cd91f1"}]}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 595

{
  "id" : "a985d9eb-f669-47a4-81b8-91c70854d341",
  "standardRoleTypeId" : "3d8b95a0-0f70-4de9-b87a-53c154be75d2",
  "createdBy" : "a063979c-df65-4831-9fba-f7722a0f23db",
  "createdAt" : "2024-11-05T16:24:20.284337Z",
  "updatedAt" : "2024-11-05T16:24:20.284337Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "path" : [ {
    "resourceId" : "b61a92b9-8615-4eed-a1a7-dfa2f95c4192",
    "resourceTypeId" : "a41f4605-5898-41ed-b43a-5d7c37cd91f1"
  } ],
  "type" : "io.netfoundry.auth.domainv2.standardrole.StandardRole",
  "_title" : "Test Type 26 Admin - b61a92b9-8615-4eed-a1a7-dfa2f95c4192"
}

Delete Standard Role

DELETE /standard-roles/{id}

Authorization

This endpoint requires delete action on the standard-role resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

No response body.

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/standard-roles/6c0e4685-960b-4871-ae89-185306623d7d' -i -X DELETE \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJ2U25tOG02c0R4V20wbVF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GlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcIjhmOGE3OTllLTA1MzMtNGU4My1iZThiLThjMTNkM2Y3NDFhMFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN30se1wiaWRcIjpcImUwZDRhMzU2LTk5YzctNDg0YS1hNzY1LWMwNzdjNDM4NWExMlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyN31dIiwiZ3JhbnRzLWFjdGlvbiI6Ilt7XCJpZFwiOlwiMmQ4OTliNGEtOGEyOC00YjgzLTkzOWYtZjI2Y2ZhMDc0Y2VjXCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODYwfV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.MP3hkqTw3Ts2bjcj9cowNb-oUzApMaix0rpUF9tkmmswUyEQYVMd3NTwSVkhkLnPYn2SlnyW-EeSul9vWNB_rfuyNlGk3tSbX_FtITkYpvvdSqS_bZlOs2_6jpEBfQrF5GUCN8lqlZoi-0HYFtPBosNpIhDakhZmGItEnX3CGNVowgRAi0vHvNtIRWw6Sy4BEkJCpMIhejPh4SCYOkEGxl5K2WhSrCfuFW3rZHgl-s0QmkrXBbKdr9RSOwW1zonULx905YgAqy5c9LjZe6zGGWbpMjM858as7FcHMheN9pQ7Sh5jdsVXeh7wfa5PzL8BR9nku7MjzutW834NYLOL2g'

Example response

HTTP/1.1 200 OK

Standard Roles Grants

Find Standard Role Grants

GET /standard-role-grants

Returns a set of {@link StandardRoleGrant}s that the client is authorized to read and which match the specified (optional) query parameters.

If multiple query parameters are specified, then results must match each query parameter that is set. If a query parameter supports multiple values, then a result must match at least one of the values. In other words, distinct query parameters are AND’d while value matching within a single query parameter act as an OR condition. For example a query parameter "?x=1,2&y=3" becomes (X == 1 OR X == 2) AND (Y == 3).

only those that are not marked deleted. When not set, defaults to false. To get both deleted and not deleted, make two queries.

Authorization

This endpoint requires read action on the standard-role-grant resource type.

Path parameters

No parameters.

Query parameters

Parameter Type Optional Description

standardRoleId

Object

true

Filters results to grants to one of the specified ,{@link StandardRole},s.

standardRoleIds

Object

true

Deprecated..

identityId

Object

true

Filters results to those granted to one of the specified identity ids.

identityIds

Object

true

Deprecated..

isDeleted

Boolean

true

When true, returns only those that are marked as deleted. When false, returns only those that are not marked deleted. When not set, defaults to false. To get both deleted and not deleted, make two queries.

Request fields

No request body.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].identityId

String

true

Must not be null.

[].standardRoleId

String

true

Must not be null.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link StandardRoleGrant} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link StandardRoleGrant} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[].deletedAt

String

true

The date-time at which this {@link StandardRoleGrant} was deleted. This will be null for an {@link StandardRoleGrant} that has not been deleted. If this property is not null, then the {@link StandardRoleGrant} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

[].deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/standard-role-grants' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiI3dmRMOW9XUmU1QUp5ejJuUmRYc2VRIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImNkZmI1NmNmLTk3YTUtNGM3NC04ZDRhLTU1MTZkMDE3OTY5NiIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg1OCwiZXhwIjoxNzMwODI3NDU4LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzL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dkMWItMGRhNi00ZWQ4LTgyOWItODJkYjk0MzI5MmM1XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODU4fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.YoG0Gc3oyKAoDDRmjYWrkLjcZaH6_sMrT5IzQuUGGOl-e4x3O2cycsPmfS2s4aBP5nFM3mzW8Wbc7Xrk79NPecBprm1preOg4Vx1K5EN9rWCh4ScvPDOpfsRQmOPARqRg_iIiZbpEa9a890HXrXHr8wFem8u0zzBDDWqqJ7FznWeF5Z8drB_eqmCndqtqiUNrQJCkMFUCQ9fuvwrQ23XEZr_0QFZxGxmyvHqKxZO8BLEjs73wTcWovRsFG6jjg6Y7_as2CFI4gwfpeXZskU-XhVEWF6gw_JYw1EwLpvfYFlewiQTXdvnzqrmOy9Cw5AhPQknCPfIyNEtG9N3J9b6eQ'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 496

[ {
  "id" : "c12188f3-05cc-49ab-a8e5-d84986592033",
  "identityId" : "fd1313ff-5d10-4a50-8c99-74651aa56f67",
  "standardRoleId" : "b3541f36-664d-45ce-acda-e279e8cdc036",
  "createdBy" : "55d05eea-5e2e-4579-89fb-de9fadfb53da",
  "createdAt" : "2024-11-05T16:24:18.746564Z",
  "updatedAt" : "2024-11-05T16:24:18.746564Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Grant Test Type 16 Admin - b35c0bb4-f250-4219-9704-3f3f2590fed3 to identity fd1313ff-5d10-4a50-8c99-74651aa56f67"
} ]

Get Standard Role Grant

GET /standard-role-grants/{id}

Authorization

This endpoint requires read action on the standard-role-grant resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

identityId

String

true

Must not be null.

standardRoleId

String

true

Must not be null.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link StandardRoleGrant} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link StandardRoleGrant} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link StandardRoleGrant} was deleted. This will be null for an {@link StandardRoleGrant} that has not been deleted. If this property is not null, then the {@link StandardRoleGrant} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/standard-role-grants/e198bf04-9288-4d71-857e-6ddfd54b4146' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiIxLUJ5clFVZ05rU3hNdk01Nzd5Q0dnIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImVjMDAyYjk3LWM2N2YtNGY0OC04ZmMwLTE0ZjMzMTc4MTA3YiIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg1OSwiZXhwIjoxNzMwODI3NDU5LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0se1wiaWRcIjpcIjU3NDQ3OTAyLTc4YWQtNGZiNS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4wnO3_oaz5Gd2lb-Rh9LqFKvAJT3Y6PvmVgr37X9Cv77AvAjGVDxGc8p40L_ozkCDZe4gNrww8A3_V3uLTii5H2aJcitPngPbuj06fQ2z1R--7qEBI4JQhTHxtA'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 492

{
  "id" : "e198bf04-9288-4d71-857e-6ddfd54b4146",
  "identityId" : "c881b674-d228-49b3-82ab-930a31e8da05",
  "standardRoleId" : "606238da-f69f-4378-9252-8b5f495ccb29",
  "createdBy" : "d09a2544-e02f-43a0-8fff-58037638cc70",
  "createdAt" : "2024-11-05T16:24:19.172452Z",
  "updatedAt" : "2024-11-05T16:24:19.172452Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Grant Test Type 18 Admin - 16a0e0bf-bc04-438f-befc-4a2ffd085896 to identity c881b674-d228-49b3-82ab-930a31e8da05"
}

Create Standard Role Grant

POST /standard-role-grants

Authorization

This endpoint requires the following actions:

  • create action on the standard-role-grant resource type

  • read action on the standard-role resource type

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

standardRoleId

String

true

Client must have create action under the annotated resource.
Client must have read action on the annotated resource.
Must not be null.

identityId

String

true

Must not be null.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

identityId

String

true

Must not be null.

standardRoleId

String

true

Must not be null.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link StandardRoleGrant} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link StandardRoleGrant} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link StandardRoleGrant} was deleted. This will be null for an {@link StandardRoleGrant} that has not been deleted. If this property is not null, then the {@link StandardRoleGrant} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/standard-role-grants' -i -X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ff-5d10-4a50-8c99-74651aa56f67"}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 492

{
  "id" : "c12188f3-05cc-49ab-a8e5-d84986592033",
  "identityId" : "fd1313ff-5d10-4a50-8c99-74651aa56f67",
  "standardRoleId" : "b3541f36-664d-45ce-acda-e279e8cdc036",
  "createdBy" : "55d05eea-5e2e-4579-89fb-de9fadfb53da",
  "createdAt" : "2024-11-05T16:24:18.746564Z",
  "updatedAt" : "2024-11-05T16:24:18.746564Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Grant Test Type 16 Admin - b35c0bb4-f250-4219-9704-3f3f2590fed3 to identity fd1313ff-5d10-4a50-8c99-74651aa56f67"
}

Delete Standard Role Grant

DELETE /standard-role-grants/{id}

Authorization

This endpoint requires delete action on the standard-role-grant resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

No response body.

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/standard-role-grants/18a43ff8-569c-4aeb-96b7-7b4b0b807410' -i -X DELETE \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJ3RHRSZlpKVzljUDRzVFN3SjA4SXhRIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImRiZTNhYzhkLTQ4NWItNDJlNC1iZGM2LWRmNjU0YTEwMzQ4MSIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg1OSwiZXhwIjoxNzMwODI3NDU5LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaW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W9kaWZpZWRcIjoxNzMwODIzODU5fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.JLbqydgjWLIU6vHXmA8Htj-R-TZz4JUhpCFf_LC6jaw3QKm5kpLc1tDdkgOAAPaGdQK7BL5RNUlxTomaPBacHmi36y-Kt3epjCy6Ek9NGl0IZnE20NP-0mL-TxdfELvlKSYByc8yN_10tDiaEhxPR6EUGIDlIGcB50XJ_OZRkhSRuWN_65T-u17eT0i2xB5naVew_ZOxHAqmObb34l15it2ka0W0ODbez0FBEBfqRebMbwrXBI4o5iWjjb3P8fkVRF28Ws_Tn71zQ88LvNIC7OyULFm5uk9LRFM9ZTjwncv6wEb394JpygMkC2nAIwN7EpHcE4Q0FKreVOd03SHMlA'

Example response

HTTP/1.1 200 OK

Standard Role Types

Find Standard Role Types

GET /standard-role-types

Returns a set of {@link StandardRoleType}s that the client is authorized to read and which match the specified (optional) query parameters.

If multiple query parameters are specified, then results must match each query parameter that is set. If a query parameter supports multiple values, then a result must match at least one of the values. In other words, distinct query parameters are AND’d while value matching within a single query parameter act as an OR condition. For example a query parameter "?x=1,2&y=3" becomes (X == 1 OR X == 2) AND (Y == 3).

{@link ResourceType}s. strategies. by the specified {@link StandardRoleType}. In other words, all returned {@link StandardRoleType}s are logical sub-sets of the {@link StandardRoleType} specified by this query parameter.

Authorization

This endpoint requires read action on the standard-role-type resource type.

Path parameters

No parameters.

Query parameters

Parameter Type Optional Description

resourceTypeId

Object

true

Filters results to those that target one of the specified ,{@link ResourceType},s.

resourceTypeIds

Object

true

Deprecated..

authorizationStrategyName

Object

true

Filters results to those that are of one of the specified strategies.

authorizationStrategyNames

Object

true

Deprecated..

includedByStandardRoleTypeId

Object

true

Filters results to those whose actions are fully included by the specified ,{@link StandardRoleType},. In other words, all returned ,{@link StandardRoleType},s are logical sub-sets of the ,{@link StandardRoleType}, specified by this query parameter.

Request fields

No request body.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].resourceTypeId

String

true

Must not be null.

[].authorizationStrategyName

String

true

Must not be null.
Size must be between 1 and 64 inclusive.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link StandardRoleType} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link StandardRoleType} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/standard-role-types' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJDOTRWXzBCRDJFdXpqVXdwX0c0VGpnIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjFlNWEzY2Y1LWFkMDMtNGU4Mi1hMmYxLWM5YmFhMWUwNmFmMCIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NSwiZXhwIjoxNzMwODI3NDY1LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0se1wiaWRcIjpcIjU3NDQ3OTAyLTc4YWQtNGZiNS05ODllLThiYTcyYjlhYmQ0ZVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg0NX0se1wia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ld9iXVMotBWCMCc_fssiznUzlzpWQUQ4ki51j_iphn-SlO5PpPbRKFSO08ptfN3hdRzYkAPN2vY9TS6YUrw7_d7-hA77IrjBc2vUbWok5WGuUUM1Zl5iiXduFcJmTjBikKSCznfbWI__1YiydfSir1okN80aTbkEhpAEPCveVXKCUkkNSRDpmKh1-A06ttJN-iGIL2czBMZQuZ-jVYP5OWERCO_Qqh5VWVAOTLKnZ5Aj9yvyEYnvrze3AMqgWNPwGZLAxZBf5N2s5g'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1027

[ {
  "id" : "a2b3be2a-773b-4ff0-8bde-9161497bfc45",
  "resourceTypeId" : "cf405f70-ee71-4d3a-9638-3dcb5ccc835c",
  "authorizationStrategyName" : "Admin",
  "createdBy" : "f301b0f2-7975-4b18-9e82-a98940c5d931",
  "createdAt" : "2024-11-05T16:24:19.976357Z",
  "updatedAt" : "2024-11-05T16:24:19.976357Z",
  "_title" : "Test Type 24 Admin"
}, {
  "id" : "04dbb7fd-5f0b-47d5-be29-fac13c0dc00c",
  "resourceTypeId" : "351f5533-5097-43ac-a005-a569af97fcf3",
  "authorizationStrategyName" : "Admin",
  "createdBy" : "0cbd5af6-90d8-49e5-9cfa-5da7e8ef75b0",
  "createdAt" : "2024-11-05T16:24:25.499472Z",
  "updatedAt" : "2024-11-05T16:24:25.499472Z",
  "_title" : "Test Type Admin"
}, {
  "id" : "fe5885a1-1589-45a5-a6a5-1725d72da96b",
  "resourceTypeId" : "779d69dc-d4af-4695-a74e-7b9246cef440",
  "authorizationStrategyName" : "Read-Only",
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:46.557424Z",
  "updatedAt" : "2024-11-05T16:23:46.557424Z",
  "_title" : "Organization Read-Only"
} ]

Get Standard Role Type

GET /standard-role-types/{id}

Authorization

This endpoint requires read action on the standard-role-type resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

resourceTypeId

String

true

Must not be null.

authorizationStrategyName

String

true

Must not be null.
Size must be between 1 and 64 inclusive.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link StandardRoleType} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link StandardRoleType} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/standard-role-types/af9b8393-12fd-45bf-aead-737a2d3a1b56' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJzdGZ4YmZnOU5DSlR0SUpIUXAyc3JBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImI3MTJhZjNiLTVkNjEtNDYzMS05NjIyLWJiYmY0MTc1ZWVmOCIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg2NSwiZXhwIjoxNzMwODI3NDY1LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0se1wiaWRcIjpcIjU3NDQ3OTAyLTc4YWQtNGZiNS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2VvUTF3VGaeq--DPo3KsbI70yQWLb2Q4zK2XqWK0UuhDqEosINgvx8RDPQk7jJ1zZ7OypiKwRoMqnlIDZjlodYuWHz2s0GYZRdtd0dz9me_9BAC4sCTDquWWf-bGoYgvYxMGsHgDkXHig7aT54bjZ7CKD3XZSnNi2m4FKvwoGZqzNSyEG3jNTep89RLXJn4wpzQFgsIAZeKdB5UBp8vgexn2FACMAav_dIhVus7UajoA1IHKkcolCQJPk_d_6vo57SQQpi2DFs7JXasO1cPPJ0fuyLJzPcVxcT-aBDYBhyDSfrcXzNrKriUmob_uP1yZx9HKA3zpjLGYAWelD2qg'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 338

{
  "id" : "af9b8393-12fd-45bf-aead-737a2d3a1b56",
  "resourceTypeId" : "f4820ff9-bc85-4c25-be17-d6905328e639",
  "authorizationStrategyName" : "Admin",
  "createdBy" : "2c8980d5-487f-473e-a10d-8a4bdd3de549",
  "createdAt" : "2024-11-05T16:24:25.622894Z",
  "updatedAt" : "2024-11-05T16:24:25.622894Z",
  "_title" : "Test Type 54 Admin"
}

Create Standard Role Type

POST /standard-role-types

Authorization

This endpoint requires the following actions:

  • create action on the standard-role-type resource type

  • read action on the resource-type resource type

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

resourceTypeId

String

true

Client must have read action on the annotated resource.
Must not be null.

authorizationStrategy

String

true

Must not be null.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

resourceTypeId

String

true

Must not be null.

authorizationStrategyName

String

true

Must not be null.
Size must be between 1 and 64 inclusive.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link StandardRoleType} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link StandardRoleType} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/standard-role-types' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: B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vECaDOiMt5qpldUNi2HTE4pK6GMxme_pVgVzq7S1y8W4Owpfso_T6PcinM5qB7JNnQsQkNfSjPJZn3xPrxKjpemthKz7_YaovMhtxN9LZvvF32ckmsPlg' \
    -d '{"resourceTypeId":"351f5533-5097-43ac-a005-a569af97fcf3","authorizationStrategy":"Admin"}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 335

{
  "id" : "04dbb7fd-5f0b-47d5-be29-fac13c0dc00c",
  "resourceTypeId" : "351f5533-5097-43ac-a005-a569af97fcf3",
  "authorizationStrategyName" : "Admin",
  "createdBy" : "0cbd5af6-90d8-49e5-9cfa-5da7e8ef75b0",
  "createdAt" : "2024-11-05T16:24:25.499472Z",
  "updatedAt" : "2024-11-05T16:24:25.499472Z",
  "_title" : "Test Type Admin"
}

Resource Action Inclusions in Standard Roles

Find Action Inclusions

GET /action-inclusions

Returns a set of {@link ActionInclusion}s that the client is authorized to read and which match the specified (optional) query parameters.

If multiple query parameters are specified, then results must match each query parameter that is set. If a query parameter supports multiple values, then a result must match at least one of the values. In other words, distinct query parameters are AND’d while value matching within a single query parameter act as an OR condition. For example a query parameter "?x=1,2&y=3" becomes (X == 1 OR X == 2) AND (Y == 3).

strategies. {@link ResourceAction}s. only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Authorization

This endpoint requires read action on the action-inclusion resource type.

Path parameters

No parameters.

Query parameters

Parameter Type Optional Description

resourceActionId

Object

true

Filters results to those that apply to one of the specified ,{@link ResourceAction},s.

authorizationStrategyName

Object

true

Filters results to those that apply to one of the specified strategies.

isDeleted

Boolean

true

When true, returns only those that are marked as deleted. When false, returns only those that are not marked deleted. When not set, returns all those that are otherwise matching, whether they are marked deleted or not.

Request fields

No request body.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].resourceActionId

String

true

Must not be null.

[].authorizationStrategyName

String

true

Must not be null.
Size must be between 1 and 64 inclusive.

[].includeWhenAbove

Boolean

true

True if the linked {@link ResourceAction} should be included in {@link StandardRole}s where this {@link ResourceAction}'s {@link ResourceType} is above the {@link StandardRoleType}'s {@link ResourceType}.

[].includeWhenAt

Boolean

true

True if the linked {@link ResourceAction} should be included in {@link StandardRole}s where this {@link ResourceAction}'s {@link ResourceType} is the same as the {@link StandardRoleType}'s {@link ResourceType}.

[].includeWhenBelow

Boolean

true

True if the linked {@link ResourceAction} should be included in {@link StandardRole}s where this {@link ResourceAction}'s {@link ResourceType} is below the {@link StandardRoleType}'s {@link ResourceType}.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link ActionInclusion} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link ActionInclusion} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[].deletedAt

String

true

The date-time at which this {@link ActionInclusion} was deleted. This will be null for an {@link ActionInclusion} that has not been deleted. If this property is not null, then the {@link ActionInclusion} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

[].deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/action-inclusions' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJGNjVJZWNQdldIc0dkRVk2b2Zka093IiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImE2NGI1YzExLTA4OTUtNDg0Ni04ZWMwLTY4NjAwOGVlZGFiYyIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg1NiwiZXhwIjoxNzMwODI3NDU2LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZl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LWJhMWItYWRmNjQ4ZGU2ODE2XCIsXCJsYXN0TW9kaWZpZWRcIjoxNzMwODIzODU2fV0iLCJncmFudHMtc3RhbmRhcmQiOiJbXSJ9.N89--JO8utn3ZyY9QgrFa6A0OX6oUmGjsyqYuelvAAisTls1KbtX8lkO31UpB5KmPIvr8xaQ4fMxj-9KKasEr9W4gLxyDXtLTpjEfikSqoGn8g88bVbKDUg00U-1KQHHVMZBq7IiwrxE5F1YtV4Hp1efiPwQSzc61SHqVIBpjtdUeLAoP_bNVMQUbxePF6GDbBMjYJhZeuVWN-esx7yZqlisSXvgDHxgZzGtg5z6mLrAAPISSeiGmRReGutjqv3eXuF-owdv8HmGE_efgQsm74k1RGWdnSofPZBS82SNUD1H7TNYYHuc6pK6Ms7V3sZt33ezGKwsOibvdE6zecsE2g'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1552

[ {
  "id" : "1f301de5-71ed-44db-a627-b56b5eea9931",
  "resourceActionId" : "c7ba58c4-710d-40a9-8b48-967f98006f06",
  "authorizationStrategyName" : "Admin",
  "includeWhenAbove" : false,
  "includeWhenAt" : false,
  "includeWhenBelow" : true,
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:46.346547Z",
  "updatedAt" : "2024-11-05T16:23:46.346547Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Inclusion Rules for Create Invitation in Admin Standard Roles"
}, {
  "id" : "2e99f19f-9b38-45bf-a89f-4cc5c1762dff",
  "resourceActionId" : "603e04f4-c95a-4d9b-baef-122339652b38",
  "authorizationStrategyName" : "Admin",
  "includeWhenAbove" : false,
  "includeWhenAt" : true,
  "includeWhenBelow" : true,
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:47.442547Z",
  "updatedAt" : "2024-11-05T16:23:47.442547Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Inclusion Rules for Update Custom Role in Admin Standard Roles"
}, {
  "id" : "c7217a0d-ddd2-4e97-9d5c-68211c3f2e30",
  "resourceActionId" : "cfc58eb4-0128-4d55-9c9d-8db26d174b3c",
  "authorizationStrategyName" : "Admin",
  "includeWhenAbove" : false,
  "includeWhenAt" : false,
  "includeWhenBelow" : true,
  "createdBy" : "0ab1b47d-a5de-4f39-a3bd-7b130cacf401",
  "createdAt" : "2024-11-05T16:23:47.435492Z",
  "updatedAt" : "2024-11-05T16:23:47.435492Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Inclusion Rules for Create Resource Action in Admin Standard Roles"
} ]

Get Action Inclusion

GET /action-inclusions/{id}

Authorization

This endpoint requires read action on the action-inclusion resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

Path Type Optional Description

id

String

true

Must not be null.

resourceActionId

String

true

Must not be null.

authorizationStrategyName

String

true

Must not be null.
Size must be between 1 and 64 inclusive.

includeWhenAbove

Boolean

true

True if the linked {@link ResourceAction} should be included in {@link StandardRole}s where this {@link ResourceAction}'s {@link ResourceType} is above the {@link StandardRoleType}'s {@link ResourceType}.

includeWhenAt

Boolean

true

True if the linked {@link ResourceAction} should be included in {@link StandardRole}s where this {@link ResourceAction}'s {@link ResourceType} is the same as the {@link StandardRoleType}'s {@link ResourceType}.

includeWhenBelow

Boolean

true

True if the linked {@link ResourceAction} should be included in {@link StandardRole}s where this {@link ResourceAction}'s {@link ResourceType} is below the {@link StandardRoleType}'s {@link ResourceType}.

createdBy

String

true

The identity id that created this resource.

Must not be null.

createdAt

String

true

The date-time at which this {@link ActionInclusion} was created.

Must not be null.

updatedAt

String

true

The date-time at which this {@link ActionInclusion} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

deletedAt

String

true

The date-time at which this {@link ActionInclusion} was deleted. This will be null for an {@link ActionInclusion} that has not been deleted. If this property is not null, then the {@link ActionInclusion} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

_title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/action-inclusions/de89c3f2-5cea-459d-90f0-944ea71d7d13' -i -X GET \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJtOEFGMmk0Q1ItcmlSQVVuVFFaUGd3IiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjY4YzRkN2QwLWYzYmMtNDQ4My04MTI5LTMxYTY3YzJiNDk3NiIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg1NiwiZXhwIjoxNzMwODI3NDU2LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0se1wiaWRcIjpcIjU3NDQ3OTAyLTc4YWQtNGZiNS05ODllLThiYTcyYjlhYmQ0ZVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg0NX0se1wiaWRcIjpcIjBkOTZiMzZlLTZiYzMtNDdmYi04ZWNjLWIwMWRmODhmMTM1NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOH0se1wiaWRcIjpcIjY1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c3f2-5cea-459d-90f0-944ea71d7d13",
  "resourceActionId" : "466b04bc-45fd-4150-b864-cd9f43b4d7e4",
  "authorizationStrategyName" : "Admin",
  "includeWhenAbove" : false,
  "includeWhenAt" : true,
  "includeWhenBelow" : true,
  "createdBy" : "52c8807c-3a85-416b-9392-b504fd9dbae8",
  "createdAt" : "2024-11-05T16:24:16.670008Z",
  "updatedAt" : "2024-11-05T16:24:16.670008Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Inclusion Rules for Test Action 8 Test Type 7 in Admin Standard Roles"
}

Create Action Inclusion

POST /action-inclusions

Authorization

This endpoint requires the following actions:

  • create action on the action-inclusion resource type

  • read action on the resource-action resource type

Path parameters

No parameters.

Query parameters

No parameters.

Request fields

Path Type Optional Description

resourceActionId

String

true

Client must have read action on the annotated resource.
Must not be null.

includeWhen

Map

true

Must not be empty.
Must not be null.

Response fields

Path Type Optional Description

[].id

String

true

Must not be null.

[].resourceActionId

String

true

Must not be null.

[].authorizationStrategyName

String

true

Must not be null.
Size must be between 1 and 64 inclusive.

[].includeWhenAbove

Boolean

true

True if the linked {@link ResourceAction} should be included in {@link StandardRole}s where this {@link ResourceAction}'s {@link ResourceType} is above the {@link StandardRoleType}'s {@link ResourceType}.

[].includeWhenAt

Boolean

true

True if the linked {@link ResourceAction} should be included in {@link StandardRole}s where this {@link ResourceAction}'s {@link ResourceType} is the same as the {@link StandardRoleType}'s {@link ResourceType}.

[].includeWhenBelow

Boolean

true

True if the linked {@link ResourceAction} should be included in {@link StandardRole}s where this {@link ResourceAction}'s {@link ResourceType} is below the {@link StandardRoleType}'s {@link ResourceType}.

[].createdBy

String

true

The identity id that created this resource.

Must not be null.

[].createdAt

String

true

The date-time at which this {@link ActionInclusion} was created.

Must not be null.

[].updatedAt

String

true

The date-time at which this {@link ActionInclusion} was updated. The only supported 'update' on this bean is to mark it as deleted.

Must not be null.

[].deletedAt

String

true

The date-time at which this {@link ActionInclusion} was deleted. This will be null for an {@link ActionInclusion} that has not been deleted. If this property is not null, then the {@link ActionInclusion} is 'marked' as being deleted. For data retention reasons, we never actually delete a resource.

[].deletedBy

String

true

The identity id that deleted this resource. This will be null until the resource is marked deleted.

[]._title

String

true

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/action-inclusions' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiJaVGE0T1RQZ2tYQ3FQOVVuZ3RSMWFBIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6IjYyMmNmYWY5LTFhNTEtNGRhOS1iZGE2LTI5NmM1MWZjYWQwMyIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg1NywiZXhwIjoxNzMwODI3NDU3LCJncmFudHMtc3VwZXIiOiJbXSIsImdyYW50cy1jdXN0b20iOiJbXSIsImdyYW50cy1wdWJsaWMiOiJbe1wiaWRcIjpcIjU1ZDUyMDYzLTExMmItNGZjOS04ODZlLWJhYjkxZDY1MWI3NlwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyNn0se1wiaWRcIjpcImFjOGQ4MTBjLWUyMGQtNDA4ZS1iYjczLTAwNjViMmZhYzI5ZFwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgzMH0se1wiaWRcIjpcIjdiZTNhMzgxLTBmYWMtNDhhMy04NDhiLTBmY2QzY2U3ZTY3YVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzgyOX0se1wiaWRcIjpcIjU3NDQ3OTAyLTc4YWQtNGZiNS05ODllLThiYTcyYjlhYmQ0ZVwiLFwibGFzdE1vZGlmaWVkXCI6MTczMDgyMzg0NX0se1wiaWRcIjpcIjBkOTZiMzZlLTZiYzMtNDdmYi04ZWNjLWIwMWRmODhmMTM1NlwiLF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YqY_W9kuxHkZCaf8vplqV2AEulbiTXf4cTqLZl3ofZoNtPSpoNWibJQYy2VnwRyiSlyydHDbigF3djXpqaSriP49Yrf_8AtQ20w' \
    -d '{"resourceActionId":"bf1120db-b8e7-4225-be35-5a80017a728b","includeWhen":{"Admin":{"above":false,"at":true,"below":true}}}'

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 526

[ {
  "id" : "34cf4810-e532-418f-9fd5-8c5f501f5ee2",
  "resourceActionId" : "bf1120db-b8e7-4225-be35-5a80017a728b",
  "authorizationStrategyName" : "Admin",
  "includeWhenAbove" : false,
  "includeWhenAt" : true,
  "includeWhenBelow" : true,
  "createdBy" : "622cfaf9-1a51-4da9-bda6-296c51fcad03",
  "createdAt" : "2024-11-05T16:24:17.402284Z",
  "updatedAt" : "2024-11-05T16:24:17.402284Z",
  "deletedAt" : null,
  "deletedBy" : null,
  "_title" : "Inclusion Rules for Test Action 14 Test Type 13 in Admin Standard Roles"
} ]

Delete Action Inclusion

DELETE /action-inclusions/{id}

Authorization

This endpoint requires delete action on the action-inclusion resource type.

Path parameters

Parameter Type Optional Description

id

Object

false

Query parameters

No parameters.

Request fields

No request body.

Response fields

No response body.

Example request

$ curl 'https://gateway.netFoundry.io/auth/v1/action-inclusions/9f46b2b8-d3b1-479a-a103-2189d11376f9' -i -X DELETE \
    -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImQwNTRlZDA0LTg0NjMtNGMxMi1iODE3LWJmMGEyMjc3ODI2OCJ9.eyJqdGkiOiI3blRsOGlILUtmUEhvM0NTTnUwRnRRIiwiaXNzIjoiTmV0Rm91bmRyeSIsInN1YiI6ImM2NTE0NDI4LTYwZWYtNDljOC05OGJjLTU4MzhkMjdlNTI5ZiIsImF1ZCI6ImlvLm5ldGZvdW5kcnkuYXV0aCIsImlhdCI6MTczMDgyMzg1NywiZXhwIjoxNzMwODI3NDU3LCJncmFudHMtc3VwZXIiOiJbXS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