Queries the database accounts of an ApsaraDB for MongoDB instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeAccounts |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-bp1fd530f271**** |
| AccountName |
string |
No |
The name of the account. Set the value to root. |
root |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
B562A65B-39AB-4EE8-8635-5A222054FB35 |
| Accounts |
object |
||
| Account |
array<object> |
The details of the account. |
|
|
object |
|||
| CharacterType |
string |
The role of the account. Valid values:
|
mongos |
| AccountStatus |
string |
The status of the account. Valid values:
|
Available |
| AccountDescription |
string |
The description of the account. |
管理员 |
| DBInstanceId |
string |
The ID of the instance to which the account belongs. |
dds-bp1fd530f271**** |
| AccountName |
string |
The name of the account. |
root |
Examples
Success response
JSON format
{
"RequestId": "B562A65B-39AB-4EE8-8635-5A222054FB35",
"Accounts": {
"Account": [
{
"CharacterType": "mongos",
"AccountStatus": "Available",
"AccountDescription": "管理员",
"DBInstanceId": "dds-bp1fd530f271****",
"AccountName": "root"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ResponseEmptyError | The Response is empty, maybe server request timeout. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.