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_sdk.ip_address.list()

Return Object

ListObj[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 files_sdk

try:
  ip_addresses = files_sdk.ip_address.list()
  for ip_address in ip_addresses.auto_paging_iter():
    # Operate on ip_address
except files_sdk.error.NotAuthenticatedError as err:
  print(f"Authentication Error Occurred ({type(err).__name__}):", err)
except files_sdk.error.Error as err:
  print(f"Unknown Error Occurred ({type(err).__name__}):", err)

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.