vcf_validate
Validate a VCF API operation before execution by testing it against the matching /validations endpoint, returning pass/fail and detailed error messages per failed check.
Instructions
Test a spec against VCF's validation endpoint WITHOUT executing it.
SDDC Manager and the Installer pair most mutating endpoints with a validation twin that takes the same request body and checks it end to end -- POST /v1/clusters/validations for POST /v1/clusters, and so on. This is the safe way to iterate on a spec before committing it.
Give the real path (e.g. "/v1/hosts") or the validation path directly; the twin is resolved automatically, run, and polled to completion. Returns validated true/false plus each failed check with its error.
Targets without the /validations convention (vCenter uses ?action=check operations) get a list of the nearest check-style operations instead.
Args: target: Appliance name from vcf_targets (sddc and installer have the richest validation surface). path: The operation you intend to run, or its /validations path. body: The same JSON body you would give the real operation. wait_seconds: How long to poll for the validation verdict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| path | Yes | ||
| target | Yes | ||
| wait_seconds | No |