Create CloudBoot IP Range

To create an IP range in a network, use the following request:

POST /settings/networks/:network_id/ip_nets/:ip_net_id/ip_ranges.xml
POST /settings/networks/:network_id/ip_nets/:ip_net_id/ip_ranges.json

Where:

network_id - ID of the CloudBoot network which is located in SystemNetworkGroup

XML Request Example

curl -i -X POST -u account_email:API_key --url http://onapp.test/settings/networks/23/ip_nets/45/ip_ranges.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<ip_range><end_address>193.169.1.254</end_address><default_gateway>193.169.1.1</default_gateway><start_address>193.169.1.2</start_address></ip_range>'

JSON Request Example

curl -i -X POST -u account_email:API_key --url http://onapp.test/settings/networks/23/ip_nets/45/ip_ranges.json -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"ip_range": {"end_address": "193.169.1.254", "default_gateway": "193.169.1.1", "start_address": "193.169.1.2"}}'

Where:

end_address - the IP address with which your IP range ends

default_gateway - the default gateway for the IP range

start_address - the IP address with which your IP range starts