Infoblox’s global team of threat hunters uncovers a DNS operation with the ability to bypass traditional security measures and control the Great Firewall of China. Read about “Muddling Meerkat” and the many other threat actors discovered by Infoblox Threat Intel 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


‎02-13-2015 01:13 PM
How do you add/delete an Alias using curl?
‎07-22-2015 01:24 AM

I have the same question...I just keep getting errors while creating/deleting aliases for host objects.

"List value expected for field: aliases" , but if I use the same syntax for aliases as I do for ipv4addrs I get this error:

"Elements of field \"aliases\" must be strings""


//EDIT: nevermind, I fixed my problem, but I'm using cURL with PHP

‎09-29-2015 02:33 PM

DSchmalen, can you share with others so they know how you resolved it?

‎11-15-2016 01:24 PM

As easy as it gets! Great primer. Thank you. 

Showing results for 
Search instead for 
Did you mean: