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

Render Elevation as SVG #505

Open
darcuripan opened this issue Oct 17, 2022 · 2 comments
Open

Render Elevation as SVG #505

darcuripan opened this issue Oct 17, 2022 · 2 comments
Labels
status: revisions needed This issue requires additional information to be actionable

Comments

@darcuripan
Copy link

I've managed to get the rack elevation as a list of devices

rack = netbox.dcim.racks.get(21)

device = rack.elevation.list()

and I know the REST API has the option to set render=json/svg, and I was wondering if there is an already existing way to do this in pynetbox or if it could be added in the future?

Thanks!

@darcuripan
Copy link
Author

Just to follow up here, I tried this device = rack.elevation.list(render="svg")
which gives this error: pynetbox.core.query.ContentError: The server returned invalid (non-json) data. Maybe not a NetBox server?

so it seems like that it is returning the svg, but pynetbox won't allow for non-json data responses. Is there some way to circumvent that warning?

@abhi1693
Copy link
Member

What would be the use case to render the SVG using pynetbox?

@abhi1693 abhi1693 added the status: revisions needed This issue requires additional information to be actionable label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: revisions needed This issue requires additional information to be actionable
Projects
None yet
Development

No branches or pull requests

2 participants