Mencantumkan database yang dapat diakses oleh Pengguna RAM (Resource Access Management) saat ini.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ListOperationDatabases |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID Instans Host Bastion. Catatan
Panggil operasi DescribeInstances untuk memperoleh parameter ini. |
bastionhost-cn-tl32wdd |
| RegionId |
string |
No |
ID Wilayah Instans Host Bastion. Catatan
Untuk informasi lebih lanjut, lihat Wilayah dan zona. |
cn-shanghai |
| PageNumber |
string |
No |
Nomor halaman. Nilai default: 1. |
1 |
| PageSize |
string |
No |
Jumlah entri per halaman. Catatan
Tentukan nilai untuk parameter ini. |
20 |
| DatabaseType |
string |
No |
Tipe database. Nilai valid:
|
MySQL |
| DatabaseName |
string |
No |
Nama database. Parameter ini hanya mendukung pencocokan Port. |
aaa |
| DatabaseAddress |
string |
No |
Alamat database. |
10.167.XX.XX |
| Source |
string |
No |
Sumber database. Nilai valid:
|
Local |
| SourceInstanceId |
string |
No |
ID instans sumber. Parameter ini hanya mendukung pencocokan Port. |
i-bp19ienyt0yax748**** |
| SourceInstanceState |
string |
No |
Status instans sumber. Anda dapat menggunakan parameter ini untuk memfilter hasil. Nilai valid:
|
Normal |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Databases |
array<object> |
The databases. |
|
|
object |
|||
| ActiveAddressType |
string |
The endpoint type of the database. Valid values:
|
Private |
| Comment |
string |
The comment on the database. |
cpp |
| DatabaseId |
string |
The ID of the database. |
26 |
| DatabaseName |
string |
The name of the database. |
zDatabase |
| DatabasePort |
integer |
The database port. |
3306 |
| DatabasePrivateAddress |
string |
The private endpoint of the database. |
rm-b******9b.mysql.rds.aliyuncs.com |
| DatabasePublicAddress |
string |
The public endpoint of the database. |
rm-uf******p45.mysql.rds.aliyuncs.com |
| DatabaseType |
string |
The database type. Valid values:
|
MySQL |
| Source |
string |
The source of the database.
|
Local |
| SourceInstanceId |
string |
The ID of the source instance. |
i-wz9225bhipya****** |
| SourceInstanceRegionId |
string |
The region ID of the source instance. |
cn-shanghai |
| SourceInstanceState |
string |
The status of the source instance:
|
Normal |
| RequestId |
string |
The ID of the request. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
| TotalCount |
integer |
The total number of databases. |
15 |
Contoh
Respons sukses
JSONformat
{
"Databases": [
{
"ActiveAddressType": "Private",
"Comment": "cpp",
"DatabaseId": "26",
"DatabaseName": "zDatabase",
"DatabasePort": 3306,
"DatabasePrivateAddress": "rm-b******9b.mysql.rds.aliyuncs.com",
"DatabasePublicAddress": "rm-uf******p45.mysql.rds.aliyuncs.com",
"DatabaseType": "MySQL",
"Source": "Local",
"SourceInstanceId": "i-wz9225bhipya******",
"SourceInstanceRegionId": "cn-shanghai",
"SourceInstanceState": "Normal"
}
],
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
"TotalCount": 15
}
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.