Modifies the specified computing resource based on the computing resource ID.
Operation description
-
You must purchase DataWorks Basic Edition or a higher edition to use this feature.
-
You must have at least one of the following roles in the DataWorks project space:
-
Tenant Owner, tenant administrator, Space Administrator, Project Owner, or O&M
Try it now
Test
RAM authorization
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:
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.