Introducing SOC Insights for BloxOne Threat Defense: Boost your SOC efficiency with AI-driven insights to eliminate manual work and accelerate investigation and response times. Read the blog announcement here.

API & Integration, DevOps,NetOps,SecOps

Reply

Find Network Containers within a Network Container

New Member
Posts: 3
2149     0

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
2149     0

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
2149     0

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
2150     0

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