CreateDBCluster
Create a Data Warehouse cluster.
Operation description
Considerations
After creating a cluster, you are charged based on the cluster specifications you selected. For more information on the billable items and pricing for the Data Warehouse Edition, see Billable items for Data Warehouse Edition and Pricing for Data Warehouse Edition.
The Data Warehouse Edition is no longer available for new purchases; you can purchase Enterprise Edition or Basic Edition instead. The Enterprise, Basic, and Lakehouse editions all share the same features. For more information, see product editions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:CreateDBCluster |
create |
DBCluster
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. Note
You can call the DescribeRegions operation to query the IDs of available regions. |
cn-hangzhou |
| ZoneId |
string |
No |
The availability zone ID. Note
You can call the DescribeRegions operation to query the IDs of available availability zones. |
cn-hangzhou-h |
| DBClusterVersion |
string |
Yes |
The version of the AnalyticDB for MySQL cluster. Set the value to 3.0. |
3.0 |
| DBClusterCategory |
string |
Yes |
The cluster edition. Valid values:
Note
Reserved clusters are available only in the Chinese mainland and Singapore regions. In the Singapore region, you can purchase reserved clusters only with the pay-as-you-go billing method.
Note
If you set |
Cluster |
| DBClusterClass |
string |
No |
The cluster specification. Valid values:
Note
This parameter is required when |
C8 |
| DBNodeGroupCount |
string |
No |
The number of node groups. The value must be an integer from 1 to 200. Note
This parameter is required when |
2 |
| DBNodeStorage |
string |
No |
The node storage capacity. Unit: GB. The valid values vary based on the cluster specification:
Note
|
200 |
| DBClusterNetworkType |
string |
Yes |
The network type of the cluster. Set the value to VPC. |
VPC |
| DBClusterDescription |
string |
No |
The description of the cluster.
|
test |
| PayType |
string |
Yes |
The billing method of the cluster. Valid values:
|
Postpaid |
| Period |
string |
No |
The subscription period unit. Valid values:
Note
This parameter is required when |
Year |
| UsedTime |
string |
No |
The subscription duration. Valid values:
Note
|
1 |
| VPCId |
string |
No |
The Virtual Private Cloud (VPC) ID. |
vpc-bp1at5ze0t5u3xtqn**** |
| VSwitchId |
string |
No |
The vSwitch ID. |
vsw-bp1aadw9k19x6cis9**** |
| ClientToken |
string |
No |
A client-generated token to ensure request idempotence. The token must be unique across requests, case-sensitive, and up to 64 ASCII characters long. |
123e4567-e89b-12d3-a456-t7241**** |
| ExecutorCount |
string |
No |
This parameter is reserved. |
无 |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-4690g37929**** |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. You can use tags to filter clusters. You can specify up to 20 tags. N in Note
The tag key can be up to 64 characters in length and cannot start with |
tag1 |
| Value |
string |
No |
The tag value. You can use tags to filter clusters. You can specify up to 20 tags. N in Note
The tag value can be up to 64 characters in length and cannot start with |
test1 |
| Mode |
string |
No |
The cluster mode. Valid values:
|
Reserver |
| StorageResource |
string |
No |
This parameter is reserved. |
无 |
| StorageType |
string |
No |
This parameter is reserved. |
无 |
| ComputeResource |
string |
No |
The compute resources for the cluster. Compute resources are used for data queries. A larger amount of compute resources can provide better query performance. Compute resources are available in cluster and single-node editions:
Note
|
32Core128GBNEW |
| RestoreType |
string |
No |
This parameter is reserved. |
无 |
| SourceDBInstanceName |
string |
No |
This parameter is reserved. |
无 |
| BackupSetID |
string |
No |
This parameter is reserved. |
无 |
| RestoreTime |
string |
No |
This parameter is reserved. |
无 |
| ElasticIOResource |
string |
No |
The number of Elastic IO Units (EIUs). For more information, see EIU details. |
0 |
| DiskEncryption |
boolean |
No |
Specifies whether to enable disk encryption. Valid values:
|
true |
| KmsId |
string |
No |
The ID of the Key Management Service (KMS) key that is used for disk encryption. This parameter is valid only when |
xxxxxxxx-xxxx-xxxx-xxxx-xxxx |
| EnableSSL |
boolean |
No |
Specifies whether to enable SSL encryption. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-4690g37929**** |
| DBClusterId |
string |
The ID of the DB cluster. |
am-bp1r053byu48p**** |
| OrderId |
string |
The ID of the order. |
202353278**** |
Examples
Success response
JSON format
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"ResourceGroupId": "rg-4690g37929****",
"DBClusterId": "am-bp1r053byu48p****",
"OrderId": "202353278****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.