All Products
Search
Document Center

Cloud Enterprise Network:ListTransitRouterRouteTables

Last Updated:Mar 01, 2024

Queries the route tables of an Enterprise Edition transit router.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cen:ListTransitRouterRouteTablesRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
MaxResultsintegerNo

The number of entries per page. Valid values: 1 to 100. Default value: 20.

20
NextTokenstringNo

The token that determines the start point of the query. Valid values:

  • If this is your first query or no subsequent query is to be sent, ignore this parameter.
  • If a subsequent query is to be sent, set the value to the value of NextToken that is returned from the last call.
dd20****
TransitRouterRouteTableTypestringNo

The type of the route table. Valid values:

  • Custom: a custom route table
  • System: the default route table
Custom
TransitRouterIdstringNo

The ID of the Enterprise Edition transit router.

tr-uf654ttymmljlvh2x****
TransitRouterRouteTableStatusstringNo

The status of the route table. Valid values:

  • Creating: The route table is being created.
  • Deleting: The route table is being deleted.
  • Active: The route table is available.
Active
TransitRouterRouteTableNamesarrayNo

The name of the route table.

You can query multiple route tables in each call. Maximum value of N: 20.

Note If you set both TransitRouterRouteTableNames.N and TransitRouterRouteTableIds.N, make sure that the specified name and ID belong to the same route table.
stringNo

The name of the route table.

You can query multiple route tables in each call. Maximum value of N: 20.

Note If you set both TransitRouterRouteTableNames.N and TransitRouterRouteTableIds.N, make sure that the specified name and ID belong to the same route table.
testname
TransitRouterRouteTableIdsarrayNo

The ID of the route table.

You can query multiple route tables in each call. Maximum value of N: 20.

stringNo

The ID of the route table.

You can query multiple route tables in each call. Maximum value of N: 20.

vtb-bp1dudbh2d5na6b50****
Tagobject []No

The information about the tags.

You can specify at most 20 tags in each call.

KeystringNo

The tag key.

The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot start with acs: or aliyun. It cannot contain http:// or https://.

You can specify at most 20 tag keys.

test
ValuestringNo

The tag value.

The tag value can be 0 to 128 characters in length, and cannot start with aliyun or acs:. It cannot contain http:// or https://.

Each tag key must have a unique tag value. You can specify at most 20 tag values in each call.

test
RouteTableOptionsobjectNo

The features of the route table.

MultiRegionECMPstringNo

Specifies whether to enable equal-cost multi-path (ECMP) routing. Valid values:

  • disable: disables ECMP routing If you disable ECMP routing, routes that are learned from different regions but have the same prefix and attributes select the transit router with the smallest region ID as the next hop. Region IDs are sorted in alphabetic order. The network latency and bandwidth consumption also vary based on the region. Proceed with caution.
  • enable: enables ECMP routing. If you enable ECMP routing, routes that are learned from different regions but have the same prefix and attributes form an ECMP route. The network latency and bandwidth consumption also vary based on the region. Proceed with caution.
disable

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

NextTokenstring

The token that determines the start point of the next query. Valid values:

  • If NextToken was returned in the previous query, specify the value to obtain the next set of results.
  • If a value of NextToken is not returned, it indicates that no additional results exist.
dd20****
RequestIdstring

The ID of the request.

82678F4A-C9F7-4CC1-8BF0-D619A63BFC57
TotalCountinteger

The total number of entries returned.

1
MaxResultsinteger

The number of entries returned per page.

20
TransitRouterRouteTablesobject []

A list of route tables.

TransitRouterRouteTableStatusstring

The status of the route table. Valid values:

  • Creating
  • Deleting
  • Active
Active
TransitRouterRouteTableTypestring

The type of the route table. Valid values:

  • Custom
  • System
System
CreateTimestring

The time when the route table was created.

The time follows the ISO8601 standard in the YYYY-MM-DDThh:mmZ format. The time is displayed in UTC.

2021-03-15T09:39Z
TransitRouterRouteTableIdstring

The ID of the route table.

vtb-bp1dudbh2d5na6b50****
TransitRouterRouteTableNamestring

The name of the route table.

testname
TransitRouterRouteTableDescriptionstring

The description of the route table.

testdesc
Tagsobject []

The tags.

Keystring

The tag key.

test
Valuestring

The tag value.

test
RouteTableOptionsobject

The features of the route table.

MultiRegionECMPstring

Indicates whether ECMP routing is enabled. Valid values:

  • disable If ECMP routing is disabled, routes that are learned from different regions but have the same prefix and attributes select the transit router with the smallest region ID as the next hop. Region IDs are sorted in alphabetic order. The network latency and bandwidth consumption also vary based on the region. Proceed with caution.
  • enable If ECMP routing is enabled, routes that are learned from different regions but have the same prefix and attributes form an ECMP route. The network latency and bandwidth consumption also vary based on the region. Proceed with caution.
disable
RegionIdstring

The region ID of the Enterprise Edition transit router.

cn-beijing
TransitRouterIdstring

The transit router ID.

tr-8vb8bie2koduo5awz****

Examples

Sample success responses

JSONformat

{
  "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****"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalParam.NextTokenNextToken is illegalThe error message returned because the NextToken parameter is set to an invalid value.
400InvalidTransitRouterId.NotFoundTransitRouterId is not found.The error message returned because the ID of the transit router does not exist.
400IllegalParam.TagValueThe tag values are not valid.The error message returned because the specified tag value is invalid.
400IllegalParam.TagKeyThe tag keys are not valid.The error message returned because the specified tag key is invalid.
400MissingParam.TransitRouterIdOrTransitRouterRouteTablesEither TransitRouterId or TransitRouterRouteTables must be specified.The error message returned because you must set at least one of the TransitRouterId and TransitRouterRouteTables parameters.
400InvalidParameterInvalid parameter.The error message returned because the parameter is set to an invalid value.
400UnauthorizedThe AccessKeyId is unauthorized.The error message returned because you do not have the permissions to perform this operation.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-12-13The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
2023-10-18The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
2023-03-09The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
Output ParametersThe response structure of the API has changed.
2023-01-10The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: RouteTableOptions
Output ParametersThe response structure of the API has changed.