vim_host_maintenance

SOAP host maintenance mode with evacuation policy.

REST /api/vcenter/host exposes basic enter/exit (see vcenter_host); this SOAP variant supports the additional evacuatePoweredOffVms, vsanMode, and timeout fields.

saltext.vcf.clients.vim_host_maintenance.is_in(opts, host, profile=None)[source]

True if the host is currently in maintenance mode.

saltext.vcf.clients.vim_host_maintenance.enter(opts, host, *, evacuate_powered_off_vms=False, vsan_mode=None, timeout=0, profile=None)[source]

Enter maintenance mode. Returns the vim.Task moId.

vsan_mode — one of ensureObjectAccessibility, evacuateAllData, or noAction (vSAN cluster hosts only). timeout — 0 means wait forever.

saltext.vcf.clients.vim_host_maintenance.exit_(opts, host, *, timeout=0, profile=None)[source]

Exit maintenance mode. Returns the vim.Task moId.