I am trying to find an object property that shows the results of the VDS health check for VLANs.
've managed to configure the VDS health check for VlanMtu through PowerCLI but I need a scripted way to determine if the hosts see the correct VLANs.
Here is the API call for VDS health config:
$Spec = New-Object VMware.Vim.VMwareDVSVlanMtuHealthCheckConfig
$Spec.Enable = $True
$Spec.Interval = 1
$DistributedSwitchView = Get-View $DistributedSwitch
$OutNull = $DistributedSwitchView.UpdateDVSHealthCheckConfig_Task($Spec)
$Spec = New-Object VMware.Vim.VMwareDVSTeamingHealthCheckConfig
$Spec.Enable = $False
$Spec.Interval = 1
$DistributedSwitchView = Get-View $DistributedSwitch
$OutNull = $DistributedSwitchView.UpdateDVSHealthCheckConfig_Task($Spec)