Creates an ApsaraDB for ClickHouse cluster.
Syntax
{
"Type": "ALIYUN::ClickHouse::DBCluster",
"Properties": {
"DbNodeStorageType": String,
"DBNodeStorage": Integer,
"EncryptionType": String,
"Category": String,
"ZoneId": String,
"ZoneIdBak": String,
"ZoneIdBak2": String,
"VSwitchId": String,
"VSwitchBak": String,
"VSwitchBak2": String,
"DBClusterDescription": String,
"Period": String,
"EncryptionKey": String,
"DBClusterNetworkType": String,
"DBClusterType": String,
"VpcId": String,
"DBClusterVersion": String,
"DBNodeCount": Integer,
"UsedTime": Integer,
"PaymentType": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
Category |
String |
Yes |
No |
The edition of the cluster. |
Valid values:
|
|
DBClusterNetworkType |
String |
Yes |
No |
The network type. |
Set the value to VPC. |
|
DBClusterType |
String |
Yes |
Yes |
The specifications of the cluster. |
|
|
DBClusterVersion |
String |
Yes |
No |
The version of the cluster. |
Valid values:
|
|
DBNodeCount |
Integer |
Yes |
Yes |
The number of nodes. |
|
|
DBNodeStorage |
Integer |
Yes |
Yes |
The storage capacity of the node. |
Valid values: 100 to 10000. Unit: GB. The value must be in increments of 100 GB. |
|
DbNodeStorageType |
String |
Yes |
No |
The storage type of the node. |
Valid values:
|
|
PaymentType |
String |
Yes |
No |
The billing method. |
Valid values:
|
|
DBClusterDescription |
String |
No |
Yes |
The description of the cluster. |
None. |
|
EncryptionKey |
String |
No |
No |
The KMS key ID. |
None. |
|
EncryptionType |
String |
No |
No |
The encryption type. |
Set the value to CloudDisk to enable disk encryption. |
|
Period |
String |
No |
No |
The subscription period unit. |
Valid values:
Note
You must specify this property when PaymentType is set to Prepaid. |
|
UsedTime |
Integer |
No |
No |
The usage duration of the cluster. |
|
|
VpcId |
String |
No |
No |
The VPC ID. |
None. |
|
VSwitchId |
String |
No |
No |
The vSwitch ID. |
None. |
|
VSwitchBak |
String |
No |
No |
The backup vSwitch ID. |
None |
|
VSwitchBak2 |
String |
No |
No |
The second backup vSwitch ID. |
None |
|
ZoneId |
String |
No |
No |
The zone ID. |
You can call the DescribeRegions operation to query supported zones. |
|
ZoneIdBak |
String |
No |
No |
The ID of the backup zone. |
None |
|
ZoneIdBak2 |
String |
No |
No |
The ID of the second backup zone. |
None |
Return values
Fn::GetAtt
-
DBClusterId: the cluster ID.
-
PublicPort: the public port.
-
Bid: the business process ID.
-
LockReason: the reason why the cluster is locked.
-
LockMode: the lock mode.
-
DBClusterVersion: the cluster version.
-
CommodityCode: the commodity code.
-
VpcId: the VPC ID.
-
Engine: the cluster engine.
-
Category: the edition of the cluster.
-
DBClusterType: the specifications of the cluster.
-
DBClusterNetworkType: the network type.
-
EncryptionType: the encryption type.
-
VpcCloudInstanceId: the VPC-type cluster ID.
-
Port: the port for connecting to the cluster.
-
PaymentType: the billing method.
-
DBNodeStorage: the storage capacity of the node.
-
PublicConnectionString: the public endpoint.
-
EngineVersion: the engine version.
-
IsExpired: whether the cluster has expired.
-
VSwitchId: the vSwitch ID.
-
Period: the subscription period unit.
-
StorageType: the storage type.
-
DBNodeCount: the number of nodes.
-
AliUid: the ID of the Alibaba Cloud account.
-
DBClusterDescription: the description of the cluster.
-
ConnectionString: the endpoint of the cluster.
-
ZoneId: the zone ID.
-
EncryptionKey: the KMS key ID.
-
DbNodeStorageType: the storage type of the node.
-
DBNodeClass: the node type.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VpcId:
Type: String
AssociationProperty: ALIYUN::ECS::VPC::VPCId
ZoneId:
Type: String
AssociationProperty: ZoneId
VSwitchId:
Type: String
AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
AssociationPropertyMetadata:
ZoneId: ${ZoneId}
VpcId: ${VpcId}
PaymentType:
Type: String
Description: PayType
Default: Month
Resources:
ClickHouseDBCluster:
Type: ALIYUN::ClickHouse::DBCluster
Properties:
DbNodeStorageType: cloud_essd
DBNodeStorage: 100
Category: Basic
ZoneId:
Ref: ZoneId
VSwitchId:
Ref: VSwitchId
Period: Month
DBClusterNetworkType: VPC
DBClusterType: S8
VpcId:
Ref: VpcId
DBClusterVersion: 21.8.10.19
DBNodeCount: 3
UsedTime: 1
PaymentType: Prepaid{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VpcId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
},
"ZoneId": {
"Type": "String",
"AssociationProperty": "ZoneId"
},
"VSwitchId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
"AssociationPropertyMetadata": {
"ZoneId": "${ZoneId}",
"VpcId": "${VpcId}"
}
},
"PaymentType": {
"Type": "String",
"Description": "PayType",
"Default": "Month"
}
},
"Resources": {
"ClickHouseDBCluster": {
"Type": "ALIYUN::ClickHouse::DBCluster",
"Properties": {
"DbNodeStorageType": "cloud_essd",
"DBNodeStorage": 100,
"Category": "Basic",
"ZoneId": {
"Ref": "ZoneId"
},
"VSwitchId": {
"Ref": "VSwitchId"
},
"Period": "Month",
"DBClusterNetworkType": "VPC",
"DBClusterType": "S8",
"VpcId": {
"Ref": "VpcId"
},
"DBClusterVersion": "21.8.10.19",
"DBNodeCount": 3,
"UsedTime": 1,
"PaymentType": "Prepaid"
}
}
}
}