Menambahkan entri IP ke daftar kontrol akses (ACL).
Deskripsi operasi
Setiap ACL jaringan dapat berisi satu atau beberapa alamat IP atau Blok CIDR. Perhatikan batasan berikut untuk ACL jaringan:
Jumlah entri IP yang dapat ditambahkan ke ACL jaringan oleh setiap Akun Alibaba Cloud dalam satu waktu: 50
Jumlah maksimum entri IP yang dapat dimuat oleh setiap ACL jaringan: 300
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:AddAccessControlListEntry |
create |
*acl
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah ACL jaringan. |
cn-hangzhou |
| AclId |
string |
No |
ID ACL jaringan. |
acl-bp1l0kk4gxce43kze***** |
| AclEntrys |
string |
No |
Konfigurasi ACL jaringan. Nilai yang valid:
Catatan
Anda dapat menambahkan maksimal 50 entri IP ke ACL jaringan dalam setiap panggilan. Jika entri IP yang ingin Anda tambahkan ke ACL jaringan sudah ada, entri tersebut tidak akan ditambahkan. Entri IP yang Anda tambahkan harus berupa Blok CIDR. |
[{"entry":"10.0.**.**/24","comment":"privaterule1"},{"entry":"192.168.**.**/16","comment":"privaterule2"}] |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
988CB45E-1643-48C0-87B4-928DDF77EA4 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "988CB45E-1643-48C0-87B4-928DDF77EA4"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParam.AclEntryExists | The specified aclEntry already exists in the acl. | |
| 400 | IllegalEntry | Entry version is conflict to the acl version. | |
| 400 | AclEntryIllegal | %s. | |
| 400 | InvalidEntry | %s. | |
| 400 | InvalidParam.Comment | The specified comment is invalid. | |
| 400 | AclEntryExceedLimit | The maximum number of ACL entries is exceeded. | |
| 400 | SystemBusy | The system is busy. | |
| 503 | ServiceUnavailable | Service is unavailable now. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.