Skip to content
Discussion options

You must be logged in to vote

Shocked, I tell you, shocked! :-)

The queries you can use (in Netbox v3.4.5) are defined here: https://github.com/netbox-community/netbox/blob/v3.4.5/netbox/dcim/filtersets.py#L793-L970

location_id is a TreeNodeMultipleChoiceFilter, so I imagine it's an implementation limitation that this works with IDs directly, not an indirect reference like location name or slug.

of course I could first resolve the location to ID but it is quite a surprising requirement.

I'm never surprised by how bad REST APIs are, or their documentation. I only ever used one which had half-decent documentation, and that was Salesforce.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by bluikko
Comment options

You must be logged in to vote
4 replies
@candlerb
Comment options

@jeremystretch
Comment options

@candlerb
Comment options

@bluikko
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants