Get vApp Network Details

To view the details of  vApp network, use the following request:

GET /settings/vapp_networks/:id.xml
GET /settings/vapp_networks/:id.json

XML Request Example

curl -i -X GET -u 'user:userpass' --url http://onapp.test/settings/vapp_networks/12.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/vapp_networks/12.json -H 'Accept: application/json' -H 'Content-type: application/json'

XML Output Example

  <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>
  <id type="integer">13</id>
  <ip_address_pool_id nil="true"/>
  <is_nated type="boolean">true</is_nated>
  <label>antonov routed net</label>
  <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"/>


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