All Products
Search
Document Center

ENS:DescribeEnsRouteTables

Last Updated:Nov 27, 2024

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

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

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

The name of the route table.

test

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",
      "RouteEntryName": "test"
    }
  ]
}

Error codes

HTTP status codeError codeError message
400ens.interface.error An error occurred while call the API.
400NoPermissionPermission denied.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

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