# 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:vim25="urn:vim25" name="VslmCreateSpec"> <complexContent> <extension base="vim25:DynamicData"> <sequence> <element name="name" type="xsd:string"/> <element name="keepAfterDeleteVm" type="xsd:boolean" minOccurs="0"/> <element name="backingSpec" type="vim25:VslmCreateSpecBackingSpec"/> <element name="capacityInMB" type="xsd:long"/> <element name="profile" type="vim25:VirtualMachineProfileSpec" minOccurs="0" maxOccurs="unbounded"/> <element name="crypto" type="vim25:CryptoSpec" minOccurs="0"/> <element name="metadata" type="vim25:KeyValue" minOccurs="0" maxOccurs="unbounded"/> </sequence> </extension> </complexContent> </complexType>