Consulte les détails des utilisateurs.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
dms:ListUsers |
list |
*All Resource
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| Tid |
integer |
Non |
L'identifiant du locataire. Vous pouvez appeler l'opération GetUserActiveTenant pour obtenir l'identifiant du locataire. |
3*** |
| Role |
string |
Non |
Le rôle attribué à l'utilisateur. Valeurs valides :
Remarque
Pour vérifier votre rôle, placez le pointeur sur la photo de profil dans le coin supérieur droit de la console DMS. |
DBA |
| UserState |
string |
Non |
L'état de l'utilisateur. Valeurs valides :
|
NORMAL |
| SearchKey |
string |
Non |
Le mot-clé de recherche. La correspondance approximative est prise en charge. |
test |
| PageNumber |
integer |
Non |
Le numéro de la page à renvoyer. |
1 |
| PageSize |
integer |
Non |
Le nombre d'entrées à renvoyer sur chaque page. ** Valeurs valides : 10, 20, 50 et 100.**** Valeur par défaut : 10. |
10 |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
|||
| TotalCount |
integer |
Le nombre total d'entrées renvoyées. |
3 |
| RequestId |
string |
L'identifiant de la requête. |
69161997-6030-53BA-A333-DBEC83B732FF |
| ErrorCode |
string |
Le code d'erreur renvoyé si la requête a échoué. |
InvalidTid |
| ErrorMessage |
string |
Le message d'erreur renvoyé si la requête a échoué. |
Le paramètre Tid spécifié n'est pas valide |
| UserList |
object |
||
| User |
array<object> |
Les détails des utilisateurs. |
|
|
array<object> |
Les détails de l'utilisateur. |
||
| 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. Remarque
|
1389999**** |
| Uid |
string |
The ID of the Alibaba Cloud account. |
167382665015**** |
|
string |
The email address that is used to receive notifications. Remarque
|
username@example.com |
|
| DingRobot |
string |
The DingTalk chatbot URL that is used to receive notifications. Remarque
|
https://XXX.dingtalk.com/robot/send?access_token=9b7a4a562cbe7fcdea9962afac7b9d7b4504d564948083419750f9cafa78e4ef |
| Webhook |
string |
The webhook URL that is used to receive notifications. Remarque
|
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 |
Indique si la requête a réussi. Valeurs valides :
|
true |
Exemples
JSON format
{
"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
}
Codes d'erreur
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.