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.

Trending KB Articles


Create, Search and Delete a Host Object Using the REST API


There has been a great deal of interest in the new NIOS REST based API and we have had tons of questions about how it works. One common request is how to work with the host object via the new API. Here are some basic examples on how to create, search for and delete a host via the REST API:

Create a host:

curl -k -u admin:infoblox -H "Content-Type: application/json" -X POST -d '{ "ipv4addrs":[{"configure_for_dhcp": false,"ipv4addr": ""}],"name": "","view": "default"}'


Search for the host that was just created:


curl -k -u admin:infoblox -X GET -d name~=newhost


The search returns a reference (_ref) for the host:


        "_ref": "record:host/", 
        "ipv4addrs": [
                "_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQuX2RlZmF1bHQuY29tLmJsb3hkZW1vLm5ld2hvc3QuMTAuMTAuMTAuMTIu:", 
                "configure_for_dhcp": false, 
                "host": "", 
                "ipv4addr": ""
        "name": "", 
        "view": "default"


Delete the host using the reference:


curl -k -u admin:infoblox -X DELETE


Showing results for 
Search instead for 
Did you mean: