Consulta uma lista de membros em um diretório de recursos.
Descrição da operação
Você pode usar apenas a conta de gerenciamento de um diretório de recursos ou uma conta de administrador delegado de um serviço confiável para chamar esta operação.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| PageNumber |
integer |
Não |
O número da página a ser retornada. As páginas começam a partir da 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 100. Valor padrão: 10. |
10 |
| QueryKeyword |
string |
Não |
A palavra-chave usada para a consulta, como o nome de exibição de um membro. A correspondência difusa é suportada. |
Advance |
| Tag |
array<object> |
Não |
As tags. Este parâmetro especifica uma condição de filtro. |
|
|
object |
Não |
As informações de uma tag. |
||
| Key |
string |
Não |
A chave da tag. |
tag_key |
| Value |
string |
Não |
O valor da tag. |
tag_value |
| IncludeTags |
boolean |
Não |
Especifica se as informações sobre tags devem ser retornadas. Valores válidos:
|
true |
| MaxResults |
integer |
Não |
O número de entradas por página. Após configurar este parâmetro, a paginação baseada em token é usada preferencialmente. Valores válidos: 1 a 100. Valor padrão: 10. |
10 |
| NextToken |
string |
Não |
O token de paginação usado na próxima solicitação para recuperar uma nova página de resultados. Se você deixar este parâmetro vazio, a consulta começará do início. |
TGlzdFJlc291cm**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O resultado retornado. |
||
| TotalCount |
integer |
O número total de entradas retornadas. |
2 |
| RequestId |
string |
O ID da solicitação. |
7B8A4E7D-6CFF-471D-84DF-195A7A241ECB |
| PageSize |
integer |
O número de entradas retornadas por página. |
5 |
| PageNumber |
integer |
O número da página retornada. |
1 |
| NextToken |
string |
Um token de paginação. Pode ser usado na próxima solicitação para recuperar uma nova página de resultados. Se NextToken estiver vazio, não existe próxima página. |
TGlzdFJlc291cm**** |
| Accounts |
object |
||
| Account |
array<object> |
As informações sobre os membros. |
|
|
array<object> |
As informações de um membro. |
||
| Status |
string |
The status of the member. Valid values:
|
CreateSuccess |
| Type |
string |
The type of the member. Valid values:
|
ResourceAccount |
| DisplayName |
string |
The display name of the member. |
test |
| FolderId |
string |
The ID of the folder. |
fd-QRzuim**** |
| ResourceDirectoryId |
string |
The ID of the resource directory. |
rd-3G**** |
| JoinTime |
string |
The time when the member joined the resource directory. The time is displayed in UTC. |
2021-01-18T08:01:50.522Z |
| AccountId |
string |
The Alibaba Cloud account ID of the member. |
181761095690**** |
| JoinMethod |
string |
The way in which the member joins the resource directory. Valid values:
|
created |
| ModifyTime |
string |
The time when the member was modified. The time is displayed in UTC. |
2021-01-18T08:04:37.668Z |
| ResourceDirectoryPath |
string |
The RDPath of the member. |
rd-3G****/r-Wm****/fd-QRzuim****/181761095690**** |
| AccountName |
string |
The Alibaba Cloud account name of the member. |
oxy01414357@alibaba-inc.com |
| DeletionStatus |
string |
The deletion status of the member. Valid values:
Nota
If deletion is not performed for the member, the value of this parameter is empty. |
Checking |
| Tags |
object |
||
| Tag |
array<object> |
The tags that are added to the member. |
|
|
object |
The information of a tag. |
||
| Key |
string |
The key of the tag. |
tag_key |
| Value |
string |
The value of the tag. |
tag_value |
Exemplos
Resposta de sucesso
JSON formato
{
"TotalCount": 2,
"RequestId": "7B8A4E7D-6CFF-471D-84DF-195A7A241ECB",
"PageSize": 5,
"PageNumber": 1,
"NextToken": "TGlzdFJlc291cm****",
"Accounts": {
"Account": [
{
"Status": "CreateSuccess",
"Type": "ResourceAccount",
"DisplayName": "test",
"FolderId": "fd-QRzuim****",
"ResourceDirectoryId": "rd-3G****",
"JoinTime": "2021-01-18T08:01:50.522Z",
"AccountId": "181761095690****",
"JoinMethod": "created",
"ModifyTime": "2021-01-18T08:04:37.668Z",
"ResourceDirectoryPath": "rd-3G****/r-Wm****/fd-QRzuim****/181761095690****",
"AccountName": "oxy01414357@alibaba-inc.com",
"DeletionStatus": "Checking",
"Tags": {
"Tag": [
{
"Key": "tag_key",
"Value": "tag_value"
}
]
}
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameter.MaxResults | The MaxResults is invalid. | |
| 400 | InvalidParameter.NextToken | The NextToken is invalid. | |
| 400 | InvalidParameter.NextToken.Length | The maximum length of NextToken (256 characters) is exceeded. | |
| 404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.