10-04-2017 11:38 AM - edited 10-04-2017 11:40 AM
I'm looking for a automated way to disable a large number of networks that will eventually be permanently retired and ensure DHCP is no longer in use prior to deletion.
I have the curl commands to accomplish this, but I'm new to Python or the REST API in general and am trying to determine a script to automate this process for a given network address and mask (CIDR notation).
curl -k -u user:pass -X GET https://gm_ip/wapi/v1.2/record:network?network=10.10.38.0/29 curl -k -u user:pass -X PUT https://gm_ip/wapi/v1.0/network/_ref:10.10.38.0/29/default -d disable='TRUE'
10-31-2017 02:05 PM
You can find sample scripts at https://community.infoblox.com/t5/DNS-DHCP-IPAM/WAPI-Web-API-Sample-Code-for-NIOS/m-p/105/highlight/.... You may be able to take the examples provided there to accomplish what you are looking for here.