You can call this operation to query detailed information of databases in a specified instance.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
InstanceId String Yes 1

The id of the instance. The value is the instance id returned by the ListInstances operation.

PageNumber Integer Yes 1

The number of the page to return.

Tid Long Yes -1

The ID of the tenant in Data Management (DMS) Enterprise.

PageSize Integer No 10

The number of entries to return on each page.

Response parameters

Parameter Type Example Description
RequestId String 5541CDA6-F674-435C-81BD-40C2FB926CE3

The ID of the request.

Success Boolean true

Indicates whether the request was successful.

ErrorMessage String UnknownError

Error message

ErrorCode String UnknownError

Error code

TotalCount Long 1

The total number of databases in the instance.

DatabaseList Array

The detailed information of a database.

InstanceId String 1

The ID of the instance to which the database belongs.

DatabaseId String 1

The ID of the database.

EnvType String dev

The type of the environment to which the database belongs.

SchemaName String test

The name of the database.

CatalogName String 1

The catalog name of the database.

Encoding String UTF-8

The encoding format of the database.

SearchName String

The query name of the database.

State String NORMAL

The status of the database. Valid values:

  • NORMAL: The database is normal.
  • DISABLE: The database is disabled.
  • OFFLINE: The database is taken offline.
  • NOT_EXIST: The database does not exist.
DbType String mysql

The type of the database instance.

Host String

The endpoint of the instance to which the database belongs.

Port Integer 3306

The connection port of the instance to which the database belongs.

Sid String test

The system ID (SID) of the instance to which the database belongs.

DbaName String dba_user

The nickname of the DBA.

DbaId String 1

The ID of the database administrator (DBA).

OwnerIdList List 1

The ID of a database owner.

OwnerNameList List owner_name

The nicknames of database owners.


Sample request

http(s)://[Endpoint]/? Action=ListDatabases
&<Common request parameters>

Sample success responses

XML format

        <DbaName>xxx[RAM user]</DbaName>

JSON format

  "TotalCount": 1,
  "RequestId": "5541CDA6-F674-435C-81BD-40C2FB926CE3",
  "Success": true,
  "DatabaseList": {
    "Database": [
        "Encoding": "utf8",
        "Host": "",
        "InstanceId": 24710,
        "DbType": "polardb",
        "EnvType": "product",
        "OwnerIdList": {
          "OwnerIds": [
        "DbaId": 104442,
        "OwnerNameList": {
          "OwnerNames": [
        "Port": 3306,
        "DatabaseId": 116366,
        "State": "NORMAL",
        "SearchName": "[xxx_test]",
        "DbaName": "xxx [Ram user]",
        "SchemaName": "xxx_test"

Error codes

For a list of error codes, visit the API Error Center.