# Data Object - VslmCreateSpec(vim.vslm.CreateSpec)

Parameter to
  CreateDisk_Task, HostCreateDisk_Task
Extends
  DynamicData
See also
  CryptoSpec, KeyValue, VirtualMachineProfileSpec, VslmCreateSpecBackingSpec
Since
  vSphere API 6.5

## Data Object Description

Specification to create a virtual storage object.

Properties

Name | Type | Description
--- | --- | ---
backingSpec | VslmCreateSpecBackingSpec | Specification of the backings of the virtual storage object.
capacityInMB | xsd:long | Size in MB of the virtual storage object.
crypto* | CryptoSpec | Crypto operation of the disk. If unset and if profile contains an encryption iofilter, then crypto will be of type CryptoSpecEncrypt, and filled with keyId that is automatically generated and keyProviderId that is the default kms cluster. Since vSphere API 7.0
keepAfterDeleteVm* | xsd:boolean | Choice of the deletion behavior of this virtual storage object. If not set, the default value is true. Since vSphere API 6.7
metadata* | KeyValue[] | The metadata KV pairs that are supposed to be created on the newly created virtual storage object. The create task is atomic by design. That being said, failing to add the specified metadata pairs leads to the failure of the create task. If unset, no metadata will be added. An empty string value is indicative of a vcenter tag. Since vSphere API 6.7.2
name | xsd:string | Descriptive name of this virtual storage object.
profile* | VirtualMachineProfileSpec[] | Virtual storage object Profile requirement. If unset, the default behavior will apply. Since vSphere API 6.7
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="VslmCreateSpec"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="name" type="xsd:string"/> <element name="keepAfterDeleteVm" type="xsd:boolean" minOccurs="0"/> <element name="backingSpec" type="vsan:VslmCreateSpecBackingSpec"/> <element name="capacityInMB" type="xsd:long"/> <element name="profile" type="vsan:VirtualMachineProfileSpec" minOccurs="0" maxOccurs="unbounded"/> <element name="crypto" type="vsan:CryptoSpec" minOccurs="0"/> <element name="metadata" type="vsan:KeyValue" minOccurs="0" maxOccurs="unbounded"/> </sequence> </extension> </complexContent> </complexType>