esxi

esxi resource type — one standalone ESXi host per resource ID.

ESXi joined to a vCenter has its direct REST API locked; for those hosts use the cluster-level saltext.vcf.modules.vcf_cluster_config instead. This resource type targets ESXi hosts that respond to vAPI session on POST /api/session directly.

Configuration:

resources:
  esxi:
    instances:
      esxi-standalone:
        host: esxi01.example.com
        username: root
        password: VMware123!
        verify_ssl: false
saltext.vcf.resources.esxi.ping()[source]

Probe /api/session to confirm the ESXi host is reachable.