Filtering for Custom Field #7907
Unanswered
RobinBeismann
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Did you ever find a solution for this? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I'm trying to filter on the REST API using a custom field, but I can't get it to work..
Basically, I want all devices where "monitoring_enabled" equals either null (dropdown not yet set) or "false", but filtering for neither works..
I've tried the following to filter for false:
/api/virtualization/virtual-machines/?cf_monitoring_enabled=false
and this to filter for empty values:
/api/virtualization/virtual-machines/?cf_monitoring_enabled__empty=true
However both of them just return all virtual machines..
I'm using v3.0.10.
This is how my custom fields look in the API Response:
Beta Was this translation helpful? Give feedback.
All reactions