Infoblox-API-Python icon indicating copy to clipboard operation
Infoblox-API-Python copied to clipboard

HostRecord.search() example

Open sherzodscwx opened this issue 4 years ago • 1 comments

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!

sherzodscwx avatar Jan 25 '21 21:01 sherzodscwx

Here take a look at this https://sifbaksh.com/how-to-search-for-data-in-infoblox-via-apiwapi-using-python-module/

seefor avatar Feb 06 '21 23:02 seefor