Creates an AnalyticDB for MySQL Data Warehouse Edition (V3.0) cluster.
Operation description
After you create a cluster, you are billed for the cluster specifications that you select. For more information about the billable items and pricing for Data Warehouse Edition (V3.0) clusters, see Billable items of Data Warehouse Edition (V3.0) and Pricing for Data Warehouse Edition (V3.0).
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
adb:CreateDBCluster | create |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the cluster. Note
You can call the DescribeRegions operation to query the most recent region list.
| cn-hangzhou |
ZoneId | string | No | The zone ID of the cluster. Note
You can call the DescribeRegions operation to query the most recent zone list.
| cn-hangzhou-h |
DBClusterVersion | string | Yes | The version of the cluster. Set the value to 3.0. | 3.0 |
DBClusterCategory | string | Yes | The edition of the cluster. Valid values:
Note
If the DBClusterCategory parameter is set to Cluster, you must set the Mode parameter to Reserver. If the DBClusterCategory parameter is set to MixedStorage, you must set the Mode parameter to Flexible. Otherwise, the cluster fails to be created.
| Cluster |
DBClusterClass | string | No | The specification of the cluster. Valid values:
Note
This parameter is required if the Mode parameter is set to Reserver.
| C8 |
DBNodeGroupCount | string | No | The number of node groups. Valid values: 1 to 200 (integer). Note
This parameter is required if the Mode parameter is set to Reserver.
| 2 |
DBNodeStorage | string | No | The storage capacity of the cluster. Unit: GB.
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 type of the subscription cluster. Valid values:
Note
This parameter is required if the PayType parameter is set to Prepaid.
| Year |
UsedTime | string | No | The subscription period of the subscription cluster.
Note
| 1 |
VPCId | string | No | The virtual private cloud (VPC) ID of the cluster. | vpc-bp1at5ze0t5u3xtqn**** |
VSwitchId | string | No | The vSwitch ID of the cluster. | 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 make sure that it is unique among different requests. The value is case-sensitive and can contain a maximum of 64 ASCII characters in length. | 123e4567-e89b-12d3-a456-t7241**** |
ExecutorCount | string | No | A reserved parameter. | N/A |
ResourceGroupId | string | No | The ID of the resource group to which the cluster belongs. | rg-4690g37929**** |
Tag | array<object> | No | The tags to add to the cluster. | |
object | No | |||
Key | string | No | The key of tag N to add to the cluster. You can use tags to filter clusters. Valid values of N: 1 to 20. The values that you specify for N must be unique and consecutive integers that start from 1. Each value of Note
The tag key can be up to 64 characters in length and cannot start with aliyun , acs: , http:// , or https:// .
| tag1 |
Value | string | No | The value of tag N to add to the cluster. You can use tags to filter clusters. Valid values of N: 1 to 20. The values that you specify for N must be unique and consecutive integers that start from 1. Each value of Note
The tag value can be up to 64 characters in length and cannot start with aliyun , acs: , http:// , or https:// .
| test1 |
Mode | string | Yes | The mode of the cluster. Valid values:
| Reserver |
StorageResource | string | No | A reserved parameter. | N/A |
StorageType | string | No | A reserved parameter. | N/A |
ComputeResource | string | No | The computing resources of the cluster. You can use computing resources to compute data. The increase in the computing resources can accelerate data queries. The computing resources are available for Cluster Edition and Basic Edition.
Note
| 32Core128GB |
RestoreType | string | No | A reserved parameter. | N/A |
SourceDBInstanceName | string | No | A reserved parameter. | N/A |
BackupSetID | string | No | A reserved parameter. | N/A |
RestoreTime | string | No | A reserved parameter. | N/A |
ElasticIOResource | string | No | The number of elastic I/O units (EIUs). For more information, see Use EIUs to scale up storage resources. | 0 |
DiskEncryption | string | No | Indicates whether disk encryption is enabled. Valid values:
| true |
KmsId | string | No | The Key Management Service (KMS) ID that is used for 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 parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"ResourceGroupId": "rg-4690g37929****",
"DBClusterId": "am-bp1r053byu48p****",
"OrderId": "202353278****"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-07-25 | The request parameters of the API has changed | View Change Details |
2024-03-05 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-08-02 | The request parameters of the API has changed | View Change Details |