Obtains role-based access control (RBAC) permissions.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DescribeUserPermissions |
The operation that you want to perform. Set the value to DescribeUserPermissions. |
| SubAccountUserId | String | Yes | 27852573609480**** |
The ID of the RAM user or RAM role. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 5A7C9E37-C171-584F-9A99-869B48C4196D |
The ID of the request. |
| Permissions | Array of Permission |
The permissions that are granted to an entity. |
|
| ParentId | String | 0 |
This parameter is required by the system. The return value is fixed to |
| IsRamRole | String | false |
The entity to which the permissions are granted. A value of |
| ResourceType | String | cluster |
This parameter is required by the system. The return value is fixed to |
| RoleType | String | custom |
This parameter is required by the system. The return value is fixed to |
| RoleName | String | istio-admin |
The name of the permissions. Valid values:
|
| ResourceId | String | c57b848115458460583a4260cb713**** |
The ID of the ASM instance. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeUserPermissions
&SubAccountUserId=27852573609480****
&<Common request parameters>
Sample responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeUserPermissionsResponse>
<RequestId>5A7C9E37-C171-584F-9A99-869B48C4196D</RequestId>
<Permissions>
<ParentId>0</ParentId>
<IsRamRole>false</IsRamRole>
<ResourceType>cluster</ResourceType>
<RoleType>custom</RoleType>
<RoleName>istio-admin</RoleName>
<ResourceId>c57b848115458460583a4260cb713****</ResourceId>
</Permissions>
</DescribeUserPermissionsResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "5A7C9E37-C171-584F-9A99-869B48C4196D",
"Permissions" : {
"ParentId" : 0,
"IsRamRole" : false,
"ResourceType" : "cluster",
"RoleType" : "custom",
"RoleName" : "istio-admin",
"ResourceId" : "c57b848115458460583a4260cb713****"
}
}
Error codes
For a list of error codes, visit the API Error Center.