Bir erişim kontrol listesi (ACL) oluşturur.
Operation description
Birden fazla ACL oluşturabilirsiniz. Her ACL bir veya daha fazla IP adresi ya da CIDR bloğu içerebilir. Bir ACL oluşturmadan önce aşağıdaki sınırlamalara dikkat edin:\n\n- Bir hesap, her bölgede en fazla 50 ACL'ye sahip olabilir.\n\n- Bir hesap içinde tek seferde en fazla 50 IP adresi veya CIDR bloğu ekleyebilirsiniz.\n\n- Her ACL en fazla 300 IP adresi veya CIDR bloğu içerebilir.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:CreateAccessControlList |
create |
*AccessControlList
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ACL'nin bölge kimliği. |
cn-hangzhou |
| AclName |
string |
Yes |
ACL'nin adı. Ad 1 ila 80 karakter uzunluğunda olmalı ve harf, rakam, nokta (.), tire (-), eğik çizgi (/) ve alt çizgi (_) içerebilir. Oluşturduğunuz ACL'nin adı her bölgede benzersiz olmalıdır. |
rule1 |
| AddressIPVersion |
string |
No |
IP sürümü. Geçerli değerler: ipv4 ve ipv6. |
ipv4 |
| ResourceGroupId |
string |
No |
Kaynak grubu kimliği. |
rg-atstuj3rt****** |
| Tag |
array<object> |
No |
Etiketler. |
|
|
object |
No |
Etiketler. |
||
| Key |
string |
No |
N etiketinin anahtarı. N için geçerli değerler: 1 ile 20 arası. Etiket anahtarı boş bir dize olamaz. Etiket anahtarı en fazla 128 karakter uzunluğunda olabilir ve |
TestKey |
| Value |
string |
No |
N etiketinin değeri. N için geçerli değerler: 1 ile 20 arası. Etiket değeri boş bir dize olabilir. Etiket değeri 0 ila 128 karakter uzunluğunda olmalı ve |
TestValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AclId |
string |
IP sürümü. Geçerli değerler: ipv4 ve ipv6. |
acl-rj9xpxzcwxrukois**** |
| RequestId |
string |
İstek kimliği. |
988CB45E-1643-48C0-87B4-928DDF77EA49 |
Examples
Success response
JSON format
{
"AclId": "acl-rj9xpxzcwxrukois****",
"RequestId": "988CB45E-1643-48C0-87B4-928DDF77EA49"
}
Error codes
|
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.