Docs
Live demo
POST/api/v2/targets/validate-managed-by

Check whether a managed_by_annotation value is unique for a given Kubernetes cluster (identified by kubeconfig server URL).

Request body application/json · ValidateManagedByRequest

Validation request

Required1 of 4 fields
managed_by_annotationstringrequired

The managed-by annotation value to validate.

min length 1 · max length 63 · pattern ^[A-Za-z0-9](?:[A-Za-z0-9._-]{0,61}[A-Za-z0-9])?$
Optional3 fields
cluster_server_urlstring

Preferred. Absolute HTTP(S) Kubernetes API server URL used to scope the uniqueness check. Takes precedence over the deprecated kubeconfig when both are supplied.

min length 1 · pattern ^https?://
kubeconfigstring

Deprecated compatibility field. Prefer cluster_server_url. The server only parses the Kubernetes API server URL.

deprecated
exclude_target_idstring

Target ID to exclude from the uniqueness check (for update flows).

Responses

200

OK

ValidateManagedByResponse · 3 fields
validboolean
warningstring
2 fields
target_idstring
target_namestring

Common errors: 400 401 403 409 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close