Skip to content

HostRecord.search() example #31

@sherzodscwx

Description

@sherzodscwx

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions