Get List of IP Addresses Assigned to vApp Network

To get a list of IP addresses assigned to the vApp network, use the following request:

1
2
GET /settings/vapp_networks/:id/ip_addresses.xml
GET /settings/vapp_networks/:id/ip_addresses.json

XML Request Example

1
curl -i -X GET -u 'user:userpass' --url http://onapp.test/settings/vapp_networks/12/ip_addresses.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

1
curl -i -X GET -u 'user:userpass' --url http://onapp.test/settings/vapp_networks/12/ip_addresses.json -H 'Accept: application/json' -H 'Content-type: application/json'

XML Output Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
<ip_addresses type="array">
  <ip_address>
    <address>10.1.1.1</address>
    <broadcast nil="true"/>
    <created_at type="datetime">2016-02-13T10:35:21+02:00</created_at>
    <customer_network_id nil="true"/>
    <disallowed_primary type="boolean">false</disallowed_primary>
    <gateway>10.1.1.254</gateway>
    <hypervisor_id nil="true"/>
    <id type="integer">1901</id>
    <ip_address_pool_id nil="true"/>
    <network_address nil="true"/>
    <network_id type="integer">13</network_id>
    <pxe type="boolean">false</pxe>
    <updated_at type="datetime">2016-02-13T10:35:21+02:00</updated_at>
    <user_id nil="true"/>
    <free type="boolean">true</free>
    <netmask>255.255.255.0</netmask>
  </ip_address>
  ...
</ip_addresses>

Where:

address - the IP address assigned to the vApp network

broadcast - the broadcast address

created_at - the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format

customer_network_id - the ID of the customer network

disallowed_primary - true if not allowed to be used as primary (for VS build); otherwise, false

gateway - the gateway associated with the network

hypervisor_id - the ID of the compute resource the IP address is associated with

id - the ID of the network

ip_address_pool_id - ID of the IP Address Pool

network_address - the address of the network

network_id - the ID of the network

pxe - true if this compute resource address can be used for cloudbooting a compute resource

updated_at - the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format

user_id - owner ID

free - true if free; otherwise, false

netmask - IP of the network mask