Consulta todos os usuários de um cluster.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
ehpc:ListUsers |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ClusterId |
string |
Sim |
O ID do cluster E-HPC. Você pode chamar a operação ListClusters para consultar o ID do cluster. |
ehpc-hz-FYUr32**** |
| PageNumber |
integer |
Não |
O número da página a ser retornada. As páginas começam na página 1. Valor padrão: 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas a serem retornadas em cada página. Valores válidos: 1 a 50. Valor padrão: 10. |
10 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| PageSize |
integer |
O número de entradas retornadas por página. |
1 |
| RequestId |
string |
O ID da solicitação. |
04F0F334-1335-436C-A1D7-6C044FE7**** |
| PageNumber |
integer |
O número da página retornada. |
1 |
| TotalCount |
integer |
O número total de entradas retornadas. |
1 |
| Users |
object |
||
| UserInfo |
array<object> |
A lista de usuários. |
|
|
object |
|||
| Name |
string |
The username of the account. |
user1 |
| AddTime |
string |
The time when the user was created. |
2018-07-18T17:46:47 |
| Group |
string |
The name of the permission group. Valid values:
|
wheel |
Exemplos
Resposta de sucesso
JSON formato
{
"PageSize": 1,
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
"PageNumber": 1,
"TotalCount": 1,
"Users": {
"UserInfo": [
{
"Name": "user1",
"AddTime": "2018-07-18T17:46:47",
"Group": "wheel"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | The specified parameter %s is invalid. |
| 500 | UnknownError | An unknown error occurred. | An unknown error occurred. |
| 403 | InvalidClusterStatus | The operation failed due to invalid cluster status. | The cluster status does not support the operation. |
| 404 | ManagerNotFound | The manager nodes do not exist or their status is abnormal. | The manager nodes do not exist or their status is abnormal. |
| 404 | ClusterNotFound | The specified cluster does not exist. | The specified instance does not exist. |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | The request has failed due to a temporary failure of the server. |
| 406 | AgentError | The agent service request failed. | The cluster-side command failed to run. %s |
| 406 | AgentError.Account.DomainNotExist | The specified domain does not exist: %s. | The domain service does not exist: %s |
| 406 | AgentError.Account.GetentPasswdFailure | Failed to get the user list: %s. | Failed to obtain the domain user list: %s |
| 406 | AgentError.Account.GetUserListFailure | Get user list fail: %s | Failed to query the list of users: %s |
| 407 | NotAuthorized | You are not authorized by RAM for this request. | The request is not authorized by RAM. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.