cluster_patch_compliance
Check a cluster's vLCM patch compliance and identify non-compliant hosts before or after a patch cycle. Returns compliance status, host totals, and scan time.
Instructions
[READ] vLCM software (patch) compliance for one cluster (vSphere Automation REST).
When to use: to check whether a cluster's hosts match their assigned software image/baseline before or after a patch cycle. Complements host_memory_tiering (that is per-host hardware; this is per-cluster lifecycle state).
What it returns: {available, cluster, status, hosts_total, non_compliant_hosts,
scan_time, note, fields}. available: False means vCenter answered 503 — it is
likely mid-patch (vSphere has no maintenance-ETA endpoint; retry shortly), not an
error. Endpoint and field parse verified against a live VCF 9.1 vCenter (see note).
Gotchas: cluster must be the cluster MoID (e.g. domain-c123), which the REST
API requires — get it from list_all_clusters, not the display name. Read-only:
reports compliance only; it never runs a remediation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | vCenter target from config (default if omitted). | |
| cluster | Yes | Cluster MoID (e.g. domain-c123). |