infoblox-ansible icon indicating copy to clipboard operation
infoblox-ansible copied to clipboard

Cannot look up object by reference

Open scetron opened this issue 3 years ago • 1 comments

Python 3.7.4 Ansible 2.9.14 WAPI 2.9.7

With the NIOS lookup plugin, I am unable to lookup objects by their reference id.

I would expect I can either use the _ref as a filter option or simply put the whole object into the record lookup type. I expect to get the same information I would when I use the API to do an object lookup by reference.

Specifically for host records (but should be for any record I have an object reference for):

    msg: "{{ lookup('nios', 'record:host/JKhsafkjalkjfhdsjklhfdKJLHFDJKLHFSfakerefnumber:route.my.domain.com/internal-view', provider=infoblox_provider) }}"

Should give me the same data as using this API call:

infoblox.my.domain.com/wapi/2.9.7/record:host/JKhsafkjalkjfhdsjklhfdKJLHFDJKLHFSfakerefnumber:route.my.domain.com/internal-view

scetron avatar Mar 30 '21 21:03 scetron