IP Addresses

An IPAddress is a record of IP addresses that you can use to automate keeping your firewall's configuration up to date.

Customers who maintain custom firewall configurations may require knowing the public IP addresses of Files.com's edge servers.

List IP Addresses associated with the current site

SDK Method

Files::IpAddress.list

Return Object

List<IpAddress>

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Additional Arguments

Example Request

begin
  ip_addresses = Files::IpAddress.list
  ip_addresses.auto_paging_each do |ip_address|
    # Operate on ip_address
  end
rescue Files::NotAuthenticatedError => e
  puts "Authentication Error Occurred (#{e.class.to_s}): " + e.message
rescue Files::Error => e
  puts "Unknown Error Occurred (#{e.class.to_s}): " + e.message
end

The IpAddress Object

Some of the methods above return a IpAddress object. The attributes of this object are listed below.

AttributeDescription
id
string
Unique label for list; used by Zapier and other integrations.
associated_with
string
The object that this public IP address list is associated with.
group_id
int64
Group ID
ip_addresses
array(string)
A list of IP addresses.