Overview

The Add/Remove NATs API adds or removes NATs from a specified virtual machine.    

You can use the Get VMs API to find the virtual machine ID (vmId) and the virtual data center ID (vcdOrgVdcId)

Sample request

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

Input

API Call / URLMethod / Type
/natsPUT


ParameterDescriptionFormatRequired or optionalExample
VmIdThe ID of the virtual machine that owns the TranslatedIpIntegerRequired2
translatedIpThe private IP address of the virtual machineStringRequired100.10.10.1
originalIpsAn array of public IP addresses to removeStringRequired192.158.1.1
vcdOrgVdcIdThe ID of the virtual data center.IntegerRequired1



Sample return

StatusResponse
200
{
 "id": 1,
 "vmId": 2,
 "translatedIp": "100.10.10.1",
 "originalIps": ["192.158.1.1"]
}
400
{
"error": true,
"message": "Invalid request"
}



Output

ReturnTypeDescriptionPossible valuesExample