Get List of vApp Networks
To view a list of vApp networks, use the following request:
1
2
| GET /settings/vapp_networks.xml
GET /settings/vapp_networks.json
|
XML Request Example
1
| curl -i -X GET -u 'user:userpass' --url http://onapp.test/settings/vapp_networks.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.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
22
23
24
25
26
27
28
29
| <vapp_networks type="array">
<vapp_network>
<created_at type="datetime">2016-02-13T10:35:21+02:00</created_at>
<default_nat_rule_number type="integer">9999</default_nat_rule_number>
<default_outside_ip_address_id nil="true"/>
<dns_suffix nil="true"/>
<dvportgroup nil="true"/>
<enabled type="boolean">true</enabled>
<fence_mode>bridged</fence_mode>
<gateway>10.1.1.254</gateway>
<id type="integer">13</id>
<identifier>c2a5a42c-594f-47ba-b211-8e456f17b825</identifier>
<ip_address_pool_id nil="true"/>
<is_nated type="boolean">true</is_nated>
<label>antonov routed net</label>
<netmask>255.255.255.0</netmask>
<network_group_id type="integer">7</network_group_id>
<prefix_size nil="true"/>
<primary_dns nil="true"/>
<secondary_dns nil="true"/>
<shared type="boolean">false</shared>
<updated_at type="datetime">2016-02-13T10:35:21+02:00</updated_at>
<user_id nil="true"/>
<vapp_id type="integer">2</vapp_id>
<vdc_id nil="true"/>
<vlan nil="true"/>
</vapp_network>
...
</vapp_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 vApp 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