Match Site Labels

Invoke the eval-match-site-labels operation

Returns a list of all sites assigned to the tenant that match the given label match expression.

SecurityaccessToken
Request
Request Body schema:
expr
required
string <label-match-expression>

A string that matches:

expr = ( expr 'and' expr ) /
       ( expr 'or' expr ) /
       ( 'not' expr ) /
       ( label '=' value ) /
       ( label '~' regexp ) /
       '{}' /
       label

The {} expression matches the empty label set.

The operator = is exact match, and ~ is PCRE regular expression match.

value and regexp may be quoted with double or single quotes. Within double quotes, backslash is used as escape character to get a double quote or escape.

For example:

(foo and not(bar = xx)) or (baz = 'red') or baz = "blue" or {}

include-uninitialized-sites
boolean
Default: false

Include uninitialized sites in the reply, i.e., sites that haven't called-home and established a cluster.

Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

503

Service Unavailable (strongbox sealed)

post/v1/state/eval-match-site-labels
Request samples
expr: system/type = edge and region = europe
include-uninitialized-sites: false
Response samples
sites:
  - stockholm
  - berlin