Page tree


Armor Knowledge Base


Feedback

Have a suggestion for the Armor Knowledge Base?

Send a message to kb@armor.com.









Overview

This API call only applies to Armor Complete users.

The Create NAT API creates NATs to associate with your virtual machine.  

You can use the Get VMs API to find the virtual machine ID (vmId). 

Sample Request

POST https://api.armor.com/nats
{
"id": 1,
"vmId": 2,
"translatedIp": "100.10.10.1",
"originalIps": ["192.158.1.1"]
}

Input


The following table describes the different parts of this API call: 

API Call / URLMethod / Type
/natsPOST


The following table describes the parameter (or parameters) for this API call:

ParameterDescriptionFormatRequired or optionalExample
VmIdThe ID of the virtual machine that owns the TranslatedIpIntegerRequired2
idThe ID of the edge gatewayIntegerRequired1
TranslatedIpThe private IP address of the virtual machineStringRequired100.10.10.1
OriginalIpsAn array of public IP addresses to removeString[]Required192.158.1.1

Sample Return

StatusResponse
200
{
 "id": 1,
 "vmId": 2,
 "translatedIp": "100.10.10.1",
 "originalIps": ["192.158.1.1"],
 "url": null,
 "locationName": null,
 "action": null,
 "vnic": 0
}
400
{
"error": true,
"message": "Invalid request"
}