All Products
Search
Document Center

DataWorks:CreateRoute

Last Updated:Jan 12, 2026

Creates a route for a network.

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
NetworkIdlongYes

The network ID.

1000
DestinationCidrstringYes

The CIDR blocks of the destination-based route.

192.168.0.0/16
ResourceGroupIdstringNo

Unique identifier of the serverless resource group.

Serverless_res_group_524257424564736_6831777003XXXXX

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Successboolean

Indicates whether the request was successful.

true
Idlong

The route ID.

1000
RequestIdstring

The request ID.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "Id": 1000,
  "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-02-21The request parameters of the API has changedView Change Details
2024-12-19The response structure of the API has changedView Change Details