ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse
esxi-native.VirtualMachine
Explore with Pulumi AI
Create VirtualMachine Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualMachine(name: string, args: VirtualMachineArgs, opts?: CustomResourceOptions);
@overload
def VirtualMachine(resource_name: str,
args: VirtualMachineArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualMachine(resource_name: str,
opts: Optional[ResourceOptions] = None,
disk_store: Optional[str] = None,
num_v_cpus: Optional[int] = None,
startup_timeout: Optional[int] = None,
clone_from_virtual_machine: Optional[str] = None,
boot_disk_type: Optional[DiskType] = None,
info: Optional[Sequence[KeyValuePairArgs]] = None,
mem_size: Optional[int] = None,
name: Optional[str] = None,
os: Optional[str] = None,
virtual_hw_ver: Optional[int] = None,
boot_firmware: Optional[BootFirmwareType] = None,
network_interfaces: Optional[Sequence[NetworkInterfaceArgs]] = None,
ovf_properties: Optional[Sequence[KeyValuePairArgs]] = None,
ovf_properties_timer: Optional[int] = None,
ovf_source: Optional[str] = None,
power: Optional[str] = None,
resource_pool_name: Optional[str] = None,
shutdown_timeout: Optional[int] = None,
boot_disk_size: Optional[int] = None,
virtual_disks: Optional[Sequence[VMVirtualDiskArgs]] = None,
notes: Optional[str] = None)
func NewVirtualMachine(ctx *Context, name string, args VirtualMachineArgs, opts ...ResourceOption) (*VirtualMachine, error)
public VirtualMachine(string name, VirtualMachineArgs args, CustomResourceOptions? opts = null)
public VirtualMachine(String name, VirtualMachineArgs args)
public VirtualMachine(String name, VirtualMachineArgs args, CustomResourceOptions options)
type: esxi-native:VirtualMachine
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualMachineArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var virtualMachineResource = new EsxiNative.VirtualMachine("virtualMachineResource", new()
{
DiskStore = "string",
NumVCpus = 0,
StartupTimeout = 0,
CloneFromVirtualMachine = "string",
BootDiskType = EsxiNative.DiskType.Thin,
Info = new[]
{
new EsxiNative.Inputs.KeyValuePairArgs
{
Key = "string",
Value = "string",
},
},
MemSize = 0,
Name = "string",
Os = "string",
VirtualHWVer = 0,
BootFirmware = EsxiNative.BootFirmwareType.BIOS,
NetworkInterfaces = new[]
{
new EsxiNative.Inputs.NetworkInterfaceArgs
{
VirtualNetwork = "string",
MacAddress = "string",
NicType = "string",
},
},
OvfProperties = new[]
{
new EsxiNative.Inputs.KeyValuePairArgs
{
Key = "string",
Value = "string",
},
},
OvfPropertiesTimer = 0,
OvfSource = "string",
Power = "string",
ResourcePoolName = "string",
ShutdownTimeout = 0,
BootDiskSize = 0,
VirtualDisks = new[]
{
new EsxiNative.Inputs.VMVirtualDiskArgs
{
VirtualDiskId = "string",
Slot = "string",
},
},
Notes = "string",
});
example, err := esxinative.NewVirtualMachine(ctx, "virtualMachineResource", &esxinative.VirtualMachineArgs{
DiskStore: pulumi.String("string"),
NumVCpus: pulumi.Int(0),
StartupTimeout: pulumi.Int(0),
CloneFromVirtualMachine: pulumi.String("string"),
BootDiskType: esxinative.DiskTypeThin,
Info: esxi.KeyValuePairArray{
&esxi.KeyValuePairArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MemSize: pulumi.Int(0),
Name: pulumi.String("string"),
Os: pulumi.String("string"),
VirtualHWVer: pulumi.Int(0),
BootFirmware: esxinative.BootFirmwareTypeBIOS,
NetworkInterfaces: esxi.NetworkInterfaceArray{
&esxi.NetworkInterfaceArgs{
VirtualNetwork: pulumi.String("string"),
MacAddress: pulumi.String("string"),
NicType: pulumi.String("string"),
},
},
OvfProperties: esxi.KeyValuePairArray{
&esxi.KeyValuePairArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
OvfPropertiesTimer: pulumi.Int(0),
OvfSource: pulumi.String("string"),
Power: pulumi.String("string"),
ResourcePoolName: pulumi.String("string"),
ShutdownTimeout: pulumi.Int(0),
BootDiskSize: pulumi.Int(0),
VirtualDisks: esxi.VMVirtualDiskArray{
&esxi.VMVirtualDiskArgs{
VirtualDiskId: pulumi.String("string"),
Slot: pulumi.String("string"),
},
},
Notes: pulumi.String("string"),
})
var virtualMachineResource = new VirtualMachine("virtualMachineResource", VirtualMachineArgs.builder()
.diskStore("string")
.numVCpus(0)
.startupTimeout(0)
.cloneFromVirtualMachine("string")
.bootDiskType("thin")
.info(KeyValuePairArgs.builder()
.key("string")
.value("string")
.build())
.memSize(0)
.name("string")
.os("string")
.virtualHWVer(0)
.bootFirmware("bios")
.networkInterfaces(NetworkInterfaceArgs.builder()
.virtualNetwork("string")
.macAddress("string")
.nicType("string")
.build())
.ovfProperties(KeyValuePairArgs.builder()
.key("string")
.value("string")
.build())
.ovfPropertiesTimer(0)
.ovfSource("string")
.power("string")
.resourcePoolName("string")
.shutdownTimeout(0)
.bootDiskSize(0)
.virtualDisks(VMVirtualDiskArgs.builder()
.virtualDiskId("string")
.slot("string")
.build())
.notes("string")
.build());
virtual_machine_resource = esxi_native.VirtualMachine("virtualMachineResource",
disk_store="string",
num_v_cpus=0,
startup_timeout=0,
clone_from_virtual_machine="string",
boot_disk_type=esxi_native.DiskType.THIN,
info=[esxi_native.KeyValuePairArgs(
key="string",
value="string",
)],
mem_size=0,
name="string",
os="string",
virtual_hw_ver=0,
boot_firmware=esxi_native.BootFirmwareType.BIOS,
network_interfaces=[esxi_native.NetworkInterfaceArgs(
virtual_network="string",
mac_address="string",
nic_type="string",
)],
ovf_properties=[esxi_native.KeyValuePairArgs(
key="string",
value="string",
)],
ovf_properties_timer=0,
ovf_source="string",
power="string",
resource_pool_name="string",
shutdown_timeout=0,
boot_disk_size=0,
virtual_disks=[esxi_native.VMVirtualDiskArgs(
virtual_disk_id="string",
slot="string",
)],
notes="string")
const virtualMachineResource = new esxi_native.VirtualMachine("virtualMachineResource", {
diskStore: "string",
numVCpus: 0,
startupTimeout: 0,
cloneFromVirtualMachine: "string",
bootDiskType: esxi_native.DiskType.Thin,
info: [{
key: "string",
value: "string",
}],
memSize: 0,
name: "string",
os: "string",
virtualHWVer: 0,
bootFirmware: esxi_native.BootFirmwareType.BIOS,
networkInterfaces: [{
virtualNetwork: "string",
macAddress: "string",
nicType: "string",
}],
ovfProperties: [{
key: "string",
value: "string",
}],
ovfPropertiesTimer: 0,
ovfSource: "string",
power: "string",
resourcePoolName: "string",
shutdownTimeout: 0,
bootDiskSize: 0,
virtualDisks: [{
virtualDiskId: "string",
slot: "string",
}],
notes: "string",
});
type: esxi-native:VirtualMachine
properties:
bootDiskSize: 0
bootDiskType: thin
bootFirmware: bios
cloneFromVirtualMachine: string
diskStore: string
info:
- key: string
value: string
memSize: 0
name: string
networkInterfaces:
- macAddress: string
nicType: string
virtualNetwork: string
notes: string
numVCpus: 0
os: string
ovfProperties:
- key: string
value: string
ovfPropertiesTimer: 0
ovfSource: string
power: string
resourcePoolName: string
shutdownTimeout: 0
startupTimeout: 0
virtualDisks:
- slot: string
virtualDiskId: string
virtualHWVer: 0
VirtualMachine Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The VirtualMachine resource accepts the following input properties:
- Disk
Store string - esxi diskstore for boot disk.
- Boot
Disk intSize - VM boot disk size. Will expand boot disk to this size.
- Boot
Disk Pulumiverse.Type Esxi Native. Disk Type - VM boot disk type. thin, zeroedthick, eagerzeroedthick
- Boot
Firmware Pulumiverse.Esxi Native. Boot Firmware Type - Boot type('efi' is boot uefi mode)
- Clone
From stringVirtual Machine - Source vm path on esxi host to clone.
- Info
List<Pulumiverse.
Esxi Native. Inputs. Key Value Pair> - pass data to VM
- Mem
Size int - VM memory size.
- Name string
- esxi vm name.
- Network
Interfaces List<Pulumiverse.Esxi Native. Inputs. Network Interface> - VM network interfaces.
- Notes string
- VM memory size.
- Num
VCpus int - VM number of virtual cpus.
- Os string
- VM OS type.
- Ovf
Properties List<Pulumiverse.Esxi Native. Inputs. Key Value Pair> - VM OVF properties.
- Ovf
Properties intTimer - The amount of time, in seconds, to wait for the guest to boot and run ovfProperties. (0-6000)
- Ovf
Source string - Path or URL of ovf file source.
- Power string
- VM power state.
- Resource
Pool stringName - 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. (0-600)
- Startup
Timeout int - The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine. (0-600)
- Virtual
Disks List<Pulumiverse.Esxi Native. Inputs. VMVirtual Disk> - VM virtual disks.
- Virtual
HWVer int - VM Virtual HW version.
- Disk
Store string - esxi diskstore for boot disk.
- 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)
- Clone
From stringVirtual Machine - Source vm path on esxi host to clone.
- Info
[]Key
Value Pair Args - pass data to VM
- Mem
Size int - VM memory size.
- Name string
- esxi vm name.
- Network
Interfaces []NetworkInterface Args - VM network interfaces.
- Notes string
- VM memory size.
- Num
VCpus int - VM number of virtual cpus.
- Os string
- VM OS type.
- Ovf
Properties []KeyValue Pair Args - VM OVF properties.
- Ovf
Properties intTimer - The amount of time, in seconds, to wait for the guest to boot and run ovfProperties. (0-6000)
- Ovf
Source string - Path or URL of ovf file source.
- Power string
- VM power state.
- Resource
Pool stringName - 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. (0-600)
- Startup
Timeout int - The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine. (0-600)
- Virtual
Disks []VMVirtualDisk Args - VM virtual disks.
- Virtual
HWVer int - VM Virtual HW version.
- disk
Store String - esxi diskstore for boot disk.
- boot
Disk IntegerSize - 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)
- clone
From StringVirtual Machine - Source vm path on esxi host to clone.
- info
List<Key
Value Pair> - pass data to VM
- mem
Size Integer - VM memory size.
- name String
- esxi vm name.
- network
Interfaces List<NetworkInterface> - VM network interfaces.
- notes String
- VM memory size.
- num
VCpus Integer - VM number of virtual cpus.
- os String
- VM OS type.
- ovf
Properties List<KeyValue Pair> - VM OVF properties.
- ovf
Properties IntegerTimer - The amount of time, in seconds, to wait for the guest to boot and run ovfProperties. (0-6000)
- ovf
Source String - Path or URL of ovf file source.
- power String
- VM power state.
- resource
Pool StringName - Resource pool name to place vm.
- shutdown
Timeout Integer - The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine. (0-600)
- startup
Timeout Integer - The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine. (0-600)
- virtual
Disks List<VMVirtualDisk> - VM virtual disks.
- virtual
HWVer Integer - VM Virtual HW version.
- disk
Store string - esxi diskstore for boot disk.
- boot
Disk numberSize - 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)
- clone
From stringVirtual Machine - Source vm path on esxi host to clone.
- info
Key
Value Pair[] - pass data to VM
- mem
Size number - VM memory size.
- name string
- esxi vm name.
- network
Interfaces NetworkInterface[] - VM network interfaces.
- notes string
- VM memory size.
- num
VCpus number - VM number of virtual cpus.
- os string
- VM OS type.
- ovf
Properties KeyValue Pair[] - VM OVF properties.
- ovf
Properties numberTimer - The amount of time, in seconds, to wait for the guest to boot and run ovfProperties. (0-6000)
- ovf
Source string - Path or URL of ovf file source.
- power string
- VM power state.
- resource
Pool stringName - Resource pool name to place vm.
- shutdown
Timeout number - The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine. (0-600)
- startup
Timeout number - The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine. (0-600)
- virtual
Disks VMVirtualDisk[] - VM virtual disks.
- virtual
HWVer number - VM Virtual HW version.
- disk_
store str - esxi diskstore for boot disk.
- 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)
- clone_
from_ strvirtual_ machine - Source vm path on esxi host to clone.
- info
Sequence[Key
Value Pair Args] - pass data to VM
- mem_
size int - VM memory size.
- name str
- esxi vm name.
- network_
interfaces Sequence[NetworkInterface Args] - VM network interfaces.
- notes str
- VM memory size.
- num_
v_ intcpus - VM number of virtual cpus.
- os str
- VM OS type.
- ovf_
properties Sequence[KeyValue Pair Args] - VM OVF properties.
- ovf_
properties_ inttimer - The amount of time, in seconds, to wait for the guest to boot and run ovfProperties. (0-6000)
- ovf_
source str - Path or URL of ovf file source.
- 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. (0-600)
- startup_
timeout int - The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine. (0-600)
- virtual_
disks Sequence[VMVirtualDisk Args] - VM virtual disks.
- virtual_
hw_ intver - VM Virtual HW version.
- disk
Store String - esxi diskstore for boot disk.
- boot
Disk NumberSize - VM boot disk size. Will expand boot disk to this size.
- boot
Disk "thin" | "zeroedthick" | "eagerzeroedthick"Type - VM boot disk type. thin, zeroedthick, eagerzeroedthick
- boot
Firmware "bios" | "efi" - Boot type('efi' is boot uefi mode)
- clone
From StringVirtual Machine - Source vm path on esxi host to clone.
- info List<Property Map>
- pass data to VM
- mem
Size Number - VM memory size.
- name String
- esxi vm name.
- network
Interfaces List<Property Map> - VM network interfaces.
- notes String
- VM memory size.
- num
VCpus Number - VM number of virtual cpus.
- os String
- VM OS type.
- ovf
Properties List<Property Map> - VM OVF properties.
- ovf
Properties NumberTimer - The amount of time, in seconds, to wait for the guest to boot and run ovfProperties. (0-6000)
- ovf
Source String - Path or URL of ovf file source.
- power String
- VM power state.
- resource
Pool StringName - Resource pool name to place vm.
- shutdown
Timeout Number - The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine. (0-600)
- startup
Timeout Number - The amount of vm uptime, in seconds, to wait for an available IP address on this virtual machine. (0-600)
- virtual
Disks List<Property Map> - VM virtual disks.
- virtual
HWVer Number - VM Virtual HW version.
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualMachine resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str - The IP address reported by VMWare tools.
Supporting Types
BootFirmwareType, BootFirmwareTypeArgs
- BIOS
- bios
- EFI
- efi
- Boot
Firmware Type BIOS - bios
- Boot
Firmware Type EFI - efi
- BIOS
- bios
- EFI
- efi
- BIOS
- bios
- EFI
- efi
- BIOS
- bios
- EFI
- efi
- "bios"
- bios
- "efi"
- efi
DiskType, DiskTypeArgs
- Thin
- thin
- Zeroed
Thick - zeroedthick
- Eager
Zeroed Thick - eagerzeroedthick
- Disk
Type Thin - thin
- Disk
Type Zeroed Thick - zeroedthick
- Disk
Type Eager Zeroed Thick - eagerzeroedthick
- Thin
- thin
- Zeroed
Thick - zeroedthick
- Eager
Zeroed Thick - eagerzeroedthick
- Thin
- thin
- Zeroed
Thick - zeroedthick
- Eager
Zeroed Thick - eagerzeroedthick
- THIN
- thin
- ZEROED_THICK
- zeroedthick
- EAGER_ZEROED_THICK
- eagerzeroedthick
- "thin"
- thin
- "zeroedthick"
- zeroedthick
- "eagerzeroedthick"
- eagerzeroedthick
KeyValuePair, KeyValuePairArgs
NetworkInterface, NetworkInterfaceArgs
- Virtual
Network string - Mac
Address string - Nic
Type string
- Virtual
Network string - Mac
Address string - Nic
Type string
- virtual
Network String - mac
Address String - nic
Type String
- virtual
Network string - mac
Address string - nic
Type string
- virtual_
network str - mac_
address str - nic_
type str
- virtual
Network String - mac
Address String - nic
Type String
VMVirtualDisk, VMVirtualDiskArgs
- Virtual
Disk stringId - Slot string
- SCSI_Ctrl:SCSI_id. Range '0:1' to '0:15'. SCSI_id 7 is not allowed.
- Virtual
Disk stringId - Slot string
- SCSI_Ctrl:SCSI_id. Range '0:1' to '0:15'. SCSI_id 7 is not allowed.
- virtual
Disk StringId - slot String
- SCSI_Ctrl:SCSI_id. Range '0:1' to '0:15'. SCSI_id 7 is not allowed.
- virtual
Disk 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.
- virtual
Disk 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.