Files
opentf/website/source/docs/providers/vsphere/r/virtual_disk.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

1.0 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
vsphere VMware vSphere: vsphere_virtual_disk docs-vsphere-resource-virtual-disk Provides a VMware virtual disk resource. This can be used to create and delete virtual disks.

vsphere_virtual_disk

Provides a VMware virtual disk resource. This can be used to create and delete virtual disks.

Example Usage

resource "vsphere_virtual_disk" "myDisk" {
  size       = 2
  vmdk_path  = "myDisk.vmdk"
  datacenter = "Datacenter"
  datastore  = "local"
  type       = "thin"
}

Argument Reference

The following arguments are supported:

  • size - (Required) Size of the disk (in GB).
  • vmdk_path - (Required) The path, including filename, of the virtual disk to be created. This should end with '.vmdk'.
  • type - (Optional) 'eagerZeroedThick' (the default), or 'thin' are supported options.
  • datacenter - (Optional) The name of a Datacenter in which to create the disk.
  • datastore - (Required) The name of the Datastore in which to create the disk.