Reply

Report on any/all assigned IP Addresses in CIDR supernet range (container level export)

Authority
Posts: 33
3866     0

So, the ask is for all assigned IPs in a Network Container, regardless of how they're used, returned from a single query. For example, we may have 16 Class Cs in a /20 assigned to a particular location, which is then broken up into a combination of nested containers and leaf networks. There's a combination of types of objects, such as DHCP, hosts, A records (created outside hosts), reserved, and fixed addresses.

 

An example table is shown below, but the actual /20 contains over 100 networks and containers.

10.0.160.0/20Container
10.0.160.0/21Container
10.0.160.0/24Leaf
10.0.161.0/24Container
10.0.161.0/30Leaf
10.0.161.104/29Leaf
10.0.161.112/29Leaf
10.0.161.12/30Leaf
10.0.162.0/24Leaf
10.0.174.0/24Container
10.0.175.0/24Leaf

 

The closest I've come is the following search, but it would require a lot of clean up to be useable. 

https://10.250.8.12/wapi/v2.10/search?objtype=IPAMObjects&search_string~=209.182.1(6[0-9]|7[0-5])&_max_results=2000&_return_type=json-pretty

 

I mean, that's better than trying to create multiple requests or exporting each page from the GUI at a time, but what I really want is something like this (that actually works):

https://<GM>/wapi/v2.10/ipv4address?ip_address>=10.0.160.1&ip_address<=10.0.175.254&status=USED

This actually only ends up returning what's in the first leaf network, 10.0.160.0/24.

Re: Report on any/all assigned IP Addresses in CIDR supernet range (container level export)

New Member
Posts: 1
3867     0

Same issue, any one know how to obtain all blocks assigned under a range or CIDR?

Re: Report on any/all assigned IP Addresses in CIDR supernet range (container level export)

Moderator
Moderator
Posts: 315
3867     0

You can only search for supported child objects within a specific object.  (not an arbitrary CIDR block)

For example, you can search for either networks, or network containers, within a specific container. 

 

curl -k1 -u admin:infoblox -X GET 'https://192.168.1.2/wapi/v2.12/network?network_container=192.168.0.0/16'

OR

curl -k1 -u admin:infoblox -X GET 'https://192.168.1.2/wapi/v2.12/networkcontainer?network_container=192.168.0.0/16'

But you cannot search for individual IP addresses within a container.  (you also cannnot view them in the GUI)

You can also search for individual IP addresses within a network.  But you cannot search for IP addresses within a network container.

 

curl -k1 -u admin:infoblox -X GET 'https://192.168.1.2/wapi/v2.12/ipv4address?network=192.168.11.0/24'



Showing results for 
Search instead for 
Did you mean: 

Recommended for You

Businesses are investing heavily into securing company resources from cyber-attacks form cybercrimin