PAT (Port Address Translation) rules, aka static NAT rules, belong to a specified Public Gateway. They define the forwarding of a public port to a specific device on a Private Network, enabling enables ingress traffic from the public Internet to reach the correct device in the Private Network.
List PAT rules
List PAT rules. You can filter by gateway ID to list all PAT rules for a particular gateway, or filter for PAT rules targeting a specific IP address or using a specific protocol.
path Parameters
zoneThe zone you want to target
query Parameters
order_byOrder in which to return results.
pagePage number.
page_sizePAT rules per page.
gateway_idsFilter for PAT rules on these gateways.
private_ipsFilter for PAT rules targeting these private ips.
protocolFilter for PAT rules with this protocol.
List PAT rules › Responses
Array of PAT rules matching the filter.
total_countTotal count of PAT rules matching the filter.
Set all PAT rules
Set a definitive list of PAT rules attached to a Public Gateway. Each rule is identified by its public port and protocol. This will sync the current PAT rule list on the gateway with the new list, creating, updating or deleting PAT rules accordingly.
path Parameters
zoneThe zone you want to target
Set all PAT rules › Request Body
New list of PAT rules.
gateway_idID of the gateway on which to set the PAT rules. (UUID format)
Set all PAT rules › Responses
List of PAT rules.
Create a PAT rule
Create a new PAT rule on a specified Public Gateway, defining the protocol to use, public port to listen on, and private port / IP address to map to.
path Parameters
zoneThe zone you want to target
Create a PAT rule › Request Body
gateway_idID of the Gateway on which to create the rule. (UUID format)
public_portPublic port to listen on.
private_ipPrivate IP to forward data to. (IP address)
private_portPrivate port to translate to.
protocolProtocol the rule should apply to.
Create a PAT rule › Responses
idPAT rule ID. (UUID format)
gateway_idGateway the PAT rule applies to. (UUID format)
created_atPAT rule creation date. (RFC 3339 format)
updated_atPAT rule last modification date. (RFC 3339 format)
public_portPublic port to listen on.
private_ipPrivate IP address to forward data to. (IP address)
private_portPrivate port to translate to.
protocolProtocol the rule applies to.
zoneZone of the PAT rule.
Get a PAT rule
Get a PAT rule, specified by its PAT rule ID. The response object gives full details of the PAT rule, including the Public Gateway it belongs to and the configuration settings in terms of public / private ports, private IP and protocol.
path Parameters
zoneThe zone you want to target
pat_rule_idID of the PAT rule to get. (UUID format)
Get a PAT rule › Responses
idPAT rule ID. (UUID format)
gateway_idGateway the PAT rule applies to. (UUID format)
created_atPAT rule creation date. (RFC 3339 format)
updated_atPAT rule last modification date. (RFC 3339 format)
public_portPublic port to listen on.
private_ipPrivate IP address to forward data to. (IP address)
private_portPrivate port to translate to.
protocolProtocol the rule applies to.
zoneZone of the PAT rule.
Delete a PAT rule
Delete a PAT rule, identified by its PAT rule ID. This action is irreversible.
path Parameters
zoneThe zone you want to target
pat_rule_idID of the PAT rule to delete. (UUID format)
Delete a PAT rule › Responses
Update a PAT rule
Update a PAT rule, specified by its PAT rule ID. Configuration settings including private/public port, private IP address and protocol can all be updated.
path Parameters
zoneThe zone you want to target
pat_rule_idID of the PAT rule to update. (UUID format)
Update a PAT rule › Request Body
public_portPublic port to listen on.
private_ipPrivate IP to forward data to. (IP address)
private_portPrivate port to translate to.
protocolProtocol the rule should apply to.
Update a PAT rule › Responses
idPAT rule ID. (UUID format)
gateway_idGateway the PAT rule applies to. (UUID format)
created_atPAT rule creation date. (RFC 3339 format)
updated_atPAT rule last modification date. (RFC 3339 format)
public_portPublic port to listen on.
private_ipPrivate IP address to forward data to. (IP address)
private_portPrivate port to translate to.
protocolProtocol the rule applies to.
zoneZone of the PAT rule.