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 (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    ip_address "github.com/Files-com/files-sdk-go/v3/ipaddress"
)

publicIpAddressIterator, err := ip_address.GetSmartfileReserved()
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

for publicIpAddressIterator.Next() {
    publicIpAddress := publicIpAddressIterator.publicIpAddress()
}
err = publicIpAddressIterator.Err()
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

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 (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    ip_address "github.com/Files-com/files-sdk-go/v3/ipaddress"
)

publicIpAddressIterator, err := ip_address.GetExavaultReserved()
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

for publicIpAddressIterator.Next() {
    publicIpAddress := publicIpAddressIterator.publicIpAddress()
}
err = publicIpAddressIterator.Err()
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

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 (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    ip_address "github.com/Files-com/files-sdk-go/v3/ipaddress"
)

publicIpAddressIterator, err := ip_address.GetReserved()
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

for publicIpAddressIterator.Next() {
    publicIpAddress := publicIpAddressIterator.publicIpAddress()
}
err = publicIpAddressIterator.Err()
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

The PublicIpAddress Object

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

AttributeDescription
IpAddress
string
The public IP address.
ServerName
string
The name of the frontend server.
FtpEnabled
boolean
SftpEnabled
boolean