Creates an ApsaraDB for ClickHouse cluster.
Operation description
Make sure you understand the billing methods and pricing of ApsaraDB for ClickHouse before calling this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:CreateDBInstance |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. Call the DescribeRegions operation to query the available region IDs. |
cn-hangzhou |
| ZoneId |
string |
No |
The zone ID. Call the DescribeRegions operation to query the available zone IDs. |
cn-hangzhou-h |
| DBClusterVersion |
string |
Yes |
The engine version. Valid values:
Valid values:
|
22.8.5.29 |
| DBClusterCategory |
string |
Yes |
The edition of the cluster. Valid values:
Valid values:
|
Basic |
| DBClusterClass |
string |
Yes |
The instance type of the cluster.
|
S8 |
| DBNodeGroupCount |
string |
Yes |
The number of nodes.
|
1 |
| DBNodeStorage |
string |
Yes |
The storage capacity of a single node, in GB. Valid values: 100 to 32,000. Note
The value must be a multiple of 100. |
100 |
| DBClusterNetworkType |
string |
Yes |
The network type of the cluster. Only VPC is supported. |
VPC |
| DBClusterDescription |
string |
No |
The description of the cluster. |
test |
| PayType |
string |
Yes |
The billing method. Valid values:
Valid values:
|
Prepaid |
| Period |
string |
No |
The unit of the subscription duration. Valid values: Important This parameter is required only when PayType is set to Prepaid.
|
Month |
| UsedTime |
string |
No |
The subscription duration. Important This parameter is required only when PayType is set to Prepaid.
|
1 |
| VPCId |
string |
Yes |
The ID of the VPC. |
vpc-bp175iuvg8nxqraf2**** |
| VSwitchId |
string |
Yes |
The ID of the vSwitch. |
vsw-bp1gzt31twhlo0sa5**** |
| ClientToken |
string |
No |
A client token that is used to ensure the idempotence of the request. The value must be a string of up to 64 ASCII characters. |
AB |
| DbNodeStorageType |
string |
Yes |
The storage type. Valid values:
|
CloudESSD_PL2 |
| EncryptionKey |
string |
No |
This parameter is required if EncryptionType is set to CloudDisk. The ID of the key for disk encryption. You can view the key ID in the Key Management Service (KMS) console. You can also create a key. Note
If you do not specify an encryption type, this parameter is not required. |
0d2470df-da7b-4786-b981-9a164dae**** |
| EncryptionType |
string |
No |
The encryption type. Only disk encryption is supported. Set the value to CloudDisk. Note
If you do not specify this parameter, data is not encrypted. |
CloudDisk |
| BackupSetID |
string |
No |
The backup set ID. Call the DescribeBackups operation to query backup set IDs. Note
This parameter is required to create a cluster by restoring data from a backup. |
b-12af23adsf |
| SourceDBClusterId |
string |
No |
The ID of the source cluster. Call the DescribeDBClusters operation to query cluster IDs. Note
This parameter is required to create a cluster by restoring data from a backup. |
cc-bp1lxbo89u950**** |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the cluster belongs. |
rg-4690g37929**** |
| ZoneIdBak |
string |
No |
The ID of the secondary zone. |
cn-hangzhou-k |
| VSwitchBak |
string |
No |
The ID of the secondary vSwitch. |
vsw-bp1gzt31twhlo0sa5**** |
| ZondIdBak2 |
string |
No |
The ID of the secondary zone 2. |
cn-hangzhou-j |
| VSwitchBak2 |
string |
No |
The ID of the secondary vSwitch 2. |
vsw-bp1gzt31twhlo0sa5**** |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. Note
This parameter is valid only when PayType is set to Prepaid. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
F5178C10-1407-4987-9133-DE4DC9119F75 |
| DBClusterId |
string |
The cluster ID. |
cc-bp1qx68m06981**** |
| OrderId |
string |
The order ID. |
21137950671**** |
Examples
Success response
JSON format
{
"RequestId": "F5178C10-1407-4987-9133-DE4DC9119F75",
"DBClusterId": "cc-bp1qx68m06981****",
"OrderId": "21137950671****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | An error occurred while processing your request. | An error occurred while processing your request. |
| 503 | ServiceUnavailable | An error occurred while processing your request. | An error occurred while processing your request. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.