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.

Automation Scripts

Reply

Delete network container and all sub objects via api

[ Edited ]
Techie
Posts: 8
198     0

Wanted to see if there was certain flag or if there is an example of how i can delete a network container and all of the other sub objects within it via the API 

 

I have been able to do this when the network container is empty and I am just deleting the container, but not able to when there are object in it... 

 

From the UI you get a pop up that gives you this option. how can you do this via the api? 

 

Thanks! 

Re: Delete network container and all sub objects via api

Superuser
Posts: 37
198     0

By default, child objects should be deleted with the container. There is an opotion you can set explicitly for this, as hown in this example:

 

curl -k -u admin:pwd -X DELETE "https://IP_ADDRESS/wapi/v2.10/networkcontainer/NETWORKCONTAINER_REF/default?remove_subnets=true"

The "remove_subnets=true" can be set to false if you want to reparent child objects.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You