github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/vsphere/r/virtual_disk.html.markdown (about) 1 --- 2 layout: "vsphere" 3 page_title: "VMware vSphere: vsphere_virtual_disk" 4 sidebar_current: "docs-vsphere-resource-virtual-disk" 5 description: |- 6 Provides a VMware virtual disk resource. This can be used to create and delete virtual disks. 7 --- 8 9 # vsphere\_virtual\_disk 10 11 Provides a VMware virtual disk resource. This can be used to create and delete virtual disks. 12 13 ## Example Usage 14 15 ```hcl 16 resource "vsphere_virtual_disk" "myDisk" { 17 size = 2 18 vmdk_path = "myDisk.vmdk" 19 datacenter = "Datacenter" 20 datastore = "local" 21 type = "thin" 22 adapter_type = "lsiLogic" 23 } 24 ``` 25 26 ## Argument Reference 27 28 The following arguments are supported: 29 30 * `size` - (Required) Size of the disk (in GB). 31 * `vmdk_path` - (Required) The path, including filename, of the virtual disk to be created. This should end with '.vmdk'. 32 * `type` - (Optional) 'eagerZeroedThick' (the default), 'lazy', or 'thin' are supported options. 33 * `adapter_type` - (Optional) set adapter type, 'ide' (the default), 'lsiLogic', or 'busLogic' are supported options. 34 * `datacenter` - (Optional) The name of a Datacenter in which to create the disk. 35 * `datastore` - (Required) The name of the Datastore in which to create the disk.