vsan_efficiency
Get vSAN deduplication and compression status for a cluster, returning whether each is enabled.
Instructions
[READ] Get vSAN data-efficiency (deduplication + compression) status for a cluster.
Returns {cluster_name, vsan_enabled, dedup_enabled, compression_enabled}. Reads it via the vSAN Management SDK (VsanVcClusterConfigSystem), not base pyVmomi. When vSAN reports no data-efficiency config (space efficiency off, or an OSA cluster without it), dedup_enabled/compression_enabled come back null with a message rather than a fabricated false. Errors only if the cluster name is not found. Use vsan_capacity for space usage and vsan_health for disk-group layout. No side effects.
Note: vSAN Global Deduplication and vSAN-to-vSAN replication are NOT exposed here — neither has a verified SDK object (global dedup has no distinct field; v2v replication lives in the separate vSAN Data Protection plane). Use the vCenter/vSAN UI for those.
Args: cluster_name: Cluster name exactly as shown in vCenter (case-sensitive). Errors if the cluster is not found — vmware-storage has no cluster-listing tool; get names from vmware-monitor list_all_clusters. target: Optional vCenter/ESXi target name from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| cluster_name | Yes |