Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getVirtualMachine

The vsphere.VirtualMachine data source can be used to find the UUID of an existing virtual machine or template. Its most relevant purpose is for finding the UUID of a template to be used as the source for cloning into a new vsphere.VirtualMachine resource. It also reads the guest ID so that can be supplied as well.

Example Usage

using Pulumi;
using VSphere = Pulumi.VSphere;

class MyStack : Stack
{
    public MyStack()
    {
        var datacenter = Output.Create(VSphere.GetDatacenter.InvokeAsync(new VSphere.GetDatacenterArgs
        {
            Name = "dc1",
        }));
        var template = datacenter.Apply(datacenter => Output.Create(VSphere.GetVirtualMachine.InvokeAsync(new VSphere.GetVirtualMachineArgs
        {
            DatacenterId = datacenter.Id,
            Name = "test-vm-template",
        })));
    }

}
package main

import (
    "github.com/pulumi/pulumi-vsphere/sdk/v2/go/vsphere"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        opt0 := "dc1"
        datacenter, err := vsphere.LookupDatacenter(ctx, &vsphere.LookupDatacenterArgs{
            Name: &opt0,
        }, nil)
        if err != nil {
            return err
        }
        opt1 := datacenter.Id
        _, err = vsphere.LookupVirtualMachine(ctx, &vsphere.LookupVirtualMachineArgs{
            DatacenterId: &opt1,
            Name:         "test-vm-template",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_vsphere as vsphere

datacenter = vsphere.get_datacenter(name="dc1")
template = vsphere.get_virtual_machine(datacenter_id=datacenter.id,
    name="test-vm-template")
import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";

const datacenter = pulumi.output(vsphere.getDatacenter({
    name: "dc1",
}, { async: true }));
const template = datacenter.apply(datacenter => vsphere.getVirtualMachine({
    datacenterId: datacenter.id,
    name: "test-vm-template",
}, { async: true }));

Using getVirtualMachine

function getVirtualMachine(args: GetVirtualMachineArgs, opts?: InvokeOptions): Promise<GetVirtualMachineResult>
def get_virtual_machine(alternate_guest_name: Optional[str] = None, annotation: Optional[str] = None, boot_delay: Optional[int] = None, boot_retry_delay: Optional[int] = None, boot_retry_enabled: Optional[bool] = None, cpu_hot_add_enabled: Optional[bool] = None, cpu_hot_remove_enabled: Optional[bool] = None, cpu_limit: Optional[int] = None, cpu_performance_counters_enabled: Optional[bool] = None, cpu_reservation: Optional[int] = None, cpu_share_count: Optional[int] = None, cpu_share_level: Optional[str] = None, datacenter_id: Optional[str] = None, efi_secure_boot_enabled: Optional[bool] = None, enable_disk_uuid: Optional[bool] = None, enable_logging: Optional[bool] = None, ept_rvi_mode: Optional[str] = None, extra_config: Optional[Mapping[str, str]] = None, firmware: Optional[str] = None, guest_id: Optional[str] = None, hardware_version: Optional[int] = None, hv_mode: Optional[str] = None, ide_controller_scan_count: Optional[int] = None, latency_sensitivity: Optional[str] = None, memory: Optional[int] = None, memory_hot_add_enabled: Optional[bool] = None, memory_limit: Optional[int] = None, memory_reservation: Optional[int] = None, memory_share_count: Optional[int] = None, memory_share_level: Optional[str] = None, name: Optional[str] = None, nested_hv_enabled: Optional[bool] = None, num_cores_per_socket: Optional[int] = None, num_cpus: Optional[int] = None, run_tools_scripts_after_power_on: Optional[bool] = None, run_tools_scripts_after_resume: Optional[bool] = None, run_tools_scripts_before_guest_reboot: Optional[bool] = None, run_tools_scripts_before_guest_shutdown: Optional[bool] = None, run_tools_scripts_before_guest_standby: Optional[bool] = None, sata_controller_scan_count: Optional[int] = None, scsi_controller_scan_count: Optional[int] = None, storage_policy_id: Optional[str] = None, swap_placement_policy: Optional[str] = None, sync_time_with_host: Optional[bool] = None, vapp: Optional[GetVirtualMachineVappArgs] = None, opts: Optional[InvokeOptions] = None) -> GetVirtualMachineResult
func LookupVirtualMachine(ctx *Context, args *LookupVirtualMachineArgs, opts ...InvokeOption) (*LookupVirtualMachineResult, error)

Note: This function is named LookupVirtualMachine in the Go SDK.

public static class GetVirtualMachine {
    public static Task<GetVirtualMachineResult> InvokeAsync(GetVirtualMachineArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the virtual machine. This can be a name or path.

AlternateGuestName string

The alternate guest name of the virtual machine when guest_id is a non-specific operating system, like otherGuest.

Annotation string

The user-provided description of this virtual machine.

BootDelay int
BootRetryDelay int
BootRetryEnabled bool
CpuHotAddEnabled bool
CpuHotRemoveEnabled bool
CpuLimit int
CpuPerformanceCountersEnabled bool
CpuReservation int
CpuShareCount int
CpuShareLevel string
DatacenterId string

The managed object reference ID of the datacenter the virtual machine is located in. This can be omitted if the search path used in name is an absolute path. For default datacenters, use the id attribute from an empty vsphere.Datacenter data source.

EfiSecureBootEnabled bool
EnableDiskUuid bool
EnableLogging bool
EptRviMode string
ExtraConfig Dictionary<string, string>
Firmware string

The firmware type for this virtual machine. Can be bios or efi.

GuestId string

The guest ID of the virtual machine or template.

HardwareVersion int

The hardware version number on this virtual machine.

HvMode string
IdeControllerScanCount int
LatencySensitivity string
Memory int

The size of the virtual machine’s memory, in MB.

MemoryHotAddEnabled bool
MemoryLimit int
MemoryReservation int
MemoryShareCount int
MemoryShareLevel string
NestedHvEnabled bool
NumCoresPerSocket int

The number of cores per socket for this virtual machine.

NumCpus int

The total number of virtual processor cores assigned to this virtual machine.

RunToolsScriptsAfterPowerOn bool
RunToolsScriptsAfterResume bool
RunToolsScriptsBeforeGuestReboot bool
RunToolsScriptsBeforeGuestShutdown bool
RunToolsScriptsBeforeGuestStandby bool
SataControllerScanCount int
ScsiControllerScanCount int

The number of SCSI controllers to scan for disk attributes and controller types on. Default: 1.

StoragePolicyId string
SwapPlacementPolicy string
SyncTimeWithHost bool
Vapp Pulumi.VSphere.Inputs.GetVirtualMachineVappArgs
Name string

The name of the virtual machine. This can be a name or path.

AlternateGuestName string

The alternate guest name of the virtual machine when guest_id is a non-specific operating system, like otherGuest.

Annotation string

The user-provided description of this virtual machine.

BootDelay int
BootRetryDelay int
BootRetryEnabled bool
CpuHotAddEnabled bool
CpuHotRemoveEnabled bool
CpuLimit int
CpuPerformanceCountersEnabled bool
CpuReservation int
CpuShareCount int
CpuShareLevel string
DatacenterId string

The managed object reference ID of the datacenter the virtual machine is located in. This can be omitted if the search path used in name is an absolute path. For default datacenters, use the id attribute from an empty vsphere.Datacenter data source.

EfiSecureBootEnabled bool
EnableDiskUuid bool
EnableLogging bool
EptRviMode string
ExtraConfig map[string]string
Firmware string

The firmware type for this virtual machine. Can be bios or efi.

GuestId string

The guest ID of the virtual machine or template.

HardwareVersion int

The hardware version number on this virtual machine.

HvMode string
IdeControllerScanCount int
LatencySensitivity string
Memory int

The size of the virtual machine’s memory, in MB.

MemoryHotAddEnabled bool
MemoryLimit int
MemoryReservation int
MemoryShareCount int
MemoryShareLevel string
NestedHvEnabled bool
NumCoresPerSocket int

The number of cores per socket for this virtual machine.

NumCpus int

The total number of virtual processor cores assigned to this virtual machine.

RunToolsScriptsAfterPowerOn bool
RunToolsScriptsAfterResume bool
RunToolsScriptsBeforeGuestReboot bool
RunToolsScriptsBeforeGuestShutdown bool
RunToolsScriptsBeforeGuestStandby bool
SataControllerScanCount int
ScsiControllerScanCount int

The number of SCSI controllers to scan for disk attributes and controller types on. Default: 1.

StoragePolicyId string
SwapPlacementPolicy string
SyncTimeWithHost bool
Vapp GetVirtualMachineVapp
name string

The name of the virtual machine. This can be a name or path.

alternateGuestName string

The alternate guest name of the virtual machine when guest_id is a non-specific operating system, like otherGuest.

annotation string

The user-provided description of this virtual machine.

bootDelay number
bootRetryDelay number
bootRetryEnabled boolean
cpuHotAddEnabled boolean
cpuHotRemoveEnabled boolean
cpuLimit number
cpuPerformanceCountersEnabled boolean
cpuReservation number
cpuShareCount number
cpuShareLevel string
datacenterId string

The managed object reference ID of the datacenter the virtual machine is located in. This can be omitted if the search path used in name is an absolute path. For default datacenters, use the id attribute from an empty vsphere.Datacenter data source.

efiSecureBootEnabled boolean
enableDiskUuid boolean
enableLogging boolean
eptRviMode string
extraConfig {[key: string]: string}
firmware string

The firmware type for this virtual machine. Can be bios or efi.

guestId string

The guest ID of the virtual machine or template.

hardwareVersion number

The hardware version number on this virtual machine.

hvMode string
ideControllerScanCount number
latencySensitivity string
memory number

The size of the virtual machine’s memory, in MB.

memoryHotAddEnabled boolean
memoryLimit number
memoryReservation number
memoryShareCount number
memoryShareLevel string
nestedHvEnabled boolean
numCoresPerSocket number

The number of cores per socket for this virtual machine.

numCpus number

The total number of virtual processor cores assigned to this virtual machine.

runToolsScriptsAfterPowerOn boolean
runToolsScriptsAfterResume boolean
runToolsScriptsBeforeGuestReboot boolean
runToolsScriptsBeforeGuestShutdown boolean
runToolsScriptsBeforeGuestStandby boolean
sataControllerScanCount number
scsiControllerScanCount number

The number of SCSI controllers to scan for disk attributes and controller types on. Default: 1.

storagePolicyId string
swapPlacementPolicy string
syncTimeWithHost boolean
vapp GetVirtualMachineVapp
name str

The name of the virtual machine. This can be a name or path.

alternate_guest_name str

The alternate guest name of the virtual machine when guest_id is a non-specific operating system, like otherGuest.

annotation str

The user-provided description of this virtual machine.

boot_delay int
boot_retry_delay int
boot_retry_enabled bool
cpu_hot_add_enabled bool
cpu_hot_remove_enabled bool
cpu_limit int
cpu_performance_counters_enabled bool
cpu_reservation int
cpu_share_count int
cpu_share_level str
datacenter_id str

The managed object reference ID of the datacenter the virtual machine is located in. This can be omitted if the search path used in name is an absolute path. For default datacenters, use the id attribute from an empty vsphere.Datacenter data source.

efi_secure_boot_enabled bool
enable_disk_uuid bool
enable_logging bool
ept_rvi_mode str
extra_config Mapping[str, str]
firmware str

The firmware type for this virtual machine. Can be bios or efi.

guest_id str

The guest ID of the virtual machine or template.

hardware_version int

The hardware version number on this virtual machine.

hv_mode str
ide_controller_scan_count int
latency_sensitivity str
memory int

The size of the virtual machine’s memory, in MB.

memory_hot_add_enabled bool
memory_limit int
memory_reservation int
memory_share_count int
memory_share_level str
nested_hv_enabled bool
num_cores_per_socket int

The number of cores per socket for this virtual machine.

num_cpus int

The total number of virtual processor cores assigned to this virtual machine.

run_tools_scripts_after_power_on bool
run_tools_scripts_after_resume bool
run_tools_scripts_before_guest_reboot bool
run_tools_scripts_before_guest_shutdown bool
run_tools_scripts_before_guest_standby bool
sata_controller_scan_count int
scsi_controller_scan_count int

The number of SCSI controllers to scan for disk attributes and controller types on. Default: 1.

storage_policy_id str
swap_placement_policy str
sync_time_with_host bool
vapp GetVirtualMachineVappArgs

getVirtualMachine Result

The following output properties are available:

ChangeVersion string
CpuShareCount int
Disks List<Pulumi.VSphere.Outputs.GetVirtualMachineDisk>

Information about each of the disks on this virtual machine or template. These are sorted by bus and unit number so that they can be applied to a vsphere.VirtualMachine resource in the order the resource expects while cloning. This is useful for discovering certain disk settings while performing a linked clone, as all settings that are output by this data source must be the same on the destination virtual machine as the source. Only the first number of controllers defined by scsi_controller_scan_count are scanned for disks. The sub-attributes are:

GuestId string

The guest ID of the virtual machine or template.

GuestIpAddresses List<string>

A list of IP addresses as reported by VMWare tools.

HardwareVersion int

The hardware version number on this virtual machine.

Id string

The provider-assigned unique ID for this managed resource.

MemoryShareCount int
Name string
NetworkInterfaceTypes List<string>

The network interface types for each network interface found on the virtual machine, in device bus order. Will be one of e1000, e1000e, pcnet32, sriov, vmxnet2, or vmxnet3.

ScsiBusSharing string

Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing. Only the first number of controllers defined by scsi_controller_scan_count are scanned.

ScsiType string

The common type of all SCSI controllers on this virtual machine. Will be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS), pvscsi (VMware Paravirtual), buslogic (BusLogic), or mixed when there are multiple controller types. Only the first number of controllers defined by scsi_controller_scan_count are scanned.

StoragePolicyId string
Uuid string
VappTransports List<string>
AlternateGuestName string

The alternate guest name of the virtual machine when guest_id is a non-specific operating system, like otherGuest.

Annotation string

The user-provided description of this virtual machine.

BootDelay int
BootRetryDelay int
BootRetryEnabled bool
CpuHotAddEnabled bool
CpuHotRemoveEnabled bool
CpuLimit int
CpuPerformanceCountersEnabled bool
CpuReservation int
CpuShareLevel string
DatacenterId string
EfiSecureBootEnabled bool
EnableDiskUuid bool
EnableLogging bool
EptRviMode string
ExtraConfig Dictionary<string, string>
Firmware string

The firmware type for this virtual machine. Can be bios or efi.

HvMode string
IdeControllerScanCount int
LatencySensitivity string
Memory int

The size of the virtual machine’s memory, in MB.

MemoryHotAddEnabled bool
MemoryLimit int
MemoryReservation int
MemoryShareLevel string
NestedHvEnabled bool
NumCoresPerSocket int

The number of cores per socket for this virtual machine.

NumCpus int

The total number of virtual processor cores assigned to this virtual machine.

RunToolsScriptsAfterPowerOn bool
RunToolsScriptsAfterResume bool
RunToolsScriptsBeforeGuestReboot bool
RunToolsScriptsBeforeGuestShutdown bool
RunToolsScriptsBeforeGuestStandby bool
SataControllerScanCount int
ScsiControllerScanCount int
SwapPlacementPolicy string
SyncTimeWithHost bool
Vapp Pulumi.VSphere.Outputs.GetVirtualMachineVapp
ChangeVersion string
CpuShareCount int
Disks []GetVirtualMachineDisk

Information about each of the disks on this virtual machine or template. These are sorted by bus and unit number so that they can be applied to a vsphere.VirtualMachine resource in the order the resource expects while cloning. This is useful for discovering certain disk settings while performing a linked clone, as all settings that are output by this data source must be the same on the destination virtual machine as the source. Only the first number of controllers defined by scsi_controller_scan_count are scanned for disks. The sub-attributes are:

GuestId string

The guest ID of the virtual machine or template.

GuestIpAddresses []string

A list of IP addresses as reported by VMWare tools.

HardwareVersion int

The hardware version number on this virtual machine.

Id string

The provider-assigned unique ID for this managed resource.

MemoryShareCount int
Name string
NetworkInterfaceTypes []string

The network interface types for each network interface found on the virtual machine, in device bus order. Will be one of e1000, e1000e, pcnet32, sriov, vmxnet2, or vmxnet3.

ScsiBusSharing string

Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing. Only the first number of controllers defined by scsi_controller_scan_count are scanned.

ScsiType string

The common type of all SCSI controllers on this virtual machine. Will be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS), pvscsi (VMware Paravirtual), buslogic (BusLogic), or mixed when there are multiple controller types. Only the first number of controllers defined by scsi_controller_scan_count are scanned.

StoragePolicyId string
Uuid string
VappTransports []string
AlternateGuestName string

The alternate guest name of the virtual machine when guest_id is a non-specific operating system, like otherGuest.

Annotation string

The user-provided description of this virtual machine.

BootDelay int
BootRetryDelay int
BootRetryEnabled bool
CpuHotAddEnabled bool
CpuHotRemoveEnabled bool
CpuLimit int
CpuPerformanceCountersEnabled bool
CpuReservation int
CpuShareLevel string
DatacenterId string
EfiSecureBootEnabled bool
EnableDiskUuid bool
EnableLogging bool
EptRviMode string
ExtraConfig map[string]string
Firmware string

The firmware type for this virtual machine. Can be bios or efi.

HvMode string
IdeControllerScanCount int
LatencySensitivity string
Memory int

The size of the virtual machine’s memory, in MB.

MemoryHotAddEnabled bool
MemoryLimit int
MemoryReservation int
MemoryShareLevel string
NestedHvEnabled bool
NumCoresPerSocket int

The number of cores per socket for this virtual machine.

NumCpus int

The total number of virtual processor cores assigned to this virtual machine.

RunToolsScriptsAfterPowerOn bool
RunToolsScriptsAfterResume bool
RunToolsScriptsBeforeGuestReboot bool
RunToolsScriptsBeforeGuestShutdown bool
RunToolsScriptsBeforeGuestStandby bool
SataControllerScanCount int
ScsiControllerScanCount int
SwapPlacementPolicy string
SyncTimeWithHost bool
Vapp GetVirtualMachineVapp
changeVersion string
cpuShareCount number
disks GetVirtualMachineDisk[]

Information about each of the disks on this virtual machine or template. These are sorted by bus and unit number so that they can be applied to a vsphere.VirtualMachine resource in the order the resource expects while cloning. This is useful for discovering certain disk settings while performing a linked clone, as all settings that are output by this data source must be the same on the destination virtual machine as the source. Only the first number of controllers defined by scsi_controller_scan_count are scanned for disks. The sub-attributes are:

guestId string

The guest ID of the virtual machine or template.

guestIpAddresses string[]

A list of IP addresses as reported by VMWare tools.

hardwareVersion number

The hardware version number on this virtual machine.

id string

The provider-assigned unique ID for this managed resource.

memoryShareCount number
name string
networkInterfaceTypes string[]

The network interface types for each network interface found on the virtual machine, in device bus order. Will be one of e1000, e1000e, pcnet32, sriov, vmxnet2, or vmxnet3.

scsiBusSharing string

Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing. Only the first number of controllers defined by scsi_controller_scan_count are scanned.

scsiType string

The common type of all SCSI controllers on this virtual machine. Will be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS), pvscsi (VMware Paravirtual), buslogic (BusLogic), or mixed when there are multiple controller types. Only the first number of controllers defined by scsi_controller_scan_count are scanned.

storagePolicyId string
uuid string
vappTransports string[]
alternateGuestName string

The alternate guest name of the virtual machine when guest_id is a non-specific operating system, like otherGuest.

annotation string

The user-provided description of this virtual machine.

bootDelay number
bootRetryDelay number
bootRetryEnabled boolean
cpuHotAddEnabled boolean
cpuHotRemoveEnabled boolean
cpuLimit number
cpuPerformanceCountersEnabled boolean
cpuReservation number
cpuShareLevel string
datacenterId string
efiSecureBootEnabled boolean
enableDiskUuid boolean
enableLogging boolean
eptRviMode string
extraConfig {[key: string]: string}
firmware string

The firmware type for this virtual machine. Can be bios or efi.

hvMode string
ideControllerScanCount number
latencySensitivity string
memory number

The size of the virtual machine’s memory, in MB.

memoryHotAddEnabled boolean
memoryLimit number
memoryReservation number
memoryShareLevel string
nestedHvEnabled boolean
numCoresPerSocket number

The number of cores per socket for this virtual machine.

numCpus number

The total number of virtual processor cores assigned to this virtual machine.

runToolsScriptsAfterPowerOn boolean
runToolsScriptsAfterResume boolean
runToolsScriptsBeforeGuestReboot boolean
runToolsScriptsBeforeGuestShutdown boolean
runToolsScriptsBeforeGuestStandby boolean
sataControllerScanCount number
scsiControllerScanCount number
swapPlacementPolicy string
syncTimeWithHost boolean
vapp GetVirtualMachineVapp
change_version str
cpu_share_count int
disks Sequence[GetVirtualMachineDisk]

Information about each of the disks on this virtual machine or template. These are sorted by bus and unit number so that they can be applied to a vsphere.VirtualMachine resource in the order the resource expects while cloning. This is useful for discovering certain disk settings while performing a linked clone, as all settings that are output by this data source must be the same on the destination virtual machine as the source. Only the first number of controllers defined by scsi_controller_scan_count are scanned for disks. The sub-attributes are:

guest_id str

The guest ID of the virtual machine or template.

guest_ip_addresses Sequence[str]

A list of IP addresses as reported by VMWare tools.

hardware_version int

The hardware version number on this virtual machine.

id str

The provider-assigned unique ID for this managed resource.

memory_share_count int
name str
network_interface_types Sequence[str]

The network interface types for each network interface found on the virtual machine, in device bus order. Will be one of e1000, e1000e, pcnet32, sriov, vmxnet2, or vmxnet3.

scsi_bus_sharing str

Mode for sharing the SCSI bus. The modes are physicalSharing, virtualSharing, and noSharing. Only the first number of controllers defined by scsi_controller_scan_count are scanned.

scsi_type str

The common type of all SCSI controllers on this virtual machine. Will be one of lsilogic (LSI Logic Parallel), lsilogic-sas (LSI Logic SAS), pvscsi (VMware Paravirtual), buslogic (BusLogic), or mixed when there are multiple controller types. Only the first number of controllers defined by scsi_controller_scan_count are scanned.

storage_policy_id str
uuid str
vapp_transports Sequence[str]
alternate_guest_name str

The alternate guest name of the virtual machine when guest_id is a non-specific operating system, like otherGuest.

annotation str

The user-provided description of this virtual machine.

boot_delay int
boot_retry_delay int
boot_retry_enabled bool
cpu_hot_add_enabled bool
cpu_hot_remove_enabled bool
cpu_limit int
cpu_performance_counters_enabled bool
cpu_reservation int
cpu_share_level str
datacenter_id str
efi_secure_boot_enabled bool
enable_disk_uuid bool
enable_logging bool
ept_rvi_mode str
extra_config Mapping[str, str]
firmware str

The firmware type for this virtual machine. Can be bios or efi.

hv_mode str
ide_controller_scan_count int
latency_sensitivity str
memory int

The size of the virtual machine’s memory, in MB.

memory_hot_add_enabled bool
memory_limit int
memory_reservation int
memory_share_level str
nested_hv_enabled bool
num_cores_per_socket int

The number of cores per socket for this virtual machine.

num_cpus int

The total number of virtual processor cores assigned to this virtual machine.

run_tools_scripts_after_power_on bool
run_tools_scripts_after_resume bool
run_tools_scripts_before_guest_reboot bool
run_tools_scripts_before_guest_shutdown bool
run_tools_scripts_before_guest_standby bool
sata_controller_scan_count int
scsi_controller_scan_count int
swap_placement_policy str
sync_time_with_host bool
vapp GetVirtualMachineVapp

Supporting Types

GetVirtualMachineDisk

EagerlyScrub bool

Set to true if the disk has been eager zeroed.

Label string

The label for the disk.

Size int

The size of the disk, in GIB.

ThinProvisioned bool

Set to true if the disk has been thin provisioned.

UnitNumber int

The disk number on the storage bus.

EagerlyScrub bool

Set to true if the disk has been eager zeroed.

Label string

The label for the disk.

Size int

The size of the disk, in GIB.

ThinProvisioned bool

Set to true if the disk has been thin provisioned.

UnitNumber int

The disk number on the storage bus.

eagerlyScrub boolean

Set to true if the disk has been eager zeroed.

label string

The label for the disk.

size number

The size of the disk, in GIB.

thinProvisioned boolean

Set to true if the disk has been thin provisioned.

unitNumber number

The disk number on the storage bus.

eagerly_scrub bool

Set to true if the disk has been eager zeroed.

label str

The label for the disk.

size int

The size of the disk, in GIB.

thin_provisioned bool

Set to true if the disk has been thin provisioned.

unit_number int

The disk number on the storage bus.

GetVirtualMachineVapp

Properties Dictionary<string, string>
Properties map[string]string
properties {[key: string]: string}
properties Mapping[str, str]

Package Details

Repository
https://github.com/pulumi/pulumi-vsphere
License
Apache-2.0
Notes
This Pulumi package is based on the vsphere Terraform Provider.