Membuat daftar kontrol akses (ACL) untuk gerbang privat. Blok CIDR IP yang ditambahkan ke ACL dapat mengakses gerbang privat.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:CreateAclPolicy |
create |
*Gateway
|
None | None |
Sintaks permintaan
POST /api/v2/gateways/{ClusterId}/{GatewayId}/acl_policy HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID wilayah gerbang privat. |
cn-wulanchabu |
| GatewayId |
string |
Yes |
ID gerbang privat. Untuk mendapatkan ID gerbang privat, lihat parameter private_gateway_id pada parameter tanggapan operasi ListResources. |
gw-1uhcqmsc7x22****** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| VpcId |
string |
No |
ID virtual private cloud (VPC). Untuk informasi selengkapnya tentang cara mendapatkan ID VPC, lihat DescribeVpcs. |
vpc-uf66uio7md**** |
| AclPolicyList |
array<object> |
Yes |
Blok CIDR IP yang masuk daftar putih di VPC yang dapat mengakses gerbang privat. |
|
|
object |
No |
The whitelisted IP CIDR block in the VPC that can access the private gateway. |
||
| Entry |
string |
Yes |
The IP CIDR block in the VPC that can access the private gateway. |
10.23.XX.XX/32 |
| Comment |
string |
No |
The comment on the IP CIDR block in the VPC that can access the private gateway. |
default |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| GatewayId |
string |
The private gateway ID. |
gw-1uhcqmsc7x22****** |
| Message |
string |
The returned message. |
Successfully add acl policy for gateway |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82****",
"GatewayId": "gw-1uhcqmsc7x22******",
"Message": "Successfully add acl policy for gateway"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.