Skip to main content
POST
/
service
/
{tenant_name}
/
nat_rule
Create NAT rule
curl --request POST \
  --url https://api.example.com/service/{tenant_name}/nat_rule \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "outside": "<string>",
  "rule_type": "SOURCE_ONE_TO_ONE",
  "inside_type": "segment",
  "inside": "<string>",
  "inside_port": 123,
  "protocol": 123,
  "outside_port": 123,
  "filters": [],
  "description": "<string>"
}
'
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "status": "received",
  "extra_details": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

Body

application/json
name
string
required
outside
string
required
rule_type
enum<string>
default:SOURCE_ONE_TO_ONE
Available options:
SOURCE_ONE_TO_ONE,
SOURCE_NAT,
DESTINATION_NAT,
NOP
inside_type
enum<string> | null
Available options:
segment,
ip
inside
string | null
inside_port
integer | null
protocol
integer | null
outside_port
integer | null
filters
RuleFilter · object[]
description
string | null

Response

Successful Response

id
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
status
enum<string>
required
Available options:
received,
in_progress,
success,
failed,
cancelled
extra_details
Extra Details · object