Consulta os detalhes dos usuários.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
dms:ListUsers |
list |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| Tid |
integer |
Não |
O ID do locatário. Você pode chamar a operação GetUserActiveTenant para obter o ID do locatário. |
3*** |
| Role |
string |
Não |
A função atribuída ao usuário. Valores válidos:
Nota
Para verificar sua função, passe o ponteiro sobre a foto do perfil no canto superior direito do console do DMS. |
DBA |
| UserState |
string |
Não |
O status do usuário. Valores válidos:
|
NORMAL |
| SearchKey |
string |
Não |
A palavra-chave de pesquisa. Há suporte para correspondência aproximada. |
test |
| PageNumber |
integer |
Não |
O número da página a ser retornada. |
1 |
| PageSize |
integer |
Não |
O número de entradas a serem retornadas em cada página. Valores válidos: 10, 20, 50 e 100. Valor padrão: 10. |
10 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| TotalCount |
integer |
O número total de entradas retornadas. |
3 |
| RequestId |
string |
O ID da solicitação. |
69161997-6030-53BA-A333-DBEC83B732FF |
| ErrorCode |
string |
O código de erro retornado se a solicitação falhar. |
InvalidTid |
| ErrorMessage |
string |
A mensagem de erro retornada se a solicitação falhar. |
Specified parameter Tid is not valid. |
| UserList |
object |
||
| User |
array<object> |
Os detalhes dos usuários. |
|
|
array<object> |
Os detalhes do usuário. |
||
| 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. Nota
|
1389999**** |
| Uid |
string |
The ID of the Alibaba Cloud account. |
167382665015**** |
|
string |
The email address that is used to receive notifications. Nota
|
username@example.com |
|
| DingRobot |
string |
The DingTalk chatbot URL that is used to receive notifications. Nota
|
https://XXX.dingtalk.com/robot/send?access_token=9b7a4a562cbe7fcdea9962afac7b9d7b4504d564948083419750f9cafa78e4ef |
| Webhook |
string |
The webhook URL that is used to receive notifications. Nota
|
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 |
Indica se a solicitação foi bem-sucedida. Valores válidos:
|
true |
Exemplos
Resposta de sucesso
JSON formato
{
"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
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.