October 28, 201510 yr Sample code showing how to use the WAPI (Web API) for NIOS in various languages. These samples include Java, Python and Javascript.
July 28, 20178 yr Author Here is an example of using Infoblox wAPI to get information about an A-Record $ curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v1.0/record:a -d name~=abc [ { "_ref": "record:a/ZG5zLmJpbmRfYSQuX2RlZmF1bHQuY29tLmFsbHksYWJjLDE5OC43NC44MS4xMjY:abc.thezah.com/Internal", "ipv4addr": "198.74.81.126", "name": "abc.thezah.com", "view": "Internal" }, { "_ref": "record:a/ZG5zLmJpbmRfYSQuX2RlZmF1bHQuY29tLmFsbHksYWJjLXBwLDEwLjU5LjEzLjM:abc-pp.thezah.corp/Internal", "ipv4addr": "10.59.13.3", "name": "abc-pp.thezah.corp", "view": "Internal" }
July 31, 20178 yr Author Here are some other examples List all authoritative zones curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.0/zone_auth List all Network Views curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.0/zone_auth?view=networkview doesn’t work curl -k -u admin:Infoblox -H "Content-Type: application/json" -X POST https://10.47.147.166/wapi/v2.0/zone_auth?view=networkview List network curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.2.2/network Find a network based on comment curl -k1 -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.2.2/network -d comment~:=TK curl -k1 -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.2.2/network -d comment~:=TK -d _return_type=xml-pretty Just from External View curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.0/zone_auth?view=External List all records for a zone curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.0/allrecords?zone=thezah.com&view=External Include additional fields curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.0/allrecords?zone=example.com&view=External&_return_fields=na... curl -k -u admin:Infoblox -X GET https://10.43.144.205/wapi/v1.0/record:host -d name~=abc.thezah.com curl -s -k -u admin:Infoblox -H "Content-Type: application/json" -d '{"name": "hostname.domain.com", "ipv4addrs":[{ "ipv4addr": "func:nextavailableip:10.0.0.0/24" }]}' -X POST https://10.47.147.166/wapi/v1.2.1/record:host
Create an account or sign in to comment