Queries all the databases on which the current user has permissions.
Debugging
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. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=GetAllDatabases
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetAllDatabasesResponse>
<Code>ok</Code>
<Data>db001</Data>
<Message>ok</Message>
<RequestId>9BEAC206-0795-4DE3-B1FD-964BEF432B23</RequestId>
<Success>true</Success>
</GetAllDatabasesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"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.