All Products
Search
Document Center

DataWorks:UpdateComputeResource

Last Updated:Mar 30, 2026

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

Operation description

  1. You must purchase DataWorks Basic Edition or a higher edition to use this feature.

  2. You must have at least one of the following roles in the DataWorks project space:

  3. Tenant Owner, tenant administrator, Space Administrator, Project Owner, or O&M

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 ID of the computing resource.

10001

ProjectId

integer

Yes

The DataWorks workspace ID.

10001

ConnectionPropertiesMode

string

No

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

InstanceMode

Description

string

No

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

Hierarchy description

ConnectionProperties

string

Yes

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 elements

Element

Type

Description

Example

object

The returned result.

RequestId

string

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

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

Success

boolean

Indicates whether the computing resource was modified successfully:

  • true: Yes

  • false: No

Valid values:

  • true :

    true

  • false :

    false

true

Examples

Success response

JSON format

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

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.