ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse
esxi-native.getVirtualMachineById
Explore with Pulumi AI
Using getVirtualMachineById
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 getVirtualMachineById(args: GetVirtualMachineByIdArgs, opts?: InvokeOptions): Promise<GetVirtualMachineByIdResult>
function getVirtualMachineByIdOutput(args: GetVirtualMachineByIdOutputArgs, opts?: InvokeOptions): Output<GetVirtualMachineByIdResult>def get_virtual_machine_by_id(id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetVirtualMachineByIdResult
def get_virtual_machine_by_id_output(id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetVirtualMachineByIdResult]func GetVirtualMachineById(ctx *Context, args *GetVirtualMachineByIdArgs, opts ...InvokeOption) (*GetVirtualMachineByIdResult, error)
func GetVirtualMachineByIdOutput(ctx *Context, args *GetVirtualMachineByIdOutputArgs, opts ...InvokeOption) GetVirtualMachineByIdResultOutput> Note: This function is named GetVirtualMachineById in the Go SDK.
public static class GetVirtualMachineById 
{
    public static Task<GetVirtualMachineByIdResult> InvokeAsync(GetVirtualMachineByIdArgs args, InvokeOptions? opts = null)
    public static Output<GetVirtualMachineByIdResult> Invoke(GetVirtualMachineByIdInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVirtualMachineByIdResult> getVirtualMachineById(GetVirtualMachineByIdArgs args, InvokeOptions options)
public static Output<GetVirtualMachineByIdResult> getVirtualMachineById(GetVirtualMachineByIdArgs args, InvokeOptions options)
fn::invoke:
  function: esxi-native:getVirtualMachineById
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- Virtual Machine Id to get details of
- Id string
- Virtual Machine Id to get details of
- id String
- Virtual Machine Id to get details of
- id string
- Virtual Machine Id to get details of
- id str
- Virtual Machine Id to get details of
- id String
- Virtual Machine Id to get details of
getVirtualMachineById Result
The following output properties are available:
- BootDisk intSize 
- VM boot disk size. Will expand boot disk to this size.
- BootDisk Pulumiverse.Type Esxi Native. Disk Type 
- VM boot disk type. thin, zeroedthick, eagerzeroedthick
- BootFirmware Pulumiverse.Esxi Native. Boot Firmware Type 
- Boot type('efi' is boot uefi mode)
- DiskStore string
- esxi diskstore for boot disk.
- Id string
- esxi vm id.
- Info
List<Pulumiverse.Esxi Native. Outputs. Key Value Pair> 
- pass data to VM
- IpAddress string
- The IP address reported by VMWare tools.
- MemSize int
- VM memory size.
- Name string
- esxi vm name.
- NetworkInterfaces List<Pulumiverse.Esxi Native. Outputs. Network Interface> 
- VM network interfaces.
- Notes string
- VM memory size.
- NumVCpus int
- VM number of virtual cpus.
- Os string
- VM OS type.
- Power string
- VM power state.
- ResourcePool stringName 
- Resource pool name to place vm.
- ShutdownTimeout int
- The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine.
- StartupTimeout int
- The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine.
- VirtualDisks List<Pulumiverse.Esxi Native. Outputs. VMVirtual Disk> 
- VM virtual disks.
- VirtualHWVer int
- VM Virtual HW version.
- BootDisk intSize 
- VM boot disk size. Will expand boot disk to this size.
- BootDisk DiskType Type 
- VM boot disk type. thin, zeroedthick, eagerzeroedthick
- BootFirmware BootFirmware Type 
- Boot type('efi' is boot uefi mode)
- DiskStore string
- esxi diskstore for boot disk.
- Id string
- esxi vm id.
- Info
[]KeyValue Pair 
- pass data to VM
- IpAddress string
- The IP address reported by VMWare tools.
- MemSize int
- VM memory size.
- Name string
- esxi vm name.
- NetworkInterfaces []NetworkInterface 
- VM network interfaces.
- Notes string
- VM memory size.
- NumVCpus int
- VM number of virtual cpus.
- Os string
- VM OS type.
- Power string
- VM power state.
- ResourcePool stringName 
- Resource pool name to place vm.
- ShutdownTimeout int
- The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine.
- StartupTimeout int
- The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine.
- VirtualDisks []VMVirtualDisk 
- VM virtual disks.
- VirtualHWVer int
- VM Virtual HW version.
- bootDisk IntegerSize 
- VM boot disk size. Will expand boot disk to this size.
- bootDisk DiskType Type 
- VM boot disk type. thin, zeroedthick, eagerzeroedthick
- bootFirmware BootFirmware Type 
- Boot type('efi' is boot uefi mode)
- diskStore String
- esxi diskstore for boot disk.
- id String
- esxi vm id.
- info
List<KeyValue Pair> 
- pass data to VM
- ipAddress String
- The IP address reported by VMWare tools.
- memSize Integer
- VM memory size.
- name String
- esxi vm name.
- networkInterfaces List<NetworkInterface> 
- VM network interfaces.
- notes String
- VM memory size.
- numVCpus Integer
- VM number of virtual cpus.
- os String
- VM OS type.
- power String
- VM power state.
- resourcePool StringName 
- Resource pool name to place vm.
- shutdownTimeout Integer
- The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine.
- startupTimeout Integer
- The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine.
- virtualDisks List<VMVirtualDisk> 
- VM virtual disks.
- virtualHWVer Integer
- VM Virtual HW version.
- bootDisk numberSize 
- VM boot disk size. Will expand boot disk to this size.
- bootDisk DiskType Type 
- VM boot disk type. thin, zeroedthick, eagerzeroedthick
- bootFirmware BootFirmware Type 
- Boot type('efi' is boot uefi mode)
- diskStore string
- esxi diskstore for boot disk.
- id string
- esxi vm id.
- info
KeyValue Pair[] 
- pass data to VM
- ipAddress string
- The IP address reported by VMWare tools.
- memSize number
- VM memory size.
- name string
- esxi vm name.
- networkInterfaces NetworkInterface[] 
- VM network interfaces.
- notes string
- VM memory size.
- numVCpus number
- VM number of virtual cpus.
- os string
- VM OS type.
- power string
- VM power state.
- resourcePool stringName 
- Resource pool name to place vm.
- shutdownTimeout number
- The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine.
- startupTimeout number
- The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine.
- virtualDisks VMVirtualDisk[] 
- VM virtual disks.
- virtualHWVer number
- VM Virtual HW version.
- boot_disk_ intsize 
- VM boot disk size. Will expand boot disk to this size.
- boot_disk_ Disktype Type 
- VM boot disk type. thin, zeroedthick, eagerzeroedthick
- boot_firmware BootFirmware Type 
- Boot type('efi' is boot uefi mode)
- disk_store str
- esxi diskstore for boot disk.
- id str
- esxi vm id.
- info
Sequence[KeyValue Pair] 
- pass data to VM
- ip_address str
- The IP address reported by VMWare tools.
- mem_size int
- VM memory size.
- name str
- esxi vm name.
- network_interfaces Sequence[NetworkInterface] 
- VM network interfaces.
- notes str
- VM memory size.
- num_v_ intcpus 
- VM number of virtual cpus.
- os str
- VM OS type.
- power str
- VM power state.
- resource_pool_ strname 
- Resource pool name to place vm.
- shutdown_timeout int
- The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine.
- startup_timeout int
- The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine.
- virtual_disks Sequence[VMVirtualDisk] 
- VM virtual disks.
- virtual_hw_ intver 
- VM Virtual HW version.
- bootDisk NumberSize 
- VM boot disk size. Will expand boot disk to this size.
- bootDisk "thin" | "zeroedthick" | "eagerzeroedthick"Type 
- VM boot disk type. thin, zeroedthick, eagerzeroedthick
- bootFirmware "bios" | "efi"
- Boot type('efi' is boot uefi mode)
- diskStore String
- esxi diskstore for boot disk.
- id String
- esxi vm id.
- info List<Property Map>
- pass data to VM
- ipAddress String
- The IP address reported by VMWare tools.
- memSize Number
- VM memory size.
- name String
- esxi vm name.
- networkInterfaces List<Property Map>
- VM network interfaces.
- notes String
- VM memory size.
- numVCpus Number
- VM number of virtual cpus.
- os String
- VM OS type.
- power String
- VM power state.
- resourcePool StringName 
- Resource pool name to place vm.
- shutdownTimeout Number
- The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine.
- startupTimeout Number
- The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine.
- virtualDisks List<Property Map>
- VM virtual disks.
- virtualHWVer Number
- VM Virtual HW version.
Supporting Types
BootFirmwareType  
DiskType 
KeyValuePair  
NetworkInterface 
- VirtualNetwork string
- MacAddress string
- NicType string
- VirtualNetwork string
- MacAddress string
- NicType string
- virtualNetwork String
- macAddress String
- nicType String
- virtualNetwork string
- macAddress string
- nicType string
- virtual_network str
- mac_address str
- nic_type str
- virtualNetwork String
- macAddress String
- nicType String
VMVirtualDisk 
- VirtualDisk stringId 
- Slot string
- SCSI_Ctrl:SCSI_id. Range '0:1' to '0:15'. SCSI_id 7 is not allowed.
- VirtualDisk stringId 
- Slot string
- SCSI_Ctrl:SCSI_id. Range '0:1' to '0:15'. SCSI_id 7 is not allowed.
- virtualDisk StringId 
- slot String
- SCSI_Ctrl:SCSI_id. Range '0:1' to '0:15'. SCSI_id 7 is not allowed.
- virtualDisk stringId 
- slot string
- SCSI_Ctrl:SCSI_id. Range '0:1' to '0:15'. SCSI_id 7 is not allowed.
- virtual_disk_ strid 
- slot str
- SCSI_Ctrl:SCSI_id. Range '0:1' to '0:15'. SCSI_id 7 is not allowed.
- virtualDisk StringId 
- slot String
- SCSI_Ctrl:SCSI_id. Range '0:1' to '0:15'. SCSI_id 7 is not allowed.
Package Details
- Repository
- esxi-native pulumiverse/pulumi-esxi-native
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the Terraform Provider terraform-provider-esxi.
