Show / Hide Table of Contents

Class VirtualMachineDisk

Inheritance
System.Object
VirtualMachineDisk
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.VSphere.Outputs
Assembly: Pulumi.VSphere.dll
Syntax
public sealed class VirtualMachineDisk

Fields

View Source

Attach

Attach an external disk instead of creating a new one. Implies and conflicts with keep_on_remove. If set, you cannot set size, eagerly_scrub, or thin_provisioned. Must set path if used.

Declaration
public readonly bool? Attach
Field Value
Type Description
System.Nullable<System.Boolean>
View Source

DatastoreId

The datastore ID that the ISO is located in. Requried for using a datastore ISO. Conflicts with client_device.

Declaration
public readonly string DatastoreId
Field Value
Type Description
System.String
View Source

DeviceAddress

An address internal to this provider that helps locate the device when key is unavailable. This follows a convention of CONTROLLER_TYPE:BUS_NUMBER:UNIT_NUMBER. Example: scsi:0:1 means device unit 1 on SCSI bus 0.

Declaration
public readonly string DeviceAddress
Field Value
Type Description
System.String
View Source

DiskMode

The mode of this this virtual disk for purposes of writes and snapshotting. Can be one of append, independent_nonpersistent, independent_persistent, nonpersistent, persistent, or undoable. Default: persistent. For an explanation of options, click [here][vmware-docs-disk-mode].

Declaration
public readonly string DiskMode
Field Value
Type Description
System.String
View Source

DiskSharing

The sharing mode of this virtual disk. Can be one of sharingMultiWriter or sharingNone. Default: sharingNone.

Declaration
public readonly string DiskSharing
Field Value
Type Description
System.String
View Source

EagerlyScrub

If set to true, the disk space is zeroed out on VM creation. This will delay the creation of the disk or virtual machine. Cannot be set to true when thin_provisioned is true. See the section on picking a disk type. Default: false.

Declaration
public readonly bool? EagerlyScrub
Field Value
Type Description
System.Nullable<System.Boolean>
View Source

IoLimit

The upper limit of IOPS that this disk can use. The default is no limit.

Declaration
public readonly int? IoLimit
Field Value
Type Description
System.Nullable<System.Int32>
View Source

IoReservation

The I/O reservation (guarantee) that this disk has, in IOPS. The default is no reservation.

Declaration
public readonly int? IoReservation
Field Value
Type Description
System.Nullable<System.Int32>
View Source

IoShareCount

The share count for this disk when the share level is custom.

Declaration
public readonly int? IoShareCount
Field Value
Type Description
System.Nullable<System.Int32>
View Source

IoShareLevel

The share allocation level for this disk. Can be one of low, normal, high, or custom. Default: normal.

Declaration
public readonly string IoShareLevel
Field Value
Type Description
System.String
View Source

KeepOnRemove

Keep this disk when removing the device or destroying the virtual machine. Default: false.

Declaration
public readonly bool? KeepOnRemove
Field Value
Type Description
System.Nullable<System.Boolean>
View Source

Key

The ID of the device within the virtual machine.

Declaration
public readonly int? Key
Field Value
Type Description
System.Nullable<System.Int32>
View Source

Label

A label for the disk. Forces a new disk if changed.

Declaration
public readonly string Label
Field Value
Type Description
System.String
View Source

Name

An alias for both label and path, the latter when using attach. Required if not using label.

Declaration
public readonly string Name
Field Value
Type Description
System.String
View Source

Path

The path to the ISO file. Required for using a datastore ISO. Conflicts with client_device.

Declaration
public readonly string Path
Field Value
Type Description
System.String
View Source

Size

The size of the disk, in GB.

Declaration
public readonly int? Size
Field Value
Type Description
System.Nullable<System.Int32>
View Source

StoragePolicyId

The UUID of the storage policy to assign to this disk.

Declaration
public readonly string StoragePolicyId
Field Value
Type Description
System.String
View Source

ThinProvisioned

If true, this disk is thin provisioned, with space for the file being allocated on an as-needed basis. Cannot be set to true when eagerly_scrub is true. See the section on picking a disk type. Default: true.

Declaration
public readonly bool? ThinProvisioned
Field Value
Type Description
System.Nullable<System.Boolean>
View Source

UnitNumber

The disk number on the SCSI bus. The maximum value for this setting is the value of scsi_controller_count times 15, minus 1 (so 14, 29, 44, and 59, for 1-4 controllers respectively). The default is 0, for which one disk must be set to. Duplicate unit numbers are not allowed.

Declaration
public readonly int? UnitNumber
Field Value
Type Description
System.Nullable<System.Int32>
View Source

Uuid

The UUID of the virtual disk's VMDK file. This is used to track the virtual disk on the virtual machine.

Declaration
public readonly string Uuid
Field Value
Type Description
System.String
View Source

WriteThrough

If true, writes for this disk are sent directly to the filesystem immediately instead of being buffered. Default: false.

Declaration
public readonly bool? WriteThrough
Field Value
Type Description
System.Nullable<System.Boolean>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.