Creates an ApsaraDB for ClickHouse cluster.
Operation description
Before you call this operation, make sure that you are familiar with the billing methods and pricing of ApsaraDB for ClickHouse.
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 |
---|---|---|---|---|
clickhouse:CreateDBInstance | create |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
ZoneId | string | No | The zone ID. You can call the DescribeRegions operation to query the most recent zone list. | cn-hangzhou-h |
DBClusterVersion | string | Yes | The kernel version. Valid values:
| 21.8.10.19 |
DBClusterCategory | string | Yes | The edition of the cluster. Valid values:
| Basic |
DBClusterClass | string | Yes | The specifications of the cluster.
| S8 |
DBNodeGroupCount | string | Yes | The number of nodes.
| 1 |
DBNodeStorage | string | Yes | The storage capacity of a single node. Valid values: 100 to 32000. Unit: GB. Note
This value is a multiple of 100.
| 100 |
DBClusterNetworkType | string | Yes | The network type of the cluster. Only Virtual Private Cloud (VPC) is supported. | VPC |
DBClusterDescription | string | No | The description of the cluster. | test |
PayType | string | Yes | The billing method of the cluster. Valid values:
| Prepaid |
Period | string | No | The unit of the subscription duration for the cluster. Valid values: Note
This parameter is required only when PayType is set to Prepaid.
| Month |
UsedTime | string | No | The subscription duration of the subscription cluster. Note
This parameter is required only when PayType is set to Prepaid.
| 1 |
VPCId | string | Yes | The VPC ID. | vpc-bp175iuvg8nxqraf2**** |
VSwitchId | string | Yes | The vSwitch ID. | vsw-bp1gzt31twhlo0sa5**** |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. The value is a string and can be up to 64 ASCII characters in length. | AB |
DbNodeStorageType | string | Yes | The storage type of the cluster. Valid values:
| CloudESSD_PL2 |
EncryptionKey | string | No | You must specify this parameter when EncryptionType is set to CloudDisk. The ID of the key that is used to encrypt data on disks. You can obtain the ID of the key from the Key Management Service (KMS) console. You can also create a key. Note
If EncryptionType is empty, you do not need to specify this parameter.
| 0d2470df-da7b-4786-b981-9a164dae**** |
EncryptionType | string | No | The encryption type. Set the value to CloudDisk, which indicates that only disk encryption is supported. Note
If this parameter is not specified, data is not encrypted.
| CloudDisk |
BackupSetID | string | No | The ID of the backup set. You can call the DescribeBackups operation to query the backup sets. Note
If you want to restore the data of an ApsaraDB for ClickHouse cluster, this parameter is required.
| b-12af23adsf |
SourceDBClusterId | string | No | The ID of the source cluster. You can call the DescribeDBClusters operation to query backup set IDs. Note
If you want to restore the data of an ApsaraDB for ClickHouse cluster, this parameter is required.
| cc-bp1lxbo89u950**** |
ResourceGroupId | string | No | The ID of the resource group to which the cluster belongs. | rg-4690g37929**** |
ZoneIdBak | string | No | The secondary zone. | cn-hangzhou-k |
VSwitchBak | string | No | The vSwitch in the secondary zone for the VPC. | vsw-bp1gzt31twhlo0sa5**** |
ZondIdBak2 | string | No | The secondary zone 2 of the instance. | cn-hangzhou-j |
VSwitchBak2 | string | No | The vSwitch in secondary zone 2 for the VPC. | vsw-bp1gzt31twhlo0sa5**** |
AutoRenew | boolean | No | Specifies whether to enable auto-renewal. Note
This parameter is valid only if the value of PayType is set to Prepaid.
| false |
Response parameters
Examples
Sample success responses
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-23 | API Description Update. The Error code has changed | View Change Details |
2024-02-21 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2024-02-04 | The Error code has changed | View Change Details |
2023-12-08 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-03-20 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2021-11-04 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2021-11-04 | The Error code has changed | View Change Details |