Queries the aggregate routes in the route table of an Enterprise Edition transit router.
Operation description
You can specify the TransitRouteTableId and TransitRouteTableAggregationCidr parameters to query a specific aggregate route. If you specify only the TransitRouteTableId parameter, all aggregate routes in the route table of the Enterprise Edition transit router are queried 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. Generate a token from your client to ensure that the token is unique among different requests. The token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the RequestId of the request as the ClientToken. The RequestId is different for each request. |
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 pagination token that is used in the next request to retrieve a new page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The response that is returned. |
||
| Data |
array<object> |
A list of aggregate routes. |
|
|
object |
The information about the aggregate route. |
||
| 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 scope of the aggregate route. The value is set to VPC. This indicates that the aggregate route is advertised to all VPCs that are associated with the route table of the Enterprise Edition transit router and have route synchronization enabled. |
VPC |
| RouteType |
string |
The type of the aggregate route. The value is set to Static. This indicates that the route is a static route. After the aggregate route is advertised to a VPC, 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 advertising status of the aggregate route.
|
AllConfigured |
| ScopeList |
array |
The list of scopes of the aggregate route. Note
You must specify at least one of the Scope and ScopeList properties. We recommend that you specify ScopeList. The elements in ScopeList cannot be the same as the value of Scope. |
|
|
string |
The list of scopes of the aggregate route. Valid values:
|
VPC |
|
| Count |
integer |
The number of entries returned on each page. |
20 |
| NextToken |
string |
A pagination token. It can be used in the next request to retrieve a new page of results. 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. | |
| 400 | InvalidCidrBlock | The transitRouteTableAggregationCidr 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.