Consulta as tabelas de rotas associadas a um transit router da Enterprise Edition.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
cen:ListTransitRouterRouteTables |
get |
TransitRouterRouteTable
TransitRouterRouteTable
TransitRouter
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| MaxResults |
integer |
Não |
O número de entradas a serem retornadas em cada página. Valores válidos: 1 a 100. Valor padrão: 20. |
20 |
| NextToken |
string |
Não |
O token usado para a próxima consulta. Valores válidos:
|
dd20**** |
| TransitRouterRouteTableType |
string |
Não |
O tipo da tabela de rotas. Valores válidos:
|
Custom |
| TransitRouterId |
string |
Não |
O ID do transit router da Enterprise Edition. |
tr-uf654ttymmljlvh2x**** |
| TransitRouterRouteTableStatus |
string |
Não |
O status da tabela de rotas. Valores válidos:
|
Active |
| TransitRouterRouteTableNames |
array |
Não |
O nome da tabela de rotas. Você pode consultar várias tabelas de rotas por vez. O valor máximo de N é 20. Nota
Se você consultar tabelas de rotas usando TransitRouterRouteTableNames.N e TransitRouterRouteTableIds.N simultaneamente, certifique-se de que os nomes e os IDs correspondam. |
testname |
|
string |
Não |
O nome da tabela de rotas. Você pode consultar várias tabelas de rotas por vez. O valor máximo de N é 20. Nota
Se você consultar tabelas de rotas usando TransitRouterRouteTableNames.N e TransitRouterRouteTableIds.N simultaneamente, certifique-se de que os nomes e os IDs correspondam. |
testname |
|
| TransitRouterRouteTableIds |
array |
Não |
O ID da tabela de rotas. Você pode consultar várias tabelas de rotas por vez. O valor máximo de N é 20. |
vtb-bp1l8awdb4iuo9uwu**** |
|
string |
Não |
O ID da tabela de rotas. Você pode consultar várias tabelas de rotas por vez. O valor máximo de N é 20. |
vtb-bp1dudbh2d5na6b50**** |
|
| Tag |
array<object> |
Não |
A tag. Você pode especificar até 20 tags. |
|
|
object |
Não |
|||
| Key |
string |
Não |
A chave da tag. A chave da tag não pode ser uma string vazia. A chave da tag pode ter até 64 caracteres e não pode começar com Você pode especificar até 20 chaves de tag. |
test |
| Value |
string |
Não |
O valor da tag. O valor da tag pode ser uma string vazia ou uma string de até 128 caracteres. Não pode começar com Cada chave de tag deve ter um valor de tag correspondente. Você pode especificar até 20 valores de tag. |
test |
| RouteTableOptions |
object |
Não |
Os recursos da tabela de rotas. |
|
| MultiRegionECMP |
string |
Não |
O recurso de roteamento de múltiplos caminhos de custo igual (ECMP) multirregião. Valores válidos:
Valores válidos:
|
disable |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
A resposta retornada. |
||
| NextToken |
string |
O token usado para a próxima consulta. Valores válidos:
|
dd20**** |
| RequestId |
string |
O ID da solicitação. |
82678F4A-C9F7-4CC1-8BF0-D619A63BFC57 |
| TotalCount |
integer |
O número total de entradas retornadas. |
1 |
| MaxResults |
integer |
O número de entradas retornadas por página. |
20 |
| TransitRouterRouteTables |
array<object> |
A lista de tabelas de rotas. |
|
|
array<object> |
|||
| TransitRouterRouteTableStatus |
string |
O status da tabela de rotas.
|
Active |
| TransitRouterRouteTableType |
string |
O tipo da tabela de rotas.
|
System |
| CreateTime |
string |
A hora em que a tabela de rotas foi criada. A hora é exibida no formato YYYY-MM-DDThh:mmZ em UTC. |
2021-03-15T09:39Z |
| TransitRouterRouteTableId |
string |
O ID da tabela de rotas. |
vtb-bp1dudbh2d5na6b50**** |
| TransitRouterRouteTableName |
string |
O nome da tabela de rotas. |
testname |
| TransitRouterRouteTableDescription |
string |
A descrição da tabela de rotas. |
testdesc |
| Tags |
array<object> |
A lista de tags. |
|
|
object |
|||
| Key |
string |
The tag key. |
test |
| Value |
string |
The tag value. |
test |
| RouteTableOptions |
object |
Os recursos da tabela de rotas. |
|
| MultiRegionECMP |
string |
The multi-region ECMP routing feature. Valid values:
Valores válidos:
|
disable |
| RegionId |
string |
O ID da região onde o transit router da Enterprise Edition está implantado. |
cn-beijing |
| TransitRouterId |
string |
O ID do transit router. |
tr-8vb8bie2koduo5awz**** |
Exemplos
Resposta de sucesso
JSON formato
{
"NextToken": "dd20****",
"RequestId": "82678F4A-C9F7-4CC1-8BF0-D619A63BFC57",
"TotalCount": 1,
"MaxResults": 20,
"TransitRouterRouteTables": [
{
"TransitRouterRouteTableStatus": "Active",
"TransitRouterRouteTableType": "System",
"CreateTime": "2021-03-15T09:39Z",
"TransitRouterRouteTableId": "vtb-bp1dudbh2d5na6b50****",
"TransitRouterRouteTableName": "testname",
"TransitRouterRouteTableDescription": "testdesc",
"Tags": [
{
"Key": "test",
"Value": "test"
}
],
"RouteTableOptions": {
"MultiRegionECMP": "disable"
},
"RegionId": "cn-beijing",
"TransitRouterId": "tr-8vb8bie2koduo5awz****"
}
]
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | IllegalParam.NextToken | NextToken is illegal | The error message returned because the NextToken parameter is set to an invalid value. |
| 400 | InvalidTransitRouterId.NotFound | TransitRouterId is not found. | The error message returned because the ID of the transit router does not exist. |
| 400 | IllegalParam.TagValue | The tag values are not valid. | The error message returned because the specified tag value is invalid. |
| 400 | IllegalParam.TagKey | The tag keys are not valid. | The error message returned because the specified tag key is invalid. |
| 400 | MissingParam.TransitRouterIdOrTransitRouterRouteTables | Either TransitRouterId or TransitRouterRouteTables must be specified. | The error message returned because you must set at least one of the TransitRouterId and TransitRouterRouteTables parameters. |
| 400 | InvalidName | Name is invalid. | The error message returned because the specified name is invalid. |
| 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.