POST/api/v2/targets/validate-managed-by
targets:manageAPI token
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.
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.
kubeconfigstring
Deprecated compatibility field. Prefer cluster_server_url. The server only parses the Kubernetes API server URL.
exclude_target_idstring
Target ID to exclude from the uniqueness check (for update flows).
Responses
200
OK
ValidateManagedByResponse · 3 fields
validboolean
warningstring
conflicting_withValidateManagedByConflictRef
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.