Grant permissions to RAM roles.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:AuthorizeRole |
none |
*All Resource
|
None | None |
Request syntax
POST /pop/v5/account/authorize_role HTTP/1.1
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 elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The HTTP status code that is returned. |
200 |
| Message |
string |
The additional information that is returned. |
success |
| RequestId |
string |
The ID of the request. |
57609587-DFA2-******* |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"RequestId": "57609587-DFA2-*******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.