# Data Object - CnsVolumeMetadata(vim.cns.VolumeMetadata)

Property of
  CnsVolume, CnsVolumeCreateSpec, CnsVolumeMetadataUpdateSpec
Extends
  DynamicData
See also
  CnsContainerCluster, CnsEntityMetadata
Since
  vSAN API vSAN 6.7U3

## Data Object Description

Data object that represents metadata associated with a container volume.

Properties

Name | Type | Description
--- | --- | ---
containerCluster | CnsContainerCluster | Deprecated. As of vSphere 7.0. Use CnsEntityMetadata to refer to the container cluster the entity belongs to. Represents the container orchestrator cluster where the volume is used. Volume metadata will be associated with the container volume for this container cluster during volume create and update operations. In case the block container volume is created in one container cluster but used in a different container cluster (static volume provisioning use case), an update volume operation with a new container cluster will replace the old entry.
containerClusterArray* | CnsContainerCluster[] | Represents list of all container orchestrator clusters where the volume is used. This field is mandatory in versions that support it. Since vSAN API 7.0
entityMetadata* | CnsEntityMetadata[] | All the entity metadata associated with the container volume within a container orchestrator like Kubernetes.
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="CnsVolumeMetadata"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="containerCluster" type="vsan:CnsContainerCluster"/> <element name="entityMetadata" type="vsan:CnsEntityMetadata" minOccurs="0" maxOccurs="unbounded"/> <element name="containerClusterArray" type="vsan:CnsContainerCluster" minOccurs="0" maxOccurs="unbounded"/> </sequence> </extension> </complexContent> </complexType>