All Products
Search
Document Center

DataWorks:CreateComputeResource

Last Updated:Jan 12, 2026

Creates a computing resource in the specified workspace. The resource can be for a development environment or a production environment.

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
ProjectIdlongYes

The DataWorks workspace ID.

2
NamestringYes

The name of the computing resource. It can contain letters, digits, and underscores (_), cannot start with a digit or an underscore, and has a maximum length of 255 characters.

demo_holo_cs
TypestringYes

The type of the computing resource. Multiple computing resource types are currently supported.

hologres
ConnectionPropertiesModestringYes

Depending on the added source category, different types may have specific subtypes subject to distinct parameter constraints. For example, Hologres computing resources support InstanceMode and UrlMode.

InstanceMode
DescriptionstringNo

The description of the computing resource. The maximum length is 3000 characters.

demo_holo_cs
ConnectionPropertiesstringYes

The specific connection configuration of the computing resource, including the connection address, access identity, and environment information. The environment for the computing resource is a member attribute of this object. It includes DEV (development environment) and PROD (production environment). The value for EnvType is case-insensitive.

{ "EndpointMode": "custom", "Database": "testdb", "TaskSubmitter": "1107550004253538", "InstanceId": "hgprecn-cn-x0r3oun4k001", "SecurityProtocol": "authTypeNone", "RegionId": "cn-beijing", "EnvType": "Prod", "AuthType": "Executor" }

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The request ID. You can use the request ID to locate logs and troubleshoot issues.

22C97E95-F023-56B5-8852-B1A77A17XXXX
Idlong

Returns the ID of the created computing resource.

10001

Examples

Sample success responses

JSONformat

{
  "RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX",
  "Id": 10001
}

Error codes

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

Change history

Change timeSummary of changesOperation
2025-11-25Add OperationView Change Details