Get Custom Roles Using GET

Get Custom Roles Using GET

Get all custom roles in an organization.

Access Policy

Role User Accounts Service Accounts (Client Credentials Applications)
Organization Member ✔️ ✔️
Organization Admin ✔️ ✔️
Organization Owner ✔️ ✔️
Request
URI
GET
https://{api_host}/csp/gateway/iam-roles-mgmt/api/orgs/{orgId}/custom-roles
COPY
Path Parameters
string
orgId
Required

orgId

Query Parameters
string
locale
Optional

Locale for which the role description should be translated


Authentication
This operation uses the following authentication methods.
Responses
200

Success

Returns ResultsDtoCustomRoleDto of type(s) application/json
{
    "results": [
        {
            "permissions": [
                "string"
            ],
            "name": "string",
            "description": "string",
            "createdBy": "string",
            "displayName": "string",
            "lastModifiedBy": "string"
        }
    ]
}
array of object
results
Optional

The results of the operation


400

Invalid request body

Returns CspErrorResponse of type(s) application/json
"CspErrorResponse Object"
string
message
Optional

message

integer As int32 As int32
moduleCode
Optional

moduleCode

string
errorCode
Optional

errorCode

string
cspErrorCode
Optional

cspErrorCode

integer As int32 As int32
statusCode
Optional

statusCode

string
requestId
Optional

requestId


401

Unauthorized

Returns CspErrorResponse of type(s) application/json
"CspErrorResponse Object"
string
message
Optional

message

integer As int32 As int32
moduleCode
Optional

moduleCode

string
errorCode
Optional

errorCode

string
cspErrorCode
Optional

cspErrorCode

integer As int32 As int32
statusCode
Optional

statusCode

string
requestId
Optional

requestId


403

Forbidden

Returns CspErrorResponse of type(s) application/json
"CspErrorResponse Object"
string
message
Optional

message

integer As int32 As int32
moduleCode
Optional

moduleCode

string
errorCode
Optional

errorCode

string
cspErrorCode
Optional

cspErrorCode

integer As int32 As int32
statusCode
Optional

statusCode

string
requestId
Optional

requestId


404

Not Found

Returns CspErrorResponse of type(s) application/json
"CspErrorResponse Object"
string
message
Optional

message

integer As int32 As int32
moduleCode
Optional

moduleCode

string
errorCode
Optional

errorCode

string
cspErrorCode
Optional

cspErrorCode

integer As int32 As int32
statusCode
Optional

statusCode

string
requestId
Optional

requestId


429

The user has sent too many requests

Returns CspErrorResponse of type(s) application/json
"CspErrorResponse Object"
string
message
Optional

message

integer As int32 As int32
moduleCode
Optional

moduleCode

string
errorCode
Optional

errorCode

string
cspErrorCode
Optional

cspErrorCode

integer As int32 As int32
statusCode
Optional

statusCode

string
requestId
Optional

requestId


500

An unexpected error has occurred while processing the request

Returns CspErrorResponse of type(s) application/json
"CspErrorResponse Object"
string
message
Optional

message

integer As int32 As int32
moduleCode
Optional

moduleCode

string
errorCode
Optional

errorCode

string
cspErrorCode
Optional

cspErrorCode

integer As int32 As int32
statusCode
Optional

statusCode

string
requestId
Optional

requestId


Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/csp/gateway/iam-roles-mgmt/api/orgs/{orgId}/custom-roles