Remediating an ESXi Cluster

You can use the vSphere Automation APIs to initiate the remediation of a cluster through the vSphere Lifecycle Manager.

To remediate a cluster with a desired state, call the apply_Task(cluster_ID,apply_spec) method of the com.vmware.esx.settings.clusters.Software interface. Pass as argument a SoftwareTypes.ApplySpec instance and specify whether the VMware End User License Agreement (EULA) is accepted. You can also set the minimum commit ID of the draft software specification that must be used for remediating the cluster. Upon successful completion of the remediation task, all hosts in the cluster will have the same software state.