All Products
Search
Document Center

ENS:DescribeEnsRouteTables

Last Updated:Dec 23, 2025

Queries route tables.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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
ens:DescribeEnsRouteTableslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberintegerNo

The page number.

1
PageSizeintegerNo

The number of entries per page.

30
RouteTableIdstringNo

The ID of the route table.

vtb-5p1cifr72di****
NetworkIdstringNo

The ID of the network.

n-257gqcdfvx6n****
EnsRegionIdstringNo

The ID of the ENS node.

cn-xian-unicom
EnsRegionIdsarrayNo

The IDs of edge nodes. You can specify 1 to 100 IDs.

stringNo

The IDs of edge nodes.

cn-chengdu-telecom-4
TypestringNo

The SNAT type.

  • FullCone: full cone NAT.
FullCone
AssociateTypestringNo

The type of the resource with which the route table is associated. Valid values:

  • VSwitch
  • Gateway
Gateway
RouteTableNamestringNo

The name of the route table.

tftest-nat04

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

DC51ACB0-460D-5CA0-BA2D-E1F3B5547AE9
PageNumberinteger

The page number.

1
TotalCountinteger

The total number of entries returned.

10
PageSizeinteger

The number of entries per page.

30
RouteTablesarray<object>

The information about the route tables.

RouteTableobject

The information about the route table.

CreationTimestring

The time when the route table was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2024-03-08T08:35:18Z
Statusstring

The status. Valid values:

  • Available: The route table is available.
Available
RouteTableIdstring

The ID of the route table.

rt-5xde2bit9****
NetworkIdstring

The ID of the network.

n-5v9lufsezl4g****
VSwitchIdsarray

The vSwitches that are associated with the route table.

VSwitchstring

The vSwitch that is associated with the route table.

vsw-5f649tc4****
EnsRegionIdstring

The ID of the edge node.

cn-beijing-15
Typestring

The type of the route table. Examples:

  • Custom: custom route table.
  • System: system route table.
System
RouteTableNamestring

The name of the route table that you want to query.

The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-).

test-tf-vtb7
AssociateTypestring

The type of the resource with which the route table is associated. Valid values:

  • VSwitch
  • Gateway
VSwitch
Descriptionstring

The description.

test
IsDefaultGatewayRouteTableboolean

Specifies whether it is the default gateway route table.

false

Examples

Sample success responses

JSONformat

{
  "RequestId": "DC51ACB0-460D-5CA0-BA2D-E1F3B5547AE9",
  "PageNumber": 1,
  "TotalCount": 10,
  "PageSize": 30,
  "RouteTables": [
    {
      "CreationTime": "2024-03-08T08:35:18Z",
      "Status": "Available",
      "RouteTableId": "rt-5xde2bit9****",
      "NetworkId": "n-5v9lufsezl4g****",
      "VSwitchIds": [
        "vsw-5f649tc4****"
      ],
      "EnsRegionId": "cn-beijing-15",
      "Type": "System",
      "RouteTableName": "test-tf-vtb7",
      "AssociateType": "VSwitch",
      "Description": "test",
      "IsDefaultGatewayRouteTable": false
    }
  ]
}

Error codes

HTTP status codeError codeError message
400ens.interface.errorFailed to call API.
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

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

Change history

Change timeSummary of changesOperation
2025-03-13The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedView Change Details
2024-12-26The Error code has changed. The request parameters of the API has changedView Change Details