Consulte les détails des clusters PolarDB ou des clusters autorisés par l'autorisation RAM.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| RegionId |
string |
Oui |
L'identifiant de la région. Remarque
Vous pouvez appeler l'opération DescribeRegions pour interroger les régions disponibles. |
cn-hangzhou |
| DBClusterIds |
string |
Non |
L'identifiant du cluster. Séparez plusieurs identifiants de cluster par des virgules (,). |
pc-**************** |
| DBClusterDescription |
string |
Non |
La description du cluster. La correspondance approximative est prise en charge. |
pc-**************** |
| ConnectionString |
string |
Non |
Le point de terminaison de la base de données. |
********.rwlb.polardb-pg-public.rds.aliyuncs.com |
| DBClusterStatus |
string |
Non |
L'état du cluster. Pour les valeurs valides, consultez Tableau des états de cluster. |
Running |
| DBType |
string |
Non |
Le type de base de données. Valeurs valides : |
MySQL |
| DescribeType |
string |
Non |
Le mode de requête pour la liste. Définissez la valeur sur Simple pour utiliser le mode simple, qui renvoie uniquement les métadonnées de base des clusters.\n> Si vous ne spécifiez pas ce paramètre, le mode détaillé est utilisé par défaut, lequel renvoie des informations détaillées sur les clusters. |
Simple |
| DBVersion |
string |
Non |
La version du moteur de base de données. |
5.6 |
| RecentCreationInterval |
integer |
Non |
Filtre les clusters créés au cours des N derniers jours. Valeurs valides : 0 à 15. |
7 |
| RecentExpirationInterval |
integer |
Non |
Filtre les clusters qui expirent dans les N prochains jours. Valeurs valides : 0 à 15. |
6 |
| Expired |
boolean |
Non |
Indique si le cluster a expiré. Valeurs valides :
|
true |
| PageSize |
integer |
Non |
Le nombre d'entrées par page. Valeurs valides : 30, 50 et 100. Valeur par défaut : 30. |
30 |
| PageNumber |
integer |
Non |
Le numéro de page. La valeur doit être un entier positif ne dépassant pas la valeur maximale du type de données Integer. Valeur par défaut : 1. |
10 |
| ResourceGroupId |
string |
Non |
L'identifiant du groupe de ressources. |
rg-********** |
| Tag |
array<object> |
Non |
Les balises. |
|
|
object |
Non |
|||
| Key |
string |
Non |
La clé de la balise. Vous pouvez utiliser les balises pour filtrer la liste des clusters. Vous pouvez spécifier jusqu'à 20 paires de balises. Le numéro n de chaque paire de balises doit être unique et doit être un entier consécutif commençant à 1. Le paramètre Tag.n.Key est associé au paramètre Tag.n.Value. Remarque
La clé de la balise peut comporter jusqu'à 64 caractères et ne peut pas commencer par |
MySQL |
| Value |
string |
Non |
La valeur de balise qui correspond à la clé de balise. Remarque
La valeur de balise peut comporter jusqu'à 64 caractères et ne peut pas commencer par |
5.6 |
| PayType |
string |
Non |
La méthode de facturation. Valeurs valides :
|
Postpaid |
| DBNodeIds |
string |
Non |
L'identifiant du nœud. Vous pouvez spécifier plusieurs identifiants de nœud, séparés par des virgules (,). |
pi-*************** |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
|||
| TotalRecordCount |
integer |
Le nombre total d'enregistrements. |
16 |
| PageRecordCount |
integer |
Le nombre de clusters sur la page actuelle. |
5 |
| RequestId |
string |
L'identifiant de la requête. |
9B7BFB11-C077-4FE3-B051-F69CEB****** |
| PageNumber |
integer |
Le numéro de page. |
12 |
| Items |
object |
||
| DBCluster |
array<object> |
La liste des clusters. |
|
|
array<object> |
|||
| VpcId |
string |
The VPC ID. |
vpc-**************** |
| VswitchId |
string |
The vSwitch ID. |
vsw-*************** |
| ExpireTime |
string |
The expiration time of the cluster. Remarque
This parameter is returned only for Prepaid (subscription) clusters. An empty value is returned for Postpaid (pay-as-you-go) clusters. |
2020-11-14T16:00:00Z |
| Expired |
string |
Indicates whether the cluster has expired. Valid values:
Remarque
This parameter is returned only for Prepaid (subscription) clusters. |
false |
| DBNodeNumber |
integer |
The number of nodes. |
2 |
| CreateTime |
string |
The creation time. |
2020-08-14T05:58:42Z |
| PayType |
string |
The billing method. Valid values:
|
Prepaid |
| StoragePayType |
string |
The storage billing method. Valid values:
|
Prepaid |
| ServerlessType |
string |
The serverless type. A return value of AgileServerless indicates that the cluster is a serverless cluster. An empty value indicates that the cluster is a common cluster. |
AgileServerless |
| StrictConsistency |
string |
Indicates whether multi-zone data strong consistency is enabled for the cluster. Valid values:
|
ON |
| DBNodeClass |
string |
The node specifications. |
polar.mysql.x4.large |
| Tags |
object |
||
| Tag |
array<object> |
The tags. |
|
|
object |
|||
| Key |
string |
The tag key. |
MySQL |
| Value |
string |
The tag value. |
5.6 |
| DBType |
string |
The database type. |
MySQL |
| LockMode |
string |
The lock status of the cluster. Valid values:
|
Unlock |
| DBNodes |
object |
||
| DBNode |
array<object> |
The node list. |
|
|
object |
|||
| DBNodeClass |
string |
The node specifications. |
polar.mysql.x4.large |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-i |
| DBNodeRole |
string |
The node role. Valid values:
|
Reader |
| DBNodeId |
string |
The node ID. |
pi-**************** |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| Serverless |
string |
Indicates whether the serverless feature is enabled for the node.
|
ON |
| ImciSwitch |
string |
Indicates whether In-Memory Column Index (IMCI) is enabled. Valid values:
|
OFF |
| HotReplicaMode |
string |
Indicates whether hot standby is enabled. Valid values:
|
OFF |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| DeletionLock |
integer |
The deletion protection status of the cluster. Valid values:
Remarque
When the cluster is locked, it cannot be deleted. |
0 |
| DBVersion |
string |
The database engine version. |
5.6 |
| DBClusterId |
string |
The cluster ID. |
pc-**************** |
| DBClusterStatus |
string |
The cluster status. |
Running |
| ResourceGroupId |
string |
The resource group ID. |
rg-************ |
| SearchStorageUsed |
integer |
The storage usage of the Search node. |
89227945573 |
| StorageSpace |
integer |
The storage space for pay-by-space (subscription) billing. Unit: bytes. |
50 |
| DBClusterNetworkType |
string |
The network type of the cluster. |
VPC |
| DBClusterDescription |
string |
The cluster description. |
GDN-1 |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-i |
| Engine |
string |
The cluster engine. |
POLARDB |
| Category |
string |
The cluster edition. Valid values:
|
Normal |
| AiType |
string |
The AI node information status. Valid values:
Valeurs valides :
|
SearchNode |
| CpuCores |
string |
The number of CPU cores. |
1 |
| MemorySize |
string |
The memory size of the node. Unit: MB. |
2048 |
| StorageType |
string |
The storage type for Enterprise Edition. Valid values:
The storage type for Standard Edition. Valid values:
|
essdautopl |
| HotStandbyCluster |
string |
The hot standby storage cluster status. Valid values:
|
OFF |
| SubCategory |
string |
The specification type of the compute node. Valid values:
|
Exclusive |
| StorageUsed |
integer |
The storage usage of the cluster. Unit: bytes. |
3009413120 |
| RemoteMemorySize |
string |
The remote memory size. Unit: MB. |
3612 |
| ConnectionResourceQuota |
integer |
||
| ConnectionResourceUsed |
integer |
Exemples
JSON format
{
"TotalRecordCount": 16,
"PageRecordCount": 5,
"RequestId": "9B7BFB11-C077-4FE3-B051-F69CEB******",
"PageNumber": 12,
"Items": {
"DBCluster": [
{
"VpcId": "vpc-****************",
"VswitchId": "vsw-***************",
"ExpireTime": "2020-11-14T16:00:00Z",
"Expired": "false",
"DBNodeNumber": 2,
"CreateTime": "2020-08-14T05:58:42Z",
"PayType": "Prepaid",
"StoragePayType": "Prepaid",
"ServerlessType": "AgileServerless",
"StrictConsistency": "ON",
"DBNodeClass": "polar.mysql.x4.large",
"Tags": {
"Tag": [
{
"Key": "MySQL",
"Value": "5.6"
}
]
},
"DBType": "MySQL",
"LockMode": "Unlock",
"DBNodes": {
"DBNode": [
{
"DBNodeClass": "polar.mysql.x4.large",
"ZoneId": "cn-hangzhou-i",
"DBNodeRole": "Reader",
"DBNodeId": "pi-****************",
"RegionId": "cn-hangzhou",
"Serverless": "ON",
"ImciSwitch": "OFF",
"HotReplicaMode": "OFF"
}
]
},
"RegionId": "cn-hangzhou",
"DeletionLock": 0,
"DBVersion": "5.6",
"DBClusterId": "pc-****************",
"DBClusterStatus": "Running",
"ResourceGroupId": "rg-************",
"SearchStorageUsed": 89227945573,
"StorageSpace": 50,
"DBClusterNetworkType": "VPC",
"DBClusterDescription": "GDN-1",
"ZoneId": "cn-hangzhou-i",
"Engine": "POLARDB",
"Category": "Normal",
"AiType": "SearchNode",
"CpuCores": "1",
"MemorySize": "2048",
"StorageType": "essdautopl",
"HotStandbyCluster": "OFF",
"SubCategory": "Exclusive",
"StorageUsed": 3009413120,
"RemoteMemorySize": "3612",
"ConnectionResourceQuota": 0,
"ConnectionResourceUsed": 0
}
]
}
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | InvalidRegionId.Malformed | The specified parameter RegionId is not valid. | The specified RegionId parameter is invalid. |
| 400 | NumberExceed.Tags | The Tags parameter's number is exceed. | The number of tags specified in the tags parameter exceeds the limit. |
| 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. |
| 400 | InvalidRecentCreationInterval.Malformed | The specified parameter RecentCreationInterval is not valid. | The specified RecentCreationInterval parameter is invalid. |
| 400 | InvalidRecentExpirationInterval.Malformed | The specified parameter RecentExpirationInterval is not valid. | The specified RecentExpirationInterval 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. |
| 404 | DBTypeOrDBVersion.Malformed | The specified DBType does not match DBVersion. | The specified values of DBType and DBVersion do not match. |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | A temporary server error occurred. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.