LabelsFilter

Updated at:

Parameter

Type

Description

Example

object

A LabelsFilter defines a query for selecting objects based on their labels. It allows you to construct complex selection logic by combining multiple label matchers. The filter has two optional fields, anyOf and allOf. If both are specified, an object is selected only if it satisfies the conditions in both fields.

anyOf

array

An array of LabelMatcher requirements. An object is selected if it satisfies at least one of the requirements in this list (a logical OR). If provided, the list cannot be empty.

LabelMatcher

allOf

array

An array of LabelMatcher requirements. An object is selected only if it satisfies all of the requirements in this list (a logical AND). If provided, the list cannot be empty.

LabelMatcher