Consulta as instâncias de rede associadas a uma instância CEN.
Descrição da operação
Você pode usar um dos seguintes métodos para consultar as informações sobre as instâncias de rede associadas a uma instância CEN:
Você pode consultar todas as instâncias de rede associadas a uma instância CEN definindo o parâmetro CenId.
Você pode consultar as instâncias de rede associadas a uma instância CEN em uma região especificada definindo os parâmetros CenId e ChildInstanceRegionId.
Você pode consultar um tipo especificado de instâncias de rede associadas a uma instância CEN definindo os parâmetros CenId e ChildInstanceType.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
cen:DescribeCenAttachedChildInstances |
get |
*CenInstance
|
Nenhuma | Nenhuma |
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. Valor padrão: 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas a serem retornadas em cada página. Valor padrão: 10. Valores válidos: 1 a 50. |
10 |
| CenId |
string |
Sim |
O ID da instância CEN. |
cen-j3jzhw1zpau2km**** |
| ChildInstanceType |
string |
Não |
O tipo da instância de rede. Valores válidos:
|
VPC |
| ChildInstanceRegionId |
string |
Não |
O ID da região onde a instância de rede está implantada. Você pode chamar a operação DescribeRegions para consultar a lista de regiões mais recente. |
cn-zhangjiakou |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| PageSize |
integer |
O número de entradas retornadas por página. |
10 |
| RequestId |
string |
O ID da solicitação. |
B2063B16-852B-5B66-B73D-4ED4D1A5E5C2 |
| PageNumber |
integer |
O número da página retornada. |
1 |
| TotalCount |
integer |
O número total de entradas retornadas. |
1 |
| ChildInstances |
object |
||
| ChildInstance |
array<object> |
As informações sobre as instâncias de rede. |
|
|
object |
|||
| ChildInstanceType |
string |
The type of the network instance. Valid values:
|
VPC |
| Status |
string |
The status of the network instance. Valid values:
|
Attached |
| ChildInstanceRegionId |
string |
The ID of the region where the network instance is deployed. |
cn-zhangjiakou |
| ChildInstanceOwnerId |
integer |
The ID of the Alibaba Cloud account to which the network instance belongs. |
1688000000000000 |
| ChildInstanceId |
string |
The ID of the network instance. |
vpc-8vb1lu55yt9rlwgxl**** |
| ManagedService |
string |
The cloud service that the network instance belongs to. Its standard code is only returned when the VPC is connected to the transit router. For self-managed VPCs, no code is returned. |
swas |
| ChildInstanceAttachTime |
string |
The time when the network instance was attached to the CEN instance. The time follows the ISO8601 standard in the YYYY-MM-DDThh:mmZ format. The time is displayed in UTC. |
2021-08-10T06:27Z |
| CenId |
string |
The ID of the CEN instance. |
cen-j3jzhw1zpau2km**** |
Exemplos
Resposta de sucesso
JSON formato
{
"PageSize": 10,
"RequestId": "B2063B16-852B-5B66-B73D-4ED4D1A5E5C2",
"PageNumber": 1,
"TotalCount": 1,
"ChildInstances": {
"ChildInstance": [
{
"ChildInstanceType": "VPC",
"Status": "Attached",
"ChildInstanceRegionId": "cn-zhangjiakou",
"ChildInstanceOwnerId": 1688000000000000,
"ChildInstanceId": "vpc-8vb1lu55yt9rlwgxl****",
"ManagedService": "swas",
"ChildInstanceAttachTime": "2021-08-10T06:27Z",
"CenId": "cen-j3jzhw1zpau2km****"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.