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 ID of the tenant, move the pointer 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. You can call the ListInstances or GetInstance operation to query the ID of the instance. |
174**** |
| UserName |
string |
No |
The nickname of the user. You can call the ListUsers or GetUser operation to query the nickname of the user. Note
The value of the NickName parameter is that of the UserName parameter. |
test_nick_name |
| PageNumber |
integer |
No |
The number of the page to return. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each 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 permissions of the user 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 details of permissions. |
|
|
object |
|||
| OriginFrom |
string |
The user who grants the permissions. |
Authorized by XXX |
| PermType |
string |
The type of the permissions. 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 is 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": "Authorized by 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.