Open fawaf opened 2 years ago
One specific use case that is needed is the ability to restart DHCP services after creating a network, range and/or fixed address.
Per community article: Restart Services Using the REST API
Search for the Grid to get the reference:
curl -k -u admin:infoblox -X GET https://192.168.1.2/wapi/v1.1/grid
The search returns a reference (_ref) for the Grid:
[ { "_ref": "grid/b25lLmNsdXN0ZXIkMA:Infoblox" } ]
Restart services using the reference:
curl -k -u admin:infoblox -X POST https://192.168.1.2/wapi/v1.1/grid/b25lLmNsdXN0ZXIkMA:Infoblox?_function=restartservices -H "Content-Type:application/json" -d '{"restart_option": "RESTART_IF_NEEDED", "service_option": "ALL", "member_order": "SEQUENTIALLY", "sequential_delay": '1'}'
per https://www.infoblox.com/wp-content/uploads/infoblox-deployment-infoblox-rest-api.pdf