vsphere.host
Supported platform
- vmware-esxi
- vmware-vsphere
Description
vSphere ESXi host resource
Fields
| ID | TYPE | DESCRIPTION |
|---|---|---|
| moid | string | vSphere managed object ID |
| name | string | vSphere resource name |
| inventoryPath | string | vSphere inventory path |
| properties | dict | ESXi properties |
| standardSwitch | []vsphere.vswitch.standard | Standard virtual switches |
| distributedSwitch | []vsphere.vswitch.dvs | Distributed virtual switches |
| adapters | []vsphere.vmnic | Physical NICs currently installed and loaded on the system |
| vmknics | []vsphere.vmknic | Virtual network interface that is used by the VMKernel |
| packages | []esxi.vib | All VIBs installed on your ESXi host |
| acceptanceLevel | string | Host-level VIB acceptance level |
| kernelModules | []esxi.kernelmodule | Kernel modules (drivers) on ESXi |
| advancedSettings | map[string]string | ESXi host advanced settings |
| services | []esxi.service | List of ESXi management services |
| timezone | esxi.timezone | Host timezone settings |
| ntp | esxi.ntpconfig | Host NTP configuration |
| snmp | map[string]string | Host SNMP configuration |
| tags | []string | Host tags |
Examples
Verify the Software AcceptanceLevel for ESXi host
// targeting a single ESXi host
esxi.host {
acceptanceLevel == 'VMwareCertified' || acceptanceLevel == 'VMwareAccepted' || acceptanceLevel == 'PartnerSupported'
}
// targeting the vSphere API
vsphere.datacenters {
hosts {
acceptanceLevel == 'VMwareCertified' || acceptanceLevel == 'VMwareAccepted' || acceptanceLevel == 'PartnerSupported'
}
}
Verify that each vib is "VMwareCertified" or "VMwareAccepted"
esxi.host {
packages {
acceptanceLevel == 'VMwareCertified' || acceptanceLevel == 'VMwareAccepted' || acceptanceLevel == 'PartnerSupported'
}
}