# Data Object - CnsVolumeMetadataUpdateSpec(vim.cns.VolumeMetadataUpdateSpec)

Parameter to
  CnsUpdateVolumeMetadata
Extends
  DynamicData
See also
  CnsVolumeId, CnsVolumeMetadata
Since
  vSAN API vSAN 6.7U3

## Data Object Description

Specifications for volume metadata update operation. The update is performed based on the specified entity metadata in volume metadata.
For metadata add/update - if CNS already had entity metadata associated, then this update will replace it. Else, it will associate the entity metadata with the volume.
For metadata deletion - CNS will delete the speficied entity metadata.
Update operation should be called for at least one update. If an empty spec is passed without any volume properties to be updated, the operation will fail.

Properties

Name | Type | Description
--- | --- | ---
metadata | CnsVolumeMetadata | Metadata for the container volume.
volumeId | CnsVolumeId | Unique identifier for the volume.
Properties inherited from DynamicData
None

Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="CnsVolumeMetadataUpdateSpec"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="volumeId" type="vsan:CnsVolumeId"/> <element name="metadata" type="vsan:CnsVolumeMetadata"/> </sequence> </extension> </complexContent> </complexType>