vim_cluster_overrides¶
Per-VM / per-host cluster-level overrides via SOAP.
These are the rows in vSphere’s “Cluster -> Configure -> VM/Host Rules / Overrides” view that let you make a single VM (or host) behave differently from the cluster default:
DRS VM override — change a VM’s automation level (manual / partiallyAutomated / fullyAutomated / disabled) regardless of the cluster default.
HA VM override — change a VM’s restart priority, isolation response, PDL/APD failover behaviour.
DPM host override — change a single host’s DPM behaviour (the cluster default puts everyone in automatic; an override pins one host to manual or disabled).
All writes go through ClusterComputeResource.ReconfigureComputeResource_Task
with a vim.cluster.ConfigSpecEx that carries the relevant config-spec list.
- saltext.vcf.clients.vim_cluster_overrides.drs_vm_list(opts, cluster, profile=None)[source]¶
List per-VM DRS overrides on cluster.
- saltext.vcf.clients.vim_cluster_overrides.drs_vm_set(opts, cluster, vm_moid, behavior, enabled=True, profile=None)[source]¶
Add or replace the DRS override for vm_moid on cluster.
behavior:
manual|partiallyAutomated|fullyAutomated|disabled.
- saltext.vcf.clients.vim_cluster_overrides.drs_vm_remove(opts, cluster, vm_moid, profile=None)[source]¶
Remove the DRS override for vm_moid — the VM goes back to the cluster default.
- saltext.vcf.clients.vim_cluster_overrides.ha_vm_set(opts, cluster, vm_moid, restart_priority=None, isolation_response=None, profile=None)[source]¶
Add or replace the HA override for vm_moid on cluster.
restart_priority:
disabled|lowest|low|medium|high|highest|clusterRestartPriority. isolation_response:none|powerOff|shutdown|clusterIsolationResponse.