GetRoute

更新时间:
复制 MD 格式

Queries the information about a route based on its ID.

Operation description

This API operation is available for all DataWorks editions.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Id

integer

Yes

The route ID.

1000

Response elements

Element

Type

Description

Example

object

The response parameters.

Success

boolean

Indicates whether the request was successful.

true

Route

object

The information about the route.

Id

integer

The route ID.

1000

ResourceGroupId

string

The resource group ID.

Serverless_res_group_524257424564736_6831777003XXXXX

ResourceId

string

The network resource ID.

ns-679XXXXX

DestinationCidr

string

The CIDR block of the destination-based route.

192.168.0.0/16

CreateTime

integer

The time when the route was created. The value is a 64-bit timestamp.

1727055811000

NetworkId

integer

The network ID.

1000

RequestId

string

The request ID.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Success response

JSON format

{
  "Success": true,
  "Route": {
    "Id": 1000,
    "ResourceGroupId": "Serverless_res_group_524257424564736_6831777****",
    "ResourceId": "ns-679XXXXX",
    "DestinationCidr": "192.168.0.0/16",
    "CreateTime": 1727055811000,
    "NetworkId": 1000
  },
  "RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.