Queries the list of instances.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. Note
You can call the DescribeRegions operation to query all available regions under the current account, including region IDs. |
cn-hangzhou |
| DBClusterId |
string |
No |
The cluster ID. Note
You can call the DescribeDBClusters operation to query the details of all clusters under the account, including cluster IDs. |
pc-***************** |
| InstanceNetworkType |
string |
No |
The network type of the instance. Valid values:
Note
If you do not specify this parameter, instances of all network types are returned. |
VPC |
| PageSize |
integer |
No |
The number of entries per page. Valid values:
Default value: 30. |
30 |
| PageNumber |
integer |
No |
The page number. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Items |
object |
||
| DBInstance |
array<object> |
The list of database instances. |
|
|
object |
The database instance. |
||
| CreateTime |
string |
The creation time. Format: |
2021-08-10T03:00:30Z |
| DBClusterId |
string |
The cluster ID. |
pc-2ze9iiagkd3e08rwr |
| DBInstanceClass |
string |
The instance specifications. |
mdb.shard.4x.large.d |
| DBInstanceDescription |
string |
The description of the instance. |
pc-2ze9iiagkd3e08rwr |
| DBInstanceId |
string |
The instance ID. |
pc-bp17sp4u61n4c7888 |
| DBInstanceStatus |
string |
The cluster status. |
Running |
| DBInstanceType |
string |
The instance type. Valid values:
|
polardb_mysql_rw |
| DBType |
string |
The database engine type. Valid values:
|
Oracle |
| DBVersion |
string |
The MySQL version. Valid values:
|
8.0 |
| Engine |
string |
The database engine. |
POLARDB |
| ExpireTime |
string |
The expiration time of the cluster. Note
A specific value is returned only for clusters whose billing method is Prepaid (subscription). For Postpaid (pay-as-you-go) clusters, an empty value is returned. |
2026-03-28T16:00:00Z |
| InstanceNetworkType |
string |
The network type. Valid values:
|
Classic |
| LockMode |
string |
The lock status of the cluster. Valid values:
|
Unlock |
| LockReason |
string |
The reason why the cluster is locked. Note
This parameter is returned only when the cluster is locked. The value is fixed as instance_expire. |
nolock |
| PayType |
string |
The billing method. Valid values:
|
Postpaid |
| RegionId |
string |
The region ID. |
cn-hongzhou |
| VSwitchId |
string |
The vSwitch ID. |
vsw-wz9u0v2yuskt1gth3uuju |
| VpcId |
string |
The VPC ID. |
vpc-bp1ev03jo6px78cnfzfh5 |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-h |
| PageNumber |
integer |
The page number. |
1 |
| PageRecordCount |
integer |
The number of entries on the current page. |
2 |
| RequestId |
string |
The request ID. |
03C46A7A-E680-5B9F-B890-38789B52EB50 |
| TotalRecordCount |
integer |
The total number of entries. |
1 |
Examples
Success response
JSON format
{
"Items": {
"DBInstance": [
{
"CreateTime": "2021-08-10T03:00:30Z",
"DBClusterId": "pc-2ze9iiagkd3e08rwr",
"DBInstanceClass": "mdb.shard.4x.large.d",
"DBInstanceDescription": "pc-2ze9iiagkd3e08rwr",
"DBInstanceId": "pc-bp17sp4u61n4c7888",
"DBInstanceStatus": "Running",
"DBInstanceType": "polardb_mysql_rw",
"DBType": "Oracle",
"DBVersion": "8.0",
"Engine": "POLARDB",
"ExpireTime": "2026-03-28T16:00:00Z",
"InstanceNetworkType": "Classic",
"LockMode": "Unlock",
"LockReason": "nolock",
"PayType": "Postpaid",
"RegionId": "cn-hongzhou",
"VSwitchId": "vsw-wz9u0v2yuskt1gth3uuju",
"VpcId": "vpc-bp1ev03jo6px78cnfzfh5",
"ZoneId": "cn-hangzhou-h"
}
]
},
"PageNumber": 1,
"PageRecordCount": 2,
"RequestId": "03C46A7A-E680-5B9F-B890-38789B52EB50",
"TotalRecordCount": 1
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.