UpdateComputeResource
Modifies a specified compute resource based on the compute resource ID.
Operation description
DataWorks Basic Edition or a higher edition is required.
You must have at least one of the following roles in the DataWorks workspace: tenant owner, tenant administrator, workspace administrator, project owner, or O&M engineer.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:UpdateComputeResource |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The compute resource ID. |
10001 |
| ProjectId |
integer |
Yes |
The DataWorks workspace ID. |
10001 |
| ConnectionPropertiesMode |
string |
No |
The connection configuration mode of the compute resource. This parameter is required when you call this operation. Select a supported mode based on the compute resource type, such as To use an existing connection mode, call GetComputeResource with the same Valid values:
|
InstanceMode |
| Description |
string |
No |
The description of the compute resource. The description can be up to 3,000 characters in length. |
Hierarchical description |
| ConnectionProperties |
string |
Yes |
The specific connection configuration information of the compute resource, including the endpoint, access identity, and environment context. The EnvType property of the compute resource environment is a member attribute of this object. Valid values include DEV (development environment) and PROD (production environment). The value is case-insensitive. |
{ "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 response. |
||
| RequestId |
string |
The request ID. You can use the ID to locate logs and troubleshoot issues. |
7C352CB7-CD88-50CF-9D0D-E81BDF02XXXX |
| Success |
boolean |
Indicates whether the compute resource was updated:
Valid values:
|
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.