Public IP Addresses

A PublicIPAddress is an IP address that app.files.com (or *.files.com) may potentially resolve to over the next 30 days. This list includes IP addresses that are hot standbys not in use.

List all possible public SmartFile IP addresses

SDK Method

IpAddress.getSmartfileReserved()

Return Object

PublicIpAddress[]

Authorization Requirement

No authentication required; you may call this endpoint without a key or session.

Additional Arguments

Example Request

import IpAddress from 'files.com/lib/models/IpAddress';
import * as FilesErrors from 'files.com/lib/Errors';

try {
  const publicIpAddresses = await IpAddress.getSmartfileReserved();
  for (const publicIpAddress of publicIpAddresses) {
    // Operate on publicIpAddress
  }
} catch (err) {
  if (err instanceof FilesErrors.NotAuthenticatedError) {
    console.error(`Authentication Error Occurred (${err.constructor.name}): ${err.error}`);
  } else if (err instanceof FilesErrors.FilesError) {
    console.error(`Unknown Error Occurred (${err.constructor.name}): ${err.error}`);
  } else {
    throw err;
  }
}

List all possible public ExaVault IP addresses

SDK Method

IpAddress.getExavaultReserved()

Return Object

PublicIpAddress[]

Authorization Requirement

No authentication required; you may call this endpoint without a key or session.

Additional Arguments

Example Request

import IpAddress from 'files.com/lib/models/IpAddress';
import * as FilesErrors from 'files.com/lib/Errors';

try {
  const publicIpAddresses = await IpAddress.getExavaultReserved();
  for (const publicIpAddress of publicIpAddresses) {
    // Operate on publicIpAddress
  }
} catch (err) {
  if (err instanceof FilesErrors.NotAuthenticatedError) {
    console.error(`Authentication Error Occurred (${err.constructor.name}): ${err.error}`);
  } else if (err instanceof FilesErrors.FilesError) {
    console.error(`Unknown Error Occurred (${err.constructor.name}): ${err.error}`);
  } else {
    throw err;
  }
}

List all possible public IP addresses

SDK Method

IpAddress.getReserved()

Return Object

PublicIpAddress[]

Authorization Requirement

No authentication required; you may call this endpoint without a key or session.

Additional Arguments

Example Request

import IpAddress from 'files.com/lib/models/IpAddress';
import * as FilesErrors from 'files.com/lib/Errors';

try {
  const publicIpAddresses = await IpAddress.getReserved();
  for (const publicIpAddress of publicIpAddresses) {
    // Operate on publicIpAddress
  }
} catch (err) {
  if (err instanceof FilesErrors.NotAuthenticatedError) {
    console.error(`Authentication Error Occurred (${err.constructor.name}): ${err.error}`);
  } else if (err instanceof FilesErrors.FilesError) {
    console.error(`Unknown Error Occurred (${err.constructor.name}): ${err.error}`);
  } else {
    throw err;
  }
}

The PublicIpAddress Object

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

AttributeDescription
ip_address
string
The public IP address.
server_name
string
The name of the frontend server.
ftp_enabled
boolean
sftp_enabled
boolean