Grants permissions to a Resource Access Management (RAM) user.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SubAccountUserId | string | Yes | The ID of the RAM user or RAM role. | 27852573609480**** |
Permissions | string | No | The permissions that are granted to an entity. The content is a string that consists of JSON arrays. You must specify all permissions that you want to grant to an entity. You can add or remove permissions by modifying the content. Field definition of the sample code:
| [{"IsCustom":true,"RoleName":"istio-ops","Cluster":"c57b848115458460583a4260cb713****","RoleType":"custom","IsRamRole":false},{"IsCustom":true,"RoleName":"istio-ops","Cluster":"c4ec191f4e12145c09286ea3e2b8f****","RoleType":"custom","IsRamRole":false}] |
SubAccountUserIds | array | No | The IDs of RAM users or RAM roles. You can grant permissions to multiple users at a time. | |
string | No | The ID of the RAM user or RAM role. | 27852573609480**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "5A7C9E37-C171-584F-9A99-869B48C4****"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||
---|---|---|---|---|---|---|
2023-08-21 | The internal configuration of the API is changed, but the call is not affected | see changesets | ||||
| ||||||
2023-06-08 | The request parameters of the API has changed | see changesets | ||||
|