CreateDBCluster
Creates a Data Warehouse Edition cluster.
Operation description
Precautions
After a cluster is created, you are billed based on the cluster specifications that you selected. For more information about the billable items and pricing of Data Warehouse Edition clusters, see Billable items of Data Warehouse Edition and Pricing of Data Warehouse Edition.
Data Warehouse Edition is no longer available for new purchases. You can purchase Enterprise Edition or Basic Edition. Enterprise Edition, Basic Edition, and Data Lakehouse Edition 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 region ID. |
cn-hangzhou |
| ZoneId |
string |
No |
The zone ID. Note
You can call the DescribeRegions operation to query the zone ID. |
cn-hangzhou-h |
| DBClusterVersion |
string |
Yes |
The version of the AnalyticDB for MySQL Data Warehouse Edition cluster. Valid value: 3.0. |
3.0 |
| DBClusterCategory |
string |
Yes |
The edition. Valid values:
Note
Cluster Edition in reserved mode is available only in regions in the Chinese mainland and the Singapore region. In the Singapore region, Cluster Edition in reserved mode can be purchased only on a pay-as-you-go basis.
Note
If DBClusterCategory is set to Cluster, the Mode parameter must be set to Reserver. If DBClusterCategory is set to MixedStorage, the Mode parameter must be set to Flexible. Otherwise, the cluster fails to be created. |
Cluster |
| DBClusterClass |
string |
No |
The cluster specifications. Valid values:
Note
This parameter is required when Mode is set to Reserver (reserved mode). |
C8 |
| DBNodeGroupCount |
string |
No |
The number of node groups. Valid values: 1 to 200. The value must be an integer. Note
This parameter is required when Mode is set to Reserver (reserved mode). |
2 |
| DBNodeStorage |
string |
No |
The storage space of a node. Unit: GB. Valid values:
Note
|
200 |
| DBClusterNetworkType |
string |
Yes |
The network type. Valid value: VPC. |
VPC |
| DBClusterDescription |
string |
No |
The description of the cluster.
|
test |
| PayType |
string |
Yes |
The billing method. Valid values:
|
Postpaid |
| Period |
string |
No |
The subscription period of the subscription cluster. Valid values:
Note
This parameter is required when PayType is set to Prepaid (subscription). |
Year |
| UsedTime |
string |
No |
The subscription duration of the subscription cluster. Valid values:
Note
|
1 |
| VPCId |
string |
No |
The VPC ID. |
vpc-bp1at5ze0t5u3xtqn**** |
| VSwitchId |
string |
No |
The vSwitch ID. |
vsw-bp1aadw9k19x6cis9**** |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token is case-sensitive and can be up to 64 ASCII characters in length. |
123e4567-e89b-12d3-a456-t7241**** |
| ExecutorCount |
string |
No |
The reserved parameter. This parameter is not applicable. |
None |
| 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 filter the cluster list by tag. You can specify up to 20 tag key-value pairs. The number n in each tag key-value pair must be different and must be a consecutive integer starting from 1. The value of 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 filter the cluster list by tag. You can specify up to 20 tag key-value pairs. The number n in each tag key-value pair must be different and must be a consecutive integer starting from 1. The value of Note
The tag value can be up to 64 characters in length and cannot start with |
test1 |
| Mode |
string |
No |
The mode. Valid values:
|
Reserver |
| StorageResource |
string |
No |
The reserved parameter. This parameter is not applicable. |
None |
| StorageType |
string |
No |
The reserved parameter. This parameter is not applicable. |
None |
| ComputeResource |
string |
No |
The compute resources that are used for data computing. Increasing compute resources can accelerate data queries. Compute resources are divided into Cluster Edition and Single-node Edition.
Note
|
32Core128GBNEW |
| RestoreType |
string |
No |
The reserved parameter. This parameter is not applicable. |
None |
| SourceDBInstanceName |
string |
No |
The reserved parameter. This parameter is not applicable. |
None |
| BackupSetID |
string |
No |
The reserved parameter. This parameter is not applicable. |
None |
| RestoreTime |
string |
No |
The reserved parameter. This parameter is not applicable. |
None |
| ElasticIOResource |
string |
No |
The elastic I/O resource (EIU). For more information, see EIU overview. |
0 |
| DiskEncryption |
boolean |
No |
Specifies whether to enable cloud disk encryption. Valid values:
|
true |
| KmsId |
string |
No |
The KMS ID that is used for cloud disk encryption. This parameter takes effect only when DiskEncryption is set to true. |
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 request ID. |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
| ResourceGroupId |
string |
The resource group ID. |
rg-4690g37929**** |
| DBClusterId |
string |
The ID of the Data Warehouse Edition cluster. |
am-bp1r053byu48p**** |
| OrderId |
string |
The order ID. |
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.