github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/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 ``` 16 resource "vsphere_virtual_disk" "myDisk" { 17 size = 2 18 vmdk_path = "myDisk.vmdk" 19 datacenter = "Datacenter" 20 datastore = "local" 21 type = "thin" 22 } 23 ``` 24 25 ## Argument Reference 26 27 The following arguments are supported: 28 29 * `size` - (Required) Size of the disk (in GB). 30 * `vmdk_path` - (Required) The path, including filename, of the virtual disk to be created. This should end with '.vmdk'. 31 * `type` - (Optional) 'eagerZeroedThick' (the default), or 'thin' are supported options. 32 * `datacenter` - (Optional) The name of a Datacenter in which to create the disk. 33 * `datastore` - (Required) The name of the Datastore in which to create the disk.