Get List of IP Addresses Assigned to vCloud External Network

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

GET /settings/external_networks/:id/ip_addresses.xml
GET /settings/external_networks/:id/ip_addresses.json

XML Request Example 

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

JSON Request Example 

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

XML Output Example 

<ip_addresses type="array">
  <ip_address>
    <address>172.16.0.1</address>
    <broadcast nil="true"/>
    <created_at type="datetime">2016-02-13T10:31:06+02:00</created_at>
    <customer_network_id nil="true"/>
    <disallowed_primary type="boolean">false</disallowed_primary>
    <gateway>172.16.0.254</gateway>
    <hypervisor_id nil="true"/>
    <id type="integer">1</id>
    <ip_address_pool_id nil="true"/>
    <network_address nil="true"/>
    <network_id type="integer">1</network_id>
    <pxe type="boolean">false</pxe>
    <updated_at type="datetime">2016-02-13T10:31:06+02:00</updated_at>
    <user_id nil="true"/>
    <free type="boolean">false</free>
    <netmask>255.255.255.0</netmask>
  </ip_address>
  ...
</ip_addresses>

Where:

address -  the IP address assigned to the external 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