Mengkueri akun database dari sebuah database.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ListDatabaseAccounts |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID bastion host. |
bastionhost-cn-7mz2za0ro06 |
| RegionId |
string |
No |
ID wilayah bastion host. Catatan
Untuk informasi selengkapnya tentang pemetaan antara ID wilayah dan nama wilayah, lihat Wilayah dan zona. |
cn-shanghai |
| DatabaseId |
string |
No |
ID database yang akun database-nya ingin Anda kueri. Catatan
Anda dapat memanggil operasi ListDatabases untuk mengkueri ID database. |
3 |
| PageNumber |
string |
No |
Nomor halaman. Nilai default: 1. |
1 |
| PageSize |
string |
No |
Jumlah entri per halaman. Catatan
Sebaiknya jangan kosongkan parameter ini. |
20 |
| DatabaseAccountName |
string |
No |
Nama akun database yang ingin dikueri. Nama dapat terdiri dari hingga 128 karakter. Hanya pencocokan tepat yang didukung. |
test |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| DatabaseAccounts |
array<object> |
The returned database accounts. |
|
|
object |
|||
| DatabaseAccountId |
string |
The database account ID. |
59 |
| DatabaseAccountName |
string |
The name of the database account. |
test |
| DatabaseId |
string |
The database ID. |
4 |
| DatabaseSchema |
string |
The name of the database. A value is returned for this parameter if the engine of the database with the specified database ID is PostgreSQL or Oracle. |
orcl |
| HasPassword |
string |
Indicates whether the database account has a password. Valid values:
|
true |
| RequestId |
string |
The request ID. |
4F6C075F-FC86-476E-943B-097BD4E12948 |
| TotalCount |
integer |
The total number of database accounts returned. |
10 |
Contoh
Respons sukses
JSONformat
{
"DatabaseAccounts": [
{
"DatabaseAccountId": "59",
"DatabaseAccountName": "test",
"DatabaseId": "4",
"DatabaseSchema": "orcl",
"HasPassword": "true"
}
],
"RequestId": "4F6C075F-FC86-476E-943B-097BD4E12948",
"TotalCount": 10
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | |
| 500 | InternalError | An unknown error occurred. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.