Consulte les informations de topologie d'une instance.
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
|
polardbx:DescribeDBInstanceTopology |
get |
*All Resource
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| RegionId |
string |
Oui |
L'identifiant de la région de l'instance. |
cn-hangzhou |
| DBInstanceName |
string |
Oui |
L'identifiant de l'instance. |
pxc-******** |
| StartTime |
string |
Non |
L'heure de début de la plage horaire pour l'interrogation des instances historiques dans la topologie. Format : yyyy-MM-dd HH:mm:ss. |
2021-10-21T10:30:45Z 04:00:00 |
| EndTime |
string |
Non |
L'heure de fin de la plage horaire pour l'interrogation des instances historiques dans la topologie. Format : yyyy-MM-dd HH:mm:ss. |
2021-10-22T10:30:45Z 04:00:00 |
| MinuteSimple |
boolean |
Non |
Indique si la topologie historique doit être interrogée. |
true |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
|||
| RequestId |
string |
L'identifiant de la requête. |
C458B1E8-1683-3645-B154-6BA32080EEA |
| Data |
object |
La structure de données. |
|
| LogicInstanceTopology |
object |
Les informations de topologie. |
|
| DBInstanceName |
string |
The instance name. |
pxc-sprcym7g7w**** |
| DBInstanceCreateTime |
string |
The time when the instance was created. Format: yyyy-MM-dd HH:mm:ss. |
2021-10-21T10:30:45Z 04:00:00 |
| MaintainStartTime |
string |
The start time of the O&M window. Format: HH:mm:ss. |
04:00:00 |
| MaintainEndTime |
string |
The end time of the O&M window. Format: HH:mm:ss. |
05:00:00 |
| LockReason |
string |
The reason why the instance is locked. |
欠费 |
| DBInstanceStatus |
integer |
The instance status. |
8 |
| LockMode |
integer |
The lock status. Valid values:
|
0 |
| EngineVersion |
string |
The engine version. Default value: 2.0. |
2.0 |
| DBInstanceStorage |
integer |
The number of storage nodes. |
1 |
| DBInstanceConnType |
string |
Indicates that LVS is used for load balancing. |
lvs |
| DBInstanceId |
string |
The instance ID. |
304726047 |
| Engine |
string |
The engine type. Default value: polarx. |
polarx |
| DBInstanceDescription |
string |
The instance description. |
pxc-sprcym7****** |
| DBInstanceStatusDescription |
string |
The description of the instance status. |
TDE_MODIFYING |
| Items |
array<object> |
The list of nodes. |
|
|
array<object> |
The node information. |
||
| DBInstanceCreateTime |
string |
The time when the instance was created. |
2021-10-21T10:30:45Z |
| DBInstanceName |
string |
The instance name. |
pxc-i-tk6t4z**** |
| CharacterType |
string |
The node type. Valid values:
|
节点角色 |
| MaintainStartTime |
string |
The start time of the O&M window. |
不展示 |
| DiskSize |
integer |
The disk size. |
3145728 |
| MaintainEndTime |
string |
The end time of the O&M window. |
不展示 |
| LockReason |
string |
The reason why the instance is locked. |
不展示 |
| DBInstanceStatus |
integer |
The instance status. |
8 |
| LockMode |
integer |
Indicates whether the node is locked. Valid values:
|
0 |
| EngineVersion |
string |
The engine version. Default value: 2.0. |
5.7 |
| DBInstanceConnType |
integer |
The connection type. |
不展示 |
| MaxConnections |
integer |
The maximum number of connections. |
4000 |
| DBInstanceId |
string |
The instance ID. |
304726049 |
| Engine |
string |
The engine type. Valid values:
|
mysql |
| MaxIops |
integer |
The maximum IOPS. |
7000 |
| DBInstanceDescription |
string |
The instance description. |
不展示 |
| DBInstanceStatusDescription |
string |
The description of the instance status. |
不展示 |
| ConnectionIp |
array<object> |
The data struct. |
|
|
object |
The connection information. |
||
| Port |
string |
The port. |
3306 |
| DBInstanceNetType |
integer |
The internal connection type. The value is fixed to 1, which indicates the classic network. |
1 |
| ConnectionString |
string |
The connection information. |
pxc-xdb-m-pxcdym7g7w********.mysql.singapore.rds.aliyuncs.com |
| Region |
string |
The region of the node. If the node is an RDS node, the regions of multiple child nodes are separated with a delimiter (,). |
cn-hangzhou |
| Azone |
string |
The zone of the node. If the node is an RDS node, the zones of multiple child nodes are separated with a delimiter (,). |
cn-hangzhou-a |
| Role |
string |
The role of the node. Valid values:
|
master |
| Activated |
boolean |
Indicates whether the node is activated. For the compute layer, only the node in the primary zone is activated. After a primary/secondary switchover is performed on the instance, the standby compute node becomes the primary node. All storage layer nodes are activated. |
true |
| AzoneRoleList |
array<object> |
The data information list of the RDS three-node cluster. |
|
|
object |
|||
| Azone |
string |
The zone of a node in the RDS three-node cluster. |
cn-hangzhou-a |
| Role |
string |
The role of a node in the RDS three-node cluster. Valid values:
|
leader |
| Status |
string |
The node status. Valid values:
|
0 |
| NodeClass |
string |
The node specifications. Valid values:
|
polarx.x4.large.2e |
| Version |
string |
The logger node version. |
polarx-cdc-kernel-2.0.0-3985896 |
| PhyInstanceName |
string |
The physical instance name. |
pxc-unrbk8oyz********** |
| StorageUsed |
string |
The storage usage, in MB. |
16681 |
| InstanceClusterName |
string |
||
| ReadType |
string |
||
| HistoryItems |
array<object> |
The list of historical nodes. |
|
|
object |
|||
| CharacterType |
string |
The node type. Valid values:
|
节点角色 |
| Role |
string |
The role of the node. Valid values:
|
master |
| DBInstanceName |
string |
The instance name. |
pxc-sprcym7g7w**** |
| DBInstanceId |
string |
The instance ID. |
304726049 |
| Region |
string |
The region of the node. If the node is an RDS node, the regions of multiple child nodes are separated with a delimiter (,). |
cn-hangzhou |
| Azone |
string |
The zone of the node. If the node is an RDS node, the zones of multiple child nodes are separated with a delimiter (,). |
cn-hangzhou-a |
| Activated |
boolean |
Indicates whether the node is activated. For the compute layer, only the node in the primary zone is activated. After a primary/secondary switchover is performed on the instance, the standby compute node becomes the primary node. All storage layer nodes are activated. |
true |
| PhyInstanceName |
string |
The physical instance name. |
pxc-unrbk8oyz********** |
Exemples
JSON format
{
"RequestId": "C458B1E8-1683-3645-B154-6BA32080EEA",
"Data": {
"LogicInstanceTopology": {
"DBInstanceName": "pxc-sprcym7g7w****",
"DBInstanceCreateTime": "2021-10-21T10:30:45Z 04:00:00",
"MaintainStartTime": "04:00:00",
"MaintainEndTime": "05:00:00",
"LockReason": "欠费",
"DBInstanceStatus": 8,
"LockMode": 0,
"EngineVersion": "2.0",
"DBInstanceStorage": 1,
"DBInstanceConnType": "lvs",
"DBInstanceId": "304726047",
"Engine": "polarx",
"DBInstanceDescription": "pxc-sprcym7******",
"DBInstanceStatusDescription": "TDE_MODIFYING",
"Items": [
{
"DBInstanceCreateTime": "2021-10-21T10:30:45Z",
"DBInstanceName": "pxc-i-tk6t4z****",
"CharacterType": "节点角色",
"MaintainStartTime": "不展示",
"DiskSize": 3145728,
"MaintainEndTime": "不展示",
"LockReason": "不展示",
"DBInstanceStatus": 8,
"LockMode": 0,
"EngineVersion": "5.7",
"DBInstanceConnType": 0,
"MaxConnections": 4000,
"DBInstanceId": "304726049",
"Engine": "mysql",
"MaxIops": 7000,
"DBInstanceDescription": "不展示",
"DBInstanceStatusDescription": "不展示",
"ConnectionIp": [
{
"Port": "3306",
"DBInstanceNetType": 1,
"ConnectionString": "pxc-xdb-m-pxcdym7g7w********.mysql.singapore.rds.aliyuncs.com"
}
],
"Region": "cn-hangzhou",
"Azone": "cn-hangzhou-a",
"Role": "master",
"Activated": true,
"AzoneRoleList": [
{
"Azone": "cn-hangzhou-a",
"Role": "leader"
}
],
"Status": "0",
"NodeClass": "polarx.x4.large.2e",
"Version": "polarx-cdc-kernel-2.0.0-3985896",
"PhyInstanceName": "pxc-unrbk8oyz**********",
"StorageUsed": "16681",
"InstanceClusterName": "",
"ReadType": ""
}
],
"HistoryItems": [
{
"CharacterType": "节点角色",
"Role": "master",
"DBInstanceName": "pxc-sprcym7g7w****",
"DBInstanceId": "304726049",
"Region": "cn-hangzhou",
"Azone": "cn-hangzhou-a",
"Activated": true,
"PhyInstanceName": "pxc-unrbk8oyz**********"
}
]
}
}
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 403 | RAM.Permission.Denied | RAM authentication failed. | |
| 404 | InvalidDBInstance.NotFound | The specified DB instance does not exist. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.