Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API & Integration, DevOps,NetOps,SecOps

Reply

Find Network Containers within a Network Container

Techie
Posts: 3
1017     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: 224
1018     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: 6
1018     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: 6
1018     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