cluster_create
Create an empty vSphere cluster in a datacenter, optionally enabling HA and DRS. Rejects duplicate names and invalid DRS behavior with a clear error.
Instructions
[WRITE] Create a new empty cluster in a datacenter, optionally enabling HA and DRS.
Fails with a clear error (no partial state) if the name already exists or drs_behavior is invalid. Then add hosts with cluster_add_host, change HA/DRS later with cluster_configure, and verify with cluster_info. Returns a status string naming the features enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ha | No | True enables vSphere HA (default False). | |
| drs | No | True enables DRS (default False). | |
| name | Yes | Name for the new cluster; must be unique in the datacenter. | |
| target | No | vCenter target from config.yaml; omit for the default target. | |
| datacenter | No | Datacenter name; omit for the first one on the target. | |
| drs_behavior | No | "fullyAutomated" (default), "partiallyAutomated", or "manual". Only takes effect when drs=True. | fullyAutomated |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |