Creating a Cluster (Discarded)
Function
This API is used to create a cluster. The cluster will be bound to specified compute resources.
URI
- URI format
- Parameter description
Table 1 URI parameter Parameter
Mandatory
Description
project_id
Yes
Project ID, which is used for resource isolation. For details about how to obtain its value, see Obtaining a Project ID.
Request
Table 3 describes the request parameters.
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| cluster_name | Yes | String | Name of a new cluster. The name can contain only digits, letters, and underscores (_), but cannot contain only digits or start with an underscore (_). |
| description | No | String | Description of a cluster. |
| cu_count | Yes | Integer | Number of compute units (units to be billed) bound to a cluster. You can select 16 CUs, 64 CUs, or 256 CUs. If you need a larger quota, contact the DLI service administrator. |
| cidr_in_vpc | No | String | VPC CIDR block |
| cidr_in_mgntsubnet | No | String | CIDR block of the management subnet |
| cidr_in_subnet | No | String | Special subnet CIDR block |
Example
- Example request
{ "cluster_name": "cluster1", "description": "test cluster", "cu_count": 16 } - Example response (successful request)
None
If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see Error Code.
Last Article: Cluster-related APIs
Next Article: Deleting a Cluster (Discarded)
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.