cluster_add_host
Move an existing vCenter-managed ESXi host to a cluster. Idempotent operation with no maintenance mode required.
Instructions
[WRITE] Move an ESXi host that vCenter already manages into a cluster.
The host must already be in vCenter inventory (standalone or in another cluster) — this tool does NOT register brand-new hosts and takes no host credentials; use the vCenter UI for first-time host registration. Idempotent: a host already in the cluster returns success without change. Maintenance mode is not required to join (it IS required by cluster_remove_host). Check membership with cluster_info. Audited to ~/.vmware/audit.db.
Args: cluster_name: Existing destination cluster name (create with cluster_create). host_name: Host name exactly as shown in vCenter inventory, typically the FQDN, e.g. "esxi-01.lab.local". target: vCenter target name from config.yaml; omit to use the default target.
Returns: Status string: moved, already-in-cluster, or host/cluster-not-found error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_name | Yes | ||
| host_name | Yes | ||
| target | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |