Delete Custom Role Using DELETE

Delete Custom Role Using DELETE

Delete custom role by name.

Access Policy

Role User Accounts Service Accounts (Client Credentials Applications)
Organization Admin ✔️ ✔️
Organization Owner ✔️ ✔️
Request
URI
DELETE
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 delete


Authentication
This operation uses the following authentication methods.
Responses
200

Success

Operation doesn't return any data structure

400

Invalid request body

Returns CspErrorResponse of type(s) application/json
{
    "message": "string",
    "moduleCode": 0,
    "errorCode": "string",
    "cspErrorCode": "string",
    "statusCode": 0,
    "requestId": "string"
}
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 -X DELETE -H 'Authorization: <value>' https://{api_host}/csp/gateway/iam-roles-mgmt/api/orgs/{orgId}/custom-roles/{roleName}