Descreve os clusters do ApsaraDB for ClickHouse em uma região especificada.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
clickhouse:DescribeDBClusters |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Sim |
O ID da região. Você pode chamar a operação DescribeRegions para consultar o ID da região. |
cn-hangzhou |
| DBClusterIds |
string |
Não |
O ID do cluster. Nota
Se você não especificar este parâmetro, as informações de todos os clusters serão consultadas por padrão. |
cc-bp108z124a8o7**** |
| DBClusterDescription |
string |
Não |
A descrição do cluster. |
cc-bp108z124a8o7**** |
| DBClusterStatus |
string |
Não |
O estado do cluster. Valores válidos:
|
Running |
| PageSize |
integer |
Não |
O número de entradas por página. Valores válidos:
|
30 |
| PageNumber |
integer |
Não |
O número da página. |
1 |
| Tag |
array<object> |
Não |
As tags. |
|
|
object |
Não |
A tag. |
||
| Key |
string |
Não |
A chave da tag. |
department |
| Value |
string |
Não |
O valor da tag. |
it |
| ResourceGroupId |
string |
Não |
O ID do grupo de recursos ao qual o cluster pertence. |
rg-4690g37929**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| TotalCount |
integer |
O número total de entradas. |
1 |
| PageSize |
integer |
O número de entradas retornadas por página. Valores válidos:
|
30 |
| RequestId |
string |
O ID da solicitação. |
F5178C10-1407-4987-9133-DE4DC9119F75 |
| PageNumber |
integer |
O número da página. |
1 |
| DBClusters |
object |
||
| DBCluster |
array<object> |
A lista de clusters. |
|
|
array<object> |
A lista de 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. Nota
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`. Nota
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. Nota
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. Nota
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. Nota
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 |
Exemplos
Resposta de sucesso
JSON formato
{
"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"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 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. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.