Mengkueri akun database instans ApsaraDB for MongoDB.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeAccounts |
get |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID instans. |
dds-bp1fd530f271**** |
| AccountName |
string |
No |
Nama akun. Atur nilainya ke root. |
root |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
B562A65B-39AB-4EE8-8635-5A222054FB35 |
| Accounts |
object |
||
| Account |
array<object> |
Detail akun. |
|
|
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 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "B562A65B-39AB-4EE8-8635-5A222054FB35",
"Accounts": {
"Account": [
{
"CharacterType": "mongos",
"AccountStatus": "Available",
"AccountDescription": "管理员",
"DBInstanceId": "dds-bp1fd530f271****",
"AccountName": "root"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ResponseEmptyError | The Response is empty, maybe server request timeout. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.