Get Custom Role Using GET

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 ✔️ ✔️
Request
URI
GET
https://{api_host}/csp/gateway/iam-roles-mgmt/api/orgs/{orgId}/custom-roles/{roleName}
COPY
Path Parameters
string
orgId
Required

orgId

string
roleName
Required

Custom role name to get

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 CustomRoleDto of type(s) application/json
{
    "permissions": [
        "string"
    ],
    "name": "string",
    "description": "string",
    "createdBy": "string",
    "displayName": "string",
    "lastModifiedBy": "string"
}
array of string
permissions
Optional

Permissions of the custom role

string
name
Optional

Name of the custom role

string
description
Optional

Description of the custom role

string
createdBy
Optional

createdBy

string
displayName
Optional

Display name of the custom role

string
lastModifiedBy
Optional

lastModifiedBy


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/{roleName}