Data Object - CnsVolumeCreateSpec(vim.cns.VolumeCreateSpec)

Parameter to
CnsCreateVolume
Extends
DynamicData
See also
CnsBackingObjectDetails, CnsBaseCreateSpec, CnsVolumeMetadata, CnsVolumeSource, Datastore, VirtualMachineProfileSpec
Since
vSAN API vSAN 6.7U3

Data Object Description

Specification for a container volume creation.

Properties

Name Type Description
backingObjectDetailsCnsBackingObjectDetails

Additional details for the backing object for this volume.
The details would be specific to the type of the volume. E.g. a block volume can have details like ID of existing disk that should back the volume. See CnsBackingObjectDetails and its child-classes, specific to volume type, for more.
createSpec*CnsBaseCreateSpec

Volume type specific requirements for the volume.

Since vSAN API 7.0
datastores*ManagedObjectReference[]
to a Datastore[]

Datastores to be considered for volume placement.
For block volume type:
  • If backing disk is not specified in backingObjectDetails, then this is a mandatory field. In case of multiple placement candidate datastores, the server would select one datastore (subject to change) based on various factors like available free space.
  • If an existing backing disk has been specified in backingObjectDetails, then this datastores array should not be set.
For file volume type:
  • If backing file volume is not specified in backingObjectDetails, then this is a mandatory field. In case of multiple placement candidate datastores, the server would select one datastore (subject to change) based on various factors like available free space.
  • If an existing backing disk has been specified in backingObjectDetails, then this datastores array should not be set.

metadata*CnsVolumeMetadata

Metadata for the container volume.
namexsd:string

Name of the volume.
Name size is limited to 80 bytes. CNS will not try to enforce uniqueness for volume name. Different container orchestrator clusters can create volumes with the same name. Uniqueness within a container orchestrator cluster, if needed, should be enforced by the cluster orchestrator.
profile*VirtualMachineProfileSpec[]

Storage Profile for the container volume.
ProfileSpec size is limited to 1. See VirtualMachineProfileSpec and its child-classes.
  • If DefinedProfileSpec is specified, then the volume is created on the most free datastore compatible with the given storage policy.
  • If DefaultProfileSpec or EmptyProfileSpec is specified, then the volume is created on the most free datastore with that profile spec.
While creating a volume with existing disk, this field will be ignored. In case of block volume, when an existing disk is specified that should be used to back a volume, the policy application should also happen out-of-band. In other words, this field would be ignored.
volumeSource*CnsVolumeSource

Specification for the source of the volume creation. If set to null, a new empty volume is created.

Since vSAN API 7.0
volumeTypexsd:string

Type of the volume. See CnsVolumeType.
Properties inherited from DynamicData
None
*Need not be set
Show WSDL type definition