cluster_create
Create a new empty cluster in a datacenter, optionally enabling HA and DRS with configurable DRS behavior.
Instructions
[WRITE] Create a new empty cluster in a datacenter, optionally enabling HA and DRS.
Fails with a clear error (no partial state) if a cluster with that name already exists or drs_behavior is invalid. After creation, add hosts with cluster_add_host; change HA/DRS later with cluster_configure; verify with cluster_info. Audited to ~/.vmware/audit.db.
Args: name: Name for the new cluster; must be unique in the datacenter. datacenter: Datacenter name; omit to use the first datacenter on the target. ha: True enables vSphere HA (default False). drs: True enables DRS (default False). drs_behavior: "fullyAutomated" (default), "partiallyAutomated", or "manual". Only takes effect when drs=True. target: vCenter target name from config.yaml; omit to use the default target.
Returns: Status string confirming creation and which features (HA/DRS) were enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| datacenter | No | ||
| ha | No | ||
| drs | No | ||
| drs_behavior | No | fullyAutomated | |
| target | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |