Mengkueri daftar kunci bersama host.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ListHostShareKeys |
list |
*Instans.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans Host Bastion. Catatan
Anda dapat memanggil operasi DescribeInstances untuk mendapatkan parameter ini. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
ID wilayah instans Host Bastion. Catatan
Untuk informasi selengkapnya mengenai pemetaan antara ID wilayah dan nama wilayah, lihat Regions and zones. |
cn-hangzhou |
| PageNumber |
string |
No |
Nomor halaman yang akan dikembalikan. Nilai default: 1. |
1 |
| PageSize |
string |
No |
Jumlah kunci bersama host yang akan dikembalikan pada setiap halaman selama kueri berhalaman. Nilai default: 20, yang menunjukkan bahwa 20 kunci bersama host dikembalikan per halaman selama paging. |
20 |
| ProjectId |
integer |
No |
ID proyek. |
3 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema respons. |
||
| RequestId |
string |
ID permintaan. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
| TotalCount |
integer |
Jumlah total kunci bersama host yang dikembalikan. |
10 |
| HostShareKeys |
array<object> |
Kunci bersama host. |
|
|
object |
|||
| HostAccountCount |
integer |
Jumlah akun host yang terkait. |
1 |
| LastModifyKeyAt |
integer |
Pengatur waktu ketika kunci terakhir kali dimodifikasi. Nilainya adalah stempel waktu UNIX dalam detik. |
1644806406 |
| HostShareKeyName |
string |
Nama kunci bersama host. |
name |
| PrivateKeyFingerPrint |
string |
Sidik jari kunci privat. |
aa:10:f5:21:7f:8b:3e:86:b0:8b:f0:e0****** |
| HostShareKeyId |
string |
ID kunci bersama host. |
10247 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
"TotalCount": 10,
"HostShareKeys": [
{
"HostAccountCount": 1,
"LastModifyKeyAt": 1644806406,
"HostShareKeyName": "name",
"PrivateKeyFingerPrint": "aa:10:f5:21:7f:8b:3e:86:b0:8b:f0:e0******",
"HostShareKeyId": "10247"
}
]
}
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.