# Data Object - CnsVolumeAttachDetachSpec(vim.cns.VolumeAttachDetachSpec)

Parameter to
  CnsAttachVolume, CnsDetachVolume
Extends
  DynamicData
See also
  CnsVolumeId, VirtualMachine
Since
  vSAN API vSAN 6.7U3

## Data Object Description

Data object for specifications for volume attach/detach operations.

Properties

Name | Type | Description
--- | --- | ---
vm | ManagedObjectReference to a VirtualMachine | VirtualMachine to which this volume needs to be attached to.
volumeId | CnsVolumeId | Unique identifier and datastore information 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="CnsVolumeAttachDetachSpec"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="volumeId" type="vsan:CnsVolumeId"/> <element name="vm" type="vsan:ManagedObjectReference"/> </sequence> </extension> </complexContent> </complexType>