All Products
Search
Document Center

Enterprise Distributed Application Service:AuthorizeRole

Last Updated:Mar 01, 2024

Grant permissions to RAM roles.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /pop/v5/account/authorize_role

DELETE /pop/v5/account/authorize_role

PUT /pop/v5/account/authorize_role

Request parameters

ParameterTypeRequiredDescriptionExample
TargetUserIdstringYes

The ID of the RAM user to which you want to assign the roles.

test@133******
RoleIdsstringYes

The ID of the role to be assigned. If you want to assign multiple roles to the specified RAM user, separate the IDs of the roles with semicolons (;). If you leave this parameter empty, the roles assigned to the specified RAM user are revoked.

1;2

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code that is returned.

200
Messagestring

The additional information that is returned.

success
RequestIdstring

The ID of the request.

57609587-DFA2-*******

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "57609587-DFA2-*******"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history