Infoblox-API-Python
Infoblox-API-Python copied to clipboard
HostRecord.search() example
Hi!
Struggling to understand the args and kwargs for HostRecord.search(). Trying to emulate the following call
r = conn.get_object('record:host', {'name~': host})
but cant seem to pick the right kwargs. This one worked
kw = {'name': host}
r = objects.HostRecord.search(conn, **kw)
but
kw = {'name~': host}
r = objects.HostRecord.search(conn, **kw)
didnt 😞.
Does anybody have a working example for ~ operator?
TIA!
Here take a look at this https://sifbaksh.com/how-to-search-for-data-in-infoblox-via-apiwapi-using-python-module/