Skip to content

I can't filter with display_name for the DeviceType #5477

Answered by jeremystretch
rimoi asked this question in Q&A
Discussion options

You must be logged in to vote

display_name isn't a field which exists in the database: It's a concatenation of the device type's manufacturer name and model. Because manufacturer is a related field, it can only be filtered using an exact match; e.g. ?manufacturer=brocade or ?manufacturer_id=123. You can, however, filter against the model number using a partial match.

The complete list of available filters for each API endpoint is listed in the API documentation at /api/docs/.

Replies: 2 comments

Comment options

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

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #5477 on December 16, 2020 13:17.