Page tree

Overview

This API call only applies to Armor Complete users.

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

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

API Call / URLMethod / Type
/natsPUT

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
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"
}



In this topic



Have a suggestion for the Armor Knowledge Base? Send a message to kb@armor.com.