Skip to content

Netbox 2.10.3 permission constraints documentation #5817

Answered by candlerb
florianschendel asked this question in Q&A
Discussion options

You must be logged in to vote

I found on the website only the documentation for the version 2.9.x

That is the current documentation for Netbox 2.10. The feature was introduced in 2.9.

Based on the 2.9.x documentation I tried to set some additional filter.

Which object are you setting this on? If this is on "site" then don't include the site__ prefix. However if this is on (say) Device, that's fine because Device has a "site" attribute.

Note that the __in option requires a list on the RHS: it means "the value appears in this list". Hence you'd need to write either:

{"site__name__in": ["MU"]}

or

{"site__name":"MU"}

You'll see this if you look carefully at the examples here: https://netbox.readthedocs.io/en/stable/…

Replies: 1 comment 4 replies

Comment options

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

@candlerb
Comment options

@florianschendel
Comment options

@cpmills1975
Comment options

Answer selected by ryanmerolle
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