ServerMania logo

Get Network Details

To get the details of a particular network, use the following request:

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

XML Request Example

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

JSON Request Example

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

XML Output Example

<network>
<label>public</label>
<created_at type="datetime">2010-10-28T19:55:40+07:00</created_at>
<updated_at type="datetime">2010-12-29T22:31:15+07:00</updated_at>
<network_group_id type="integer">2</network_group_id>
<vlan type="integer">391</vlan>
<id type="integer">1</id>
<identifier>hc9fut4iogxt7p</identifier>
</network>

Where:

label - the optional Network label

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

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

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

id - the network ID

vlan - the VLAN this network belongs to

identifier - network identifier