Child pages
  • Edit IP Address
Skip to end of metadata
Go to start of metadata
PUT /settings/networks/:network_id/ip_addresses/:id.xml
PUT /settings/networks/:network_id/ip_addresses/:id.json

XML Request example

*curl -i -X PUT -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass -d '<ip_address><address>109.123.105.192</address><netmask>255.255.255.240</netmask><broadcast>109.123.105.191</broadcast><network_address>109.123.105.176</network_address><disallowed_primary>true</disallowed_primary><gateway>109.123.105.177</gateway></ip_address>' --url http://onapp.test/settings/networks/:network_id/ip_addresses/:id.xml*

JSON Request example

*curl -i -X PUT -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '{"ip_address":{"address":"109.123.105.186","netmask":"255.255.255.240","broadcast":"109.123.105.191","disallowed_primary":"true","network_address":"109.123.105.176","gateway":"109.123.105.177"}}' --url http://onapp.test/settings/networks/:network_id/ip_addresses/:id.json*

The following parameters can be passed to be changed:
address, netmask, broadcast, network_address, gateway,disallowed_primary option (all strings).

You will get a 204 status response on success, and 404 if there is no such IP address with a requested ID or you entered incorrect URL.

You can get the list of IPs assigned to a VS with GET /virtual_machines/:id request.
#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels