Queries the aggregate routes in the route table of an Enterprise Edition transit router.
Operation description
You can query the information about a specific aggregate route by specifying the TransitRouteTableId and TransitRouteTableAggregationCidr parameters. If you specify only the TransitRouteTableId parameter, the system queries the information about all aggregate routes in the route table of the Enterprise Edition transit router by default.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:DescribeTransitRouteTableAggregation |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TransitRouteTableId |
string |
Yes |
The ID of the route table of the Enterprise Edition transit router. |
vtb-6ehgc262hr170qgyc**** |
| TransitRouteTableAggregationCidr |
string |
No |
The destination CIDR block of the aggregate route. |
192.168.10.0/24 |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can generate the parameter value on your client to ensure that it is unique across different requests. The client token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the RequestId of the API request as the client token. The RequestId of each API request is different. |
02fb3da4-130e-11e9-8e44-001**** |
| MaxResults |
integer |
No |
The number of entries to return on each page. Default value: 20. |
20 |
| NextToken |
string |
No |
The token that is used for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned results. |
||
| Data |
array<object> |
The list of aggregate routes. |
|
|
object |
The aggregate route information. |
||
| Name |
string |
The name of the aggregate route. |
nametest |
| TransitRouteTableAggregationCidr |
string |
The destination CIDR block of the aggregate route. |
192.168.10.0/24 |
| Scope |
string |
The propagation scope of the aggregate route. Valid value: VPC, which indicates that the aggregate route is propagated to all VPC-connected instances that are associated with the route table of the current Enterprise Edition transit router and have route synchronization enabled. |
VPC |
| RouteType |
string |
The route type of the aggregate route. Valid value: Static, which indicates a static route. After the aggregate route is propagated to a VPC-connected instance, it becomes a custom route entry by default. |
Static |
| Description |
string |
The description of the aggregate route. |
desctest |
| TrRouteTableId |
string |
The ID of the route table of the Enterprise Edition transit router. |
vtb-6ehgc262hr170qgyc**** |
| Status |
string |
The propagation status of the aggregate route.
|
AllConfigured |
| ScopeList |
array |
The list of propagation scopes for the aggregate route. Note
You must specify at least one of the propagation scope and the propagation scope list. We recommend that you specify the propagation scope list. The elements in the propagation scope list cannot be the same as the value of the propagation scope. |
|
|
string |
The propagation scope of the aggregate route. Valid values:
|
VPC |
|
| Count |
integer |
The number of entries returned on each page. |
20 |
| NextToken |
string |
The token that is used for the next query. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| Total |
integer |
The total number of entries. |
1 |
| RequestId |
string |
The request ID. |
0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50 |
Examples
Success response
JSON format
{
"Data": [
{
"Name": "nametest",
"TransitRouteTableAggregationCidr": "192.168.10.0/24",
"Scope": "VPC",
"RouteType": "Static",
"Description": "desctest",
"TrRouteTableId": "vtb-6ehgc262hr170qgyc****",
"Status": "AllConfigured",
"ScopeList": [
"VPC"
]
}
],
"Count": 20,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"Total": 1,
"RequestId": "0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParam.transitRouterRouteTableId | Missing the parameter transitRouter route table id. | The error message returned because the transitRouterRouteTableId parameter is not set. |
| 400 | IllegalParam.NextToken | The nextToken is illegal. | The error message returned because the NextToken parameter is set to an invalid value. |
| 400 | InstanceNotExist.TransitRouterRouteTable | The transitRouter route table is not found. | The TransitRouteTable does not exist. |
| 400 | InvalidCidrBlock | The transitRouteTableAggregationCidr is invalid. | The cidrBlock specified in the parameter 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.