All Products
Search
Document Center

DataWorks:ListRoutes

Last Updated:Mar 14, 2025

Queries a list of routes of a network resource.

Operation description

This API operation is available for all DataWorks editions.

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceGroupIdstringYes

The ID of the resource group.

Serverless_res_group_524257424564736_6831777003XXXXX
NetworkIdlongNo

The network ID.

1000
PageSizeintegerNo

The number of entries per page.

100
PageNumberintegerNo

The page number.

1
SortBystringNo

The fields used for sorting. Fields such as TriggerTime and StartedTime are supported. The value of this parameter is in the Sort field + Sort by (Desc/Asc) format. By default, results are sorted in ascending order. Valid values:

  • Id (Desc/Asc): the route ID
  • DestinationCidr (Desc/Asc): the destination CIDR block of the route
  • CreateTime (Desc/Asc): the time when the route is created

Default value: CreateTime Asc.

CreateTime Asc

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

Successboolean

Indicates whether the request was successful.

true
PagingInfoobject

The pagination information.

RouteListarray<object>

The list of network resource routing information obtained.

Dataobject
Idlong

Route ID

1000
ResourceGroupIdstring

Unique identifier of the resource group to which it belongs

Serverless_res_group_524257424564736_6831777003****
ResourceIdstring

Unique identifier of network resource

ns-679XXXXXX
DestinationCidrstring

Route destination CIDR

192.168.0.0/16
CreateTimelong

The creation time, which is a 64-bit timestamp.

1727055811000
NetworkIdlong

Network Resource ID

1000
PageNumberinteger

The page number.

1
PageSizeinteger

The number of entries per page.

100
TotalCountinteger

All data entries

100
RequestIdstring

The ID of the request. It is used to locate logs and troubleshoot problems.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "PagingInfo": {
    "RouteList": [
      {
        "Id": 1000,
        "ResourceGroupId": "Serverless_res_group_524257424564736_6831777003****",
        "ResourceId": "ns-679XXXXXX",
        "DestinationCidr": "192.168.0.0/16",
        "CreateTime": 1727055811000,
        "NetworkId": 1000
      }
    ],
    "PageNumber": 1,
    "PageSize": 100,
    "TotalCount": 100
  },
  "RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}

Error codes

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

Change history

Change timeSummary of changesOperation
2025-01-23The request parameters of the API has changedView Change Details
2025-01-02The request parameters of the API has changed. The response structure of the API has changedView Change Details