Grant permissions to RAM roles.
Debugging
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
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TargetUserId | string | Yes | The ID of the RAM user to which you want to assign the roles. | test@133****** |
RoleIds | string | Yes | 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
Examples
Sample success responses
JSON
format
{
"Code": 200,
"Message": "success",
"RequestId": "57609587-DFA2-*******"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history