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 Function

IpAddress.list()

Return Object

ListIterator<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

import com.files.ListIterator;
import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.IpAddress;

try {
  HashMap<String, Object> parameters = new HashMap<>();
  ListIterator<IpAddress> ipAddresses = IpAddress.list(parameters);
  for (IpAddress ipAddress : ipAddresses.listAutoPaging()) {
    // Operate on ipAddress
  }
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

The IpAddress Object

Some of the functions 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.