vsan_capacity
Get vSAN datastore space usage for a cluster to enable capacity planning. Returns total, used, and free GB with usage percentage.
Instructions
[READ] Get space usage of a cluster's vSAN datastore for capacity planning.
Returns {cluster_name, vsan_enabled, datastore_name, total_gb, used_gb, free_gb, usage_pct}. If vSAN is not enabled on the cluster, returns vsan_enabled=false with an explanatory message rather than an error; errors only if the cluster name is not found. Use vsan_health for disk-group layout and host details; use list_all_datastores for non-vSAN (VMFS/NFS) datastore usage. No side effects.
Args: cluster_name: Cluster name exactly as shown in vCenter. Errors if the cluster is not found. target: Optional vCenter/ESXi target name from config; omit to use the default target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| cluster_name | Yes |