class Fastly::ACL

Acces Control List configuration

Attributes

id[RW]
name[RW]

The name for the ACL.

service_id[RW]

The id of the service this belongs to.

version[RW]

The number of the version this belongs to.

Public Instance Methods

create_entry(opts = {}) click to toggle source

Create an ACL entry and add it to the ACL

# File lib/fastly/acl.rb, line 30
def create_entry(opts = {})
  fetcher.create_acl_entry(
    service_id: service_id,
    acl_id: id,
    ip: opts[:ip],
    negated: opts[:negated],
    subnet: opts[:subnet],
    comment: opts[:comment]
  )
end
delete_entry(entry) click to toggle source

Delete an ACL entry

# File lib/fastly/acl.rb, line 58
def delete_entry(entry)
  fetcher.delete_acl_entry(entry)
end
get_entry(entry_id) click to toggle source

Retrieve an ACL entry

# File lib/fastly/acl.rb, line 44
def get_entry(entry_id)
  fetcher.get_acl_entry(service_id, id, entry_id)
end
list_entries() click to toggle source

List ACL entries that belong to the ACL

# File lib/fastly/acl.rb, line 23
def list_entries
  fetcher.list_acl_entries(:service_id => service_id, :acl_id => id)
end
update_entry(entry) click to toggle source

Update an ACL entry

# File lib/fastly/acl.rb, line 51
def update_entry(entry)
  fetcher.update_acl_entry(entry)
end