Queries all databases and database accounts of an AnalyticDB for PostgreSQL instance.
Operation description
Queries all databases and database accounts on an AnalyticDB for PostgreSQL instance.
Limits
You can call this operation up to 1,000 times per second per account. Requests that exceed this limit are throttled, which may affect your business.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gpdb:DescribeDiagnosisDimensions |
get |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. Note
You can call the DescribeDBInstances operation to query the information about all AnalyticDB for PostgreSQL instances within a region, including instance IDs. |
gp-bp12ga6v69h86**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
9ADCAACA-E0E8-5319-AE3B-E260E957BDF9 |
| Databases |
array |
The names of the databases. |
|
|
string |
The name of the database. |
acc_001 |
|
| UserNames |
array |
The names of the database accounts. |
|
|
string |
The name of the database account. |
acc_001 |
Examples
Success response
JSON format
{
"RequestId": "9ADCAACA-E0E8-5319-AE3B-E260E957BDF9",
"Databases": [
"acc_001"
],
"UserNames": [
"acc_001"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.