Consulta clusters PolarDB em uma região que possuem conjuntos de backup.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
polardb:DescribeDBClustersWithBackups |
get |
*DBCluster
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ResourceGroupId |
string |
Não |
O ID do grupo de recursos. |
rg-************ |
| RegionId |
string |
Sim |
O ID da região. Nota
Chame a operação DescribeRegions para visualizar detalhes sobre regiões. |
cn-hangzhou |
| DBClusterIds |
string |
Não |
O ID do cluster. Você pode especificar múltiplos IDs de cluster. Separe os IDs com uma vírgula (,). |
pc-************** |
| DBClusterDescription |
string |
Não |
O nome do cluster. O nome do cluster deve atender aos seguintes requisitos:
|
test |
| DBType |
string |
Não |
O tipo de mecanismo de banco de dados. Valores válidos:
|
MySQL |
| IsDeleted |
integer |
Não |
Especifica se o cluster foi excluído. Valores válidos:
|
0 |
| PageSize |
integer |
Não |
O número de registros em cada página. Valores válidos:
Valor padrão: 30. |
30 |
| PageNumber |
integer |
Não |
O número da página. O valor deve ser um inteiro maior que 0 e não deve exceder o valor máximo do tipo de dados Integer. Valor padrão: 1. |
1 |
| DBVersion |
string |
Não |
A versão do mecanismo de banco de dados.
|
8.0 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
F8529AA2-522F-4B30-B80B-8F7D39****** |
| PageNumber |
integer |
O número da página. |
1 |
| PageRecordCount |
integer |
O número de clusters na página atual. |
1 |
| TotalRecordCount |
integer |
O número total de entradas retornadas. |
1 |
| Items |
object |
||
| DBCluster |
array<object> |
Os detalhes do cluster. |
|
|
object |
|||
| DeletedTime |
string |
The time when the cluster was deleted. |
2022-05-12T03:25:37Z |
| VpcId |
string |
The ID of the virtual private cloud (VPC). |
vpc-****************** |
| ExpireTime |
string |
The expiration time. Nota
This parameter is returned only for subscription clusters. An empty string is returned for pay-as-you-go clusters. |
2022-09-14T16:00:00Z |
| Expired |
string |
Indicates whether the cluster has expired. Nota
This parameter is returned only for subscription clusters. |
false |
| CreateTime |
string |
The time when the cluster was created. |
2022-05-09T09:33:51Z |
| DBNodeClass |
string |
The node specifications. |
polar.mysql.x4.medium |
| PayType |
string |
The billing method. Valid values:
|
Postpaid |
| DBType |
string |
The type of the database engine. |
MySQL |
| LockMode |
string |
The lock state of the cluster. Valid values:
|
Unlock |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| DeletionLock |
integer |
The deletion lock status of the cluster. Valid values:
|
0 |
| DBVersion |
string |
The version of the database engine. |
8.0 |
| DBClusterId |
string |
The cluster ID. |
pc-**************** |
| DBClusterStatus |
string |
The cluster status. Valid values:
|
Running |
| IsDeleted |
integer |
Indicates whether the cluster is released. Valid values:
|
1 |
| DBClusterNetworkType |
string |
The network type of the cluster. |
VPC |
| DBClusterDescription |
string |
The cluster name. |
test |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-h |
| Engine |
string |
The cluster engine. |
POLARDB |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "F8529AA2-522F-4B30-B80B-8F7D39******",
"PageNumber": 1,
"PageRecordCount": 1,
"TotalRecordCount": 1,
"Items": {
"DBCluster": [
{
"DeletedTime": "2022-05-12T03:25:37Z",
"VpcId": "vpc-******************",
"ExpireTime": "2022-09-14T16:00:00Z",
"Expired": "false",
"CreateTime": "2022-05-09T09:33:51Z",
"DBNodeClass": "polar.mysql.x4.medium",
"PayType": "Postpaid",
"DBType": "MySQL",
"LockMode": "Unlock",
"RegionId": "cn-hangzhou",
"DeletionLock": 0,
"DBVersion": "8.0",
"DBClusterId": "pc-****************",
"DBClusterStatus": "Running",
"IsDeleted": 1,
"DBClusterNetworkType": "VPC",
"DBClusterDescription": "test",
"ZoneId": "cn-hangzhou-h",
"Engine": "POLARDB"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidRegionId.Malformed | The specified parameter RegionId is not valid. | The specified RegionId parameter is invalid. |
| 400 | InvalidPageSize.Malformed | The specified parameter PageSize is not valid. | The specified PageSize parameter is invalid. |
| 400 | InvalidPageNumber.Malformed | The specified parameter PageNumber is not valid. | The specified PageNumber parameter is invalid. |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | The request failed to be processed because unknown errors, exceptions, or failures have occurred. |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | A temporary server error occurred. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.