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

The {} expression matches the empty label set.

For example:

(foo and not(bar = xx)) or (baz = red) 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