All Products
Document Center


Last Updated: May 29, 2020

Queries database account information about an AnalyticDB for MySQL cluster.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeAccounts The operation that you want to perform. Set the value to


DBClusterId String Yes rm-uf6wjk5xxxxxxxxxx The ID of the cluster whose database account information is to be queried.
AccountName String No test_accout The name of the database account.

Response parameters

Parameter Type Description
<Common response parameters> String For more information, see Common parameters.
AccountList List<DBAccount> The information about database accounts.


Parameter Type Example Description
AccountName String test1 The name of a database account.
AccountStatus String Available The status of the database account. Valid values:
  • Creating
  • Available
  • Deleting
AccountDescription String Test account The description of the database account.
AccountType String Normal The type of the database account. Valid values:
  • Normal: standard account
  • Super: privileged account


Sample requests

  1. http(s)://[Endpoint]/?Action=DescribeAccounts
  2. &DBClusterId=am-xxxxxxxxxx
  3. &<Common request parameters>

Sample success responses

XML format

  1. <DescribeAccountsResponse>
  2. <RequestId>64E37E6F-C363-41F3-867A-70EF5DC60EA4</RequestId>
  3. <AccountList>
  4. <DBAccount>
  5. <AccountStatus>Available</AccountStatus>
  6. <AccountDescription></AccountDescription>
  7. <AccountName>test_accout</AccountName>
  8. <AccountType>Super</AccountType>
  9. </DBAccount>
  10. </AccountList>
  11. </DescribeAccountsResponse>

JSON format

  1. {
  2. "RequestId": "64E37E6F-C363-41F3-867A-70EF5DC60EA4",
  3. "AccountList": {
  4. "DBAccount": [
  5. {
  6. "AccountStatus": "Available",
  7. "AccountDescription": "",
  8. "AccountName": "test_accout",
  9. "AccountType": "Super"
  10. }
  11. ]
  12. }
  13. }