Adds IP entries to an access control policy group.
Operation description
Each policy group can contain multiple IP address entries or IP address range entries. The entry limits for access control policy groups are as follows:
-
Number of IP address entries that can be added per request per account: 50
-
Number of entries that each access control policy group can contain: 300
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:AddAccessControlListEntry |
create |
*acl
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the access control policy group. |
cn-hangzhou |
| AclId |
string |
No |
The ID of the access control policy group. |
acl-bp1l0kk4gxce43kze***** |
| AclEntrys |
string |
No |
The access control policy group settings. Valid values:
Note
You can add up to 50 entries at a time. If duplicate IP entries are added, only one entry is retained and the duplicate entries are ignored. IP entries must be CIDR blocks. |
[{"entry":"10.0.**.**/24","comment":"privaterule1"},{"entry":"192.168.**.**/16","comment":"privaterule2"}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
988CB45E-1643-48C0-87B4-928DDF77EA4 |
Examples
Success response
JSON format
{
"RequestId": "988CB45E-1643-48C0-87B4-928DDF77EA4"
}
Error codes
|
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. | The ACL entry is invalid. |
| 400 | InvalidEntry | %s. | |
| 400 | InvalidParam.Comment | The specified comment is invalid. | The specified comment is invalid. |
| 400 | AclEntryExceedLimit | The maximum number of ACL entries is exceeded. | |
| 400 | SystemBusy | The system is busy. | System Busy |
| 503 | ServiceUnavailable | Service is unavailable now. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.