I can't filter with display_name
for the DeviceType
#5477
-
Steps to Reproduce
SELECT * FROM device_type WHERE display_name LIKE '%brocad%' To do this, I call this url in Expected BehaviorI just want filtered results. Observed BehaviorBut it doesn't filter, it returns all the DeviceType data I have in my database. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The complete list of available filters for each API endpoint is listed in the API documentation at |
Beta Was this translation helpful? Give feedback.
-
thanks for your answer |
Beta Was this translation helpful? Give feedback.
display_name
isn't a field which exists in the database: It's a concatenation of the device type's manufacturer name and model. Becausemanufacturer
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/
.