Get List of vCloud Organization Networks
To view the list of organization networks, use the following request:
GET /org_networks.xml
GET /org_networks.json
XML Request Example
curl -i -X GET -u user:userpass --url http://onapp.test/org_networks.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'
JSON Request Example
curl -i -X GET -u user:userpass --url http://onapp.test/org_networks.json -H 'Accept: application/json' -H 'Content-type: application/json'
XML Output Example
<org_networks type="array"> <org_network> <vdc_id>6</vdc_id> <dns_suffix>null</dns_suffix> <updated_at>2016-02-01T11:47:41+00:00</updated_at> <is_nated>true</is_nated> <secondary_dns>null</secondary_dns> <id>25</id> <user_id>null</user_id> <vapp_id>null</vapp_id> <dvportgroup>null</dvportgroup> <label>statis.network</label> <gateway>10.0.10.1</gateway> <shared>false</shared> <default_outside_ip_address_id>null</default_outside_ip_address_id> <prefix_size>null</prefix_size> <ip_address_pool_id>null</ip_address_pool_id> <netmask>255.255.255.0</netmask> <vlan>null</vlan> <default_nat_rule_number>9999</default_nat_rule_number> <fence_mode>natRouted</fence_mode> <created_at>2016-02-01T11:47:41+00:00</created_at> <enabled>true</enabled> <primary_dns>null</primary_dns> <identifier>04114f87-bfb4-4f66-ac0a-2651c1ca54d1</identifier> <network_group_id>16</network_group_id> </org_network> <org_network>...</org_network> </org_networks>
Where:
created_at - the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format
default_nat_rule_number - default NAT rule
default_outside_ip_address_id - ID of the outside IP address
dns_suffix - the DNS suffix
dvportgroup - the portgroup that backs this network
enabled - whether the network is enabled or not
fence_mode - isolation type of the network
gateway - the gateway associated with the network
id - the ID of the network
identifier - the identifier of the network
ip_address_pool_id - ID of the IP Address Pool
is_nated - set true to use NAT for translating the traffic. Set false if you are using your own firewall with external IP address
label - the name of the network
netmask - IP of the network mask
network_group_id - network zone ID
prefix_size - subnet prefix size
primary_dns -IP address of the primary domain name system (DNS) server
secondary_dns - IP address of the secondary domain name system (DNS) server
shared - whether this organization network is shared or not
updated_at - the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format
user_id - owner ID
vapp_id - the vApp associated with the network
vdc_id - the resource pool associated with the network
vlan - VLAN number