Child pages
  • Get List of IP Address Pools
Skip to end of metadata
Go to start of metadata

To get the list of IP address pools:

GET /settings/ip_address_pools.xml
GET /settings/ip_address_pools.json

XML Request example

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

JSON Request example

curl -i -u user:userpass http://onapp.test/settings/ip_address_pools.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:
"ee2c8d9a194b9efab74bdb26af627af0"
Cache-Control: max-age=0, private,
must-revalidate
X-Request-Id:
2025e5192d7f4cafe43cf5fd14372b28
X-Runtime: 0.374566
Content-Length: 428
Server: WEBrick/1.3.1
(Ruby/1.9.3/2012-04-20)
Date: Fri, 07 Sep 2012 07:10:12 GMT
Connection: Keep-Alive
Set-Cookie:_session_id=5b6ba8c6bbbc91de33e1df212c0b21ee; path=/; HttpOnly
<?xml version="1.0"
encoding="UTF-8"?>
<ip_address_pools
type="array">
<ip_address_pool>
<cidr type="integer">24</cidr>
<created_at
type="datetime">2012-09-06T09:15:22+00:00</created_at>
<id type="integer">66</id>
<ipv4 type="boolean">true</ipv4>
<network_address>192.168.1.0</network_address> 
<updated_at
type="datetime">2012-09-06T09:15:22+00:00</updated_at>
</ip_address_pool>
</ip_address_pools>

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