Skip to main content
You're reading Identity & Access Management 7.1.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

API resource management API

Download OpenAPI (YAML)Version v1

Base URL: https://localhost:9443/t/carbon.super/o/api/server/v1

The API Resource Management Rest API (version v1).

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

authorizationCode flow, token URL http://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize

API Resources​

List all API resources in the server​

GET /api-resources

List all API resources in the server

Scope(Permission) required: internal_org_api_resource_view

Parameters

NameInTypeRequiredDescription
beforequerystring

Base64 encoded cursor value for backward pagination.

afterquerystring

Base64 encoded cursor value for forward pagination.

filterquerystring

Condition to filter the retrieval of records. Supports 'sw', 'co', 'ew' and 'eq' operations.

limitqueryinteger

Maximum number of records to return.

attributesquerystring

Specifies the required attributes in the response. Only 'properties' attribute is currently supported.

Responses

CodeDescriptionSchema
200

OK

APIResourceListResponse
401

Unauthorized

403

Forbidden

500

Server Error

Error

Get API resource specified by the id​

GET /api-resources/{apiResourceId}

Get API resource specified by the id

Scope(Permission) required: internal_org_api_resource_view

Parameters

NameInTypeRequiredDescription
apiResourceIdpathstringYes

ID of the API Resource.

Responses

CodeDescriptionSchema
200

OK

APIResourceResponse
401

Unauthorized

403

Forbidden

500

Server Error

Error

API Resource Scopes​

Get API resource scopes​

GET /api-resources/{apiResourceId}/scopes

Get API resource scopes specified by the id

Scope(Permission) required: internal_org_api_resource_view

Parameters

NameInTypeRequiredDescription
apiResourceIdpathstringYes

ID of the API Resource.

Responses

CodeDescriptionSchema
200

OK

array of ScopeGetModel
401

Unauthorized

403

Forbidden

404

Not Found

Error
500

Server Error

Error

Get all scopes in the tenant​

GET /scopes

Get all scopes in the tenant

Scope(Permission) required: internal_org_api_resource_view

Parameters

NameInTypeRequiredDescription
filterquerystring

Condition to filter the retrieval of scopes by name. Supports 'sw', 'co', 'ew' and 'eq' operations.

Responses

CodeDescriptionSchema
200

OK

array of ScopeGetModel
401

Unauthorized

403

Forbidden

404

Not Found

Error
500

Server Error

Error

Schemas​

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestring
messagestring
descriptionstring
traceIdstring

APIResourceListItem​

Type: object

7 properties
NameTypeRequiredDescription
idstringYes
namestringYes
identifierstringYes
typestring
requiresAuthorizationboolean
propertiesarray of Property
selfstringYes

APIResourceResponse​

Type: object

10 properties
NameTypeRequiredDescription
idstringYes
namestringYes
descriptionstring
identifierstringYes
typestring
requiresAuthorizationboolean
scopesarray of ScopeGetModel
subscribedApplicationsarray of SubscribedApplicationGetModel
propertiesarray of Property
selfstringYes

APIResourceCreationModel​

Type: object

5 properties
NameTypeRequiredDescription
namestringYes
identifierstringYes
descriptionstring
requiresAuthorizationboolean
scopesarray of ScopeCreationModel

APIResourcePatchModel​

Type: object

4 properties
NameTypeRequiredDescription
namestring
descriptionstring
addedScopesarray of ScopeCreationModel
removedScopesarray of string

This field is not supported yet.

Type: object

2 properties
NameTypeRequiredDescription
relstring
hrefstring

APIResourceListResponse​

Type: object

3 properties
NameTypeRequiredDescription
totalResultsinteger
linksarray of PaginationLinkYes
APIResourcesarray of APIResourceListItem

APIResourceMap​

Type: object

2 properties
NameTypeRequiredDescription
readarray of APIResourceCollectionItem
writearray of APIResourceCollectionItem

APIResourceCollectionListItem​

Type: object

6 properties
NameTypeRequiredDescription
idstringYes
namestringYes
displayNamestringYes
typestring
apiResourcesAPIResourceMap
selfstringYes

APIResourceCollectionListResponse​

Type: object

2 properties
NameTypeRequiredDescription
totalResultsinteger
apiResourceCollectionsarray of APIResourceCollectionListItem

APIResourceCollectionItem​

Type: object

7 properties
NameTypeRequiredDescription
idstringYes
namestringYes
descriptionstring
identifierstring
typestring
scopesarray of ScopeGetModel
selfstringYes

APIResourceCollectionResponse​

Type: object

5 properties
NameTypeRequiredDescription
idstringYes
namestringYes
displayNamestringYes
typestring
apiResourcesAPIResourceMap

ScopeGetModel​

Type: object

4 properties
NameTypeRequiredDescription
idstringYes
displayNamestringYes
namestringYes
descriptionstring

ScopeCreationModel​

Type: object

3 properties
NameTypeRequiredDescription
namestringYes
displayNamestring
descriptionstring

ScopePatchModel​

Type: object

2 properties
NameTypeRequiredDescription
displayNamestring
descriptionstring

SubscribedApplicationGetModel​

Type: object

2 properties
NameTypeRequiredDescription
namestring
idstring

Property​

Type: object

2 properties
NameTypeRequiredDescription
namestringYes
valuestringYes

Was this page helpful?