You can call this operation to query the information of the database account of a MongoDB instance.

Note This operation can query only the information of the root account.


OpenAPI Explorer simplifies API usage. You can use OpenAPI Explorer to perform debugging operations, such as retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

Action String No DescribeAccounts

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

AccountName String No root

The name of the account. Set the value to root.

AccessKeyId String No LTAIgbTGpxxxxxx

The AccessKey ID provided to you by Alibaba Cloud.

Response parameters

Parameter Type Example Description

The detailed list of database accounts.

  └AccountDescription String Administrator

The description of the account.

  └AccountName String root

The name of the account.

  └AccountStatus String Available

The status of the account.

  • Unavailable
  • Available
  └DBInstanceId String dds-bpxxxxxxxx

The name of the instance to which the account belongs.

RequestId String B562A65B-39AB-4EE8-8635-5A222054FB35

The ID of the request.


Sample requests

http(s):// Action=DescribeAccounts
&<Common request parameters>

Successful response examples

XML format


JSON format


Error codes

View error codes