Show / Hide Table of Contents

Class VirtualMachineDiskArgs

Inheritance
System.Object
InputArgs
ResourceArgs
VirtualMachineDiskArgs
Inherited Members
ResourceArgs.Empty
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.Inputs
Assembly: Pulumi.VSphere.dll
Syntax
public sealed class VirtualMachineDiskArgs : ResourceArgs

Constructors

View Source

VirtualMachineDiskArgs()

Declaration
public VirtualMachineDiskArgs()

Properties

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 Input<bool> Attach { get; set; }
Property Value
Type Description
Input<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 Input<string> DatastoreId { get; set; }
Property Value
Type Description
Input<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 Input<string> DeviceAddress { get; set; }
Property Value
Type Description
Input<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 Input<string> DiskMode { get; set; }
Property Value
Type Description
Input<System.String>
View Source

DiskSharing

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

Declaration
public Input<string> DiskSharing { get; set; }
Property Value
Type Description
Input<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 Input<bool> EagerlyScrub { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

IoLimit

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

Declaration
public Input<int> IoLimit { get; set; }
Property Value
Type Description
Input<System.Int32>
View Source

IoReservation

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

Declaration
public Input<int> IoReservation { get; set; }
Property Value
Type Description
Input<System.Int32>
View Source

IoShareCount

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

Declaration
public Input<int> IoShareCount { get; set; }
Property Value
Type Description
Input<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 Input<string> IoShareLevel { get; set; }
Property Value
Type Description
Input<System.String>
View Source

KeepOnRemove

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

Declaration
public Input<bool> KeepOnRemove { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

Key

The ID of the device within the virtual machine.

Declaration
public Input<int> Key { get; set; }
Property Value
Type Description
Input<System.Int32>
View Source

Label

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

Declaration
public Input<string> Label { get; set; }
Property Value
Type Description
Input<System.String>
View Source

Name

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

Declaration
public Input<string> Name { get; set; }
Property Value
Type Description
Input<System.String>
View Source

Path

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

Declaration
public Input<string> Path { get; set; }
Property Value
Type Description
Input<System.String>
View Source

Size

The size of the disk, in GB.

Declaration
public Input<int> Size { get; set; }
Property Value
Type Description
Input<System.Int32>
View Source

StoragePolicyId

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

Declaration
public Input<string> StoragePolicyId { get; set; }
Property Value
Type Description
Input<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 Input<bool> ThinProvisioned { get; set; }
Property Value
Type Description
Input<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 Input<int> UnitNumber { get; set; }
Property Value
Type Description
Input<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 Input<string> Uuid { get; set; }
Property Value
Type Description
Input<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 Input<bool> WriteThrough { get; set; }
Property Value
Type Description
Input<System.Boolean>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.