Queries information about an ApsaraDB for ClickHouse cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:DescribeDBClusterAttribute |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. You can call the DescribeDBClusters operation to query information about all clusters in the destination region. The information includes cluster IDs. |
cc-bp108z124a8o7**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| DBCluster |
object |
The cluster information. |
|
| VpcId |
string |
The VPC ID. |
vpc-bp10tr8k9qasioaty**** |
| SupportBackup |
integer |
Indicates whether data backup is supported. Valid values:
|
1 |
| SupportOss |
integer |
Indicates whether tiered storage of hot and cold data is supported. Valid values:
|
1 |
| EncryptionType |
string |
The encryption type. Valid values:
|
CloudDisk |
| DBNodeCount |
integer |
The number of nodes.
|
1 |
| MaintainTime |
string |
The maintenance window of the cluster. The time is in UTC and the format is HH:mmZ-HH:mmZ. For example, 00:00Z-01:00Z indicates that routine maintenance can be performed from 00:00 to 01:00 (UTC). This corresponds to 08:00 to 09:00 (UTC+8). |
00:00Z-01:00Z |
| CreateTime |
string |
The time when the cluster was created. The time is in UTC and the format is yyyy-MM-ddTHH:mm:ssZ. |
2021-12-13T11:33:11Z |
| PayType |
string |
The billing method. Valid values:
|
Prepaid |
| Tags |
object |
||
| Tag |
array<object> |
The list of tags. |
|
|
object |
The tag. |
||
| Key |
string |
The key of the tag. |
department |
| Value |
string |
The value of the tag. |
it |
| PublicConnectionString |
string |
The public endpoint. |
cc-bp1199ya710s7****.public.clickhouse.ads.aliyuncs.com |
| StorageType |
string |
The storage class. Valid values:
|
CloudESSD |
| Port |
integer |
The HTTP port number. |
8123 |
| LockMode |
string |
The lock mode of the cluster. Valid values:
|
Unlock |
| Bid |
string |
The site ID. Valid values:
|
26842 |
| EngineVersion |
string |
The engine version. |
21.8.10.19 |
| IsExpired |
string |
Indicates whether the cluster has expired. Valid values:
|
false |
| ScaleOutStatus |
object |
The data migration status. |
|
| Progress |
string |
The data migration progress in percentage. Note
This parameter is returned only when the cluster is in the SCALING_OUT state. |
0 |
| Ratio |
string |
The data migration progress. The format is: Amount of data migrated/Total data amount. Note
This parameter is returned only when the cluster is in the SCALING_OUT state. |
0MB/60469MB |
| VpcCloudInstanceId |
string |
The VPC resource ID. |
vpc-bp10tr8k9qasioaty**** |
| DBClusterId |
string |
The cluster ID. |
cc-bp108z124a8o7**** |
| ConnectionString |
string |
The VPC endpoint. |
cc-bp1qx68m06981****.ads.rds.aliyuncs.com |
| EncryptionKey |
string |
The KMS key. Note
An empty string is returned when the EncryptionType is "off". |
685f416f-87c9-4554-8d3a-75b6ce25**** |
| DBClusterType |
string |
The cluster type. Valid values:
|
Common |
| CommodityCode |
string |
The commodity code. |
clickhouse_go_public_cn |
| ExpireTime |
string |
The expiration time of the cluster. The format is yyyy-MM-ddTHH:mm:ssZ. Note
An empty string is returned when the cluster is billed on a pay-as-you-go basis. |
2022-11-11T16:00:00Z |
| DBNodeStorage |
integer |
The storage space of a single node. Unit: GB. Value range: 100 to 32000. Note
The step size is 100 GB. |
100 |
| DBNodeClass |
string |
The cluster specifications.
|
C8 |
| AliUid |
string |
The Alibaba Cloud account ID. |
140692647406**** |
| LockReason |
string |
The reason for the lock. Note
An empty string is returned when the LockMode is Unlock. |
DISK_FULL |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| PublicPort |
string |
The public TCP port number. |
3306 |
| VSwitchId |
string |
The vSwitch ID. |
vsw-bp1n874li1t5y57wi**** |
| DBClusterStatus |
string |
The cluster status. Valid values:
|
Running |
| DBClusterNetworkType |
string |
The network type. Only VPC is supported. |
vpc |
| DBClusterDescription |
string |
The cluster description. |
cc-bp108z124a8o7**** |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-h |
| Category |
string |
The replica configuration. Valid values:
|
HighAvailability |
| Engine |
string |
The engine type. |
ClickHouse |
| SupportMysqlPort |
boolean |
Indicates whether the MySQL port is supported. Valid values:
|
false |
| SupportHttpsPort |
boolean |
Indicates whether the HTTPS port is supported. Valid values:
|
false |
| ControlVersion |
string |
The version of the backend management system. Valid values:
|
v1 |
| PublicIpAddr |
string |
The IP address for the public connection string. |
121.40.xx.xx |
| VpcIpAddr |
string |
The IP address for the VPC connection string. |
192.168.xx.xx |
| EngineMinorVersion |
string |
The current minor version. |
1.6.0 |
| EngineLatestMinorVersion |
string |
The latest minor version to which the cluster can be upgraded. |
1.34.0 |
| MaintainAutoType |
boolean |
The upgrade type. The value false indicates a manual upgrade. |
false |
| ExtStorageType |
string |
The extended storage type. Valid values:
|
CloudESSD |
| ExtStorageSize |
integer |
The extended storage space. Unit: GB. |
500 |
| ResourceGroupId |
string |
The resource group ID. |
rg-acfmyf65je6**** |
| ZookeeperClass |
string |
The Zookeeper specifications. |
4 Core 8 GB |
| AppointmentRestartTime |
string |
The scheduled restart time. The time is in UTC and the format is YYYY-MM-DDThh:mm:ssZ. |
2023-11-06T12:00:00Z |
| ZoneIdVswitchMap |
object |
The list of vSwitch IDs for the multi-zone instance. |
cn-shanghai-f: vsw-zm0n42d5vvuo**** |
| AvailableUpgradeMajorVersion |
object |
The major version to which the cluster can be upgraded. |
{"MajorVersion":"MinorVersion"} |
| AppointmentRestartNodeTime |
string |
The scheduled time to restart a portion of the nodes. The time is in UTC and the format is YYYY-MM-DDThh:mm:ssZ. |
2023-11-06T12:00:00Z |
| AppointmentRestartNodeList |
string |
The list of nodes scheduled for a restart. |
ck-k1a976p3n********-****-clickhouse-s-0-r-0,ck-k1a976p3n********-****-clickhouse-s-0-r-1 |
| AppointmentElectZookeeperTime |
string |
The scheduled time for a primary/secondary switchover. The time is in UTC and the format is YYYY-MM-DDThh:mm:ssZ. |
2023-11-06T12:00:00Z |
| AppointmentElectZookeeperDisableWrite |
boolean |
The configuration for a primary/secondary switchover and restart. Valid values:
|
true |
| RequestId |
string |
The request ID. |
05321590-BB65-4720-8CB6-8218E041CDD0 |
Examples
Success response
JSON format
{
"DBCluster": {
"VpcId": "vpc-bp10tr8k9qasioaty****",
"SupportBackup": 1,
"SupportOss": 1,
"EncryptionType": "CloudDisk",
"DBNodeCount": 1,
"MaintainTime": "00:00Z-01:00Z",
"CreateTime": "2021-12-13T11:33:11Z",
"PayType": "Prepaid",
"Tags": {
"Tag": [
{
"Key": "department",
"Value": "it"
}
]
},
"PublicConnectionString": "cc-bp1199ya710s7****.public.clickhouse.ads.aliyuncs.com",
"StorageType": "CloudESSD",
"Port": 8123,
"LockMode": "Unlock",
"Bid": "26842",
"EngineVersion": "21.8.10.19",
"IsExpired": "false",
"ScaleOutStatus": {
"Progress": "0",
"Ratio": "0MB/60469MB"
},
"VpcCloudInstanceId": "vpc-bp10tr8k9qasioaty****",
"DBClusterId": "cc-bp108z124a8o7****",
"ConnectionString": "cc-bp1qx68m06981****.ads.rds.aliyuncs.com",
"EncryptionKey": "685f416f-87c9-4554-8d3a-75b6ce25****",
"DBClusterType": "Common",
"CommodityCode": "clickhouse_go_public_cn",
"ExpireTime": "2022-11-11T16:00:00Z",
"DBNodeStorage": 100,
"DBNodeClass": "C8",
"AliUid": "140692647406****",
"LockReason": "DISK_FULL",
"RegionId": "cn-hangzhou",
"PublicPort": "3306",
"VSwitchId": "vsw-bp1n874li1t5y57wi****",
"DBClusterStatus": "Running",
"DBClusterNetworkType": "vpc",
"DBClusterDescription": "cc-bp108z124a8o7****",
"ZoneId": "cn-hangzhou-h",
"Category": "HighAvailability",
"Engine": "ClickHouse",
"SupportMysqlPort": false,
"SupportHttpsPort": false,
"ControlVersion": "v1",
"PublicIpAddr": "121.40.xx.xx",
"VpcIpAddr": "192.168.xx.xx",
"EngineMinorVersion": "1.6.0",
"EngineLatestMinorVersion": "1.34.0",
"MaintainAutoType": false,
"ExtStorageType": "CloudESSD",
"ExtStorageSize": 500,
"ResourceGroupId": "rg-acfmyf65je6****",
"ZookeeperClass": "4 Core 8 GB",
"AppointmentRestartTime": "2023-11-06T12:00:00Z",
"ZoneIdVswitchMap": {
"test": "test",
"test2": 1
},
"AvailableUpgradeMajorVersion": {
"MajorVersion": "MinorVersion"
},
"AppointmentRestartNodeTime": "2023-11-06T12:00:00Z",
"AppointmentRestartNodeList": "ck-k1a976p3n********-****-clickhouse-s-0-r-0,ck-k1a976p3n********-****-clickhouse-s-0-r-1",
"AppointmentElectZookeeperTime": "2023-11-06T12:00:00Z",
"AppointmentElectZookeeperDisableWrite": true
},
"RequestId": "05321590-BB65-4720-8CB6-8218E041CDD0"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The DBClusterId provided does not exist in our records. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.