Deletes a Resource Access Management (RAM) role.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request header. For more information, see Common request parameters.

Request syntax

POST /pop/v5/account/delete_role HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
RoleId Integer Yes 99999999

The ID of the RAM role.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

Message String success

The returned message.

RequestId String 042F329B-F518-4CC1-****-**********

The ID of the request.

Examples

Sample requests

POST /pop/v5/account/delete_role HTTP/1.1
Common request header
{
  "RoleId": 
}

Sample success responses

XML format

<Message>delete successfully</Message>
<Code>200</Code>

JSON format

{
	"Message": "delete successfully",
	"Code": 200
}

Error codes

For a list of error codes, visit the API Error Center.