Get Custom Role Using GET
Get custom role by name.
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Organization Member | ✔️ | ✔️ |
Organization Admin | ✔️ | ✔️ |
Organization Owner | ✔️ | ✔️ |
orgId
Custom role name to get
Locale for which the role description should be translated
Success
{
"permissions": [
"string"
],
"name": "string",
"description": "string",
"createdBy": "string",
"displayName": "string",
"lastModifiedBy": "string"
}
Permissions of the custom role
Name of the custom role
Description of the custom role
createdBy
Display name of the custom role
lastModifiedBy
Invalid request body
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
Unauthorized
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
Forbidden
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
Not Found
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
The user has sent too many requests
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
An unexpected error has occurred while processing the request
"CspErrorResponse Object"
message
moduleCode
errorCode
cspErrorCode
statusCode
requestId
curl -H 'Authorization: <value>' https://{api_host}/csp/gateway/iam-roles-mgmt/api/orgs/{orgId}/custom-roles/{roleName}