With the release of NIOS 6.7 Infoblox has introduced some new functionality to the REST API which customers may find useful. In some cases the addition, modification or removal of an object triggers the need to restart a Grid services such as DNS or DHCP. Here is a basic example on how to restart services via 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'}'