THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

Find Network Containers within a Network Container

New Member
Posts: 3
3314     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: 321
3314     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: 8
3314     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: 8
3314     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