Queries all the databases on which the current user has permissions.


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 GetAllDatabases

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

Response parameters

Parameter Type Example Description
Code String ok

The error code returned. When this operation is called, no exceptions occur.

Data Array of String db001

The names of the databases on which the user has permissions.

Message String ok

The error message returned.

RequestId String 9BEAC206-0795-4DE3-B1FD-964BEF432B23

The ID of the request.

Success Boolean true

Indicates whether the request was successful.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "Code" : "ok",
  "Data" : [ "db001" ],
  "Message" : "ok",
  "RequestId" : "9BEAC206-0795-4DE3-B1FD-964BEF432B23",
  "Success" : true

Error codes

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