Mengkueri detail pengguna.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListUsers |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
ID penyewa. Anda dapat memanggil operasi GetUserActiveTenant untuk memperoleh ID penyewa. |
3*** |
| Role |
string |
No |
Peran pengguna. Nilai yang valid:
Catatan
Anda dapat melihat peran Anda di sudut kanan atas konsol DMS. |
DBA |
| UserState |
string |
No |
Status pengguna. Nilai yang valid:
|
NORMAL |
| SearchKey |
string |
No |
Kata kunci yang digunakan untuk mencari pengguna. Pencocokan fuzzy didukung. |
test |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang akan dikembalikan pada setiap halaman. Catatan
Nilai yang valid: 10, 20, 50, dan 100. Nilai default: 10. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
Jumlah total entri yang dikembalikan. |
3 |
| RequestId |
string |
ID permintaan. |
69161997-6030-53BA-A333-DBEC83B732FF |
| ErrorCode |
string |
Kode kesalahan. |
InvalidTid |
| ErrorMessage |
string |
Pesan kesalahan. |
Specified parameter Tid is not valid. |
| UserList |
object |
||
| User |
array<object> |
Detail pengguna. |
|
|
array<object> |
Detail pengguna. |
||
| State |
string |
The status of the user. Valid values:
|
NORMAL |
| CurResultCount |
integer |
The number of rows that were queried on the current day. |
0 |
| UserId |
string |
The ID of the user. |
8**** |
| LastLoginTime |
string |
The time when the user last logged on to the console. |
2021-11-08 13:43:43 |
| MaxResultCount |
integer |
The maximum number of rows that can be queried on the current day. |
50000 |
| ParentUid |
string |
The ID of the Alibaba Cloud account of the user. |
140692647406**** |
| RoleIdList |
object |
||
| RoleIds |
array |
The IDs of the roles. |
|
|
integer |
The ID of the role that is assigned to the user. Valid values:
|
3 |
|
| RoleNameList |
object |
||
| RoleNames |
array |
The names of roles. |
|
|
string |
The name of the role that is assigned to the user. Valid values:
|
ADMIN |
|
| NickName |
string |
The nickname of the user. |
test_NickName |
| MaxExecuteCount |
integer |
The maximum number of queries that can be performed on the current day. |
2000 |
| CurExecuteCount |
integer |
The number of queries that were performed on the current day. |
0 |
| Mobile |
string |
The mobile phone number of the user. Catatan
|
1389999**** |
| Uid |
string |
The ID of the Alibaba Cloud account. |
167382665015**** |
|
string |
The email address that is used to receive notifications. Catatan
|
username@example.com |
|
| DingRobot |
string |
The DingTalk chatbot URL that is used to receive notifications. Catatan
|
https://XXX.dingtalk.com/robot/send?access_token=9b7a4a562cbe7fcdea9962afac7b9d7b4504d564948083419750f9cafa78e4ef |
| Webhook |
string |
The webhook URL that is used to receive notifications. Catatan
|
http://dms-XXX.aliyun.com:8*** |
| SignatureMethod |
string |
The signature method that is used to secure connections when a webhook URL is used. Valid values:
|
HMAC_SHA1 |
| NotificationMode |
string |
The notification method. The system returns one or more values. Valid values:
|
DINGROBOT |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"TotalCount": 3,
"RequestId": "69161997-6030-53BA-A333-DBEC83B732FF",
"ErrorCode": "InvalidTid",
"ErrorMessage": "Specified parameter Tid is not valid.",
"UserList": {
"User": [
{
"State": "NORMAL",
"CurResultCount": 0,
"UserId": "8****",
"LastLoginTime": "2021-11-08 13:43:43",
"MaxResultCount": 50000,
"ParentUid": "140692647406****",
"RoleIdList": {
"RoleIds": [
3
]
},
"RoleNameList": {
"RoleNames": [
"ADMIN"
]
},
"NickName": "test_NickName",
"MaxExecuteCount": 2000,
"CurExecuteCount": 0,
"Mobile": "1389999****",
"Uid": "167382665015****",
"Email": "username@example.com",
"DingRobot": "https://XXX.dingtalk.com/robot/send?access_token=9b7a4a562cbe7fcdea9962afac7b9d7b4504d564948083419750f9cafa78e4ef",
"Webhook": "http://dms-XXX.aliyun.com:8***",
"SignatureMethod": "HMAC_SHA1",
"NotificationMode": "DINGROBOT"
}
]
},
"Success": true
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.