esxi_advanced¶
ESXi advanced system settings via SOAP/pyVmomi.
- saltext.vcf.clients.esxi_advanced.get(opts, key, profile=None)[source]¶
Return
{"key": <name>, "value": <current>}.Consistent shape with
set_value()— callers who only need the value shouldget(...)["value"].vcf_esxi_advanced.setting(the state module) already expects this dict shape.
- saltext.vcf.clients.esxi_advanced.set_value(opts, key, value, profile=None)[source]¶
Set an ESXi advanced setting.
Reuses the
OptionValueobject returned byQueryOptions(mutating its.value) rather than constructing a fresh one from a bare Python value — some settings are typedxsd:longserver-side, and a freshly-builtOptionValuefrom a plain Pythonintserializes asxsd:int, which the host rejects withvmodl.fault.InvalidArgument(invalidProperty='value'). Seesaltext.vcf.clients.vcenter_advanced_option.advanced_set()for the vCenter-side counterpart of this same fix.