filter-rules

A filter is defined as a set of filter-rules that can be used to filter a list of objects, based on their labels and certain attributes. Filters are currently supported for deployments and blueprints.
Filtering deployments is supported in the UI, CLI, and API. The allowed deployments’ attributes to filter by are: blueprint_id, site_name, and created_by.
Filtering blueprints is supported only in the CLI and API. The allowed blueprints’ attribute to filter by is created_by.

UI API CLI Applied logic
is one of any_of = The label key matches the specified key and the label value matches one of the specified values.
is not one of not_any_of != The label key matches the specified key and the label value does not match any of the specified values.
is not one of (or no such key) is_not is-not No label key matches the specified key, or the label key matches the specified key and the label value does not match any of the specified values.
key is not is_null is null No label key matches the specified key.
key is is_not_null is not null The label key matches the specified key.
Table 1. Labels operators mapping
UI API CLI Applied logic
is one of any_of = The resource attribute matches one of the specified values.
is not one of not_any_of != The resource attribute does not match any of the specified values.
contains contains contains The resource attribute contains the specified value.
does not contain not_contains does-not-contain The resource attribute does not contain the specified value.
starts with starts_with starts-with The resource attribute starts with the specified value.
ends with ends_with ends-with The resource attribute ends with the specified value.
Table 2. Attributes operators mapping