Child pages
  • Get IP Address Pool Details
Skip to end of metadata
Go to start of metadata

To get details of a particular IP address pool, run:

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

XML Request example

curl -i -u user:userpass http://onapp.test/settings/ip_address_pools/:id.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'


JSON Request exampl

curl -i -u user:userpass http://onapp.test/settings/ip_address_pools/:id.json -H 'Accept: application/json' -H 'Content-type: application/json'


XML Output example

HTTP/1.1 200 OK
Content-Type: application/xml; charset=utf-8
X-Ua-Compatible: IE=Edge
Etag: "912d1e77bdba7d3db87055253999ff45"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 677cdab073210a599840f9f2b3805e2d
X-Runtime: 0.156851
Content-Length: 362
Server: WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
Date: Fri, 07 Sep 2012 07:22:48 GMT
Connection: Keep-Alive
Set-Cookie: _session_id=33c2d8b3945c4b05a645e66d43bb9d31; path=/; HttpOnly
<?xml version="1.0" encoding="UTF-8"?>
<ip_address_pool>
  <cidr type="integer">30</cidr>
  <created_at type="datetime">2012-09-07T07:18:18+00:00</created_at>
  <id type="integer">68</id>
  <ipv4 type="boolean">true</ipv4>
  <network_address>192.168.10.10</network_address>
  <updated_at type="datetime">2012-09-07T07:18:18+00:00</updated_at>
</ip_address_pool>


Where:

ip_address_pools - an array of IP address pools with the following details:

cidr - IP address prefix size

created_at — the date when the IP address pool was created in the [YYYY][MM][DD]T[hh][mm][ss]Z format

id - IP address pool ID

ipv4 - IPv4 boolean indicator 

network address -  the address of a VLAN network address that will be associated with this IP address pool

updated_at — the date when the IP address pool was updated in the [YYYY][MM][DD]T[hh][mm][ss]Z format


#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels