All Products
Search
Document Center

DataWorks:UpdateComputeResource

Last Updated:Jan 12, 2026

Modifies the specified computing resource based on the computing resource ID.

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
IdlongYes

The ID of the computing resource.

10001
ProjectIdlongYes

The DataWorks workspace ID.

10001
ConnectionPropertiesModestringNo

The category of the computing resource to be added. Different types have different subtypes and corresponding parameter schema constraints. Examples: InstanceMode and UrlMode.

InstanceMode
DescriptionstringNo

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

ConnectionPropertiesstringYes

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

{ "envType": "Prod", "regionId": "cn-beijing", "instanceId": "hgprecn-cn-x0r3oun4k001", "database": "testdb", "securityProtocol": "authTypeNone", "authType": "Executor", "authIdentity": "1107550004253538" }

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The request ID. Used to locate logs and troubleshoot issues.

7C352CB7-CD88-50CF-9D0D-E81BDF02XXXX

Examples

Sample success responses

JSONformat

{
  "RequestId": "7C352CB7-CD88-50CF-9D0D-E81BDF02XXXX",
  "Success": true
}

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