# Data Object - VsanDataEfficiencyConfig(vim.vsan.DataEfficiencyConfig)

Property of
  VimVsanHostDiskMapInfoEx, VimVsanReconfigSpec, VsanConfigInfoEx, VsanDiskFormatConversionSpec, VsanHostConfigInfoEx, VsanPrepareVsanForVcsaSpec, VsanVcPostDeployConfigSpec
Extends
  DynamicData
Since
  vSphere API 6.0

## Data Object Description

The data efficiency configuration of a vSAN cluster. Data efficiency configurations work together as below.

dedupEnabled | compressionEnabled | Details | State Transition
--- | --- | --- | ---
False | False | Disable deduplication and compression. Or Disable compression only | Deduplication and compression -> No data efficiency Compression only -> No data efficiency
None | 0 | Disable compression only if enabled Throw exception if deduplication and compression is enabled | Compression only -> No data efficiency
None | 1 | Enable compression only Throw exception if deduplication and compression is enabled. | No data efficiency -> Compression only
0 | None | Disable deduplication and compression Throw exception if compression only is enabled | Deduplication and compression -> No data efficiency
1 | 1 | Enable deduplcation and compression Disable compression only if already enabled Get VsanClusterConfigInfo will return compressionEnabled flag as true | No data efficiency -> Deduplication and compression Compression only -> Deduplication and compression
1 | 0 | Enable deduplication and compression Disable compression only if already enabled Get VsanClusterConfigInfo will return compressionEnabled flag as True | No data efficiency -> Deduplication and compression Compression only -> Deduplication and compression
0 | 1 | Enable compression only Disable deduplication and compression | Deduplication and compression -> Compression only No data efficiency -> Compression only
1 | None | Enable deduplication and compression Disable compression only if already enabled Get VsanClusterConfigInfo will return compression only flag as True | No data efficiency -> deduplication and compression Compression only -> deduplication and compression

Properties

Name | Type | Description
--- | --- | ---
compressionEnabled* | xsd:boolean | Enables compression on the vSAN cluster. The behaviour of this flag is described in the table above.
dedupEnabled | xsd:boolean | Enables data deduplication and compression on the vSAN cluster. The behaviour of this flag is described in the table above.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="VsanDataEfficiencyConfig"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="dedupEnabled" type="xsd:boolean"/> <element name="compressionEnabled" type="xsd:boolean" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>