Add/Edit External IP Address

To add/edit an external IP address, use the following request:

PUT /ip_addresses/:ip_address_id/external_address.xml
PUT /ip_addresses/:ip_address_id/external_address.json

ip_address_id value can be retrieved from Get List of IP Addresses for VS API request.

XML Request Example

curl  -X PUT -u user:userpass --url http://onapp.test/ip_addresses/98/external_address.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<external_address>69.168.237.253</external_address>'

JSON Request Example

curl  -X PUT -u user:userpass --url http://onapp.test/ip_addresses/98/external_address.json -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"external_address":"69.168.237.253"}'

Where:

ip_address_id the ID of the internal IP address

external_address - set the external address to show the public IP to the end user