Menanyakan informasi akun dari instans AnalyticDB for PostgreSQL.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gpdb:DescribeAccounts |
get |
*DBInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID instans. Catatan
Anda dapat memanggil operasi DescribeDBInstances untuk menanyakan detail semua instans AnalyticDB for PostgreSQL di region tertentu, termasuk ID instans. |
gp-bp*************** |
| AccountName |
string |
No |
Nama akun database. |
testuser |
| AccountType |
string |
No |
Nilai default adalah Super, yang digunakan untuk menanyakan akun istimewa. Jika nilainya Normal, akun standar yang akan ditanyakan. Jika nilainya All, semua akun akan ditanyakan. |
Super |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
7565770E-7C45-462D-BA4A-8A5396F2CAD1 |
| Accounts |
object |
||
| DBInstanceAccount |
array<object> |
Informasi akun database. |
|
|
object |
|||
| AccountStatus |
string |
The state of the account.
|
1 |
| AccountDescription |
string |
The description of the account. |
testuser |
| DBInstanceId |
string |
The ID of the instance. |
gp-bp*************** |
| AccountName |
string |
The name of the account. |
testuser |
| AccountType |
string |
The type of the database account. Valid values: Super and Normal. Super indicates a privileged account and Normal indicates a standard account. |
Super |
Contoh
Respons sukses
JSONformat
{
"RequestId": "7565770E-7C45-462D-BA4A-8A5396F2CAD1",
"Accounts": {
"DBInstanceAccount": [
{
"AccountStatus": "1",
"AccountDescription": "testuser",
"DBInstanceId": "gp-bp***************",
"AccountName": "testuser",
"AccountType": "Super\n"
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.