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
Action String Yes ListDatabases

The operation that you want to perform. Set the value to ListDatabases.

InstanceId String Yes 1

The ID of the database instance.

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

The detailed information of databases.


The detailed information of a database.

CatalogName String 1

The catalog name of the database.

DatabaseId String 1

The ID of the database.

DbType String mysql

The type of the database.

DbaId String 1

The ID of the database administrator (DBA).

DbaName String dba_user

The nickname of the DBA.

Encoding String utf-8

The encoding format of the database.

EnvType String dev

The type of the environment to which the database belongs.

Host String

The endpoint of the instance to which the database belongs.

InstanceId String 1

The ID of the instance to which the database belongs.

OwnerIdList 1

The IDs of database owners.


The ID of a database owner.

OwnerNameList owner_name

The nicknames of database owners.


The nickname of a database owner.

Port Integer 3306

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

SchemaName String test

The name of the database.

SearchName String

The query name of the database.

Sid String test

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

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.
ErrorCode String UnknownError

The error code.

ErrorMessage String UnknownError

The error message.

RequestId String 5541CDA6-F674-435C-81BD-40C2FB926CE3

The ID of the request.

Success Boolean true

Indicates whether the request was successful.

TotalCount Long 1

The total number of databases in the instance.


Sample requests

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

Sample success responses

XML format

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

JSON format

				"DbaName":"xxx[RAM user]",

Error codes

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