Child pages
  • Get List of Customer Networks
Skip to end of metadata
Go to start of metadata
GET /customer_networks.xml
GET /customer_networks.json

XML Request example

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

JSON Request example

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

XML Output example

<?xml version="1.0" encoding="UTF-8"?>
<customer_networks type="array">
    <created_at type="datetime">2012-09-06T09:15:55+00:00</created_at>
    <default_nat_rule_number type="integer">9949</default_nat_rule_number>
    <default_outside_ip_address_id type="integer">245944</default_outside_ip_address_id>
    <id type="integer">11</id>
    <ip_address_pool_id type="integer">66</ip_address_pool_id>
    <is_nated nil="true"></is_nated>
    <network_group_id nil="true"></network_group_id>
    <prefix_size type="integer">25</prefix_size>
    <updated_at type="datetime">2012-09-06T09:15:55+00:00</updated_at>
    <user_id type="integer">1</user_id>
    <vlan type="integer">1</vlan>

Explanation of the data returned:

id - customer network ID

prefix_size – subnet prefix size

is_nated – boolean indicator behind NAT

default_nat_rule_number – default NAT rule (Vyatta firewall)

default_outside_ip_address_id – ID of a free IPv4 address

identifier – auto-generated network identifier

ip_address_pool_id – ID of the Ip Address Pool

label – visible network identifier

network_group_id – network zone ID (currently null for Vmware)

user_id – owner ID

vlan – VLAN number

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

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



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