Describes the database accounts of an AnalyticDB for MySQL cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeAccounts |
get |
DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the AnalyticDB for MySQL cluster. Note
You can call the DescribeDBClusters operation to query the IDs of all AnalyticDB for MySQL clusters in a specific region. |
amv-bp11q28kvl688**** |
| AccountName |
string |
No |
The name of the database account. Note
If you omit this parameter, information about all database accounts is returned. |
test_accout |
| Tags |
array<object> |
No |
The resource tags. |
|
|
object |
No |
A resource tag. |
||
| Key |
string |
No |
The key of the tag. Note
You can call the TagResources operation to create a tag for a cluster. |
AnalyticDB_IO_UTIL |
| Value |
string |
No |
The value of the tag. |
low_env |
| AccountType |
string |
No |
The account type. By default, accounts of all types are returned. Valid values:
|
Super |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
9CCFAAB4-97B7-5800-B9F2-685EB596E3EF |
| AccountList |
object |
The information about the database accounts. |
|
| DBAccount |
array<object> |
The database accounts. |
|
|
array<object> |
The details of the database account. |
||
| AccountStatus |
string |
The state of the account. Valid values:
|
Available |
| AccountDescription |
string |
The description of the account. |
C@test |
| Tags |
object |
The tags. |
|
| Tag |
array<object> |
A list of tags. |
|
|
object |
The details of the tag. |
||
| Key |
string |
The key of the tag. Note
You can call the TagResources operation to create a tag for a cluster. |
AnalyticDB_CPU |
| Value |
string |
The value of the tag. |
0 |
| AccountType |
string |
The type of the account. Valid values:
|
Super |
| AccountName |
string |
The name of the database account. |
adb_user1 |
Examples
Success response
JSON format
{
"RequestId": "9CCFAAB4-97B7-5800-B9F2-685EB596E3EF",
"AccountList": {
"DBAccount": [
{
"AccountStatus": "Available",
"AccountDescription": "C@test",
"Tags": {
"Tag": [
{
"Key": "AnalyticDB_CPU",
"Value": "0"
}
]
},
"AccountType": "Super",
"AccountName": "adb_user1"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.