All Products
Search
Document Center

ENS:DescribeEnsRouteEntryList

Last Updated:Dec 23, 2025

Queries route entries.

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:DescribeEnsRouteEntryListlist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RouteTableIdstringNo

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

vtb-hp3wdhynneo7fsclox8hs
RouteEntryIdstringNo

The ID of the route that you want to query.

rte-8vbdw66evgv44u2u7v3hx
DestinationCidrBlockstringNo

The destination Classless Inter-Domain Routing (CIDR) block of the route entry.

11.0.0.0/16
RouteEntryTypestringNo

The route type. Valid values:

  • Custom: custom route
  • System: system route
Custom
NextHopTypestringNo

The type of next hop of the custom route entry. Valid values:

  • Instance (default): an ENS instance.
  • HaVip: a high-availability virtual IP address (HAVIP).
  • NetworkPeer: VPC peering connection.
Instance
NextHopIdstringNo

The ID of the next hop.

i-2zecshuv3axtr2gc4noa
RouteEntryNamestringNo

The name of the route.

test0
PageNumberintegerNo

The page number of the returned page. Valid values: integers that are greater than 0. Default value: 1.

1
PageSizeintegerNo

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

10

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
RouteEntrysarray<object>

The information about the routes.

RouteEntryobject

The information about the route.

Statusstring

The status of the route entry. Valid values:

Available
Typestring

The type of the route entry.

Custom
Descriptionstring

Enter a description for the route.

test
RouteEntryNamestring

The name of the route.

test0
DestinationCidrBlockstring

The destination CIDR block of the route.

101.0.45.0/24
RouteEntryIdstring

The ID of the route.

rte-2zeksx7h436f5unk349m1
RouteTableIdstring

The ID of the route table.

vtb-uf62p9o5cn35fi8xgurnm
NextHopsarray<object>

The information about the next hop.

NextHopobject

The next hop.

NextHopIdstring

The ID of the next hop.

i-bp1111yup9991890woxq
NextHopTypestring

The type of the next hop. Valid values:

Instance
NextHopNamestring

The instance ID of the next hop.

testInstance
SourceCidrBlockstring

The source CIDR block. This field is used when you configure a route entry in the gateway route table. This field is not supported in the vSwitch route table.

10.XXX.XXX.0/24
CreationTimestring

The time when the IP address was created. The time is displayed in UTC.

2023-02-16T03:50:05Z
PageNumberinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries per page.

10
TotalCountinteger

The number of returned entries.

7

Examples

Sample success responses

JSONformat

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "RouteEntrys": [
    {
      "Status": "Available",
      "Type": "Custom",
      "Description": "test",
      "RouteEntryName": "test0",
      "DestinationCidrBlock": "101.0.45.0/24",
      "RouteEntryId": "rte-2zeksx7h436f5unk349m1",
      "RouteTableId": "vtb-uf62p9o5cn35fi8xgurnm",
      "NextHops": [
        {
          "NextHopId": "i-bp1111yup9991890woxq",
          "NextHopType": "Instance",
          "NextHopName": "testInstance"
        }
      ],
      "SourceCidrBlock": "10.XXX.XXX.0/24",
      "CreationTime": "2023-02-16T03:50:05Z"
    }
  ],
  "PageNumber": 1,
  "PageSize": 10,
  "TotalCount": 7
}

Error codes

HTTP status codeError codeError message
400Invalid%sThe specified parameter %s is invalid.
400Missing%sYou must specify the parameter %s.
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 response structure of the API has changedView Change Details
2024-12-26The Error code has changed. The response structure of the API has changedView Change Details
2024-11-05The Error code has changedView Change Details