Describes ApsaraDB for ClickHouse clusters in a specified region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:DescribeDBClusters |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the region ID. |
cn-hangzhou |
| DBClusterIds |
string |
No |
The cluster ID. Note
If you do not specify this parameter, information about all clusters is queried by default. |
cc-bp108z124a8o7**** |
| DBClusterDescription |
string |
No |
The cluster description. |
cc-bp108z124a8o7**** |
| DBClusterStatus |
string |
No |
The state of the cluster. Valid values:
|
Running |
| PageSize |
integer |
No |
The number of entries per page. Valid values:
|
30 |
| PageNumber |
integer |
No |
The page number. |
1 |
| Tag |
array<object> |
No |
The tags. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The key of the tag. |
department |
| Value |
string |
No |
The value of the tag. |
it |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the cluster belongs. |
rg-4690g37929**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of entries. |
1 |
| PageSize |
integer |
The number of entries returned per page. Valid values:
|
30 |
| RequestId |
string |
The request ID. |
F5178C10-1407-4987-9133-DE4DC9119F75 |
| PageNumber |
integer |
The page number. |
1 |
| DBClusters |
object |
||
| DBCluster |
array<object> |
The list of clusters. |
|
|
array<object> |
The list of clusters. |
||
| VpcId |
string |
The VPC ID. |
vpc-bp175iuvg8nxqraf2**** |
| DBNodeCount |
integer |
The number of nodes.
|
2 |
| CreateTime |
string |
The time when the cluster was created. The time is in the yyyy-MM-ddTHH:mm:ssZ format. |
2021-10-28T07:24:45Z |
| PayType |
string |
The billing method. Valid values:
|
Postpaid |
| 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 |
| StorageType |
string |
The storage class. Valid values:
|
CloudESSD |
| Port |
integer |
The HTTP port. |
8123 |
| LockMode |
string |
The lock mode of the cluster. Valid values:
|
Unlock |
| Bid |
string |
The site ID. Valid values:
|
26842 |
| IsExpired |
string |
Indicates whether the cluster has expired. Valid values:
|
false |
| VpcCloudInstanceId |
string |
The ID of the VPC instance. |
vpc-bp175iuvg8nxqraf2**** |
| 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 `Data migrated/Total data`. Note
This parameter is returned only when the cluster is in the SCALING_OUT state. |
0MB/60469MB |
| ScaleOutDisableWriteWindows |
string |
The write-blocking window for the upgrade or downgrade. |
2025-02-08T00:00:00+08:00,2025-02-12T00:00:00+08:00 |
| DBClusterId |
string |
The cluster ID. |
cc-bp108z124a8o7**** |
| ConnectionString |
string |
The VPC endpoint. |
cc-bp1fs5o051c61****.clickhouse.ads.aliyuncs.com |
| CommodityCode |
string |
The commodity code. |
clickhouse_go_public_cn |
| ExpireTime |
string |
The expiration time of the cluster. The time is in the yyyy-MM-ddTHH:mm:ssZ format. Note
Pay-as-you-go clusters do not expire. This parameter is empty for pay-as-you-go clusters. |
2011-05-30T12:11:4Z |
| DBNodeStorage |
integer |
The storage space of a single node. The value ranges from 100 GB to 32,000 GB. Note
The step size is 100 GB. |
100 |
| DBNodeClass |
string |
The instance type of the cluster.
|
C8 |
| AliUid |
string |
The Alibaba Cloud account ID. |
140692647406**** |
| LockReason |
string |
The reason why the cluster was locked. Note
This parameter is empty if the cluster is not locked. |
DISK_FULL |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| VSwitchId |
string |
The vSwitch ID. |
vsw-bp1gzt31twhlo0sa5**** |
| DBClusterStatus |
string |
The state of the cluster. Valid values:
|
Running |
| DBClusterDescription |
string |
The cluster description. |
test |
| DBClusterNetworkType |
string |
The network type. Only VPC is supported. |
VPC |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-h |
| Category |
string |
The edition of the cluster. Valid values:
|
Basic |
| ControlVersion |
string |
The version of the backend management system. Valid values:
|
v1 |
| ExtStorageType |
string |
The extended storage class. Valid values:
|
CloudESSD |
| ExtStorageSize |
integer |
The extended storage space. |
100GB |
| ResourceGroupId |
string |
The ID of the resource group to which the cluster belongs. |
rg-4690g37929**** |
| DbVersion |
string |
The kernel version of the cluster. |
23.8 |
Examples
Success response
JSON format
{
"TotalCount": 1,
"PageSize": 30,
"RequestId": "F5178C10-1407-4987-9133-DE4DC9119F75",
"PageNumber": 1,
"DBClusters": {
"DBCluster": [
{
"VpcId": "vpc-bp175iuvg8nxqraf2****",
"DBNodeCount": 2,
"CreateTime": "2021-10-28T07:24:45Z",
"PayType": "Postpaid",
"Tags": {
"Tag": [
{
"Key": "department",
"Value": "it"
}
]
},
"StorageType": "CloudESSD",
"Port": 8123,
"LockMode": "Unlock",
"Bid": "26842",
"IsExpired": "false",
"VpcCloudInstanceId": "vpc-bp175iuvg8nxqraf2****",
"ScaleOutStatus": {
"Progress": "0",
"Ratio": "0MB/60469MB"
},
"ScaleOutDisableWriteWindows": "2025-02-08T00:00:00+08:00,2025-02-12T00:00:00+08:00",
"DBClusterId": "cc-bp108z124a8o7****",
"ConnectionString": "cc-bp1fs5o051c61****.clickhouse.ads.aliyuncs.com",
"CommodityCode": "clickhouse_go_public_cn",
"ExpireTime": "2011-05-30T12:11:4Z",
"DBNodeStorage": 100,
"DBNodeClass": "C8",
"AliUid": "140692647406****",
"LockReason": "DISK_FULL",
"RegionId": "cn-hangzhou",
"VSwitchId": "vsw-bp1gzt31twhlo0sa5****",
"DBClusterStatus": "Running",
"DBClusterDescription": "test",
"DBClusterNetworkType": "VPC",
"ZoneId": "cn-hangzhou-h",
"Category": "Basic",
"ControlVersion": "v1",
"ExtStorageType": "CloudESSD",
"ExtStorageSize": 0,
"ResourceGroupId": "rg-4690g37929****",
"DbVersion": "23.8"
}
]
}
}
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. |
| 403 | Forbidden | User not authorized to operate on the specified resource. | The account is not granted permission to manipulate the resource |
| 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.