All Products
Search
Document Center

Cloud Enterprise Network:DescribeTransitRouteTableAggregation

Last Updated:Aug 07, 2025

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that support authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • You do not need to specify this parameter for the first request.

  • You must specify the token that is obtained from the previous query as the value of NextToken.

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: The aggregate route is advertised to all VPCs.

  • Configuring: The aggregate route is being advertised.

  • ConfigFailed: The aggregate route failed to be advertised.

  • PartialConfigured: The aggregate route is advertised to some VPCs.

  • Deleting: The aggregate route is being deleted.

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: 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.

  • VBR: The aggregate route is advertised to all VBRs that are attached to the Enterprise Edition transit router.

  • Peer: The aggregate route is advertised to transit routers that have an inter-region connection with the Enterprise Edition transit router.

  • VPN: The aggregate route is advertised to all VPN connections that are attached to the Enterprise Edition transit router.

  • ECR: The aggregate route is advertised to all ECR instances that are attached to the Enterprise Edition transit router.

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:

  • If NextToken is empty, no next page exists.

  • If a value is returned for NextToken, the value is the token that determines the start point of the next query.

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.