Membuat daftar Kontrol akses (ACL).
Deskripsi operasi
You can create multiple ACLs. Each ACL can contain one or more IP addresses or CIDR blocks. Before you create an ACL, take note of the following limits:
-
An account can have a maximum of 50 ACLs in each region.
-
You can add a maximum of 50 IP addresses or CIDR blocks at a time within an account.
-
Each ACL can contain a maximum of 300 IP addresses or CIDR blocks.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:CreateAccessControlList |
create |
*AccessControlList
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah ACL. |
cn-hangzhou |
| AclName |
string |
Yes |
Nama ACL. Nama harus terdiri dari 1 hingga 80 karakter, dan dapat berisi huruf, angka, titik (.), tanda hubung (-), garis miring (/), dan garis bawah (_). Nama ACL yang Anda buat harus unik dalam setiap wilayah. |
rule1 |
| AddressIPVersion |
string |
No |
Versi IP. Nilai valid: ipv4 dan ipv6. |
ipv4 |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-atstuj3rt****** |
| Tag |
array<object> |
No |
Tag. |
|
|
object |
No |
The tags. |
||
| Key |
string |
No |
The key of tag N. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length, and cannot contain |
TestKey |
| Value |
string |
No |
The value of tag N. Valid values of N: 1 to 20. The tag value can be an empty string. The tag value must be 0 to 128 characters in length, and cannot start with |
TestValue |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| AclId |
string |
The IP version. Valid values: ipv4 and ipv6. |
acl-rj9xpxzcwxrukois**** |
| RequestId |
string |
The request ID. |
988CB45E-1643-48C0-87B4-928DDF77EA49 |
Contoh
Respons sukses
JSONformat
{
"AclId": "acl-rj9xpxzcwxrukois****",
"RequestId": "988CB45E-1643-48C0-87B4-928DDF77EA49"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidAction.RegionNotSupport | The region does not support this action. | |
| 400 | AclNumberOverLimit | The Acl number has reached to the max quota limit. | |
| 400 | InvalidResourceGroupId.NotFound | The specified ResourceGroupId is not found. | |
| 400 | ResourceInConfiguring.Acl | The specified resource is configuring, please try again later. | |
| 400 | InvalidParam.TagValue | %s. | |
| 400 | InvalidParam.TagKey | %s. | |
| 400 | SizeLimitExceeded.Tag | %s. | |
| 400 | MissingParam.TagKey | The param MissingParam.TagKey is missing. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.