Child pages
  • Add IP Address Record
Skip to end of metadata
Go to start of metadata
POST /settings/networks/:network_id/ip_addresses.xml
POST /settings/networks/:network_id/ip_addresses.json

XML Request example

*curl -i -X POST -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><disallowed_primary>true</disallowed_primary><network_address>109.123.105.176</network_address><gateway>109.123.105.177</gateway></ip_address>' --url http://onapp.test/settings/networks/:network_id/ip_addresses.xml* 

JSON Request example

*curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '{"ip_address":{"address":"109.123.105.192","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.json* 

Parameters:

address* - IP address

netmask* - network mask

broadcast* - a logical address at which all devices connected to a multiple-access communications network are enabled to receive datagrams.

network_address* - IP address of the network

gateway* - gateway address

disallowed_primary – set true not to use this address as primary (for VS build), otherwise set false

XML Output example

<?xml version="1.0" encoding="UTF-8"?>
<ip-addresses type="array">
<ip_address>
<address>109.123.105.192</address>
<netmask>255.255.255.240</netmask>
<created_at type="datetime">2010-04-27T16:58:01Z</created_at>
<broadcast>109.123.105.191</broadcast>
<network_address>109.123.105.176</network_address>
<network-id type="integer">1</network_id>
<updated_at type="datetime">2010-04-27T16:58:01Z</updated_at>
<id type="integer">1</id>
<gateway>109.123.105.177</gateway>
</ip_address></ip_addresses>
#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels