Setelah mengaktifkan akses jaringan publik untuk instans Host Bastion, Anda dapat menambahkan alamat IP ke daftar putih untuk mengontrol akses.
Deskripsi operasi
This operation configures a public IP address whitelist for a Bastionhost instance. By default, instances accept traffic from all public IP addresses. To restrict access, add IP addresses to the whitelist. This ensures only traffic from whitelisted IP addresses can reach the instance.
Each user is limited to 30 queries per second (QPS) for this operation. The system throttles API calls that exceed this limit. This may affect your services, so plan your calls accordingly.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans Host Bastion yang akan dikonfigurasi. Catatan
Untuk mendapatkan ID instans, panggil operasi DescribeInstances. |
bastionhost-cn-78v1gh**** |
| RegionId |
string |
No |
ID wilayah instans Host Bastion. |
cn-hangzhou |
| WhiteList |
array |
No |
Daftar alamat IP yang akan ditambahkan ke daftar putih. |
10.162.XX.XX |
|
string |
No |
The IP addresses to add to the whitelist. You can specify up to 50 IP addresses, separated by a comma. |
10.162.XX.XX,192.168.XX.XX |
|
| WhiteListPolicies |
array<object> |
No |
Kebijakan untuk daftar putih alamat IP publik. |
|
|
object |
No |
|||
| Entry |
string |
No |
The IP addresses to add to the whitelist. You can specify up to 50 IP addresses, separated by a comma. |
10.162.XX.XX,192.168.XX.XX |
| Description |
string |
No |
The description of this whitelist rule. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| InstanceId |
string |
The ID of the Bastionhost instance whose whitelist was configured. |
bastionhost-cn-78v1gh**** |
| RequestId |
string |
A unique request ID generated by Alibaba Cloud. Use this ID to troubleshoot issues. |
47820E32-5968-45CF-982F-09CB80DC180B |
Contoh
Respons sukses
JSONformat
{
"InstanceId": "bastionhost-cn-78v1gh****",
"RequestId": "47820E32-5968-45CF-982F-09CB80DC180B"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.