Deletes IP entries from an access control list (ACL).

Description

  • The RemoveEntriesFromAcl operation is asynchronous. After you send a request, the system returns the request ID, but the operation is still being performed in the system background. You can call the GetAcl or ListAcls operation to query the status of an ACL:
    • If an ACL is in the configuring state, the IP entries are being deleted. In this case, you can perform only query operations.
    • If an ACL is in the active state, the IP entries are deleted.
  • You cannot repeatedly call the RemoveEntriesFromAcl operation for the same Global Accelerator (GA) instance within the specified period of time.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes RemoveEntriesFromAcl

The operation that you want to perform. Set the value to RemoveEntriesFromAcl.

RegionId String Yes cn-hangzhou

The ID of the region where the GA instance is deployed. Set the value to cn-hangzhou.

AclId String Yes nacl-hp34s2h0xx1ht4nwo****

The ID of the ACL.

AclEntries.N.Entry String No 10.0.XX.XX/24

The IP address or CIDR block that you want to delete from the ACL.

You can delete at most 20 entries in each request.

Note This parameter is required.
ClientToken String No 593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must ensure that it is unique among all requests. The client token can contain only ASCII characters.

Note If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId may be different for each API request.
DryRun Boolean No false

Specifies whether to check the request without performing the operation. Valid values:

  • true: checks the request without performing the operation. The system checks the required parameters, request syntax, and limits. If the request fails the check, an error message is returned. If the request passes the check, the DryRunOperation error code is returned.
  • false (default): sends the request. If the request passes the check, an HTTP 2xx status code is returned and the operation is performed.

Response parameters

Parameter Type Example Description
RequestId String 64ADAB1E-0B7F-4FD8-A404-3BECC0E9CCFF

The ID of the request.

AclId String nacl-hp34s2h0xx1ht4nwo****

The ID of the ACL.

Examples

Sample requests

http(s)://[Endpoint]/?Action=RemoveEntriesFromAcl
&RegionId=cn-hangzhou
&AclId=nacl-hp34s2h0xx1ht4nwo****
&AclEntries=[{"Entry":"10.0.XX.XX/24"}]
&ClientToken=593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3
&DryRun=false
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<RemoveEntriesFromAclResponse>
    <RequestId>64ADAB1E-0B7F-4FD8-A404-3BECC0E9CCFF</RequestId>
    <AclId>nacl-hp34s2h0xx1ht4nwo****</AclId>
</RemoveEntriesFromAclResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "64ADAB1E-0B7F-4FD8-A404-3BECC0E9CCFF",
  "AclId" : "nacl-hp34s2h0xx1ht4nwo****"
}

Error code

For a list of error codes, visit the API Error Center.