Creating and manipulating Edge ACL entries

Last updated July 18, 2017

Edge ACL entries contain IP addresses that can be used to whitelist or blacklist access to resources. ACL entries are versionless, and any changes will become effective immediately, regardless of version.

Parameters

Edge ACL entries have the following parameters:

service_id: The ID of the Fastly service the ACL is associated with.

acl_id: The ID of the ACL.

id: The ID of the ACL entry.

ip: The IP address contained within the ACL entry.

subnet: Optional. The range of IP addresses within a single ACL entry.

negated: Defaults to false. A number indicating false (0) to allow, or true (1) to negate. Note that we do not recommend mixing both negated and non-negated entries in the same ACL.

comment: Optional. A descriptive comment indicating why you created the ACL entry.

Creating an ACL entry

To add an entry to an existing ACL, make the following API call in a terminal application:

Updating multiple ACL entries

You can also update multiple ACL entries at the same time. Include an entries array of changes in the API call and pass an operation (op) parameter for every change. Possible op values are create, update, and delete.

To update multiple ACL entries at the same time, make the following API call in a terminal application: