06-20-2016 11:01 AM
How can I get the Host Object by passing Alias which is created in that Host Object.
e.g : for object 220.127.116.11 a host object is created with host name: btest061616-1.eds.com, as shown in file: Host Object Details.PNG
two aliases are added to this object as shown in file: Alias in Host Obj.PNG
In my code I want to pass any of the Alias and fetch the details of this Host object. I am using curl command in PHP code for talking to infoblox system.
- Thanking in advance...
06-21-2016 05:48 AM
As far as I can tell, you can't.
It is stated in the DNS Host record object reference that the aliases field is not searchable.
Please see WAPI docs at https://<your_appliance_ip>/wapidoc/objects/record.host.html for more details.
06-22-2016 05:14 AM
I had read the same thing in my guide also. But then I am able to search the aliases on Infoblox Gridmaster. This means Infoblox does have capability to seach an alias, even if it is embedded in Host Object.
I failed to get hold of it in initial attempts but then I tried passing only Alias:
curl -k3 -u userassword -X GET https://<Appliance url>/record:host \-d alias='<AliasName>'
This way I am able to get the Host object having this Alias, but since it doe not working when passing view the host objects will be returned under all the views.
07-13-2016 08:30 AM
Here's how I did it in Infoblox v6.12
This call doesn't return a list of any other Aliases that might exist on the object--only the bare minimun informational fields about the Host object.
To get the full info on the Host record you've found, you'd need to use the _ref from the first call, and make another API call to fetch the Host record. Something like this:
07-14-2016 10:08 AM