Queries the permissions of a user on an instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListInstanceUserPermissions |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The ID of the tenant. Note
To view the tenant ID, hover over the profile picture in the upper-right corner of the Data Management (DMS) console. For more information, see the "View information about the current tenant" section of the Manage DMS tenants topic. |
3*** |
| InstanceId |
string |
Yes |
The ID of the instance. Call the ListInstances or GetInstance operation to query the instance ID. |
174**** |
| UserName |
string |
No |
The nickname of the user. Call the ListUsers or GetUser operation to query the user nickname. Note
The value of the NickName parameter is that of the UserName parameter. |
test_nick_name |
| PageNumber |
integer |
No |
The page number to return. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
100 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of returned entries. |
1 |
| RequestId |
string |
The ID of the request. |
7D162AAE-6501-5691-BF14-D7018F662895 |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message. |
UnknownError |
| UserPermissions |
object |
||
| UserPermission |
array<object> |
The user permissions on the instance. |
|
|
array<object> |
|||
| UserId |
string |
The ID of the user. |
51**** |
| UserNickName |
string |
The nickname of the user. |
test_nick_name |
| InstanceId |
string |
The ID of the instance. |
174**** |
| PermDetails |
object |
||
| PermDetail |
array<object> |
The permission details. |
|
|
object |
|||
| OriginFrom |
string |
The user who granted the permissions. |
XXX授权 |
| PermType |
string |
The permission type. Valid values:
|
LOGIN |
| ExpireDate |
string |
The time when the permissions expire. |
2020-12-12 00:00:00 |
| CreateDate |
string |
The time when the permissions were granted. |
2019-12-12 00:00:00 |
| UserAccessId |
string |
The ID of the authorization record. |
773**** |
| ExtraData |
string |
This parameter is reserved. |
XXX |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"TotalCount": 1,
"RequestId": "7D162AAE-6501-5691-BF14-D7018F662895",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"UserPermissions": {
"UserPermission": [
{
"UserId": "51****",
"UserNickName": "test_nick_name",
"InstanceId": "174****",
"PermDetails": {
"PermDetail": [
{
"OriginFrom": "XXX授权",
"PermType": "LOGIN",
"ExpireDate": "2020-12-12 00:00:00",
"CreateDate": "2019-12-12 00:00:00",
"UserAccessId": "773****",
"ExtraData": "XXX"
}
]
}
}
]
},
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.