Skip to content

How to filter with related models? #615

Answered by markkuleinio
tux-mania asked this question in Q&A
Discussion options

You must be logged in to vote

NetBox REST API ignores unknown request parameters, like termination_a__site__name, thus your call requests all circuits.

See the REST API documentation of your NetBox installation for the list of available filtering parameters in GET /api/circuits/circuits/ call (for example: https://demo.netbox.dev/api/schema/swagger-ui/#/circuits/circuits_circuits_list). Maybe there isn't a direct corresponding option in the REST API filtering parameters, so you may need to use some additional client-side logic to implement the same functionality.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tux-mania
Comment options

Answer selected by tux-mania
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants