Creates a computing resource in the specified workspace. The resource can be for a development environment or a production environment.
Operation description
DataWorks Basic Edition or a more advanced edition is required. You must have at least one of the following roles in the DataWorks workspace: Tenant Owner, Workspace Administrator, Project Owner, O&M
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The DataWorks workspace ID. |
2 |
| Name |
string |
Yes |
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 |
| Type |
string |
Yes |
The type of the computing resource. Multiple computing resource types are currently supported. |
hologres |
| ConnectionPropertiesMode |
string |
Yes |
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 |
| Description |
string |
No |
The description of the computing resource. The maximum length is 3000 characters. |
demo_holo_cs |
| ConnectionProperties |
string |
Yes |
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 elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The request ID. You can use the request ID to locate logs and troubleshoot issues. |
22C97E95-F023-56B5-8852-B1A77A17XXXX |
| Id |
integer |
Returns the ID of the created computing resource. |
10001 |
Examples
Success response
JSON format
{
"RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX",
"Id": 10001
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.