All Products
Search
Document Center

PolarDB:DescribeDBInstances

Last Updated:Nov 04, 2026

Queries the list of instances.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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:

  • VPC: VPC.

  • Classic: Classic network.

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:

  • 30

  • 50

  • 100

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: yyyy-MM-ddTHH:mm:ssZ (UTC time).

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: Read/write instance.

  • polardb_mysql_ro: Read-only instance.

  • polardb_mysql_standby: Standby instance.

polardb_mysql_rw

DBType

string

The database engine type. Valid values:

  • MySQL

  • PostgreSQL

  • Oracle

Oracle

DBVersion

string

The MySQL version. Valid values:

  • 5.6

  • 5.7

  • 8.0

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: Classic network.

  • VPC: VPC.

Classic

LockMode

string

The lock status of the cluster. Valid values:

  • Unlock: Normal.

  • ManualLock: Manually locked.

  • LockByExpiration: Automatically locked due to cluster expiration.

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: Pay-as-you-go.

  • Prepaid: Subscription.

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.