I've been reading the documentation for pyvmomi but it's not clear on how to use the function
VsanHealthSetVsanClusterSilentChecks
from the managed object vim.cluster.VsanVcClusterHealthSystem
, it doesn't say how to initialize or how to instance the object or show any example on how to use it.
i have tried code like this:
vchs = vim.cluster.VsanVcClusterHealthSystem('vsan-cluster-health-system')
check = vchs.VsanHealthSetVsanClusterSilentChecks(cluster, None, alarm_list)
The code throws an exception but it's not very descriptive:
VsanVcClusterHealthSystem
and that is all from the exception error message.
Pyvmomi documentation for VsanHealthSetVsanClusterSilentChecks
Turns out that pyvmomi on it's own can't do that, i needed to use vSAN Management SDK for Python