Infoblox’s global team of threat hunters uncovers a DNS operation with the ability to bypass traditional security measures and control the Great Firewall of China. Read about “Muddling Meerkat” and the many other threat actors discovered by Infoblox Threat Intel here.

API & Integration, DevOps,NetOps,SecOps

Reply

Find Network Containers within a Network Container

New Member
Posts: 3
2194     1

I'm looking to call an API that will return all the network containers inside a network container. Currently I'm using: 

"https://" + 'INFOBLOX_HOST' + "/wapi/v2.0/network?network_container="+container
to get all the networks, but network containers arn't included

Re: Find Network Containers within a Network Container

[ Edited ]
Moderator
Moderator
Posts: 289
2194     1

Networks and Network Containers are different object types.  So you would need to run two calls, one to retrieve networks and another to retrieve network containers.

Re: Find Network Containers within a Network Container

Techie
Posts: 7
2194     1

Hi,

 

Did you find a way to do this at all please?

 

I need to find containers within a container too.

 

Thanks

Re: Find Network Containers within a Network Container

Techie
Posts: 7
2194     1

Worked it out.

 

Curl to find containers inside a container is:

 

curl -k -u admin:infoblox -X GET https://grid-master/wapi/v2.12/networkcontainer?network_container=10.0.0.0/16&_return_as_object=1

Curl to find networks in containers by the way is

 

curl -k -u admin:infoblox -X GET https://grid-master/wapi/v2.12/network?network_container=10.0.0.0/16&_return_fields%2B=network_container

Cheers

Showing results for 
Search instead for 
Did you mean: 

Recommended for You