Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search All capabilities? #183

Open
wmclendon opened this issue Aug 25, 2022 · 1 comment
Open

Search All capabilities? #183

wmclendon opened this issue Aug 25, 2022 · 1 comment

Comments

@wmclendon
Copy link

hello,

I have used the python library infoblox maintains to great success, and I wanted to try to rewrite some of my tools into golang that use it, but it appears this library is missing some features that the python library has (if I am wrong, please set me straight!).

Specifically the python library has a a search_all function on the Objects, as the python library has to then be able to get all the Zones defined, and then search_all for Records of a given type in that Zone, to then parse out desired data.

In python this is done something like this:

# get all the zones
zones = objects.DNSZone.search_all(conn)

# or if I have a given zone, get all the A records:
for z in zones:
     v4_host_records = objects.HostRecordV4.search_all(
                conn, max_results=settings.infoblox_max_results, zone=z.fqdn
            )

Does this capability exist with the go library, and i'm just not seeing it?

Thanks,

Will

@ranjishmp
Copy link
Collaborator

Hi,

It is possible that some of the features in python client is not available in go client as python client is comparatively mature. Will check on this and get back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants