Get List of Networks

To get the list of all networks in the cloud, use the following request:

GET /settings/networks.xml
GET /settings/networks.json

XML Request Example

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

JSON Request Example

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

XML Output Example

<networks type="array">
<label>Public Network</label>
<created_at type="datetime">2011-02-11T12:46:09+02:00</created_at>
<network_group_id type="integer">3</network_group_id>
<updated_at type="datetime">2011-02-11T13:20:09+02:00</updated_at>
<id type="integer">1</id>
<vlan type="integer" nil="true"/>


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

id - the network ID

label - the optional network label

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

vlan - the VLAN this network belongs to

network_group_id - the ID of the network zone to which this network is attached

identifier - the identifier of the network in the database