DATASOURCE::ClickHouse::DBCluster
DATASOURCE::ClickHouse::DBCluster類型用于查詢單個ClickHouse集群的信息。
語法
{
"Type": "DATASOURCE::ClickHouse::DBCluster",
"Properties": {
"DBClusterId": String,
"RefreshOptions": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
DBClusterId | String | 是 | 是 | 集群ID。 | 無 |
RefreshOptions | String | 否 | 是 | 當資源棧更新時,數(shù)據(jù)源資源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
Category:副本配置。
ResourceGroupId:資源組的ID。
VpcIpAddr:VPC網(wǎng)絡連接串的IP地址。
Port:HTTP端口號。
DBClusterId:集群ID。
EncryptionKey:KMS密鑰。
DbNodeStorage:單節(jié)點存儲空間。
DBClusterType:集群類型。
SupportBackup:支持回退方案。
CommodityCode:售賣商品Code。
PaymentType:付費類型。
SupportOss:是否支持冷熱數(shù)據(jù)分層存儲。
PublicConnectionString:外網(wǎng)連接地址。
SupportHttpsPort:是否支持HTTPS端口。
LockReason:鎖定原因。
Bid:站點ID。
DbNodeClass:集群規(guī)格。
MaintainTime:集群的可維護時間段。
Engine:引擎類型。
IsExpired:集群是否過期
EncryptionType:加密類型。
SecurityIps:白名單支持IP。
EngineVersion:引擎版本。
StorageType:存儲類型。
ZoneId:可用區(qū)ID。
PublicIpAddr:外網(wǎng)連接串的IP地址。
VSwitchId:交換機ID。
CreateTime:集群的創(chuàng)建時間。
DbNodeCount:節(jié)點數(shù)量。
LockMode:集群的鎖定模式。
DBClusterName:集群名稱。
ScaleOutStatus:數(shù)據(jù)搬遷狀態(tài)。
VpcId:VPC ID。
DBClusterIPArrayName:待修改的白名單組名。
DbClusterNetworkType:網(wǎng)絡類型。
VpcCloudInstanceId:VPC資源ID。
SupportMysqlPort:是否支持MySQL端口。
ConnectionString:VPC 連接地址。
ExpireTime:集群的到期時間。
PublicPort:公網(wǎng)TCP端口號。
AliUid:阿里云賬號ID。
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DBClusterId:
Description:
en: Instance ID.
Required: true
Type: String
Resources:
ExtensionDataSource:
Properties:
DBClusterId:
Ref: DBClusterId
Type: DATASOURCE::ClickHouse::DBCluster
Outputs:
AliUid:
Description: Alibaba Cloud account.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AliUid
Bid:
Description: The ID of the business process flow.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Bid
Category:
Description: Copy configuration, value description:.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Category
CommodityCode:
Description: Buy Product Code.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CommodityCode
ConnectionString:
Description: Connection string.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ConnectionString
CreateTime:
Description: The creation time of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
DBClusterIPArrayName:
Description: The name of the whitelist group to be modified.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DBClusterIPArrayName
DBClusterId:
Description: Instance ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DBClusterId
DBClusterName:
Description: The cluster description information.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DBClusterName
DBClusterType:
Description: Instance type.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DBClusterType
DbClusterNetworkType:
Description: Network type. Currently, only VPC is supported.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DbClusterNetworkType
DbNodeClass:
Description: Set the node type.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DbNodeClass
DbNodeCount:
Description: 'Value range: S-Series: 1 to 48 C Series: 1-24 units:.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- DbNodeCount
DbNodeStorage:
Description: 'Single-node storage space. Value range: 100 GB to 32000GB.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- DbNodeStorage
EncryptionKey:
Description: Key management service KMS key ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- EncryptionKey
EncryptionType:
Description: Currently only supports ECS disk encryption, with a value of CloudDisk,
not encrypted when empty.
Value:
Fn::GetAtt:
- ExtensionDataSource
- EncryptionType
Engine:
Description: Engine.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Engine
EngineVersion:
Description: The engine version.
Value:
Fn::GetAtt:
- ExtensionDataSource
- EngineVersion
ExpireTime:
Description: The expiration time.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ExpireTime
IsExpired:
Description: If the instance has expired.
Value:
Fn::GetAtt:
- ExtensionDataSource
- IsExpired
LockMode:
Description: The lock mode.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LockMode
LockReason:
Description: Lock reason.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LockReason
MaintainTime:
Description: Examples of the maintenance window, in the format of hh:mmZ-hh:mm
Z.
Value:
Fn::GetAtt:
- ExtensionDataSource
- MaintainTime
PaymentType:
Description: The paymen type of the resource.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PaymentType
Port:
Description: Connection port.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Port
PublicConnectionString:
Description: A public IP address for the connection.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PublicConnectionString
PublicIpAddr:
Description: Public IP address.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PublicIpAddr
PublicPort:
Description: Public network port.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PublicPort
ResourceGroupId:
Description: The ID of the resource group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
ScaleOutStatus:
Description: Scale state.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScaleOutStatus
SecurityIps:
Description: The whitelist supports the following two formats:.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SecurityIps
StorageType:
Description: 'Storage type CloudSSD:SSD cloud disk CloudEfficiency: Ultra cloud
disk.'
Value:
Fn::GetAtt:
- ExtensionDataSource
- StorageType
SupportBackup:
Description: Support fallback scheme.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SupportBackup
SupportHttpsPort:
Description: The system supports http port number.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SupportHttpsPort
SupportMysqlPort:
Description: Supports Mysql, and those of the ports.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SupportMysqlPort
SupportOss:
Description: Whether hot and cold stratification is supported, 0 means not, and
1st generation table supports it.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SupportOss
VSwitchId:
Description: Switch ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VSwitchId
VpcCloudInstanceId:
Description: Virtual Private Cloud (VPC cloud instance ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VpcCloudInstanceId
VpcId:
Description: VPC ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VpcId
VpcIpAddr:
Description: VPC IP address.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VpcIpAddr
ZoneId:
Description: On behalf of the zone resource attribute field.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ZoneId
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DBClusterId": {
"Type": "String",
"Description": {
"en": "Instance ID."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ClickHouse::DBCluster",
"Properties": {
"DBClusterId": {
"Ref": "DBClusterId"
}
}
}
},
"Outputs": {
"Category": {
"Description": "Copy configuration, value description:.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Category"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"VpcIpAddr": {
"Description": "VPC IP address.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VpcIpAddr"
]
}
},
"Port": {
"Description": "Connection port.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Port"
]
}
},
"DBClusterId": {
"Description": "Instance ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DBClusterId"
]
}
},
"EncryptionKey": {
"Description": "Key management service KMS key ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"EncryptionKey"
]
}
},
"DbNodeStorage": {
"Description": "Single-node storage space. Value range: 100 GB to 32000GB.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DbNodeStorage"
]
}
},
"DBClusterType": {
"Description": "Instance type.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DBClusterType"
]
}
},
"SupportBackup": {
"Description": "Support fallback scheme.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SupportBackup"
]
}
},
"CommodityCode": {
"Description": "Buy Product Code.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CommodityCode"
]
}
},
"PaymentType": {
"Description": "The paymen type of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PaymentType"
]
}
},
"SupportOss": {
"Description": "Whether hot and cold stratification is supported, 0 means not, and 1st generation table supports it.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SupportOss"
]
}
},
"PublicConnectionString": {
"Description": "A public IP address for the connection.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PublicConnectionString"
]
}
},
"SupportHttpsPort": {
"Description": "The system supports http port number.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SupportHttpsPort"
]
}
},
"LockReason": {
"Description": "Lock reason.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LockReason"
]
}
},
"Bid": {
"Description": "The ID of the business process flow.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Bid"
]
}
},
"DbNodeClass": {
"Description": "Set the node type.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DbNodeClass"
]
}
},
"MaintainTime": {
"Description": "Examples of the maintenance window, in the format of hh:mmZ-hh:mm Z.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MaintainTime"
]
}
},
"Engine": {
"Description": "Engine.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Engine"
]
}
},
"IsExpired": {
"Description": "If the instance has expired.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"IsExpired"
]
}
},
"EncryptionType": {
"Description": "Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"EncryptionType"
]
}
},
"SecurityIps": {
"Description": "The whitelist supports the following two formats:.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SecurityIps"
]
}
},
"EngineVersion": {
"Description": "The engine version.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"EngineVersion"
]
}
},
"StorageType": {
"Description": "Storage type CloudSSD:SSD cloud disk CloudEfficiency: Ultra cloud disk.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"StorageType"
]
}
},
"ZoneId": {
"Description": "On behalf of the zone resource attribute field.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ZoneId"
]
}
},
"PublicIpAddr": {
"Description": "Public IP address.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PublicIpAddr"
]
}
},
"VSwitchId": {
"Description": "Switch ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VSwitchId"
]
}
},
"CreateTime": {
"Description": "The creation time of the resource.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"DbNodeCount": {
"Description": "Value range: S-Series: 1 to 48 C Series: 1-24 units:.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DbNodeCount"
]
}
},
"LockMode": {
"Description": "The lock mode.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LockMode"
]
}
},
"DBClusterName": {
"Description": "The cluster description information.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DBClusterName"
]
}
},
"ScaleOutStatus": {
"Description": "Scale state.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScaleOutStatus"
]
}
},
"VpcId": {
"Description": "VPC ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VpcId"
]
}
},
"DBClusterIPArrayName": {
"Description": "The name of the whitelist group to be modified.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DBClusterIPArrayName"
]
}
},
"DbClusterNetworkType": {
"Description": "Network type. Currently, only VPC is supported.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DbClusterNetworkType"
]
}
},
"VpcCloudInstanceId": {
"Description": "Virtual Private Cloud (VPC cloud instance ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VpcCloudInstanceId"
]
}
},
"SupportMysqlPort": {
"Description": "Supports Mysql, and those of the ports.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SupportMysqlPort"
]
}
},
"ConnectionString": {
"Description": "Connection string.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ConnectionString"
]
}
},
"ExpireTime": {
"Description": "The expiration time.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ExpireTime"
]
}
},
"PublicPort": {
"Description": "Public network port.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PublicPort"
]
}
},
"AliUid": {
"Description": "Alibaba Cloud account.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AliUid"
]
}
}
}
}