Consulta se as rotas de nuvens privadas virtuais (VPCs) e roteadores de borda virtuais (VBRs) são anunciadas para a instância da Cloud Enterprise Network (CEN) à qual as VPCs e os VBRs estão anexados, o tipo de instância do próximo salto de cada rota e se as rotas anunciadas podem ser retiradas.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
cen:DescribePublishedRouteEntries |
get |
*CenInstance
*virtualborderrouter
*VPC
|
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. Valor padrão: 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas por página. Valor padrão: 10. Valores válidos: 1 a 500. |
10 |
| CenId |
string |
Sim |
O ID da instância CEN. |
cen-7qthudw0ll6jm**** |
| ChildInstanceId |
string |
Sim |
O ID da instância de rede. |
vpc-bp18sth14qii3pnv**** |
| ChildInstanceType |
string |
Sim |
O tipo da instância de rede. Valores válidos:
|
VPC |
| ChildInstanceRegionId |
string |
Sim |
O ID da região onde a instância de rede está implantada. |
cn-hangzhou |
| ChildInstanceRouteTableId |
string |
Não |
O ID da tabela de rotas da instância de rede. |
vtb-bp174d1gje79u1g4**** |
| DestinationCidrBlock |
string |
Não |
O bloco CIDR de destino da rota que você deseja consultar. |
172.16.0.0/16 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| PageSize |
integer |
O número de entradas por página. |
10 |
| RequestId |
string |
O ID da solicitação. |
FF1A7B2A-677F-4F71-96EA-6002B329F437 |
| PageNumber |
integer |
O número da página. |
1 |
| TotalCount |
integer |
O número total de entradas retornadas. |
2 |
| PublishedRouteEntries |
object |
||
| PublishedRouteEntry |
array<object> |
Uma lista de entradas de rota. |
|
|
array<object> |
|||
| NextHopId |
string |
The ID of the instance associated with the next hop. |
ecs-bp18sth14qii3pn**** |
| PublishStatus |
string |
The advertise status of the route in the CEN instance:
|
Published |
| ChildInstanceRouteTableId |
string |
The ID of the route table of the network instance. |
vtb-il7qut3mjgtlcbpk2**** |
| NextHopType |
string |
The type of the instance associated with the next hop.
|
Instance |
| OperationalMode |
boolean |
Indicates whether the route can be advertised to or withdrawn from the CEN instance.
|
true |
| DestinationCidrBlock |
string |
The destination CIDR block of the route. |
172.16.0.0/16 |
| RouteType |
string |
The type of the route.
|
System |
| Conflicts |
object |
||
| Conflict |
array<object> |
A list of conflicting routes. |
|
|
object |
|||
| Status |
string |
The cause of the route conflict.
|
conflict |
| DestinationCidrBlock |
string |
The destination CIDR block of the conflicting route. |
192.168.20.0/24 |
| InstanceId |
string |
The ID of the peer network instance with which the route conflicts. |
ccn-0q3b7oviikmm9h**** |
| InstanceType |
string |
The type of the peer network instance with which the route conflicts.
|
CCN |
| RegionId |
string |
The ID of the region where the peer network instance with which the route conflicts is deployed. |
ccn-cn-shanghai |
Exemplos
Resposta de sucesso
JSON formato
{
"PageSize": 10,
"RequestId": "FF1A7B2A-677F-4F71-96EA-6002B329F437",
"PageNumber": 1,
"TotalCount": 2,
"PublishedRouteEntries": {
"PublishedRouteEntry": [
{
"NextHopId": " ecs-bp18sth14qii3pn****",
"PublishStatus": "Published",
"ChildInstanceRouteTableId": "vtb-il7qut3mjgtlcbpk2****",
"NextHopType": "Instance",
"OperationalMode": true,
"DestinationCidrBlock": "172.16.0.0/16",
"RouteType": "System",
"Conflicts": {
"Conflict": [
{
"Status": "conflict",
"DestinationCidrBlock": "192.168.20.0/24",
"InstanceId": "ccn-0q3b7oviikmm9h****",
"InstanceType": "CCN",
"RegionId": "ccn-cn-shanghai"
}
]
}
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | ParameterIllegal.CenInstanceId | The parameter of CEN instance id is illegal. | |
| 400 | ParameterIllegal.ChildInstanceRegionId | The parameter of child instance region id is illegal. | |
| 400 | VRC_ERROR | VRC error | |
| 400 | ParameterIllegal.ChildInstanceType | The parameter of child instance type is illegal. | |
| 400 | ParameterIllegal | The parameter is illegal. | The error message returned because a parameter is set to an invalid value. |
| 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. |
| 500 | InternalError | Internal error. | |
| 404 | Instance.NotExist | The instance is not exist. | The error message returned because the specified instance does not exist. |
| 409 | InvalidOperation.ChildInstanceStatus | The child-instance is not in a valid state for the operation. | |
| 409 | InvalidOperation.CenInstanceStatus | The CEN instance is not in a valid state for the operation. | The error message returned because the status of the CEN instance does not support this operation. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.