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

Add support for the dcim/_choices endpoint #24

Closed
Ichabond opened this issue Dec 18, 2017 · 2 comments
Closed

Add support for the dcim/_choices endpoint #24

Ichabond opened this issue Dec 18, 2017 · 2 comments
Milestone

Comments

@Ichabond
Copy link

Netbox has a _choices endpoint, which is currently not supported, as it gets remapped to -choices in endpoint.py (https://github.com/digitalocean/pynetbox/blob/master/pynetbox/lib/endpoint.py#L62), and it doesn't map to the default Record structure.

Update the application so it no longer remaps endpoints beginning with _, and add a specific class Choice that only has an items() function to retrieve the results.

Ichabond added a commit to Ichabond/pynetbox that referenced this issue Dec 18, 2017
This adds initial support for the `dcim/_choices` endpoint. This fixes netbox-community#24
@jord-bh
Copy link

jord-bh commented May 3, 2018

@zachmoody any chance this will be bundled into pynetbox soon? I've solved this manually by the requests lib in my scripts for the time being, having it available straight through pynetbox would be sweet!

And obviously, while we're at it, having it available for all objects (dcim/virtualization/ipam/...) would be extra sweet.

@ebusto
Copy link

ebusto commented Jun 20, 2018

I'm also very interested in this!

@zachmoody zachmoody added this to the v4.0.0 milestone Aug 22, 2018
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

Successfully merging a pull request may close this issue.

4 participants