Adds IP entries to an access control list.

Each access control list can contain multiple IP addresses and CIDR blocks. Access control lists have the following limits:

  • Each Alibaba Cloud account can add a maximum of 50 IP entries at a time.
  • An access control list can contain a maximum of 300 IP entries.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes AddAccessControlListEntry

The name of this action. Value: AddAccessControlListEntry

AclId String Yes acl-bp1l0kk4gxce43kze*****

The ID of the access control list to which you want to add IP entries.

RegionId String Yes cn-hangzhou

The ID of the region to which the access control list belongs.

AclEntrys String No [{"entry":"10.0.0.0/24","comment":"privaterule1"},{"entry":"192.168.0.0/16","comment":"privaterule2"}]

Optional. The IP entries to be added to the access control list. You can add IP addresses or CIDR blocks. Use commas (,) to separate multiple IP addresses or CIDR blocks.

Note You can add a maximum of 50 IP entries at a time.

Response parameters

Parameter Type Example value Description
RequestId String 988CB45E-1643-48C0-87B4-928DDF77EA4

The ID of the request.

Examples

Request example


http(s)://[Endpoint]/? Action=AddAccessControlListEntry
&AclId=acl-bp1l0kk4gxce43kze*****
&RegionId=cn-hangzhou
&<CommonParameters>

Response examples

XML format

<AddAccessControlListEntryResponse>
  <RequestId>988CB45E-1643-48C0-87B4-928DDF77EA49</RequestId>
</AddAccessControlListEntryResponse>

JSON format

{
	"RequestId":"988CB45E-1643-48C0-87B4-928DDF77EA49"
}

Error codes

See common error codes.