vsphere.getVirtualMachine
Explore with Pulumi AI
The vsphere.VirtualMachine
data source can be used to find the UUID of an
existing virtual machine or template. The most common purpose is for finding
the UUID of a template to be used as the source for cloning to a new
vsphere.VirtualMachine
resource. It also
reads the guest ID so that can be supplied as well.
Example Usage
In the following example, a virtual machine template is returned by its unique
name within the vsphere.Datacenter
.
import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const datacenter = vsphere.getDatacenter({
name: "dc-01",
});
const template = datacenter.then(datacenter => vsphere.getVirtualMachine({
name: "ubuntu-server-template",
datacenterId: datacenter.id,
}));
import pulumi
import pulumi_vsphere as vsphere
datacenter = vsphere.get_datacenter(name="dc-01")
template = vsphere.get_virtual_machine(name="ubuntu-server-template",
datacenter_id=datacenter.id)
package main
import (
"github.com/pulumi/pulumi-vsphere/sdk/v4/go/vsphere"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
datacenter, err := vsphere.LookupDatacenter(ctx, &vsphere.LookupDatacenterArgs{
Name: pulumi.StringRef("dc-01"),
}, nil)
if err != nil {
return err
}
_, err = vsphere.LookupVirtualMachine(ctx, &vsphere.LookupVirtualMachineArgs{
Name: pulumi.StringRef("ubuntu-server-template"),
DatacenterId: pulumi.StringRef(datacenter.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using VSphere = Pulumi.VSphere;
return await Deployment.RunAsync(() =>
{
var datacenter = VSphere.GetDatacenter.Invoke(new()
{
Name = "dc-01",
});
var template = VSphere.GetVirtualMachine.Invoke(new()
{
Name = "ubuntu-server-template",
DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vsphere.VsphereFunctions;
import com.pulumi.vsphere.inputs.GetDatacenterArgs;
import com.pulumi.vsphere.inputs.GetVirtualMachineArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var datacenter = VsphereFunctions.getDatacenter(GetDatacenterArgs.builder()
.name("dc-01")
.build());
final var template = VsphereFunctions.getVirtualMachine(GetVirtualMachineArgs.builder()
.name("ubuntu-server-template")
.datacenterId(datacenter.applyValue(getDatacenterResult -> getDatacenterResult.id()))
.build());
}
}
variables:
datacenter:
fn::invoke:
Function: vsphere:getDatacenter
Arguments:
name: dc-01
template:
fn::invoke:
Function: vsphere:getVirtualMachine
Arguments:
name: ubuntu-server-template
datacenterId: ${datacenter.id}
In the following example, each virtual machine template is returned by its
unique full path within the vsphere.Datacenter
.
import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const datacenter = vsphere.getDatacenter({
name: "dc-01",
});
const productionTemplate = datacenter.then(datacenter => vsphere.getVirtualMachine({
name: "production/templates/ubuntu-server-template",
datacenterId: datacenter.id,
}));
const developmentTemplate = datacenter.then(datacenter => vsphere.getVirtualMachine({
name: "development/templates/ubuntu-server-template",
datacenterId: datacenter.id,
}));
import pulumi
import pulumi_vsphere as vsphere
datacenter = vsphere.get_datacenter(name="dc-01")
production_template = vsphere.get_virtual_machine(name="production/templates/ubuntu-server-template",
datacenter_id=datacenter.id)
development_template = vsphere.get_virtual_machine(name="development/templates/ubuntu-server-template",
datacenter_id=datacenter.id)
package main
import (
"github.com/pulumi/pulumi-vsphere/sdk/v4/go/vsphere"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
datacenter, err := vsphere.LookupDatacenter(ctx, &vsphere.LookupDatacenterArgs{
Name: pulumi.StringRef("dc-01"),
}, nil)
if err != nil {
return err
}
_, err = vsphere.LookupVirtualMachine(ctx, &vsphere.LookupVirtualMachineArgs{
Name: pulumi.StringRef("production/templates/ubuntu-server-template"),
DatacenterId: pulumi.StringRef(datacenter.Id),
}, nil)
if err != nil {
return err
}
_, err = vsphere.LookupVirtualMachine(ctx, &vsphere.LookupVirtualMachineArgs{
Name: pulumi.StringRef("development/templates/ubuntu-server-template"),
DatacenterId: pulumi.StringRef(datacenter.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using VSphere = Pulumi.VSphere;
return await Deployment.RunAsync(() =>
{
var datacenter = VSphere.GetDatacenter.Invoke(new()
{
Name = "dc-01",
});
var productionTemplate = VSphere.GetVirtualMachine.Invoke(new()
{
Name = "production/templates/ubuntu-server-template",
DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id),
});
var developmentTemplate = VSphere.GetVirtualMachine.Invoke(new()
{
Name = "development/templates/ubuntu-server-template",
DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vsphere.VsphereFunctions;
import com.pulumi.vsphere.inputs.GetDatacenterArgs;
import com.pulumi.vsphere.inputs.GetVirtualMachineArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var datacenter = VsphereFunctions.getDatacenter(GetDatacenterArgs.builder()
.name("dc-01")
.build());
final var productionTemplate = VsphereFunctions.getVirtualMachine(GetVirtualMachineArgs.builder()
.name("production/templates/ubuntu-server-template")
.datacenterId(datacenter.applyValue(getDatacenterResult -> getDatacenterResult.id()))
.build());
final var developmentTemplate = VsphereFunctions.getVirtualMachine(GetVirtualMachineArgs.builder()
.name("development/templates/ubuntu-server-template")
.datacenterId(datacenter.applyValue(getDatacenterResult -> getDatacenterResult.id()))
.build());
}
}
variables:
datacenter:
fn::invoke:
Function: vsphere:getDatacenter
Arguments:
name: dc-01
productionTemplate:
fn::invoke:
Function: vsphere:getVirtualMachine
Arguments:
name: production/templates/ubuntu-server-template
datacenterId: ${datacenter.id}
developmentTemplate:
fn::invoke:
Function: vsphere:getVirtualMachine
Arguments:
name: development/templates/ubuntu-server-template
datacenterId: ${datacenter.id}
Using getVirtualMachine
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVirtualMachine(args: GetVirtualMachineArgs, opts?: InvokeOptions): Promise<GetVirtualMachineResult>
function getVirtualMachineOutput(args: GetVirtualMachineOutputArgs, opts?: InvokeOptions): Output<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,
extra_config_reboot_required: Optional[bool] = None,
firmware: Optional[str] = None,
folder: 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_reservation_locked_to_max: Optional[bool] = None,
memory_share_count: Optional[int] = None,
memory_share_level: Optional[str] = None,
moid: 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,
replace_trigger: Optional[str] = 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,
sync_time_with_host_periodically: Optional[bool] = None,
tools_upgrade_policy: Optional[str] = None,
uuid: Optional[str] = None,
vapp: Optional[GetVirtualMachineVapp] = None,
vbs_enabled: Optional[bool] = None,
vvtd_enabled: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetVirtualMachineResult
def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[str]] = None,
annotation: Optional[pulumi.Input[str]] = None,
boot_delay: Optional[pulumi.Input[int]] = None,
boot_retry_delay: Optional[pulumi.Input[int]] = None,
boot_retry_enabled: Optional[pulumi.Input[bool]] = None,
cpu_hot_add_enabled: Optional[pulumi.Input[bool]] = None,
cpu_hot_remove_enabled: Optional[pulumi.Input[bool]] = None,
cpu_limit: Optional[pulumi.Input[int]] = None,
cpu_performance_counters_enabled: Optional[pulumi.Input[bool]] = None,
cpu_reservation: Optional[pulumi.Input[int]] = None,
cpu_share_count: Optional[pulumi.Input[int]] = None,
cpu_share_level: Optional[pulumi.Input[str]] = None,
datacenter_id: Optional[pulumi.Input[str]] = None,
efi_secure_boot_enabled: Optional[pulumi.Input[bool]] = None,
enable_disk_uuid: Optional[pulumi.Input[bool]] = None,
enable_logging: Optional[pulumi.Input[bool]] = None,
ept_rvi_mode: Optional[pulumi.Input[str]] = None,
extra_config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
extra_config_reboot_required: Optional[pulumi.Input[bool]] = None,
firmware: Optional[pulumi.Input[str]] = None,
folder: Optional[pulumi.Input[str]] = None,
guest_id: Optional[pulumi.Input[str]] = None,
hardware_version: Optional[pulumi.Input[int]] = None,
hv_mode: Optional[pulumi.Input[str]] = None,
ide_controller_scan_count: Optional[pulumi.Input[int]] = None,
latency_sensitivity: Optional[pulumi.Input[str]] = None,
memory: Optional[pulumi.Input[int]] = None,
memory_hot_add_enabled: Optional[pulumi.Input[bool]] = None,
memory_limit: Optional[pulumi.Input[int]] = None,
memory_reservation: Optional[pulumi.Input[int]] = None,
memory_reservation_locked_to_max: Optional[pulumi.Input[bool]] = None,
memory_share_count: Optional[pulumi.Input[int]] = None,
memory_share_level: Optional[pulumi.Input[str]] = None,
moid: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
nested_hv_enabled: Optional[pulumi.Input[bool]] = None,
num_cores_per_socket: Optional[pulumi.Input[int]] = None,
num_cpus: Optional[pulumi.Input[int]] = None,
replace_trigger: Optional[pulumi.Input[str]] = None,
run_tools_scripts_after_power_on: Optional[pulumi.Input[bool]] = None,
run_tools_scripts_after_resume: Optional[pulumi.Input[bool]] = None,
run_tools_scripts_before_guest_reboot: Optional[pulumi.Input[bool]] = None,
run_tools_scripts_before_guest_shutdown: Optional[pulumi.Input[bool]] = None,
run_tools_scripts_before_guest_standby: Optional[pulumi.Input[bool]] = None,
sata_controller_scan_count: Optional[pulumi.Input[int]] = None,
scsi_controller_scan_count: Optional[pulumi.Input[int]] = None,
storage_policy_id: Optional[pulumi.Input[str]] = None,
swap_placement_policy: Optional[pulumi.Input[str]] = None,
sync_time_with_host: Optional[pulumi.Input[bool]] = None,
sync_time_with_host_periodically: Optional[pulumi.Input[bool]] = None,
tools_upgrade_policy: Optional[pulumi.Input[str]] = None,
uuid: Optional[pulumi.Input[str]] = None,
vapp: Optional[pulumi.Input[GetVirtualMachineVappArgs]] = None,
vbs_enabled: Optional[pulumi.Input[bool]] = None,
vvtd_enabled: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVirtualMachineResult]
func LookupVirtualMachine(ctx *Context, args *LookupVirtualMachineArgs, opts ...InvokeOption) (*LookupVirtualMachineResult, error)
func LookupVirtualMachineOutput(ctx *Context, args *LookupVirtualMachineOutputArgs, opts ...InvokeOption) LookupVirtualMachineResultOutput
> Note: This function is named LookupVirtualMachine
in the Go SDK.
public static class GetVirtualMachine
{
public static Task<GetVirtualMachineResult> InvokeAsync(GetVirtualMachineArgs args, InvokeOptions? opts = null)
public static Output<GetVirtualMachineResult> Invoke(GetVirtualMachineInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVirtualMachineResult> getVirtualMachine(GetVirtualMachineArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: vsphere:index/getVirtualMachine:getVirtualMachine
arguments:
# arguments dictionary
The following arguments are supported:
- Alternate
Guest stringName - The alternate guest name of the virtual machine when
guest_id
is a non-specific operating system, likeotherGuest
orotherGuest64
. - Annotation string
- The user-provided description of this virtual machine.
- Boot
Delay int - Boot
Retry intDelay - Boot
Retry boolEnabled - Cpu
Hot boolAdd Enabled - Cpu
Hot boolRemove Enabled - Cpu
Limit int - Cpu
Performance boolCounters Enabled - Cpu
Reservation int - int
- string
- Datacenter
Id 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 theid
attribute from an emptyvsphere.Datacenter
data source. - Efi
Secure boolBoot Enabled - Enable
Disk boolUuid - Enable
Logging bool - Ept
Rvi stringMode - Extra
Config Dictionary<string, string> - Extra
Config boolReboot Required - Firmware string
- The firmware type for this virtual machine. Can be
bios
orefi
. - Folder string
- The name of the virtual machine folder where the virtual machine is located. The
name
argument is limited to 80 characters. If thename
argument includes the full path to the virtual machine and exceeds the 80 characters limit, thefolder
folder argument can be used. - Guest
Id string - The guest ID of the virtual machine or template.
- Hardware
Version int - The hardware version number on this virtual machine.
- Hv
Mode string - Ide
Controller intScan Count - Latency
Sensitivity string - Memory int
- The size of the virtual machine's memory, in MB.
- Memory
Hot boolAdd Enabled - Memory
Limit int - Memory
Reservation int - Memory
Reservation boolLocked To Max - int
- string
- Moid string
- Name string
- The name of the virtual machine. This can be a name or the full path relative to the datacenter. This is required if a UUID lookup is not performed.
- Nested
Hv boolEnabled - Num
Cores intPer Socket - 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.
- Replace
Trigger string - Run
Tools boolScripts After Power On - Run
Tools boolScripts After Resume - Run
Tools boolScripts Before Guest Reboot - Run
Tools boolScripts Before Guest Shutdown - Run
Tools boolScripts Before Guest Standby - Sata
Controller intScan Count - Scsi
Controller intScan Count The number of SCSI controllers to scan for disk attributes and controller types on. Default:
1
.NOTE: For best results, ensure that all the disks on any templates you use with this data source reside on the primary controller, and leave this value at the default. See the
vsphere.VirtualMachine
resource documentation for the significance of this setting, specifically the additional requirements and notes for cloning section.- Storage
Policy stringId - Swap
Placement stringPolicy - Sync
Time boolWith Host - Sync
Time boolWith Host Periodically - Tools
Upgrade stringPolicy - Uuid string
- Specify this field for a UUID lookup,
name
anddatacenter_id
are not required if this is specified. - Vapp
Pulumi.
VSphere. Inputs. Get Virtual Machine Vapp - Vbs
Enabled bool - Vvtd
Enabled bool
- Alternate
Guest stringName - The alternate guest name of the virtual machine when
guest_id
is a non-specific operating system, likeotherGuest
orotherGuest64
. - Annotation string
- The user-provided description of this virtual machine.
- Boot
Delay int - Boot
Retry intDelay - Boot
Retry boolEnabled - Cpu
Hot boolAdd Enabled - Cpu
Hot boolRemove Enabled - Cpu
Limit int - Cpu
Performance boolCounters Enabled - Cpu
Reservation int - int
- string
- Datacenter
Id 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 theid
attribute from an emptyvsphere.Datacenter
data source. - Efi
Secure boolBoot Enabled - Enable
Disk boolUuid - Enable
Logging bool - Ept
Rvi stringMode - Extra
Config map[string]string - Extra
Config boolReboot Required - Firmware string
- The firmware type for this virtual machine. Can be
bios
orefi
. - Folder string
- The name of the virtual machine folder where the virtual machine is located. The
name
argument is limited to 80 characters. If thename
argument includes the full path to the virtual machine and exceeds the 80 characters limit, thefolder
folder argument can be used. - Guest
Id string - The guest ID of the virtual machine or template.
- Hardware
Version int - The hardware version number on this virtual machine.
- Hv
Mode string - Ide
Controller intScan Count - Latency
Sensitivity string - Memory int
- The size of the virtual machine's memory, in MB.
- Memory
Hot boolAdd Enabled - Memory
Limit int - Memory
Reservation int - Memory
Reservation boolLocked To Max - int
- string
- Moid string
- Name string
- The name of the virtual machine. This can be a name or the full path relative to the datacenter. This is required if a UUID lookup is not performed.
- Nested
Hv boolEnabled - Num
Cores intPer Socket - 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.
- Replace
Trigger string - Run
Tools boolScripts After Power On - Run
Tools boolScripts After Resume - Run
Tools boolScripts Before Guest Reboot - Run
Tools boolScripts Before Guest Shutdown - Run
Tools boolScripts Before Guest Standby - Sata
Controller intScan Count - Scsi
Controller intScan Count The number of SCSI controllers to scan for disk attributes and controller types on. Default:
1
.NOTE: For best results, ensure that all the disks on any templates you use with this data source reside on the primary controller, and leave this value at the default. See the
vsphere.VirtualMachine
resource documentation for the significance of this setting, specifically the additional requirements and notes for cloning section.- Storage
Policy stringId - Swap
Placement stringPolicy - Sync
Time boolWith Host - Sync
Time boolWith Host Periodically - Tools
Upgrade stringPolicy - Uuid string
- Specify this field for a UUID lookup,
name
anddatacenter_id
are not required if this is specified. - Vapp
Get
Virtual Machine Vapp - Vbs
Enabled bool - Vvtd
Enabled bool
- alternate
Guest StringName - The alternate guest name of the virtual machine when
guest_id
is a non-specific operating system, likeotherGuest
orotherGuest64
. - annotation String
- The user-provided description of this virtual machine.
- boot
Delay Integer - boot
Retry IntegerDelay - boot
Retry BooleanEnabled - cpu
Hot BooleanAdd Enabled - cpu
Hot BooleanRemove Enabled - cpu
Limit Integer - cpu
Performance BooleanCounters Enabled - cpu
Reservation Integer - Integer
- String
- datacenter
Id 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 theid
attribute from an emptyvsphere.Datacenter
data source. - efi
Secure BooleanBoot Enabled - enable
Disk BooleanUuid - enable
Logging Boolean - ept
Rvi StringMode - extra
Config Map<String,String> - extra
Config BooleanReboot Required - firmware String
- The firmware type for this virtual machine. Can be
bios
orefi
. - folder String
- The name of the virtual machine folder where the virtual machine is located. The
name
argument is limited to 80 characters. If thename
argument includes the full path to the virtual machine and exceeds the 80 characters limit, thefolder
folder argument can be used. - guest
Id String - The guest ID of the virtual machine or template.
- hardware
Version Integer - The hardware version number on this virtual machine.
- hv
Mode String - ide
Controller IntegerScan Count - latency
Sensitivity String - memory Integer
- The size of the virtual machine's memory, in MB.
- memory
Hot BooleanAdd Enabled - memory
Limit Integer - memory
Reservation Integer - memory
Reservation BooleanLocked To Max - Integer
- String
- moid String
- name String
- The name of the virtual machine. This can be a name or the full path relative to the datacenter. This is required if a UUID lookup is not performed.
- nested
Hv BooleanEnabled - num
Cores IntegerPer Socket - The number of cores per socket for this virtual machine.
- num
Cpus Integer - The total number of virtual processor cores assigned to this virtual machine.
- replace
Trigger String - run
Tools BooleanScripts After Power On - run
Tools BooleanScripts After Resume - run
Tools BooleanScripts Before Guest Reboot - run
Tools BooleanScripts Before Guest Shutdown - run
Tools BooleanScripts Before Guest Standby - sata
Controller IntegerScan Count - scsi
Controller IntegerScan Count The number of SCSI controllers to scan for disk attributes and controller types on. Default:
1
.NOTE: For best results, ensure that all the disks on any templates you use with this data source reside on the primary controller, and leave this value at the default. See the
vsphere.VirtualMachine
resource documentation for the significance of this setting, specifically the additional requirements and notes for cloning section.- storage
Policy StringId - swap
Placement StringPolicy - sync
Time BooleanWith Host - sync
Time BooleanWith Host Periodically - tools
Upgrade StringPolicy - uuid String
- Specify this field for a UUID lookup,
name
anddatacenter_id
are not required if this is specified. - vapp
Get
Virtual Machine Vapp - vbs
Enabled Boolean - vvtd
Enabled Boolean
- alternate
Guest stringName - The alternate guest name of the virtual machine when
guest_id
is a non-specific operating system, likeotherGuest
orotherGuest64
. - annotation string
- The user-provided description of this virtual machine.
- boot
Delay number - boot
Retry numberDelay - boot
Retry booleanEnabled - cpu
Hot booleanAdd Enabled - cpu
Hot booleanRemove Enabled - cpu
Limit number - cpu
Performance booleanCounters Enabled - cpu
Reservation number - number
- string
- datacenter
Id 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 theid
attribute from an emptyvsphere.Datacenter
data source. - efi
Secure booleanBoot Enabled - enable
Disk booleanUuid - enable
Logging boolean - ept
Rvi stringMode - extra
Config {[key: string]: string} - extra
Config booleanReboot Required - firmware string
- The firmware type for this virtual machine. Can be
bios
orefi
. - folder string
- The name of the virtual machine folder where the virtual machine is located. The
name
argument is limited to 80 characters. If thename
argument includes the full path to the virtual machine and exceeds the 80 characters limit, thefolder
folder argument can be used. - guest
Id string - The guest ID of the virtual machine or template.
- hardware
Version number - The hardware version number on this virtual machine.
- hv
Mode string - ide
Controller numberScan Count - latency
Sensitivity string - memory number
- The size of the virtual machine's memory, in MB.
- memory
Hot booleanAdd Enabled - memory
Limit number - memory
Reservation number - memory
Reservation booleanLocked To Max - number
- string
- moid string
- name string
- The name of the virtual machine. This can be a name or the full path relative to the datacenter. This is required if a UUID lookup is not performed.
- nested
Hv booleanEnabled - num
Cores numberPer Socket - The number of cores per socket for this virtual machine.
- num
Cpus number - The total number of virtual processor cores assigned to this virtual machine.
- replace
Trigger string - run
Tools booleanScripts After Power On - run
Tools booleanScripts After Resume - run
Tools booleanScripts Before Guest Reboot - run
Tools booleanScripts Before Guest Shutdown - run
Tools booleanScripts Before Guest Standby - sata
Controller numberScan Count - scsi
Controller numberScan Count The number of SCSI controllers to scan for disk attributes and controller types on. Default:
1
.NOTE: For best results, ensure that all the disks on any templates you use with this data source reside on the primary controller, and leave this value at the default. See the
vsphere.VirtualMachine
resource documentation for the significance of this setting, specifically the additional requirements and notes for cloning section.- storage
Policy stringId - swap
Placement stringPolicy - sync
Time booleanWith Host - sync
Time booleanWith Host Periodically - tools
Upgrade stringPolicy - uuid string
- Specify this field for a UUID lookup,
name
anddatacenter_id
are not required if this is specified. - vapp
Get
Virtual Machine Vapp - vbs
Enabled boolean - vvtd
Enabled boolean
- alternate_
guest_ strname - The alternate guest name of the virtual machine when
guest_id
is a non-specific operating system, likeotherGuest
orotherGuest64
. - annotation str
- The user-provided description of this virtual machine.
- boot_
delay int - boot_
retry_ intdelay - boot_
retry_ boolenabled - cpu_
hot_ booladd_ enabled - cpu_
hot_ boolremove_ enabled - cpu_
limit int - cpu_
performance_ boolcounters_ enabled - cpu_
reservation int - int
- 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 theid
attribute from an emptyvsphere.Datacenter
data source. - efi_
secure_ boolboot_ enabled - enable_
disk_ booluuid - enable_
logging bool - ept_
rvi_ strmode - extra_
config Mapping[str, str] - extra_
config_ boolreboot_ required - firmware str
- The firmware type for this virtual machine. Can be
bios
orefi
. - folder str
- The name of the virtual machine folder where the virtual machine is located. The
name
argument is limited to 80 characters. If thename
argument includes the full path to the virtual machine and exceeds the 80 characters limit, thefolder
folder argument can be used. - 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_ intscan_ count - latency_
sensitivity str - memory int
- The size of the virtual machine's memory, in MB.
- memory_
hot_ booladd_ enabled - memory_
limit int - memory_
reservation int - memory_
reservation_ boollocked_ to_ max - int
- str
- moid str
- name str
- The name of the virtual machine. This can be a name or the full path relative to the datacenter. This is required if a UUID lookup is not performed.
- nested_
hv_ boolenabled - num_
cores_ intper_ socket - 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.
- replace_
trigger str - run_
tools_ boolscripts_ after_ power_ on - run_
tools_ boolscripts_ after_ resume - run_
tools_ boolscripts_ before_ guest_ reboot - run_
tools_ boolscripts_ before_ guest_ shutdown - run_
tools_ boolscripts_ before_ guest_ standby - sata_
controller_ intscan_ count - scsi_
controller_ intscan_ count The number of SCSI controllers to scan for disk attributes and controller types on. Default:
1
.NOTE: For best results, ensure that all the disks on any templates you use with this data source reside on the primary controller, and leave this value at the default. See the
vsphere.VirtualMachine
resource documentation for the significance of this setting, specifically the additional requirements and notes for cloning section.- storage_
policy_ strid - swap_
placement_ strpolicy - sync_
time_ boolwith_ host - sync_
time_ boolwith_ host_ periodically - tools_
upgrade_ strpolicy - uuid str
- Specify this field for a UUID lookup,
name
anddatacenter_id
are not required if this is specified. - vapp
Get
Virtual Machine Vapp - vbs_
enabled bool - vvtd_
enabled bool
- alternate
Guest StringName - The alternate guest name of the virtual machine when
guest_id
is a non-specific operating system, likeotherGuest
orotherGuest64
. - annotation String
- The user-provided description of this virtual machine.
- boot
Delay Number - boot
Retry NumberDelay - boot
Retry BooleanEnabled - cpu
Hot BooleanAdd Enabled - cpu
Hot BooleanRemove Enabled - cpu
Limit Number - cpu
Performance BooleanCounters Enabled - cpu
Reservation Number - Number
- String
- datacenter
Id 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 theid
attribute from an emptyvsphere.Datacenter
data source. - efi
Secure BooleanBoot Enabled - enable
Disk BooleanUuid - enable
Logging Boolean - ept
Rvi StringMode - extra
Config Map<String> - extra
Config BooleanReboot Required - firmware String
- The firmware type for this virtual machine. Can be
bios
orefi
. - folder String
- The name of the virtual machine folder where the virtual machine is located. The
name
argument is limited to 80 characters. If thename
argument includes the full path to the virtual machine and exceeds the 80 characters limit, thefolder
folder argument can be used. - guest
Id String - The guest ID of the virtual machine or template.
- hardware
Version Number - The hardware version number on this virtual machine.
- hv
Mode String - ide
Controller NumberScan Count - latency
Sensitivity String - memory Number
- The size of the virtual machine's memory, in MB.
- memory
Hot BooleanAdd Enabled - memory
Limit Number - memory
Reservation Number - memory
Reservation BooleanLocked To Max - Number
- String
- moid String
- name String
- The name of the virtual machine. This can be a name or the full path relative to the datacenter. This is required if a UUID lookup is not performed.
- nested
Hv BooleanEnabled - num
Cores NumberPer Socket - The number of cores per socket for this virtual machine.
- num
Cpus Number - The total number of virtual processor cores assigned to this virtual machine.
- replace
Trigger String - run
Tools BooleanScripts After Power On - run
Tools BooleanScripts After Resume - run
Tools BooleanScripts Before Guest Reboot - run
Tools BooleanScripts Before Guest Shutdown - run
Tools BooleanScripts Before Guest Standby - sata
Controller NumberScan Count - scsi
Controller NumberScan Count The number of SCSI controllers to scan for disk attributes and controller types on. Default:
1
.NOTE: For best results, ensure that all the disks on any templates you use with this data source reside on the primary controller, and leave this value at the default. See the
vsphere.VirtualMachine
resource documentation for the significance of this setting, specifically the additional requirements and notes for cloning section.- storage
Policy StringId - swap
Placement StringPolicy - sync
Time BooleanWith Host - sync
Time BooleanWith Host Periodically - tools
Upgrade StringPolicy - uuid String
- Specify this field for a UUID lookup,
name
anddatacenter_id
are not required if this is specified. - vapp Property Map
- vbs
Enabled Boolean - vvtd
Enabled Boolean
getVirtualMachine Result
The following output properties are available:
- Annotation string
- The user-provided description of this virtual machine.
- Change
Version string - int
- Default
Ip stringAddress - Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware Tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- Disks
List<Pulumi.
VSphere. Outputs. Get Virtual Machine Disk> - 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 byscsi_controller_scan_count
are scanned for disks. The sub-attributes are: - Ept
Rvi stringMode - Guest
Id string - The guest ID of the virtual machine or template.
- Guest
Ip List<string>Addresses - A list of IP addresses as reported by VMware Tools.
- Hardware
Version int - The hardware version number on this virtual machine.
- Hv
Mode string - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Uuid string - The instance UUID of the virtual machine or template.
- int
- Moid string
- Network
Interface List<string>Types - 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
,vmxnet3vrdma
, orvmxnet3
. - Network
Interfaces List<Pulumi.VSphere. Outputs. Get Virtual Machine Network Interface> - Information about each of the network interfaces on
this virtual machine or template. These are sorted by device bus order 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 network interface 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. The sub-attributes are: - Scsi
Bus stringSharing - 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 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), ormixed
when there are multiple controller types. Only the first number of controllers defined byscsi_controller_scan_count
are scanned. - Storage
Policy stringId - Uuid string
- Vapp
Transports List<string> - Vtpm bool
- Indicates whether a virtual Trusted Platform Module (TPM) device is present on the virtual machine.
- Alternate
Guest stringName - The alternate guest name of the virtual machine when
guest_id
is a non-specific operating system, likeotherGuest
orotherGuest64
. - Boot
Delay int - Boot
Retry intDelay - Boot
Retry boolEnabled - Cpu
Hot boolAdd Enabled - Cpu
Hot boolRemove Enabled - Cpu
Limit int - Cpu
Performance boolCounters Enabled - Cpu
Reservation int - string
- Datacenter
Id string - Efi
Secure boolBoot Enabled - Enable
Disk boolUuid - Enable
Logging bool - Extra
Config Dictionary<string, string> - Extra
Config boolReboot Required - Firmware string
- The firmware type for this virtual machine. Can be
bios
orefi
. - Folder string
- Ide
Controller intScan Count - Latency
Sensitivity string - Memory int
- The size of the virtual machine's memory, in MB.
- Memory
Hot boolAdd Enabled - Memory
Limit int - Memory
Reservation int - Memory
Reservation boolLocked To Max - string
- Name string
- Nested
Hv boolEnabled - Num
Cores intPer Socket - 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.
- Replace
Trigger string - Run
Tools boolScripts After Power On - Run
Tools boolScripts After Resume - Run
Tools boolScripts Before Guest Reboot - Run
Tools boolScripts Before Guest Shutdown - Run
Tools boolScripts Before Guest Standby - Sata
Controller intScan Count - Scsi
Controller intScan Count - Swap
Placement stringPolicy - Sync
Time boolWith Host - Sync
Time boolWith Host Periodically - Tools
Upgrade stringPolicy - Vapp
Pulumi.
VSphere. Outputs. Get Virtual Machine Vapp - Vbs
Enabled bool - Vvtd
Enabled bool
- Annotation string
- The user-provided description of this virtual machine.
- Change
Version string - int
- Default
Ip stringAddress - Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware Tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- Disks
[]Get
Virtual Machine Disk - 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 byscsi_controller_scan_count
are scanned for disks. The sub-attributes are: - Ept
Rvi stringMode - Guest
Id string - The guest ID of the virtual machine or template.
- Guest
Ip []stringAddresses - A list of IP addresses as reported by VMware Tools.
- Hardware
Version int - The hardware version number on this virtual machine.
- Hv
Mode string - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Uuid string - The instance UUID of the virtual machine or template.
- int
- Moid string
- Network
Interface []stringTypes - 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
,vmxnet3vrdma
, orvmxnet3
. - Network
Interfaces []GetVirtual Machine Network Interface - Information about each of the network interfaces on
this virtual machine or template. These are sorted by device bus order 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 network interface 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. The sub-attributes are: - Scsi
Bus stringSharing - 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 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), ormixed
when there are multiple controller types. Only the first number of controllers defined byscsi_controller_scan_count
are scanned. - Storage
Policy stringId - Uuid string
- Vapp
Transports []string - Vtpm bool
- Indicates whether a virtual Trusted Platform Module (TPM) device is present on the virtual machine.
- Alternate
Guest stringName - The alternate guest name of the virtual machine when
guest_id
is a non-specific operating system, likeotherGuest
orotherGuest64
. - Boot
Delay int - Boot
Retry intDelay - Boot
Retry boolEnabled - Cpu
Hot boolAdd Enabled - Cpu
Hot boolRemove Enabled - Cpu
Limit int - Cpu
Performance boolCounters Enabled - Cpu
Reservation int - string
- Datacenter
Id string - Efi
Secure boolBoot Enabled - Enable
Disk boolUuid - Enable
Logging bool - Extra
Config map[string]string - Extra
Config boolReboot Required - Firmware string
- The firmware type for this virtual machine. Can be
bios
orefi
. - Folder string
- Ide
Controller intScan Count - Latency
Sensitivity string - Memory int
- The size of the virtual machine's memory, in MB.
- Memory
Hot boolAdd Enabled - Memory
Limit int - Memory
Reservation int - Memory
Reservation boolLocked To Max - string
- Name string
- Nested
Hv boolEnabled - Num
Cores intPer Socket - 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.
- Replace
Trigger string - Run
Tools boolScripts After Power On - Run
Tools boolScripts After Resume - Run
Tools boolScripts Before Guest Reboot - Run
Tools boolScripts Before Guest Shutdown - Run
Tools boolScripts Before Guest Standby - Sata
Controller intScan Count - Scsi
Controller intScan Count - Swap
Placement stringPolicy - Sync
Time boolWith Host - Sync
Time boolWith Host Periodically - Tools
Upgrade stringPolicy - Vapp
Get
Virtual Machine Vapp - Vbs
Enabled bool - Vvtd
Enabled bool
- annotation String
- The user-provided description of this virtual machine.
- change
Version String - Integer
- default
Ip StringAddress - Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware Tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- disks
List<Get
Virtual Machine Disk> - 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 byscsi_controller_scan_count
are scanned for disks. The sub-attributes are: - ept
Rvi StringMode - guest
Id String - The guest ID of the virtual machine or template.
- guest
Ip List<String>Addresses - A list of IP addresses as reported by VMware Tools.
- hardware
Version Integer - The hardware version number on this virtual machine.
- hv
Mode String - id String
- The provider-assigned unique ID for this managed resource.
- instance
Uuid String - The instance UUID of the virtual machine or template.
- Integer
- moid String
- network
Interface List<String>Types - 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
,vmxnet3vrdma
, orvmxnet3
. - network
Interfaces List<GetVirtual Machine Network Interface> - Information about each of the network interfaces on
this virtual machine or template. These are sorted by device bus order 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 network interface 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. The sub-attributes are: - scsi
Bus StringSharing - 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 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), ormixed
when there are multiple controller types. Only the first number of controllers defined byscsi_controller_scan_count
are scanned. - storage
Policy StringId - uuid String
- vapp
Transports List<String> - vtpm Boolean
- Indicates whether a virtual Trusted Platform Module (TPM) device is present on the virtual machine.
- alternate
Guest StringName - The alternate guest name of the virtual machine when
guest_id
is a non-specific operating system, likeotherGuest
orotherGuest64
. - boot
Delay Integer - boot
Retry IntegerDelay - boot
Retry BooleanEnabled - cpu
Hot BooleanAdd Enabled - cpu
Hot BooleanRemove Enabled - cpu
Limit Integer - cpu
Performance BooleanCounters Enabled - cpu
Reservation Integer - String
- datacenter
Id String - efi
Secure BooleanBoot Enabled - enable
Disk BooleanUuid - enable
Logging Boolean - extra
Config Map<String,String> - extra
Config BooleanReboot Required - firmware String
- The firmware type for this virtual machine. Can be
bios
orefi
. - folder String
- ide
Controller IntegerScan Count - latency
Sensitivity String - memory Integer
- The size of the virtual machine's memory, in MB.
- memory
Hot BooleanAdd Enabled - memory
Limit Integer - memory
Reservation Integer - memory
Reservation BooleanLocked To Max - String
- name String
- nested
Hv BooleanEnabled - num
Cores IntegerPer Socket - The number of cores per socket for this virtual machine.
- num
Cpus Integer - The total number of virtual processor cores assigned to this virtual machine.
- replace
Trigger String - run
Tools BooleanScripts After Power On - run
Tools BooleanScripts After Resume - run
Tools BooleanScripts Before Guest Reboot - run
Tools BooleanScripts Before Guest Shutdown - run
Tools BooleanScripts Before Guest Standby - sata
Controller IntegerScan Count - scsi
Controller IntegerScan Count - swap
Placement StringPolicy - sync
Time BooleanWith Host - sync
Time BooleanWith Host Periodically - tools
Upgrade StringPolicy - vapp
Get
Virtual Machine Vapp - vbs
Enabled Boolean - vvtd
Enabled Boolean
- annotation string
- The user-provided description of this virtual machine.
- change
Version string - number
- default
Ip stringAddress - Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware Tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- disks
Get
Virtual Machine Disk[] - 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 byscsi_controller_scan_count
are scanned for disks. The sub-attributes are: - ept
Rvi stringMode - guest
Id string - The guest ID of the virtual machine or template.
- guest
Ip string[]Addresses - A list of IP addresses as reported by VMware Tools.
- hardware
Version number - The hardware version number on this virtual machine.
- hv
Mode string - id string
- The provider-assigned unique ID for this managed resource.
- instance
Uuid string - The instance UUID of the virtual machine or template.
- number
- moid string
- network
Interface string[]Types - 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
,vmxnet3vrdma
, orvmxnet3
. - network
Interfaces GetVirtual Machine Network Interface[] - Information about each of the network interfaces on
this virtual machine or template. These are sorted by device bus order 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 network interface 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. The sub-attributes are: - scsi
Bus stringSharing - 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 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), ormixed
when there are multiple controller types. Only the first number of controllers defined byscsi_controller_scan_count
are scanned. - storage
Policy stringId - uuid string
- vapp
Transports string[] - vtpm boolean
- Indicates whether a virtual Trusted Platform Module (TPM) device is present on the virtual machine.
- alternate
Guest stringName - The alternate guest name of the virtual machine when
guest_id
is a non-specific operating system, likeotherGuest
orotherGuest64
. - boot
Delay number - boot
Retry numberDelay - boot
Retry booleanEnabled - cpu
Hot booleanAdd Enabled - cpu
Hot booleanRemove Enabled - cpu
Limit number - cpu
Performance booleanCounters Enabled - cpu
Reservation number - string
- datacenter
Id string - efi
Secure booleanBoot Enabled - enable
Disk booleanUuid - enable
Logging boolean - extra
Config {[key: string]: string} - extra
Config booleanReboot Required - firmware string
- The firmware type for this virtual machine. Can be
bios
orefi
. - folder string
- ide
Controller numberScan Count - latency
Sensitivity string - memory number
- The size of the virtual machine's memory, in MB.
- memory
Hot booleanAdd Enabled - memory
Limit number - memory
Reservation number - memory
Reservation booleanLocked To Max - string
- name string
- nested
Hv booleanEnabled - num
Cores numberPer Socket - The number of cores per socket for this virtual machine.
- num
Cpus number - The total number of virtual processor cores assigned to this virtual machine.
- replace
Trigger string - run
Tools booleanScripts After Power On - run
Tools booleanScripts After Resume - run
Tools booleanScripts Before Guest Reboot - run
Tools booleanScripts Before Guest Shutdown - run
Tools booleanScripts Before Guest Standby - sata
Controller numberScan Count - scsi
Controller numberScan Count - swap
Placement stringPolicy - sync
Time booleanWith Host - sync
Time booleanWith Host Periodically - tools
Upgrade stringPolicy - vapp
Get
Virtual Machine Vapp - vbs
Enabled boolean - vvtd
Enabled boolean
- annotation str
- The user-provided description of this virtual machine.
- change_
version str - int
- default_
ip_ straddress - Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware Tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- disks
Sequence[Get
Virtual Machine Disk] - 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 byscsi_controller_scan_count
are scanned for disks. The sub-attributes are: - ept_
rvi_ strmode - guest_
id str - The guest ID of the virtual machine or template.
- guest_
ip_ Sequence[str]addresses - A list of IP addresses as reported by VMware Tools.
- hardware_
version int - The hardware version number on this virtual machine.
- hv_
mode str - id str
- The provider-assigned unique ID for this managed resource.
- instance_
uuid str - The instance UUID of the virtual machine or template.
- int
- moid str
- network_
interface_ Sequence[str]types - 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
,vmxnet3vrdma
, orvmxnet3
. - network_
interfaces Sequence[GetVirtual Machine Network Interface] - Information about each of the network interfaces on
this virtual machine or template. These are sorted by device bus order 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 network interface 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. The sub-attributes are: - scsi_
bus_ strsharing - 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), ormixed
when there are multiple controller types. Only the first number of controllers defined byscsi_controller_scan_count
are scanned. - storage_
policy_ strid - uuid str
- vapp_
transports Sequence[str] - vtpm bool
- Indicates whether a virtual Trusted Platform Module (TPM) device is present on the virtual machine.
- alternate_
guest_ strname - The alternate guest name of the virtual machine when
guest_id
is a non-specific operating system, likeotherGuest
orotherGuest64
. - boot_
delay int - boot_
retry_ intdelay - boot_
retry_ boolenabled - cpu_
hot_ booladd_ enabled - cpu_
hot_ boolremove_ enabled - cpu_
limit int - cpu_
performance_ boolcounters_ enabled - cpu_
reservation int - str
- datacenter_
id str - efi_
secure_ boolboot_ enabled - enable_
disk_ booluuid - enable_
logging bool - extra_
config Mapping[str, str] - extra_
config_ boolreboot_ required - firmware str
- The firmware type for this virtual machine. Can be
bios
orefi
. - folder str
- ide_
controller_ intscan_ count - latency_
sensitivity str - memory int
- The size of the virtual machine's memory, in MB.
- memory_
hot_ booladd_ enabled - memory_
limit int - memory_
reservation int - memory_
reservation_ boollocked_ to_ max - str
- name str
- nested_
hv_ boolenabled - num_
cores_ intper_ socket - 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.
- replace_
trigger str - run_
tools_ boolscripts_ after_ power_ on - run_
tools_ boolscripts_ after_ resume - run_
tools_ boolscripts_ before_ guest_ reboot - run_
tools_ boolscripts_ before_ guest_ shutdown - run_
tools_ boolscripts_ before_ guest_ standby - sata_
controller_ intscan_ count - scsi_
controller_ intscan_ count - swap_
placement_ strpolicy - sync_
time_ boolwith_ host - sync_
time_ boolwith_ host_ periodically - tools_
upgrade_ strpolicy - vapp
Get
Virtual Machine Vapp - vbs_
enabled bool - vvtd_
enabled bool
- annotation String
- The user-provided description of this virtual machine.
- change
Version String - Number
- default
Ip StringAddress - Whenever possible, this is the first IPv4 address that is reachable through the default gateway configured on the machine, then the first reachable IPv6 address, and then the first general discovered address if neither exist. If VMware Tools is not running on the virtual machine, or if the VM is powered off, this value will be blank.
- disks List<Property Map>
- 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 byscsi_controller_scan_count
are scanned for disks. The sub-attributes are: - ept
Rvi StringMode - guest
Id String - The guest ID of the virtual machine or template.
- guest
Ip List<String>Addresses - A list of IP addresses as reported by VMware Tools.
- hardware
Version Number - The hardware version number on this virtual machine.
- hv
Mode String - id String
- The provider-assigned unique ID for this managed resource.
- instance
Uuid String - The instance UUID of the virtual machine or template.
- Number
- moid String
- network
Interface List<String>Types - 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
,vmxnet3vrdma
, orvmxnet3
. - network
Interfaces List<Property Map> - Information about each of the network interfaces on
this virtual machine or template. These are sorted by device bus order 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 network interface 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. The sub-attributes are: - scsi
Bus StringSharing - 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 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), ormixed
when there are multiple controller types. Only the first number of controllers defined byscsi_controller_scan_count
are scanned. - storage
Policy StringId - uuid String
- vapp
Transports List<String> - vtpm Boolean
- Indicates whether a virtual Trusted Platform Module (TPM) device is present on the virtual machine.
- alternate
Guest StringName - The alternate guest name of the virtual machine when
guest_id
is a non-specific operating system, likeotherGuest
orotherGuest64
. - boot
Delay Number - boot
Retry NumberDelay - boot
Retry BooleanEnabled - cpu
Hot BooleanAdd Enabled - cpu
Hot BooleanRemove Enabled - cpu
Limit Number - cpu
Performance BooleanCounters Enabled - cpu
Reservation Number - String
- datacenter
Id String - efi
Secure BooleanBoot Enabled - enable
Disk BooleanUuid - enable
Logging Boolean - extra
Config Map<String> - extra
Config BooleanReboot Required - firmware String
- The firmware type for this virtual machine. Can be
bios
orefi
. - folder String
- ide
Controller NumberScan Count - latency
Sensitivity String - memory Number
- The size of the virtual machine's memory, in MB.
- memory
Hot BooleanAdd Enabled - memory
Limit Number - memory
Reservation Number - memory
Reservation BooleanLocked To Max - String
- name String
- nested
Hv BooleanEnabled - num
Cores NumberPer Socket - The number of cores per socket for this virtual machine.
- num
Cpus Number - The total number of virtual processor cores assigned to this virtual machine.
- replace
Trigger String - run
Tools BooleanScripts After Power On - run
Tools BooleanScripts After Resume - run
Tools BooleanScripts Before Guest Reboot - run
Tools BooleanScripts Before Guest Shutdown - run
Tools BooleanScripts Before Guest Standby - sata
Controller NumberScan Count - scsi
Controller NumberScan Count - swap
Placement StringPolicy - sync
Time BooleanWith Host - sync
Time BooleanWith Host Periodically - tools
Upgrade StringPolicy - vapp Property Map
- vbs
Enabled Boolean - vvtd
Enabled Boolean
Supporting Types
GetVirtualMachineDisk
- Eagerly
Scrub 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.
- Thin
Provisioned bool - Set to
true
if the disk has been thin provisioned. - Unit
Number int - The disk number on the storage bus.
- Eagerly
Scrub 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.
- Thin
Provisioned bool - Set to
true
if the disk has been thin provisioned. - Unit
Number int - The disk number on the storage bus.
- eagerly
Scrub Boolean - Set to
true
if the disk has been eager zeroed. - label String
- The label for the disk.
- size Integer
- The size of the disk, in GIB.
- thin
Provisioned Boolean - Set to
true
if the disk has been thin provisioned. - unit
Number Integer - The disk number on the storage bus.
- eagerly
Scrub 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.
- thin
Provisioned boolean - Set to
true
if the disk has been thin provisioned. - unit
Number 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.
- eagerly
Scrub 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.
- thin
Provisioned Boolean - Set to
true
if the disk has been thin provisioned. - unit
Number Number - The disk number on the storage bus.
GetVirtualMachineNetworkInterface
- Adapter
Type string - The network interface types for each network interface found
on the virtual machine, in device bus order. Will be one of
e1000
,e1000e
,vmxnet3vrdma
, orvmxnet3
. - int
- The share count for this network interface when the share level is custom.
- Mac
Address string - The MAC address of this network interface.
- Network
Id string - The managed object reference ID of the network this interface is connected to.
- Physical
Function string - The ID of the Physical SR-IOV NIC to attach to, e.g. '0000:d8:00.0'
- Bandwidth
Limit int - The upper bandwidth limit of this network interface, in Mbits/sec.
- Bandwidth
Reservation int - The bandwidth reservation of this network interface, in Mbits/sec.
- string
- The bandwidth share allocation level for this
interface. Can be one of
low
,normal
,high
, orcustom
.
- Adapter
Type string - The network interface types for each network interface found
on the virtual machine, in device bus order. Will be one of
e1000
,e1000e
,vmxnet3vrdma
, orvmxnet3
. - int
- The share count for this network interface when the share level is custom.
- Mac
Address string - The MAC address of this network interface.
- Network
Id string - The managed object reference ID of the network this interface is connected to.
- Physical
Function string - The ID of the Physical SR-IOV NIC to attach to, e.g. '0000:d8:00.0'
- Bandwidth
Limit int - The upper bandwidth limit of this network interface, in Mbits/sec.
- Bandwidth
Reservation int - The bandwidth reservation of this network interface, in Mbits/sec.
- string
- The bandwidth share allocation level for this
interface. Can be one of
low
,normal
,high
, orcustom
.
- adapter
Type String - The network interface types for each network interface found
on the virtual machine, in device bus order. Will be one of
e1000
,e1000e
,vmxnet3vrdma
, orvmxnet3
. - Integer
- The share count for this network interface when the share level is custom.
- mac
Address String - The MAC address of this network interface.
- network
Id String - The managed object reference ID of the network this interface is connected to.
- physical
Function String - The ID of the Physical SR-IOV NIC to attach to, e.g. '0000:d8:00.0'
- bandwidth
Limit Integer - The upper bandwidth limit of this network interface, in Mbits/sec.
- bandwidth
Reservation Integer - The bandwidth reservation of this network interface, in Mbits/sec.
- String
- The bandwidth share allocation level for this
interface. Can be one of
low
,normal
,high
, orcustom
.
- adapter
Type string - The network interface types for each network interface found
on the virtual machine, in device bus order. Will be one of
e1000
,e1000e
,vmxnet3vrdma
, orvmxnet3
. - number
- The share count for this network interface when the share level is custom.
- mac
Address string - The MAC address of this network interface.
- network
Id string - The managed object reference ID of the network this interface is connected to.
- physical
Function string - The ID of the Physical SR-IOV NIC to attach to, e.g. '0000:d8:00.0'
- bandwidth
Limit number - The upper bandwidth limit of this network interface, in Mbits/sec.
- bandwidth
Reservation number - The bandwidth reservation of this network interface, in Mbits/sec.
- string
- The bandwidth share allocation level for this
interface. Can be one of
low
,normal
,high
, orcustom
.
- adapter_
type str - The network interface types for each network interface found
on the virtual machine, in device bus order. Will be one of
e1000
,e1000e
,vmxnet3vrdma
, orvmxnet3
. - int
- The share count for this network interface when the share level is custom.
- mac_
address str - The MAC address of this network interface.
- network_
id str - The managed object reference ID of the network this interface is connected to.
- physical_
function str - The ID of the Physical SR-IOV NIC to attach to, e.g. '0000:d8:00.0'
- bandwidth_
limit int - The upper bandwidth limit of this network interface, in Mbits/sec.
- bandwidth_
reservation int - The bandwidth reservation of this network interface, in Mbits/sec.
- str
- The bandwidth share allocation level for this
interface. Can be one of
low
,normal
,high
, orcustom
.
- adapter
Type String - The network interface types for each network interface found
on the virtual machine, in device bus order. Will be one of
e1000
,e1000e
,vmxnet3vrdma
, orvmxnet3
. - Number
- The share count for this network interface when the share level is custom.
- mac
Address String - The MAC address of this network interface.
- network
Id String - The managed object reference ID of the network this interface is connected to.
- physical
Function String - The ID of the Physical SR-IOV NIC to attach to, e.g. '0000:d8:00.0'
- bandwidth
Limit Number - The upper bandwidth limit of this network interface, in Mbits/sec.
- bandwidth
Reservation Number - The bandwidth reservation of this network interface, in Mbits/sec.
- String
- The bandwidth share allocation level for this
interface. Can be one of
low
,normal
,high
, orcustom
.
GetVirtualMachineVapp
- Properties Dictionary<string, string>
- A map of customizable vApp properties and their values. Allows customization of VMs cloned from OVF templates which have customizable vApp properties.
- Properties map[string]string
- A map of customizable vApp properties and their values. Allows customization of VMs cloned from OVF templates which have customizable vApp properties.
- properties Map<String,String>
- A map of customizable vApp properties and their values. Allows customization of VMs cloned from OVF templates which have customizable vApp properties.
- properties {[key: string]: string}
- A map of customizable vApp properties and their values. Allows customization of VMs cloned from OVF templates which have customizable vApp properties.
- properties Mapping[str, str]
- A map of customizable vApp properties and their values. Allows customization of VMs cloned from OVF templates which have customizable vApp properties.
- properties Map<String>
- A map of customizable vApp properties and their values. Allows customization of VMs cloned from OVF templates which have customizable vApp properties.
Package Details
- Repository
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.