Skip to content

Validate label selectors​

POST
/validations/labels

Evaluates a label selector query against target data — useful for previewing whether a device's labels match a release's required and selection labels.

Authorizations​

Request Body​

application/json
JSON
{
  
"mode": "string",
  
"query": [
  
  
"string"
  
],
  
"target_meta": {
  
  
"additionalProperties": "string"
  
}
}

Responses​

Validation result

application/json
JSON
{
  
"found": [
  
  
"string"
  
],
  
"mismatched": [
  
  
{
  
  
  
"actual": "string",
  
  
  
"clause": "string",
  
  
  
"expected": "string",
  
  
  
"key": "string"
  
  
}
  
],
  
"missing": [
  
  
"string"
  
],
  
"valid": true
}

Playground​

Body

Samples​

Powered by VitePress OpenAPI