Mengkueri informasi detail tentang akun database.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:GetDatabaseAccount |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID bastion host. Catatan
Anda dapat memanggil operasi DescribeInstances untuk mengkueri ID bastion host. |
bastionhost-cn-i7m2d7zrw11 |
| RegionId |
string |
No |
ID wilayah bastion host. Catatan
Untuk informasi lebih lanjut tentang pemetaan antara ID wilayah dan nama wilayah, lihat Wilayah dan zona. |
cn-beijing |
| DatabaseAccountId |
string |
Yes |
ID akun database yang akan dikueri. Catatan
Anda dapat memanggil operasi ListDatabaseAccounts untuk mengkueri ID akun database. |
9 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| DatabaseAccount |
object |
The returned information about the database account. |
|
| DatabaseAccountId |
string |
The database account ID. |
9 |
| DatabaseAccountName |
string |
The name of the database account. |
uac |
| DatabaseSchema |
string |
The database name. A value is returned for this parameter if the database engine is PostgreSQL or Oracle. |
orcl |
| HasPassword |
boolean |
Indicates whether the database account has a password. Valid values:
|
true |
| LoginAttribute |
string |
The logon attribute. A value is returned for this parameter if the database engine is Oracle. Valid values:
|
SID |
| RequestId |
string |
The request ID. |
FA06D274-8D0A-59FB-8B7E-584C0EEBBFFF |
Contoh
Respons sukses
JSONformat
{
"DatabaseAccount": {
"DatabaseAccountId": "9",
"DatabaseAccountName": "uac",
"DatabaseSchema": "orcl",
"HasPassword": true,
"LoginAttribute": "SID"
},
"RequestId": "FA06D274-8D0A-59FB-8B7E-584C0EEBBFFF"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | |
| 500 | InternalError | An unknown error occurred. | |
| 404 | DatabaseAccountNotFound | The database account is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.