pulumi-vsphere 4.10.0a1709017641__py3-none-any.whl → 4.17.0a1763710194__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-vsphere might be problematic. Click here for more details.
- pulumi_vsphere/__init__.py +51 -1
- pulumi_vsphere/_inputs.py +2568 -1025
- pulumi_vsphere/_utilities.py +50 -10
- pulumi_vsphere/compute_cluster.py +1564 -2373
- pulumi_vsphere/compute_cluster_host_group.py +191 -55
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +157 -113
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +133 -89
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +314 -106
- pulumi_vsphere/compute_cluster_vm_group.py +256 -55
- pulumi_vsphere/compute_cluster_vm_host_rule.py +323 -123
- pulumi_vsphere/config/__init__.py +2 -1
- pulumi_vsphere/config/__init__.pyi +7 -2
- pulumi_vsphere/config/vars.py +20 -15
- pulumi_vsphere/configuration_profile.py +286 -0
- pulumi_vsphere/content_library.py +177 -71
- pulumi_vsphere/content_library_item.py +252 -106
- pulumi_vsphere/custom_attribute.py +118 -38
- pulumi_vsphere/datacenter.py +128 -107
- pulumi_vsphere/datastore_cluster.py +636 -731
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +251 -89
- pulumi_vsphere/distributed_port_group.py +1129 -967
- pulumi_vsphere/distributed_virtual_switch.py +1971 -2239
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +294 -0
- pulumi_vsphere/dpm_host_override.py +222 -72
- pulumi_vsphere/drs_vm_override.py +236 -72
- pulumi_vsphere/entity_permissions.py +96 -69
- pulumi_vsphere/file.py +173 -178
- pulumi_vsphere/folder.py +236 -113
- pulumi_vsphere/get_compute_cluster.py +34 -23
- pulumi_vsphere/get_compute_cluster_host_group.py +52 -41
- pulumi_vsphere/get_configuration_profile.py +145 -0
- pulumi_vsphere/get_content_library.py +33 -21
- pulumi_vsphere/get_content_library_item.py +47 -31
- pulumi_vsphere/get_custom_attribute.py +26 -17
- pulumi_vsphere/get_datacenter.py +40 -18
- pulumi_vsphere/get_datastore.py +60 -24
- pulumi_vsphere/get_datastore_cluster.py +47 -22
- pulumi_vsphere/get_datastore_stats.py +204 -0
- pulumi_vsphere/get_distributed_virtual_switch.py +36 -23
- pulumi_vsphere/get_dynamic.py +55 -45
- pulumi_vsphere/get_folder.py +163 -25
- pulumi_vsphere/get_guest_os_customization.py +68 -37
- pulumi_vsphere/get_host.py +34 -23
- pulumi_vsphere/get_host_base_images.py +104 -0
- pulumi_vsphere/get_host_pci_device.py +78 -35
- pulumi_vsphere/get_host_thumbprint.py +58 -38
- pulumi_vsphere/get_host_vgpu_profile.py +195 -0
- pulumi_vsphere/get_license.py +44 -28
- pulumi_vsphere/get_network.py +157 -46
- pulumi_vsphere/get_ovf_vm_template.py +184 -301
- pulumi_vsphere/get_policy.py +23 -15
- pulumi_vsphere/get_resource_pool.py +107 -40
- pulumi_vsphere/get_role.py +49 -35
- pulumi_vsphere/get_tag.py +34 -23
- pulumi_vsphere/get_tag_category.py +32 -21
- pulumi_vsphere/get_vapp_container.py +31 -21
- pulumi_vsphere/get_virtual_machine.py +499 -287
- pulumi_vsphere/get_vmfs_disks.py +42 -29
- pulumi_vsphere/guest_os_customization.py +135 -79
- pulumi_vsphere/ha_vm_override.py +470 -577
- pulumi_vsphere/host.py +515 -262
- pulumi_vsphere/host_port_group.py +352 -355
- pulumi_vsphere/host_virtual_switch.py +580 -580
- pulumi_vsphere/license.py +110 -92
- pulumi_vsphere/nas_datastore.py +398 -270
- pulumi_vsphere/offline_software_depot.py +190 -0
- pulumi_vsphere/outputs.py +1582 -1027
- pulumi_vsphere/provider.py +172 -152
- pulumi_vsphere/pulumi-plugin.json +2 -1
- pulumi_vsphere/resource_pool.py +357 -273
- pulumi_vsphere/role.py +79 -47
- pulumi_vsphere/storage_drs_vm_override.py +225 -89
- pulumi_vsphere/supervisor.py +1064 -0
- pulumi_vsphere/tag.py +217 -55
- pulumi_vsphere/tag_category.py +158 -72
- pulumi_vsphere/vapp_container.py +425 -259
- pulumi_vsphere/vapp_entity.py +324 -174
- pulumi_vsphere/virtual_disk.py +245 -153
- pulumi_vsphere/virtual_machine.py +1696 -1836
- pulumi_vsphere/virtual_machine_class.py +448 -0
- pulumi_vsphere/virtual_machine_snapshot.py +137 -131
- pulumi_vsphere/vm_storage_policy.py +160 -154
- pulumi_vsphere/vmfs_datastore.py +460 -186
- pulumi_vsphere/vnic.py +249 -231
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +7 -6
- pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.0a1709017641.dist-info/RECORD +0 -80
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -23,7 +28,7 @@ class GetVirtualMachineResult:
|
|
|
23
28
|
"""
|
|
24
29
|
A collection of values returned by getVirtualMachine.
|
|
25
30
|
"""
|
|
26
|
-
def __init__(__self__, alternate_guest_name=None, annotation=None, boot_delay=None, boot_retry_delay=None, boot_retry_enabled=None, change_version=None, cpu_hot_add_enabled=None, cpu_hot_remove_enabled=None, cpu_limit=None, cpu_performance_counters_enabled=None, cpu_reservation=None, cpu_share_count=None, cpu_share_level=None, datacenter_id=None, default_ip_address=None, disks=None, efi_secure_boot_enabled=None, enable_disk_uuid=None, enable_logging=None, ept_rvi_mode=None, extra_config=None, extra_config_reboot_required=None, firmware=None, guest_id=None, guest_ip_addresses=None, hardware_version=None, hv_mode=None, id=None, ide_controller_scan_count=None, latency_sensitivity=None, memory=None, memory_hot_add_enabled=None, memory_limit=None, memory_reservation=None, memory_share_count=None, memory_share_level=None, moid=None, name=None, nested_hv_enabled=None, network_interface_types=None, network_interfaces=None, num_cores_per_socket=None, num_cpus=None, replace_trigger=None, run_tools_scripts_after_power_on=None, run_tools_scripts_after_resume=None, run_tools_scripts_before_guest_reboot=None, run_tools_scripts_before_guest_shutdown=None, run_tools_scripts_before_guest_standby=None, sata_controller_scan_count=None, scsi_bus_sharing=None, scsi_controller_scan_count=None, scsi_type=None, storage_policy_id=None, swap_placement_policy=None, sync_time_with_host=None, sync_time_with_host_periodically=None, tools_upgrade_policy=None, uuid=None, vapp=None, vapp_transports=None, vbs_enabled=None, vvtd_enabled=None):
|
|
31
|
+
def __init__(__self__, alternate_guest_name=None, annotation=None, boot_delay=None, boot_retry_delay=None, boot_retry_enabled=None, change_version=None, cpu_hot_add_enabled=None, cpu_hot_remove_enabled=None, cpu_limit=None, cpu_performance_counters_enabled=None, cpu_reservation=None, cpu_share_count=None, cpu_share_level=None, datacenter_id=None, default_ip_address=None, disks=None, efi_secure_boot_enabled=None, enable_disk_uuid=None, enable_logging=None, ept_rvi_mode=None, extra_config=None, extra_config_reboot_required=None, firmware=None, folder=None, guest_id=None, guest_ip_addresses=None, hardware_version=None, hv_mode=None, id=None, ide_controller_scan_count=None, instance_uuid=None, latency_sensitivity=None, memory=None, memory_hot_add_enabled=None, memory_limit=None, memory_reservation=None, memory_reservation_locked_to_max=None, memory_share_count=None, memory_share_level=None, moid=None, name=None, nested_hv_enabled=None, network_interface_types=None, network_interfaces=None, num_cores_per_socket=None, num_cpus=None, nvme_controller_scan_count=None, replace_trigger=None, run_tools_scripts_after_power_on=None, run_tools_scripts_after_resume=None, run_tools_scripts_before_guest_reboot=None, run_tools_scripts_before_guest_shutdown=None, run_tools_scripts_before_guest_standby=None, sata_controller_scan_count=None, scsi_bus_sharing=None, scsi_controller_scan_count=None, scsi_type=None, storage_policy_id=None, swap_placement_policy=None, sync_time_with_host=None, sync_time_with_host_periodically=None, tools_upgrade_policy=None, uuid=None, vapp=None, vapp_transports=None, vbs_enabled=None, vtpm=None, vvtd_enabled=None):
|
|
27
32
|
if alternate_guest_name and not isinstance(alternate_guest_name, str):
|
|
28
33
|
raise TypeError("Expected argument 'alternate_guest_name' to be a str")
|
|
29
34
|
pulumi.set(__self__, "alternate_guest_name", alternate_guest_name)
|
|
@@ -93,6 +98,9 @@ class GetVirtualMachineResult:
|
|
|
93
98
|
if firmware and not isinstance(firmware, str):
|
|
94
99
|
raise TypeError("Expected argument 'firmware' to be a str")
|
|
95
100
|
pulumi.set(__self__, "firmware", firmware)
|
|
101
|
+
if folder and not isinstance(folder, str):
|
|
102
|
+
raise TypeError("Expected argument 'folder' to be a str")
|
|
103
|
+
pulumi.set(__self__, "folder", folder)
|
|
96
104
|
if guest_id and not isinstance(guest_id, str):
|
|
97
105
|
raise TypeError("Expected argument 'guest_id' to be a str")
|
|
98
106
|
pulumi.set(__self__, "guest_id", guest_id)
|
|
@@ -111,6 +119,9 @@ class GetVirtualMachineResult:
|
|
|
111
119
|
if ide_controller_scan_count and not isinstance(ide_controller_scan_count, int):
|
|
112
120
|
raise TypeError("Expected argument 'ide_controller_scan_count' to be a int")
|
|
113
121
|
pulumi.set(__self__, "ide_controller_scan_count", ide_controller_scan_count)
|
|
122
|
+
if instance_uuid and not isinstance(instance_uuid, str):
|
|
123
|
+
raise TypeError("Expected argument 'instance_uuid' to be a str")
|
|
124
|
+
pulumi.set(__self__, "instance_uuid", instance_uuid)
|
|
114
125
|
if latency_sensitivity and not isinstance(latency_sensitivity, str):
|
|
115
126
|
raise TypeError("Expected argument 'latency_sensitivity' to be a str")
|
|
116
127
|
pulumi.set(__self__, "latency_sensitivity", latency_sensitivity)
|
|
@@ -126,6 +137,9 @@ class GetVirtualMachineResult:
|
|
|
126
137
|
if memory_reservation and not isinstance(memory_reservation, int):
|
|
127
138
|
raise TypeError("Expected argument 'memory_reservation' to be a int")
|
|
128
139
|
pulumi.set(__self__, "memory_reservation", memory_reservation)
|
|
140
|
+
if memory_reservation_locked_to_max and not isinstance(memory_reservation_locked_to_max, bool):
|
|
141
|
+
raise TypeError("Expected argument 'memory_reservation_locked_to_max' to be a bool")
|
|
142
|
+
pulumi.set(__self__, "memory_reservation_locked_to_max", memory_reservation_locked_to_max)
|
|
129
143
|
if memory_share_count and not isinstance(memory_share_count, int):
|
|
130
144
|
raise TypeError("Expected argument 'memory_share_count' to be a int")
|
|
131
145
|
pulumi.set(__self__, "memory_share_count", memory_share_count)
|
|
@@ -153,6 +167,9 @@ class GetVirtualMachineResult:
|
|
|
153
167
|
if num_cpus and not isinstance(num_cpus, int):
|
|
154
168
|
raise TypeError("Expected argument 'num_cpus' to be a int")
|
|
155
169
|
pulumi.set(__self__, "num_cpus", num_cpus)
|
|
170
|
+
if nvme_controller_scan_count and not isinstance(nvme_controller_scan_count, int):
|
|
171
|
+
raise TypeError("Expected argument 'nvme_controller_scan_count' to be a int")
|
|
172
|
+
pulumi.set(__self__, "nvme_controller_scan_count", nvme_controller_scan_count)
|
|
156
173
|
if replace_trigger and not isinstance(replace_trigger, str):
|
|
157
174
|
raise TypeError("Expected argument 'replace_trigger' to be a str")
|
|
158
175
|
pulumi.set(__self__, "replace_trigger", replace_trigger)
|
|
@@ -210,100 +227,104 @@ class GetVirtualMachineResult:
|
|
|
210
227
|
if vbs_enabled and not isinstance(vbs_enabled, bool):
|
|
211
228
|
raise TypeError("Expected argument 'vbs_enabled' to be a bool")
|
|
212
229
|
pulumi.set(__self__, "vbs_enabled", vbs_enabled)
|
|
230
|
+
if vtpm and not isinstance(vtpm, bool):
|
|
231
|
+
raise TypeError("Expected argument 'vtpm' to be a bool")
|
|
232
|
+
pulumi.set(__self__, "vtpm", vtpm)
|
|
213
233
|
if vvtd_enabled and not isinstance(vvtd_enabled, bool):
|
|
214
234
|
raise TypeError("Expected argument 'vvtd_enabled' to be a bool")
|
|
215
235
|
pulumi.set(__self__, "vvtd_enabled", vvtd_enabled)
|
|
216
236
|
|
|
217
|
-
@property
|
|
237
|
+
@_builtins.property
|
|
218
238
|
@pulumi.getter(name="alternateGuestName")
|
|
219
|
-
def alternate_guest_name(self) -> Optional[str]:
|
|
239
|
+
def alternate_guest_name(self) -> Optional[_builtins.str]:
|
|
220
240
|
"""
|
|
221
241
|
The alternate guest name of the virtual machine when
|
|
222
|
-
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
242
|
+
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
243
|
+
`otherGuest64`.
|
|
223
244
|
"""
|
|
224
245
|
return pulumi.get(self, "alternate_guest_name")
|
|
225
246
|
|
|
226
|
-
@property
|
|
247
|
+
@_builtins.property
|
|
227
248
|
@pulumi.getter
|
|
228
|
-
def annotation(self) -> str:
|
|
249
|
+
def annotation(self) -> _builtins.str:
|
|
229
250
|
"""
|
|
230
251
|
The user-provided description of this virtual machine.
|
|
231
252
|
"""
|
|
232
253
|
return pulumi.get(self, "annotation")
|
|
233
254
|
|
|
234
|
-
@property
|
|
255
|
+
@_builtins.property
|
|
235
256
|
@pulumi.getter(name="bootDelay")
|
|
236
|
-
def boot_delay(self) -> Optional[int]:
|
|
257
|
+
def boot_delay(self) -> Optional[_builtins.int]:
|
|
237
258
|
return pulumi.get(self, "boot_delay")
|
|
238
259
|
|
|
239
|
-
@property
|
|
260
|
+
@_builtins.property
|
|
240
261
|
@pulumi.getter(name="bootRetryDelay")
|
|
241
|
-
def boot_retry_delay(self) -> Optional[int]:
|
|
262
|
+
def boot_retry_delay(self) -> Optional[_builtins.int]:
|
|
242
263
|
return pulumi.get(self, "boot_retry_delay")
|
|
243
264
|
|
|
244
|
-
@property
|
|
265
|
+
@_builtins.property
|
|
245
266
|
@pulumi.getter(name="bootRetryEnabled")
|
|
246
|
-
def boot_retry_enabled(self) -> Optional[bool]:
|
|
267
|
+
def boot_retry_enabled(self) -> Optional[_builtins.bool]:
|
|
247
268
|
return pulumi.get(self, "boot_retry_enabled")
|
|
248
269
|
|
|
249
|
-
@property
|
|
270
|
+
@_builtins.property
|
|
250
271
|
@pulumi.getter(name="changeVersion")
|
|
251
|
-
def change_version(self) -> str:
|
|
272
|
+
def change_version(self) -> _builtins.str:
|
|
252
273
|
return pulumi.get(self, "change_version")
|
|
253
274
|
|
|
254
|
-
@property
|
|
275
|
+
@_builtins.property
|
|
255
276
|
@pulumi.getter(name="cpuHotAddEnabled")
|
|
256
|
-
def cpu_hot_add_enabled(self) -> Optional[bool]:
|
|
277
|
+
def cpu_hot_add_enabled(self) -> Optional[_builtins.bool]:
|
|
257
278
|
return pulumi.get(self, "cpu_hot_add_enabled")
|
|
258
279
|
|
|
259
|
-
@property
|
|
280
|
+
@_builtins.property
|
|
260
281
|
@pulumi.getter(name="cpuHotRemoveEnabled")
|
|
261
|
-
def cpu_hot_remove_enabled(self) -> Optional[bool]:
|
|
282
|
+
def cpu_hot_remove_enabled(self) -> Optional[_builtins.bool]:
|
|
262
283
|
return pulumi.get(self, "cpu_hot_remove_enabled")
|
|
263
284
|
|
|
264
|
-
@property
|
|
285
|
+
@_builtins.property
|
|
265
286
|
@pulumi.getter(name="cpuLimit")
|
|
266
|
-
def cpu_limit(self) -> Optional[int]:
|
|
287
|
+
def cpu_limit(self) -> Optional[_builtins.int]:
|
|
267
288
|
return pulumi.get(self, "cpu_limit")
|
|
268
289
|
|
|
269
|
-
@property
|
|
290
|
+
@_builtins.property
|
|
270
291
|
@pulumi.getter(name="cpuPerformanceCountersEnabled")
|
|
271
|
-
def cpu_performance_counters_enabled(self) -> Optional[bool]:
|
|
292
|
+
def cpu_performance_counters_enabled(self) -> Optional[_builtins.bool]:
|
|
272
293
|
return pulumi.get(self, "cpu_performance_counters_enabled")
|
|
273
294
|
|
|
274
|
-
@property
|
|
295
|
+
@_builtins.property
|
|
275
296
|
@pulumi.getter(name="cpuReservation")
|
|
276
|
-
def cpu_reservation(self) -> Optional[int]:
|
|
297
|
+
def cpu_reservation(self) -> Optional[_builtins.int]:
|
|
277
298
|
return pulumi.get(self, "cpu_reservation")
|
|
278
299
|
|
|
279
|
-
@property
|
|
300
|
+
@_builtins.property
|
|
280
301
|
@pulumi.getter(name="cpuShareCount")
|
|
281
|
-
def cpu_share_count(self) -> int:
|
|
302
|
+
def cpu_share_count(self) -> _builtins.int:
|
|
282
303
|
return pulumi.get(self, "cpu_share_count")
|
|
283
304
|
|
|
284
|
-
@property
|
|
305
|
+
@_builtins.property
|
|
285
306
|
@pulumi.getter(name="cpuShareLevel")
|
|
286
|
-
def cpu_share_level(self) -> Optional[str]:
|
|
307
|
+
def cpu_share_level(self) -> Optional[_builtins.str]:
|
|
287
308
|
return pulumi.get(self, "cpu_share_level")
|
|
288
309
|
|
|
289
|
-
@property
|
|
310
|
+
@_builtins.property
|
|
290
311
|
@pulumi.getter(name="datacenterId")
|
|
291
|
-
def datacenter_id(self) -> Optional[str]:
|
|
312
|
+
def datacenter_id(self) -> Optional[_builtins.str]:
|
|
292
313
|
return pulumi.get(self, "datacenter_id")
|
|
293
314
|
|
|
294
|
-
@property
|
|
315
|
+
@_builtins.property
|
|
295
316
|
@pulumi.getter(name="defaultIpAddress")
|
|
296
|
-
def default_ip_address(self) -> str:
|
|
317
|
+
def default_ip_address(self) -> _builtins.str:
|
|
297
318
|
"""
|
|
298
|
-
Whenever possible, this is the first IPv4 address that
|
|
299
|
-
the default gateway configured on the machine, then the
|
|
300
|
-
address, and then the first general discovered address if
|
|
301
|
-
VMware Tools is not running on the virtual machine, or if
|
|
302
|
-
off, this value will be blank.
|
|
319
|
+
Whenever possible, this is the first IPv4 address that
|
|
320
|
+
is reachable through the default gateway configured on the machine, then the
|
|
321
|
+
first reachable IPv6 address, and then the first general discovered address if
|
|
322
|
+
neither exist. If VMware Tools is not running on the virtual machine, or if
|
|
323
|
+
the VM is powered off, this value will be blank.
|
|
303
324
|
"""
|
|
304
325
|
return pulumi.get(self, "default_ip_address")
|
|
305
326
|
|
|
306
|
-
@property
|
|
327
|
+
@_builtins.property
|
|
307
328
|
@pulumi.getter
|
|
308
329
|
def disks(self) -> Sequence['outputs.GetVirtualMachineDiskResult']:
|
|
309
330
|
"""
|
|
@@ -311,225 +332,251 @@ class GetVirtualMachineResult:
|
|
|
311
332
|
template. These are sorted by bus and unit number so that they can be applied
|
|
312
333
|
to a `VirtualMachine` resource in the order the resource expects
|
|
313
334
|
while cloning. This is useful for discovering certain disk settings while
|
|
314
|
-
performing a linked clone, as all settings that are output by this data
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
335
|
+
performing a linked clone, as all settings that are output by this data source
|
|
336
|
+
must be the same on the destination virtual machine as the source. Only the
|
|
337
|
+
first number of controllers defined by `scsi_controller_scan_count` are
|
|
338
|
+
scanned for disks. The sub-attributes are:
|
|
318
339
|
"""
|
|
319
340
|
return pulumi.get(self, "disks")
|
|
320
341
|
|
|
321
|
-
@property
|
|
342
|
+
@_builtins.property
|
|
322
343
|
@pulumi.getter(name="efiSecureBootEnabled")
|
|
323
|
-
def efi_secure_boot_enabled(self) -> Optional[bool]:
|
|
344
|
+
def efi_secure_boot_enabled(self) -> Optional[_builtins.bool]:
|
|
324
345
|
return pulumi.get(self, "efi_secure_boot_enabled")
|
|
325
346
|
|
|
326
|
-
@property
|
|
347
|
+
@_builtins.property
|
|
327
348
|
@pulumi.getter(name="enableDiskUuid")
|
|
328
|
-
def enable_disk_uuid(self) -> Optional[bool]:
|
|
349
|
+
def enable_disk_uuid(self) -> Optional[_builtins.bool]:
|
|
329
350
|
return pulumi.get(self, "enable_disk_uuid")
|
|
330
351
|
|
|
331
|
-
@property
|
|
352
|
+
@_builtins.property
|
|
332
353
|
@pulumi.getter(name="enableLogging")
|
|
333
|
-
def enable_logging(self) -> Optional[bool]:
|
|
354
|
+
def enable_logging(self) -> Optional[_builtins.bool]:
|
|
334
355
|
return pulumi.get(self, "enable_logging")
|
|
335
356
|
|
|
336
|
-
@property
|
|
357
|
+
@_builtins.property
|
|
337
358
|
@pulumi.getter(name="eptRviMode")
|
|
338
|
-
def ept_rvi_mode(self) ->
|
|
359
|
+
def ept_rvi_mode(self) -> _builtins.str:
|
|
339
360
|
return pulumi.get(self, "ept_rvi_mode")
|
|
340
361
|
|
|
341
|
-
@property
|
|
362
|
+
@_builtins.property
|
|
342
363
|
@pulumi.getter(name="extraConfig")
|
|
343
|
-
def extra_config(self) -> Optional[Mapping[str, str]]:
|
|
364
|
+
def extra_config(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
344
365
|
return pulumi.get(self, "extra_config")
|
|
345
366
|
|
|
346
|
-
@property
|
|
367
|
+
@_builtins.property
|
|
347
368
|
@pulumi.getter(name="extraConfigRebootRequired")
|
|
348
|
-
def extra_config_reboot_required(self) -> Optional[bool]:
|
|
369
|
+
def extra_config_reboot_required(self) -> Optional[_builtins.bool]:
|
|
349
370
|
return pulumi.get(self, "extra_config_reboot_required")
|
|
350
371
|
|
|
351
|
-
@property
|
|
372
|
+
@_builtins.property
|
|
352
373
|
@pulumi.getter
|
|
353
|
-
def firmware(self) -> Optional[str]:
|
|
374
|
+
def firmware(self) -> Optional[_builtins.str]:
|
|
354
375
|
"""
|
|
355
|
-
The firmware type for this virtual machine. Can be `bios` or
|
|
376
|
+
The firmware type for this virtual machine. Can be `bios` or
|
|
377
|
+
`efi`.
|
|
356
378
|
"""
|
|
357
379
|
return pulumi.get(self, "firmware")
|
|
358
380
|
|
|
359
|
-
@property
|
|
381
|
+
@_builtins.property
|
|
382
|
+
@pulumi.getter
|
|
383
|
+
def folder(self) -> Optional[_builtins.str]:
|
|
384
|
+
return pulumi.get(self, "folder")
|
|
385
|
+
|
|
386
|
+
@_builtins.property
|
|
360
387
|
@pulumi.getter(name="guestId")
|
|
361
|
-
def guest_id(self) -> str:
|
|
388
|
+
def guest_id(self) -> _builtins.str:
|
|
362
389
|
"""
|
|
363
390
|
The guest ID of the virtual machine or template.
|
|
364
391
|
"""
|
|
365
392
|
return pulumi.get(self, "guest_id")
|
|
366
393
|
|
|
367
|
-
@property
|
|
394
|
+
@_builtins.property
|
|
368
395
|
@pulumi.getter(name="guestIpAddresses")
|
|
369
|
-
def guest_ip_addresses(self) -> Sequence[str]:
|
|
396
|
+
def guest_ip_addresses(self) -> Sequence[_builtins.str]:
|
|
370
397
|
"""
|
|
371
398
|
A list of IP addresses as reported by VMware Tools.
|
|
372
399
|
"""
|
|
373
400
|
return pulumi.get(self, "guest_ip_addresses")
|
|
374
401
|
|
|
375
|
-
@property
|
|
402
|
+
@_builtins.property
|
|
376
403
|
@pulumi.getter(name="hardwareVersion")
|
|
377
|
-
def hardware_version(self) -> int:
|
|
404
|
+
def hardware_version(self) -> _builtins.int:
|
|
378
405
|
"""
|
|
379
406
|
The hardware version number on this virtual machine.
|
|
380
407
|
"""
|
|
381
408
|
return pulumi.get(self, "hardware_version")
|
|
382
409
|
|
|
383
|
-
@property
|
|
410
|
+
@_builtins.property
|
|
384
411
|
@pulumi.getter(name="hvMode")
|
|
385
|
-
def hv_mode(self) ->
|
|
412
|
+
def hv_mode(self) -> _builtins.str:
|
|
386
413
|
return pulumi.get(self, "hv_mode")
|
|
387
414
|
|
|
388
|
-
@property
|
|
415
|
+
@_builtins.property
|
|
389
416
|
@pulumi.getter
|
|
390
|
-
def id(self) -> str:
|
|
417
|
+
def id(self) -> _builtins.str:
|
|
391
418
|
"""
|
|
392
419
|
The provider-assigned unique ID for this managed resource.
|
|
393
420
|
"""
|
|
394
421
|
return pulumi.get(self, "id")
|
|
395
422
|
|
|
396
|
-
@property
|
|
423
|
+
@_builtins.property
|
|
397
424
|
@pulumi.getter(name="ideControllerScanCount")
|
|
398
|
-
def ide_controller_scan_count(self) -> Optional[int]:
|
|
425
|
+
def ide_controller_scan_count(self) -> Optional[_builtins.int]:
|
|
399
426
|
return pulumi.get(self, "ide_controller_scan_count")
|
|
400
427
|
|
|
401
|
-
@property
|
|
428
|
+
@_builtins.property
|
|
429
|
+
@pulumi.getter(name="instanceUuid")
|
|
430
|
+
def instance_uuid(self) -> _builtins.str:
|
|
431
|
+
"""
|
|
432
|
+
The instance UUID of the virtual machine or template.
|
|
433
|
+
"""
|
|
434
|
+
return pulumi.get(self, "instance_uuid")
|
|
435
|
+
|
|
436
|
+
@_builtins.property
|
|
402
437
|
@pulumi.getter(name="latencySensitivity")
|
|
403
|
-
def latency_sensitivity(self) -> Optional[str]:
|
|
438
|
+
def latency_sensitivity(self) -> Optional[_builtins.str]:
|
|
404
439
|
return pulumi.get(self, "latency_sensitivity")
|
|
405
440
|
|
|
406
|
-
@property
|
|
441
|
+
@_builtins.property
|
|
407
442
|
@pulumi.getter
|
|
408
|
-
def memory(self) -> Optional[int]:
|
|
443
|
+
def memory(self) -> Optional[_builtins.int]:
|
|
409
444
|
"""
|
|
410
445
|
The size of the virtual machine's memory, in MB.
|
|
411
446
|
"""
|
|
412
447
|
return pulumi.get(self, "memory")
|
|
413
448
|
|
|
414
|
-
@property
|
|
449
|
+
@_builtins.property
|
|
415
450
|
@pulumi.getter(name="memoryHotAddEnabled")
|
|
416
|
-
def memory_hot_add_enabled(self) -> Optional[bool]:
|
|
451
|
+
def memory_hot_add_enabled(self) -> Optional[_builtins.bool]:
|
|
417
452
|
return pulumi.get(self, "memory_hot_add_enabled")
|
|
418
453
|
|
|
419
|
-
@property
|
|
454
|
+
@_builtins.property
|
|
420
455
|
@pulumi.getter(name="memoryLimit")
|
|
421
|
-
def memory_limit(self) -> Optional[int]:
|
|
456
|
+
def memory_limit(self) -> Optional[_builtins.int]:
|
|
422
457
|
return pulumi.get(self, "memory_limit")
|
|
423
458
|
|
|
424
|
-
@property
|
|
459
|
+
@_builtins.property
|
|
425
460
|
@pulumi.getter(name="memoryReservation")
|
|
426
|
-
def memory_reservation(self) -> Optional[int]:
|
|
461
|
+
def memory_reservation(self) -> Optional[_builtins.int]:
|
|
427
462
|
return pulumi.get(self, "memory_reservation")
|
|
428
463
|
|
|
429
|
-
@property
|
|
464
|
+
@_builtins.property
|
|
465
|
+
@pulumi.getter(name="memoryReservationLockedToMax")
|
|
466
|
+
def memory_reservation_locked_to_max(self) -> Optional[_builtins.bool]:
|
|
467
|
+
return pulumi.get(self, "memory_reservation_locked_to_max")
|
|
468
|
+
|
|
469
|
+
@_builtins.property
|
|
430
470
|
@pulumi.getter(name="memoryShareCount")
|
|
431
|
-
def memory_share_count(self) -> int:
|
|
471
|
+
def memory_share_count(self) -> _builtins.int:
|
|
432
472
|
return pulumi.get(self, "memory_share_count")
|
|
433
473
|
|
|
434
|
-
@property
|
|
474
|
+
@_builtins.property
|
|
435
475
|
@pulumi.getter(name="memoryShareLevel")
|
|
436
|
-
def memory_share_level(self) -> Optional[str]:
|
|
476
|
+
def memory_share_level(self) -> Optional[_builtins.str]:
|
|
437
477
|
return pulumi.get(self, "memory_share_level")
|
|
438
478
|
|
|
439
|
-
@property
|
|
479
|
+
@_builtins.property
|
|
440
480
|
@pulumi.getter
|
|
441
|
-
def moid(self) -> str:
|
|
481
|
+
def moid(self) -> _builtins.str:
|
|
442
482
|
return pulumi.get(self, "moid")
|
|
443
483
|
|
|
444
|
-
@property
|
|
484
|
+
@_builtins.property
|
|
445
485
|
@pulumi.getter
|
|
446
|
-
def name(self) -> Optional[str]:
|
|
486
|
+
def name(self) -> Optional[_builtins.str]:
|
|
447
487
|
return pulumi.get(self, "name")
|
|
448
488
|
|
|
449
|
-
@property
|
|
489
|
+
@_builtins.property
|
|
450
490
|
@pulumi.getter(name="nestedHvEnabled")
|
|
451
|
-
def nested_hv_enabled(self) -> Optional[bool]:
|
|
491
|
+
def nested_hv_enabled(self) -> Optional[_builtins.bool]:
|
|
452
492
|
return pulumi.get(self, "nested_hv_enabled")
|
|
453
493
|
|
|
454
|
-
@property
|
|
494
|
+
@_builtins.property
|
|
455
495
|
@pulumi.getter(name="networkInterfaceTypes")
|
|
456
|
-
def network_interface_types(self) -> Sequence[str]:
|
|
496
|
+
def network_interface_types(self) -> Sequence[_builtins.str]:
|
|
457
497
|
"""
|
|
458
498
|
The network interface types for each network
|
|
459
499
|
interface found on the virtual machine, in device bus order. Will be one of
|
|
460
|
-
`e1000`, `e1000e`, `pcnet32`, `sriov`, `vmxnet2`, `vmxnet3vrdma`, or
|
|
500
|
+
`e1000`, `e1000e`, `pcnet32`, `sriov`, `vmxnet2`, `vmxnet3vrdma`, or
|
|
501
|
+
`vmxnet3`.
|
|
461
502
|
"""
|
|
462
503
|
return pulumi.get(self, "network_interface_types")
|
|
463
504
|
|
|
464
|
-
@property
|
|
505
|
+
@_builtins.property
|
|
465
506
|
@pulumi.getter(name="networkInterfaces")
|
|
466
507
|
def network_interfaces(self) -> Sequence['outputs.GetVirtualMachineNetworkInterfaceResult']:
|
|
467
508
|
"""
|
|
468
|
-
Information about each of the network interfaces on
|
|
469
|
-
virtual machine or template. These are sorted by device bus order so that
|
|
470
|
-
can be applied to a `VirtualMachine` resource in the order the
|
|
471
|
-
expects while cloning. This is useful for discovering certain network
|
|
472
|
-
settings while performing a linked clone, as all settings that are
|
|
473
|
-
data source must be the same on the destination virtual machine
|
|
474
|
-
The sub-attributes are:
|
|
509
|
+
Information about each of the network interfaces on
|
|
510
|
+
this virtual machine or template. These are sorted by device bus order so that
|
|
511
|
+
they can be applied to a `VirtualMachine` resource in the order the
|
|
512
|
+
resource expects while cloning. This is useful for discovering certain network
|
|
513
|
+
interface settings while performing a linked clone, as all settings that are
|
|
514
|
+
output by this data source must be the same on the destination virtual machine
|
|
515
|
+
as the source. The sub-attributes are:
|
|
475
516
|
"""
|
|
476
517
|
return pulumi.get(self, "network_interfaces")
|
|
477
518
|
|
|
478
|
-
@property
|
|
519
|
+
@_builtins.property
|
|
479
520
|
@pulumi.getter(name="numCoresPerSocket")
|
|
480
|
-
def num_cores_per_socket(self) -> Optional[int]:
|
|
521
|
+
def num_cores_per_socket(self) -> Optional[_builtins.int]:
|
|
481
522
|
"""
|
|
482
|
-
The number of cores per socket for this virtual
|
|
523
|
+
The number of cores per socket for this virtual
|
|
524
|
+
machine.
|
|
483
525
|
"""
|
|
484
526
|
return pulumi.get(self, "num_cores_per_socket")
|
|
485
527
|
|
|
486
|
-
@property
|
|
528
|
+
@_builtins.property
|
|
487
529
|
@pulumi.getter(name="numCpus")
|
|
488
|
-
def num_cpus(self) -> Optional[int]:
|
|
530
|
+
def num_cpus(self) -> Optional[_builtins.int]:
|
|
489
531
|
"""
|
|
490
532
|
The total number of virtual processor cores assigned to this
|
|
491
533
|
virtual machine.
|
|
492
534
|
"""
|
|
493
535
|
return pulumi.get(self, "num_cpus")
|
|
494
536
|
|
|
495
|
-
@property
|
|
537
|
+
@_builtins.property
|
|
538
|
+
@pulumi.getter(name="nvmeControllerScanCount")
|
|
539
|
+
def nvme_controller_scan_count(self) -> Optional[_builtins.int]:
|
|
540
|
+
return pulumi.get(self, "nvme_controller_scan_count")
|
|
541
|
+
|
|
542
|
+
@_builtins.property
|
|
496
543
|
@pulumi.getter(name="replaceTrigger")
|
|
497
|
-
def replace_trigger(self) -> Optional[str]:
|
|
544
|
+
def replace_trigger(self) -> Optional[_builtins.str]:
|
|
498
545
|
return pulumi.get(self, "replace_trigger")
|
|
499
546
|
|
|
500
|
-
@property
|
|
547
|
+
@_builtins.property
|
|
501
548
|
@pulumi.getter(name="runToolsScriptsAfterPowerOn")
|
|
502
|
-
def run_tools_scripts_after_power_on(self) -> Optional[bool]:
|
|
549
|
+
def run_tools_scripts_after_power_on(self) -> Optional[_builtins.bool]:
|
|
503
550
|
return pulumi.get(self, "run_tools_scripts_after_power_on")
|
|
504
551
|
|
|
505
|
-
@property
|
|
552
|
+
@_builtins.property
|
|
506
553
|
@pulumi.getter(name="runToolsScriptsAfterResume")
|
|
507
|
-
def run_tools_scripts_after_resume(self) -> Optional[bool]:
|
|
554
|
+
def run_tools_scripts_after_resume(self) -> Optional[_builtins.bool]:
|
|
508
555
|
return pulumi.get(self, "run_tools_scripts_after_resume")
|
|
509
556
|
|
|
510
|
-
@property
|
|
557
|
+
@_builtins.property
|
|
511
558
|
@pulumi.getter(name="runToolsScriptsBeforeGuestReboot")
|
|
512
|
-
def run_tools_scripts_before_guest_reboot(self) -> Optional[bool]:
|
|
559
|
+
def run_tools_scripts_before_guest_reboot(self) -> Optional[_builtins.bool]:
|
|
513
560
|
return pulumi.get(self, "run_tools_scripts_before_guest_reboot")
|
|
514
561
|
|
|
515
|
-
@property
|
|
562
|
+
@_builtins.property
|
|
516
563
|
@pulumi.getter(name="runToolsScriptsBeforeGuestShutdown")
|
|
517
|
-
def run_tools_scripts_before_guest_shutdown(self) -> Optional[bool]:
|
|
564
|
+
def run_tools_scripts_before_guest_shutdown(self) -> Optional[_builtins.bool]:
|
|
518
565
|
return pulumi.get(self, "run_tools_scripts_before_guest_shutdown")
|
|
519
566
|
|
|
520
|
-
@property
|
|
567
|
+
@_builtins.property
|
|
521
568
|
@pulumi.getter(name="runToolsScriptsBeforeGuestStandby")
|
|
522
|
-
def run_tools_scripts_before_guest_standby(self) -> Optional[bool]:
|
|
569
|
+
def run_tools_scripts_before_guest_standby(self) -> Optional[_builtins.bool]:
|
|
523
570
|
return pulumi.get(self, "run_tools_scripts_before_guest_standby")
|
|
524
571
|
|
|
525
|
-
@property
|
|
572
|
+
@_builtins.property
|
|
526
573
|
@pulumi.getter(name="sataControllerScanCount")
|
|
527
|
-
def sata_controller_scan_count(self) -> Optional[int]:
|
|
574
|
+
def sata_controller_scan_count(self) -> Optional[_builtins.int]:
|
|
528
575
|
return pulumi.get(self, "sata_controller_scan_count")
|
|
529
576
|
|
|
530
|
-
@property
|
|
577
|
+
@_builtins.property
|
|
531
578
|
@pulumi.getter(name="scsiBusSharing")
|
|
532
|
-
def scsi_bus_sharing(self) -> str:
|
|
579
|
+
def scsi_bus_sharing(self) -> _builtins.str:
|
|
533
580
|
"""
|
|
534
581
|
Mode for sharing the SCSI bus. The modes are
|
|
535
582
|
physicalSharing, virtualSharing, and noSharing. Only the first number of
|
|
@@ -537,14 +584,14 @@ class GetVirtualMachineResult:
|
|
|
537
584
|
"""
|
|
538
585
|
return pulumi.get(self, "scsi_bus_sharing")
|
|
539
586
|
|
|
540
|
-
@property
|
|
587
|
+
@_builtins.property
|
|
541
588
|
@pulumi.getter(name="scsiControllerScanCount")
|
|
542
|
-
def scsi_controller_scan_count(self) -> Optional[int]:
|
|
589
|
+
def scsi_controller_scan_count(self) -> Optional[_builtins.int]:
|
|
543
590
|
return pulumi.get(self, "scsi_controller_scan_count")
|
|
544
591
|
|
|
545
|
-
@property
|
|
592
|
+
@_builtins.property
|
|
546
593
|
@pulumi.getter(name="scsiType")
|
|
547
|
-
def scsi_type(self) -> str:
|
|
594
|
+
def scsi_type(self) -> _builtins.str:
|
|
548
595
|
"""
|
|
549
596
|
The common type of all SCSI controllers on this virtual machine.
|
|
550
597
|
Will be one of `lsilogic` (LSI Logic Parallel), `lsilogic-sas` (LSI Logic
|
|
@@ -554,54 +601,62 @@ class GetVirtualMachineResult:
|
|
|
554
601
|
"""
|
|
555
602
|
return pulumi.get(self, "scsi_type")
|
|
556
603
|
|
|
557
|
-
@property
|
|
604
|
+
@_builtins.property
|
|
558
605
|
@pulumi.getter(name="storagePolicyId")
|
|
559
|
-
def storage_policy_id(self) -> str:
|
|
606
|
+
def storage_policy_id(self) -> _builtins.str:
|
|
560
607
|
return pulumi.get(self, "storage_policy_id")
|
|
561
608
|
|
|
562
|
-
@property
|
|
609
|
+
@_builtins.property
|
|
563
610
|
@pulumi.getter(name="swapPlacementPolicy")
|
|
564
|
-
def swap_placement_policy(self) -> Optional[str]:
|
|
611
|
+
def swap_placement_policy(self) -> Optional[_builtins.str]:
|
|
565
612
|
return pulumi.get(self, "swap_placement_policy")
|
|
566
613
|
|
|
567
|
-
@property
|
|
614
|
+
@_builtins.property
|
|
568
615
|
@pulumi.getter(name="syncTimeWithHost")
|
|
569
|
-
def sync_time_with_host(self) -> Optional[bool]:
|
|
616
|
+
def sync_time_with_host(self) -> Optional[_builtins.bool]:
|
|
570
617
|
return pulumi.get(self, "sync_time_with_host")
|
|
571
618
|
|
|
572
|
-
@property
|
|
619
|
+
@_builtins.property
|
|
573
620
|
@pulumi.getter(name="syncTimeWithHostPeriodically")
|
|
574
|
-
def sync_time_with_host_periodically(self) -> Optional[bool]:
|
|
621
|
+
def sync_time_with_host_periodically(self) -> Optional[_builtins.bool]:
|
|
575
622
|
return pulumi.get(self, "sync_time_with_host_periodically")
|
|
576
623
|
|
|
577
|
-
@property
|
|
624
|
+
@_builtins.property
|
|
578
625
|
@pulumi.getter(name="toolsUpgradePolicy")
|
|
579
|
-
def tools_upgrade_policy(self) -> Optional[str]:
|
|
626
|
+
def tools_upgrade_policy(self) -> Optional[_builtins.str]:
|
|
580
627
|
return pulumi.get(self, "tools_upgrade_policy")
|
|
581
628
|
|
|
582
|
-
@property
|
|
629
|
+
@_builtins.property
|
|
583
630
|
@pulumi.getter
|
|
584
|
-
def uuid(self) -> str:
|
|
631
|
+
def uuid(self) -> _builtins.str:
|
|
585
632
|
return pulumi.get(self, "uuid")
|
|
586
633
|
|
|
587
|
-
@property
|
|
634
|
+
@_builtins.property
|
|
588
635
|
@pulumi.getter
|
|
589
636
|
def vapp(self) -> Optional['outputs.GetVirtualMachineVappResult']:
|
|
590
637
|
return pulumi.get(self, "vapp")
|
|
591
638
|
|
|
592
|
-
@property
|
|
639
|
+
@_builtins.property
|
|
593
640
|
@pulumi.getter(name="vappTransports")
|
|
594
|
-
def vapp_transports(self) -> Sequence[str]:
|
|
641
|
+
def vapp_transports(self) -> Sequence[_builtins.str]:
|
|
595
642
|
return pulumi.get(self, "vapp_transports")
|
|
596
643
|
|
|
597
|
-
@property
|
|
644
|
+
@_builtins.property
|
|
598
645
|
@pulumi.getter(name="vbsEnabled")
|
|
599
|
-
def vbs_enabled(self) -> Optional[bool]:
|
|
646
|
+
def vbs_enabled(self) -> Optional[_builtins.bool]:
|
|
600
647
|
return pulumi.get(self, "vbs_enabled")
|
|
601
648
|
|
|
602
|
-
@property
|
|
649
|
+
@_builtins.property
|
|
650
|
+
@pulumi.getter
|
|
651
|
+
def vtpm(self) -> _builtins.bool:
|
|
652
|
+
"""
|
|
653
|
+
Indicates whether a virtual Trusted Platform Module (TPM) device is present on the virtual machine.
|
|
654
|
+
"""
|
|
655
|
+
return pulumi.get(self, "vtpm")
|
|
656
|
+
|
|
657
|
+
@_builtins.property
|
|
603
658
|
@pulumi.getter(name="vvtdEnabled")
|
|
604
|
-
def vvtd_enabled(self) -> Optional[bool]:
|
|
659
|
+
def vvtd_enabled(self) -> Optional[_builtins.bool]:
|
|
605
660
|
return pulumi.get(self, "vvtd_enabled")
|
|
606
661
|
|
|
607
662
|
|
|
@@ -634,17 +689,20 @@ class AwaitableGetVirtualMachineResult(GetVirtualMachineResult):
|
|
|
634
689
|
extra_config=self.extra_config,
|
|
635
690
|
extra_config_reboot_required=self.extra_config_reboot_required,
|
|
636
691
|
firmware=self.firmware,
|
|
692
|
+
folder=self.folder,
|
|
637
693
|
guest_id=self.guest_id,
|
|
638
694
|
guest_ip_addresses=self.guest_ip_addresses,
|
|
639
695
|
hardware_version=self.hardware_version,
|
|
640
696
|
hv_mode=self.hv_mode,
|
|
641
697
|
id=self.id,
|
|
642
698
|
ide_controller_scan_count=self.ide_controller_scan_count,
|
|
699
|
+
instance_uuid=self.instance_uuid,
|
|
643
700
|
latency_sensitivity=self.latency_sensitivity,
|
|
644
701
|
memory=self.memory,
|
|
645
702
|
memory_hot_add_enabled=self.memory_hot_add_enabled,
|
|
646
703
|
memory_limit=self.memory_limit,
|
|
647
704
|
memory_reservation=self.memory_reservation,
|
|
705
|
+
memory_reservation_locked_to_max=self.memory_reservation_locked_to_max,
|
|
648
706
|
memory_share_count=self.memory_share_count,
|
|
649
707
|
memory_share_level=self.memory_share_level,
|
|
650
708
|
moid=self.moid,
|
|
@@ -654,6 +712,7 @@ class AwaitableGetVirtualMachineResult(GetVirtualMachineResult):
|
|
|
654
712
|
network_interfaces=self.network_interfaces,
|
|
655
713
|
num_cores_per_socket=self.num_cores_per_socket,
|
|
656
714
|
num_cpus=self.num_cpus,
|
|
715
|
+
nvme_controller_scan_count=self.nvme_controller_scan_count,
|
|
657
716
|
replace_trigger=self.replace_trigger,
|
|
658
717
|
run_tools_scripts_after_power_on=self.run_tools_scripts_after_power_on,
|
|
659
718
|
run_tools_scripts_after_resume=self.run_tools_scripts_after_resume,
|
|
@@ -673,62 +732,66 @@ class AwaitableGetVirtualMachineResult(GetVirtualMachineResult):
|
|
|
673
732
|
vapp=self.vapp,
|
|
674
733
|
vapp_transports=self.vapp_transports,
|
|
675
734
|
vbs_enabled=self.vbs_enabled,
|
|
735
|
+
vtpm=self.vtpm,
|
|
676
736
|
vvtd_enabled=self.vvtd_enabled)
|
|
677
737
|
|
|
678
738
|
|
|
679
|
-
def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
680
|
-
annotation: Optional[str] = None,
|
|
681
|
-
boot_delay: Optional[int] = None,
|
|
682
|
-
boot_retry_delay: Optional[int] = None,
|
|
683
|
-
boot_retry_enabled: Optional[bool] = None,
|
|
684
|
-
cpu_hot_add_enabled: Optional[bool] = None,
|
|
685
|
-
cpu_hot_remove_enabled: Optional[bool] = None,
|
|
686
|
-
cpu_limit: Optional[int] = None,
|
|
687
|
-
cpu_performance_counters_enabled: Optional[bool] = None,
|
|
688
|
-
cpu_reservation: Optional[int] = None,
|
|
689
|
-
cpu_share_count: Optional[int] = None,
|
|
690
|
-
cpu_share_level: Optional[str] = None,
|
|
691
|
-
datacenter_id: Optional[str] = None,
|
|
692
|
-
efi_secure_boot_enabled: Optional[bool] = None,
|
|
693
|
-
enable_disk_uuid: Optional[bool] = None,
|
|
694
|
-
enable_logging: Optional[bool] = None,
|
|
695
|
-
ept_rvi_mode: Optional[str] = None,
|
|
696
|
-
extra_config: Optional[Mapping[str, str]] = None,
|
|
697
|
-
extra_config_reboot_required: Optional[bool] = None,
|
|
698
|
-
firmware: Optional[str] = None,
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
739
|
+
def get_virtual_machine(alternate_guest_name: Optional[_builtins.str] = None,
|
|
740
|
+
annotation: Optional[_builtins.str] = None,
|
|
741
|
+
boot_delay: Optional[_builtins.int] = None,
|
|
742
|
+
boot_retry_delay: Optional[_builtins.int] = None,
|
|
743
|
+
boot_retry_enabled: Optional[_builtins.bool] = None,
|
|
744
|
+
cpu_hot_add_enabled: Optional[_builtins.bool] = None,
|
|
745
|
+
cpu_hot_remove_enabled: Optional[_builtins.bool] = None,
|
|
746
|
+
cpu_limit: Optional[_builtins.int] = None,
|
|
747
|
+
cpu_performance_counters_enabled: Optional[_builtins.bool] = None,
|
|
748
|
+
cpu_reservation: Optional[_builtins.int] = None,
|
|
749
|
+
cpu_share_count: Optional[_builtins.int] = None,
|
|
750
|
+
cpu_share_level: Optional[_builtins.str] = None,
|
|
751
|
+
datacenter_id: Optional[_builtins.str] = None,
|
|
752
|
+
efi_secure_boot_enabled: Optional[_builtins.bool] = None,
|
|
753
|
+
enable_disk_uuid: Optional[_builtins.bool] = None,
|
|
754
|
+
enable_logging: Optional[_builtins.bool] = None,
|
|
755
|
+
ept_rvi_mode: Optional[_builtins.str] = None,
|
|
756
|
+
extra_config: Optional[Mapping[str, _builtins.str]] = None,
|
|
757
|
+
extra_config_reboot_required: Optional[_builtins.bool] = None,
|
|
758
|
+
firmware: Optional[_builtins.str] = None,
|
|
759
|
+
folder: Optional[_builtins.str] = None,
|
|
760
|
+
guest_id: Optional[_builtins.str] = None,
|
|
761
|
+
hardware_version: Optional[_builtins.int] = None,
|
|
762
|
+
hv_mode: Optional[_builtins.str] = None,
|
|
763
|
+
ide_controller_scan_count: Optional[_builtins.int] = None,
|
|
764
|
+
latency_sensitivity: Optional[_builtins.str] = None,
|
|
765
|
+
memory: Optional[_builtins.int] = None,
|
|
766
|
+
memory_hot_add_enabled: Optional[_builtins.bool] = None,
|
|
767
|
+
memory_limit: Optional[_builtins.int] = None,
|
|
768
|
+
memory_reservation: Optional[_builtins.int] = None,
|
|
769
|
+
memory_reservation_locked_to_max: Optional[_builtins.bool] = None,
|
|
770
|
+
memory_share_count: Optional[_builtins.int] = None,
|
|
771
|
+
memory_share_level: Optional[_builtins.str] = None,
|
|
772
|
+
moid: Optional[_builtins.str] = None,
|
|
773
|
+
name: Optional[_builtins.str] = None,
|
|
774
|
+
nested_hv_enabled: Optional[_builtins.bool] = None,
|
|
775
|
+
num_cores_per_socket: Optional[_builtins.int] = None,
|
|
776
|
+
num_cpus: Optional[_builtins.int] = None,
|
|
777
|
+
nvme_controller_scan_count: Optional[_builtins.int] = None,
|
|
778
|
+
replace_trigger: Optional[_builtins.str] = None,
|
|
779
|
+
run_tools_scripts_after_power_on: Optional[_builtins.bool] = None,
|
|
780
|
+
run_tools_scripts_after_resume: Optional[_builtins.bool] = None,
|
|
781
|
+
run_tools_scripts_before_guest_reboot: Optional[_builtins.bool] = None,
|
|
782
|
+
run_tools_scripts_before_guest_shutdown: Optional[_builtins.bool] = None,
|
|
783
|
+
run_tools_scripts_before_guest_standby: Optional[_builtins.bool] = None,
|
|
784
|
+
sata_controller_scan_count: Optional[_builtins.int] = None,
|
|
785
|
+
scsi_controller_scan_count: Optional[_builtins.int] = None,
|
|
786
|
+
storage_policy_id: Optional[_builtins.str] = None,
|
|
787
|
+
swap_placement_policy: Optional[_builtins.str] = None,
|
|
788
|
+
sync_time_with_host: Optional[_builtins.bool] = None,
|
|
789
|
+
sync_time_with_host_periodically: Optional[_builtins.bool] = None,
|
|
790
|
+
tools_upgrade_policy: Optional[_builtins.str] = None,
|
|
791
|
+
uuid: Optional[_builtins.str] = None,
|
|
792
|
+
vapp: Optional[Union['GetVirtualMachineVappArgs', 'GetVirtualMachineVappArgsDict']] = None,
|
|
793
|
+
vbs_enabled: Optional[_builtins.bool] = None,
|
|
794
|
+
vvtd_enabled: Optional[_builtins.bool] = None,
|
|
732
795
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVirtualMachineResult:
|
|
733
796
|
"""
|
|
734
797
|
The `VirtualMachine` data source can be used to find the UUID of an
|
|
@@ -739,8 +802,8 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
739
802
|
|
|
740
803
|
## Example Usage
|
|
741
804
|
|
|
742
|
-
In the following example, a virtual machine template is returned by its
|
|
743
|
-
|
|
805
|
+
In the following example, a virtual machine template is returned by its unique
|
|
806
|
+
name within the `Datacenter`.
|
|
744
807
|
|
|
745
808
|
```python
|
|
746
809
|
import pulumi
|
|
@@ -750,6 +813,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
750
813
|
template = vsphere.get_virtual_machine(name="ubuntu-server-template",
|
|
751
814
|
datacenter_id=datacenter.id)
|
|
752
815
|
```
|
|
816
|
+
|
|
753
817
|
In the following example, each virtual machine template is returned by its
|
|
754
818
|
unique full path within the `Datacenter`.
|
|
755
819
|
|
|
@@ -765,25 +829,29 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
765
829
|
```
|
|
766
830
|
|
|
767
831
|
|
|
768
|
-
:param str alternate_guest_name: The alternate guest name of the virtual machine when
|
|
769
|
-
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
770
|
-
|
|
771
|
-
:param str
|
|
832
|
+
:param _builtins.str alternate_guest_name: The alternate guest name of the virtual machine when
|
|
833
|
+
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
834
|
+
`otherGuest64`.
|
|
835
|
+
:param _builtins.str annotation: The user-provided description of this virtual machine.
|
|
836
|
+
:param _builtins.str datacenter_id: The managed object reference
|
|
772
837
|
ID of the datacenter the virtual machine is located in.
|
|
773
838
|
This can be omitted if the search path used in `name` is an absolute path.
|
|
774
839
|
For default datacenters, use the `id` attribute from an empty
|
|
775
840
|
`Datacenter` data source.
|
|
776
|
-
:param str firmware: The firmware type for this virtual machine. Can be `bios` or
|
|
777
|
-
|
|
778
|
-
:param
|
|
779
|
-
:param
|
|
780
|
-
:param
|
|
841
|
+
:param _builtins.str firmware: The firmware type for this virtual machine. Can be `bios` or
|
|
842
|
+
`efi`.
|
|
843
|
+
:param _builtins.str folder: The name of the virtual machine folder where the virtual machine is located. The `name` argument is limited to 80 characters. If the `name` argument includes the full path to the virtual machine and exceeds the 80 characters limit, the `folder` folder argument can be used.
|
|
844
|
+
:param _builtins.str guest_id: The guest ID of the virtual machine or template.
|
|
845
|
+
:param _builtins.int hardware_version: The hardware version number on this virtual machine.
|
|
846
|
+
:param _builtins.int memory: The size of the virtual machine's memory, in MB.
|
|
847
|
+
:param _builtins.str name: The name of the virtual machine. This can be a name or
|
|
781
848
|
the full path relative to the datacenter. This is required if a UUID lookup
|
|
782
849
|
is not performed.
|
|
783
|
-
:param int num_cores_per_socket: The number of cores per socket for this virtual
|
|
784
|
-
|
|
850
|
+
:param _builtins.int num_cores_per_socket: The number of cores per socket for this virtual
|
|
851
|
+
machine.
|
|
852
|
+
:param _builtins.int num_cpus: The total number of virtual processor cores assigned to this
|
|
785
853
|
virtual machine.
|
|
786
|
-
:param int
|
|
854
|
+
:param _builtins.int nvme_controller_scan_count: The number of NVMe controllers to
|
|
787
855
|
scan for disk attributes and controller types on. Default: `1`.
|
|
788
856
|
|
|
789
857
|
> **NOTE:** For best results, ensure that all the disks on any templates you
|
|
@@ -791,7 +859,9 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
791
859
|
value at the default. See the `VirtualMachine`
|
|
792
860
|
resource documentation for the significance of this setting, specifically the
|
|
793
861
|
additional requirements and notes for cloning section.
|
|
794
|
-
:param
|
|
862
|
+
:param _builtins.int scsi_controller_scan_count: The number of SCSI controllers to
|
|
863
|
+
scan for disk attributes and controller types on. Default: `1`.
|
|
864
|
+
:param _builtins.str uuid: Specify this field for a UUID lookup, `name` and `datacenter_id`
|
|
795
865
|
are not required if this is specified.
|
|
796
866
|
"""
|
|
797
867
|
__args__ = dict()
|
|
@@ -815,6 +885,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
815
885
|
__args__['extraConfig'] = extra_config
|
|
816
886
|
__args__['extraConfigRebootRequired'] = extra_config_reboot_required
|
|
817
887
|
__args__['firmware'] = firmware
|
|
888
|
+
__args__['folder'] = folder
|
|
818
889
|
__args__['guestId'] = guest_id
|
|
819
890
|
__args__['hardwareVersion'] = hardware_version
|
|
820
891
|
__args__['hvMode'] = hv_mode
|
|
@@ -824,6 +895,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
824
895
|
__args__['memoryHotAddEnabled'] = memory_hot_add_enabled
|
|
825
896
|
__args__['memoryLimit'] = memory_limit
|
|
826
897
|
__args__['memoryReservation'] = memory_reservation
|
|
898
|
+
__args__['memoryReservationLockedToMax'] = memory_reservation_locked_to_max
|
|
827
899
|
__args__['memoryShareCount'] = memory_share_count
|
|
828
900
|
__args__['memoryShareLevel'] = memory_share_level
|
|
829
901
|
__args__['moid'] = moid
|
|
@@ -831,6 +903,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
831
903
|
__args__['nestedHvEnabled'] = nested_hv_enabled
|
|
832
904
|
__args__['numCoresPerSocket'] = num_cores_per_socket
|
|
833
905
|
__args__['numCpus'] = num_cpus
|
|
906
|
+
__args__['nvmeControllerScanCount'] = nvme_controller_scan_count
|
|
834
907
|
__args__['replaceTrigger'] = replace_trigger
|
|
835
908
|
__args__['runToolsScriptsAfterPowerOn'] = run_tools_scripts_after_power_on
|
|
836
909
|
__args__['runToolsScriptsAfterResume'] = run_tools_scripts_after_resume
|
|
@@ -875,17 +948,20 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
875
948
|
extra_config=pulumi.get(__ret__, 'extra_config'),
|
|
876
949
|
extra_config_reboot_required=pulumi.get(__ret__, 'extra_config_reboot_required'),
|
|
877
950
|
firmware=pulumi.get(__ret__, 'firmware'),
|
|
951
|
+
folder=pulumi.get(__ret__, 'folder'),
|
|
878
952
|
guest_id=pulumi.get(__ret__, 'guest_id'),
|
|
879
953
|
guest_ip_addresses=pulumi.get(__ret__, 'guest_ip_addresses'),
|
|
880
954
|
hardware_version=pulumi.get(__ret__, 'hardware_version'),
|
|
881
955
|
hv_mode=pulumi.get(__ret__, 'hv_mode'),
|
|
882
956
|
id=pulumi.get(__ret__, 'id'),
|
|
883
957
|
ide_controller_scan_count=pulumi.get(__ret__, 'ide_controller_scan_count'),
|
|
958
|
+
instance_uuid=pulumi.get(__ret__, 'instance_uuid'),
|
|
884
959
|
latency_sensitivity=pulumi.get(__ret__, 'latency_sensitivity'),
|
|
885
960
|
memory=pulumi.get(__ret__, 'memory'),
|
|
886
961
|
memory_hot_add_enabled=pulumi.get(__ret__, 'memory_hot_add_enabled'),
|
|
887
962
|
memory_limit=pulumi.get(__ret__, 'memory_limit'),
|
|
888
963
|
memory_reservation=pulumi.get(__ret__, 'memory_reservation'),
|
|
964
|
+
memory_reservation_locked_to_max=pulumi.get(__ret__, 'memory_reservation_locked_to_max'),
|
|
889
965
|
memory_share_count=pulumi.get(__ret__, 'memory_share_count'),
|
|
890
966
|
memory_share_level=pulumi.get(__ret__, 'memory_share_level'),
|
|
891
967
|
moid=pulumi.get(__ret__, 'moid'),
|
|
@@ -895,6 +971,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
895
971
|
network_interfaces=pulumi.get(__ret__, 'network_interfaces'),
|
|
896
972
|
num_cores_per_socket=pulumi.get(__ret__, 'num_cores_per_socket'),
|
|
897
973
|
num_cpus=pulumi.get(__ret__, 'num_cpus'),
|
|
974
|
+
nvme_controller_scan_count=pulumi.get(__ret__, 'nvme_controller_scan_count'),
|
|
898
975
|
replace_trigger=pulumi.get(__ret__, 'replace_trigger'),
|
|
899
976
|
run_tools_scripts_after_power_on=pulumi.get(__ret__, 'run_tools_scripts_after_power_on'),
|
|
900
977
|
run_tools_scripts_after_resume=pulumi.get(__ret__, 'run_tools_scripts_after_resume'),
|
|
@@ -914,64 +991,65 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
914
991
|
vapp=pulumi.get(__ret__, 'vapp'),
|
|
915
992
|
vapp_transports=pulumi.get(__ret__, 'vapp_transports'),
|
|
916
993
|
vbs_enabled=pulumi.get(__ret__, 'vbs_enabled'),
|
|
994
|
+
vtpm=pulumi.get(__ret__, 'vtpm'),
|
|
917
995
|
vvtd_enabled=pulumi.get(__ret__, 'vvtd_enabled'))
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
replace_trigger: Optional[pulumi.Input[Optional[str]]] = None,
|
|
958
|
-
run_tools_scripts_after_power_on: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
959
|
-
run_tools_scripts_after_resume: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
960
|
-
run_tools_scripts_before_guest_reboot: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
961
|
-
run_tools_scripts_before_guest_shutdown: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
962
|
-
run_tools_scripts_before_guest_standby: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
963
|
-
sata_controller_scan_count: Optional[pulumi.Input[Optional[int]]] = None,
|
|
964
|
-
scsi_controller_scan_count: Optional[pulumi.Input[Optional[int]]] = None,
|
|
965
|
-
storage_policy_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
966
|
-
swap_placement_policy: Optional[pulumi.Input[Optional[str]]] = None,
|
|
967
|
-
sync_time_with_host: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
968
|
-
sync_time_with_host_periodically: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
969
|
-
tools_upgrade_policy: Optional[pulumi.Input[Optional[str]]] = None,
|
|
970
|
-
uuid: Optional[pulumi.Input[Optional[str]]] = None,
|
|
971
|
-
vapp: Optional[pulumi.Input[Optional[
|
|
972
|
-
vbs_enabled: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
973
|
-
vvtd_enabled: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
974
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetVirtualMachineResult]:
|
|
996
|
+
def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
997
|
+
annotation: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
998
|
+
boot_delay: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
999
|
+
boot_retry_delay: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1000
|
+
boot_retry_enabled: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1001
|
+
cpu_hot_add_enabled: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1002
|
+
cpu_hot_remove_enabled: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1003
|
+
cpu_limit: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1004
|
+
cpu_performance_counters_enabled: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1005
|
+
cpu_reservation: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1006
|
+
cpu_share_count: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1007
|
+
cpu_share_level: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1008
|
+
datacenter_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1009
|
+
efi_secure_boot_enabled: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1010
|
+
enable_disk_uuid: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1011
|
+
enable_logging: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1012
|
+
ept_rvi_mode: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1013
|
+
extra_config: Optional[pulumi.Input[Optional[Mapping[str, _builtins.str]]]] = None,
|
|
1014
|
+
extra_config_reboot_required: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1015
|
+
firmware: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1016
|
+
folder: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1017
|
+
guest_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1018
|
+
hardware_version: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1019
|
+
hv_mode: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1020
|
+
ide_controller_scan_count: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1021
|
+
latency_sensitivity: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1022
|
+
memory: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1023
|
+
memory_hot_add_enabled: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1024
|
+
memory_limit: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1025
|
+
memory_reservation: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1026
|
+
memory_reservation_locked_to_max: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1027
|
+
memory_share_count: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1028
|
+
memory_share_level: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1029
|
+
moid: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1030
|
+
name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1031
|
+
nested_hv_enabled: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1032
|
+
num_cores_per_socket: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1033
|
+
num_cpus: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1034
|
+
nvme_controller_scan_count: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1035
|
+
replace_trigger: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1036
|
+
run_tools_scripts_after_power_on: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1037
|
+
run_tools_scripts_after_resume: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1038
|
+
run_tools_scripts_before_guest_reboot: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1039
|
+
run_tools_scripts_before_guest_shutdown: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1040
|
+
run_tools_scripts_before_guest_standby: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1041
|
+
sata_controller_scan_count: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1042
|
+
scsi_controller_scan_count: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
1043
|
+
storage_policy_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1044
|
+
swap_placement_policy: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1045
|
+
sync_time_with_host: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1046
|
+
sync_time_with_host_periodically: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1047
|
+
tools_upgrade_policy: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1048
|
+
uuid: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
1049
|
+
vapp: Optional[pulumi.Input[Optional[Union['GetVirtualMachineVappArgs', 'GetVirtualMachineVappArgsDict']]]] = None,
|
|
1050
|
+
vbs_enabled: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1051
|
+
vvtd_enabled: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
1052
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVirtualMachineResult]:
|
|
975
1053
|
"""
|
|
976
1054
|
The `VirtualMachine` data source can be used to find the UUID of an
|
|
977
1055
|
existing virtual machine or template. The most common purpose is for finding
|
|
@@ -981,8 +1059,8 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
981
1059
|
|
|
982
1060
|
## Example Usage
|
|
983
1061
|
|
|
984
|
-
In the following example, a virtual machine template is returned by its
|
|
985
|
-
|
|
1062
|
+
In the following example, a virtual machine template is returned by its unique
|
|
1063
|
+
name within the `Datacenter`.
|
|
986
1064
|
|
|
987
1065
|
```python
|
|
988
1066
|
import pulumi
|
|
@@ -992,6 +1070,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
992
1070
|
template = vsphere.get_virtual_machine(name="ubuntu-server-template",
|
|
993
1071
|
datacenter_id=datacenter.id)
|
|
994
1072
|
```
|
|
1073
|
+
|
|
995
1074
|
In the following example, each virtual machine template is returned by its
|
|
996
1075
|
unique full path within the `Datacenter`.
|
|
997
1076
|
|
|
@@ -1007,25 +1086,29 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1007
1086
|
```
|
|
1008
1087
|
|
|
1009
1088
|
|
|
1010
|
-
:param str alternate_guest_name: The alternate guest name of the virtual machine when
|
|
1011
|
-
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
1012
|
-
|
|
1013
|
-
:param str
|
|
1089
|
+
:param _builtins.str alternate_guest_name: The alternate guest name of the virtual machine when
|
|
1090
|
+
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
1091
|
+
`otherGuest64`.
|
|
1092
|
+
:param _builtins.str annotation: The user-provided description of this virtual machine.
|
|
1093
|
+
:param _builtins.str datacenter_id: The managed object reference
|
|
1014
1094
|
ID of the datacenter the virtual machine is located in.
|
|
1015
1095
|
This can be omitted if the search path used in `name` is an absolute path.
|
|
1016
1096
|
For default datacenters, use the `id` attribute from an empty
|
|
1017
1097
|
`Datacenter` data source.
|
|
1018
|
-
:param str firmware: The firmware type for this virtual machine. Can be `bios` or
|
|
1019
|
-
|
|
1020
|
-
:param
|
|
1021
|
-
:param
|
|
1022
|
-
:param
|
|
1098
|
+
:param _builtins.str firmware: The firmware type for this virtual machine. Can be `bios` or
|
|
1099
|
+
`efi`.
|
|
1100
|
+
:param _builtins.str folder: The name of the virtual machine folder where the virtual machine is located. The `name` argument is limited to 80 characters. If the `name` argument includes the full path to the virtual machine and exceeds the 80 characters limit, the `folder` folder argument can be used.
|
|
1101
|
+
:param _builtins.str guest_id: The guest ID of the virtual machine or template.
|
|
1102
|
+
:param _builtins.int hardware_version: The hardware version number on this virtual machine.
|
|
1103
|
+
:param _builtins.int memory: The size of the virtual machine's memory, in MB.
|
|
1104
|
+
:param _builtins.str name: The name of the virtual machine. This can be a name or
|
|
1023
1105
|
the full path relative to the datacenter. This is required if a UUID lookup
|
|
1024
1106
|
is not performed.
|
|
1025
|
-
:param int num_cores_per_socket: The number of cores per socket for this virtual
|
|
1026
|
-
|
|
1107
|
+
:param _builtins.int num_cores_per_socket: The number of cores per socket for this virtual
|
|
1108
|
+
machine.
|
|
1109
|
+
:param _builtins.int num_cpus: The total number of virtual processor cores assigned to this
|
|
1027
1110
|
virtual machine.
|
|
1028
|
-
:param int
|
|
1111
|
+
:param _builtins.int nvme_controller_scan_count: The number of NVMe controllers to
|
|
1029
1112
|
scan for disk attributes and controller types on. Default: `1`.
|
|
1030
1113
|
|
|
1031
1114
|
> **NOTE:** For best results, ensure that all the disks on any templates you
|
|
@@ -1033,7 +1116,136 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1033
1116
|
value at the default. See the `VirtualMachine`
|
|
1034
1117
|
resource documentation for the significance of this setting, specifically the
|
|
1035
1118
|
additional requirements and notes for cloning section.
|
|
1036
|
-
:param
|
|
1119
|
+
:param _builtins.int scsi_controller_scan_count: The number of SCSI controllers to
|
|
1120
|
+
scan for disk attributes and controller types on. Default: `1`.
|
|
1121
|
+
:param _builtins.str uuid: Specify this field for a UUID lookup, `name` and `datacenter_id`
|
|
1037
1122
|
are not required if this is specified.
|
|
1038
1123
|
"""
|
|
1039
|
-
|
|
1124
|
+
__args__ = dict()
|
|
1125
|
+
__args__['alternateGuestName'] = alternate_guest_name
|
|
1126
|
+
__args__['annotation'] = annotation
|
|
1127
|
+
__args__['bootDelay'] = boot_delay
|
|
1128
|
+
__args__['bootRetryDelay'] = boot_retry_delay
|
|
1129
|
+
__args__['bootRetryEnabled'] = boot_retry_enabled
|
|
1130
|
+
__args__['cpuHotAddEnabled'] = cpu_hot_add_enabled
|
|
1131
|
+
__args__['cpuHotRemoveEnabled'] = cpu_hot_remove_enabled
|
|
1132
|
+
__args__['cpuLimit'] = cpu_limit
|
|
1133
|
+
__args__['cpuPerformanceCountersEnabled'] = cpu_performance_counters_enabled
|
|
1134
|
+
__args__['cpuReservation'] = cpu_reservation
|
|
1135
|
+
__args__['cpuShareCount'] = cpu_share_count
|
|
1136
|
+
__args__['cpuShareLevel'] = cpu_share_level
|
|
1137
|
+
__args__['datacenterId'] = datacenter_id
|
|
1138
|
+
__args__['efiSecureBootEnabled'] = efi_secure_boot_enabled
|
|
1139
|
+
__args__['enableDiskUuid'] = enable_disk_uuid
|
|
1140
|
+
__args__['enableLogging'] = enable_logging
|
|
1141
|
+
__args__['eptRviMode'] = ept_rvi_mode
|
|
1142
|
+
__args__['extraConfig'] = extra_config
|
|
1143
|
+
__args__['extraConfigRebootRequired'] = extra_config_reboot_required
|
|
1144
|
+
__args__['firmware'] = firmware
|
|
1145
|
+
__args__['folder'] = folder
|
|
1146
|
+
__args__['guestId'] = guest_id
|
|
1147
|
+
__args__['hardwareVersion'] = hardware_version
|
|
1148
|
+
__args__['hvMode'] = hv_mode
|
|
1149
|
+
__args__['ideControllerScanCount'] = ide_controller_scan_count
|
|
1150
|
+
__args__['latencySensitivity'] = latency_sensitivity
|
|
1151
|
+
__args__['memory'] = memory
|
|
1152
|
+
__args__['memoryHotAddEnabled'] = memory_hot_add_enabled
|
|
1153
|
+
__args__['memoryLimit'] = memory_limit
|
|
1154
|
+
__args__['memoryReservation'] = memory_reservation
|
|
1155
|
+
__args__['memoryReservationLockedToMax'] = memory_reservation_locked_to_max
|
|
1156
|
+
__args__['memoryShareCount'] = memory_share_count
|
|
1157
|
+
__args__['memoryShareLevel'] = memory_share_level
|
|
1158
|
+
__args__['moid'] = moid
|
|
1159
|
+
__args__['name'] = name
|
|
1160
|
+
__args__['nestedHvEnabled'] = nested_hv_enabled
|
|
1161
|
+
__args__['numCoresPerSocket'] = num_cores_per_socket
|
|
1162
|
+
__args__['numCpus'] = num_cpus
|
|
1163
|
+
__args__['nvmeControllerScanCount'] = nvme_controller_scan_count
|
|
1164
|
+
__args__['replaceTrigger'] = replace_trigger
|
|
1165
|
+
__args__['runToolsScriptsAfterPowerOn'] = run_tools_scripts_after_power_on
|
|
1166
|
+
__args__['runToolsScriptsAfterResume'] = run_tools_scripts_after_resume
|
|
1167
|
+
__args__['runToolsScriptsBeforeGuestReboot'] = run_tools_scripts_before_guest_reboot
|
|
1168
|
+
__args__['runToolsScriptsBeforeGuestShutdown'] = run_tools_scripts_before_guest_shutdown
|
|
1169
|
+
__args__['runToolsScriptsBeforeGuestStandby'] = run_tools_scripts_before_guest_standby
|
|
1170
|
+
__args__['sataControllerScanCount'] = sata_controller_scan_count
|
|
1171
|
+
__args__['scsiControllerScanCount'] = scsi_controller_scan_count
|
|
1172
|
+
__args__['storagePolicyId'] = storage_policy_id
|
|
1173
|
+
__args__['swapPlacementPolicy'] = swap_placement_policy
|
|
1174
|
+
__args__['syncTimeWithHost'] = sync_time_with_host
|
|
1175
|
+
__args__['syncTimeWithHostPeriodically'] = sync_time_with_host_periodically
|
|
1176
|
+
__args__['toolsUpgradePolicy'] = tools_upgrade_policy
|
|
1177
|
+
__args__['uuid'] = uuid
|
|
1178
|
+
__args__['vapp'] = vapp
|
|
1179
|
+
__args__['vbsEnabled'] = vbs_enabled
|
|
1180
|
+
__args__['vvtdEnabled'] = vvtd_enabled
|
|
1181
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
1182
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getVirtualMachine:getVirtualMachine', __args__, opts=opts, typ=GetVirtualMachineResult)
|
|
1183
|
+
return __ret__.apply(lambda __response__: GetVirtualMachineResult(
|
|
1184
|
+
alternate_guest_name=pulumi.get(__response__, 'alternate_guest_name'),
|
|
1185
|
+
annotation=pulumi.get(__response__, 'annotation'),
|
|
1186
|
+
boot_delay=pulumi.get(__response__, 'boot_delay'),
|
|
1187
|
+
boot_retry_delay=pulumi.get(__response__, 'boot_retry_delay'),
|
|
1188
|
+
boot_retry_enabled=pulumi.get(__response__, 'boot_retry_enabled'),
|
|
1189
|
+
change_version=pulumi.get(__response__, 'change_version'),
|
|
1190
|
+
cpu_hot_add_enabled=pulumi.get(__response__, 'cpu_hot_add_enabled'),
|
|
1191
|
+
cpu_hot_remove_enabled=pulumi.get(__response__, 'cpu_hot_remove_enabled'),
|
|
1192
|
+
cpu_limit=pulumi.get(__response__, 'cpu_limit'),
|
|
1193
|
+
cpu_performance_counters_enabled=pulumi.get(__response__, 'cpu_performance_counters_enabled'),
|
|
1194
|
+
cpu_reservation=pulumi.get(__response__, 'cpu_reservation'),
|
|
1195
|
+
cpu_share_count=pulumi.get(__response__, 'cpu_share_count'),
|
|
1196
|
+
cpu_share_level=pulumi.get(__response__, 'cpu_share_level'),
|
|
1197
|
+
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
1198
|
+
default_ip_address=pulumi.get(__response__, 'default_ip_address'),
|
|
1199
|
+
disks=pulumi.get(__response__, 'disks'),
|
|
1200
|
+
efi_secure_boot_enabled=pulumi.get(__response__, 'efi_secure_boot_enabled'),
|
|
1201
|
+
enable_disk_uuid=pulumi.get(__response__, 'enable_disk_uuid'),
|
|
1202
|
+
enable_logging=pulumi.get(__response__, 'enable_logging'),
|
|
1203
|
+
ept_rvi_mode=pulumi.get(__response__, 'ept_rvi_mode'),
|
|
1204
|
+
extra_config=pulumi.get(__response__, 'extra_config'),
|
|
1205
|
+
extra_config_reboot_required=pulumi.get(__response__, 'extra_config_reboot_required'),
|
|
1206
|
+
firmware=pulumi.get(__response__, 'firmware'),
|
|
1207
|
+
folder=pulumi.get(__response__, 'folder'),
|
|
1208
|
+
guest_id=pulumi.get(__response__, 'guest_id'),
|
|
1209
|
+
guest_ip_addresses=pulumi.get(__response__, 'guest_ip_addresses'),
|
|
1210
|
+
hardware_version=pulumi.get(__response__, 'hardware_version'),
|
|
1211
|
+
hv_mode=pulumi.get(__response__, 'hv_mode'),
|
|
1212
|
+
id=pulumi.get(__response__, 'id'),
|
|
1213
|
+
ide_controller_scan_count=pulumi.get(__response__, 'ide_controller_scan_count'),
|
|
1214
|
+
instance_uuid=pulumi.get(__response__, 'instance_uuid'),
|
|
1215
|
+
latency_sensitivity=pulumi.get(__response__, 'latency_sensitivity'),
|
|
1216
|
+
memory=pulumi.get(__response__, 'memory'),
|
|
1217
|
+
memory_hot_add_enabled=pulumi.get(__response__, 'memory_hot_add_enabled'),
|
|
1218
|
+
memory_limit=pulumi.get(__response__, 'memory_limit'),
|
|
1219
|
+
memory_reservation=pulumi.get(__response__, 'memory_reservation'),
|
|
1220
|
+
memory_reservation_locked_to_max=pulumi.get(__response__, 'memory_reservation_locked_to_max'),
|
|
1221
|
+
memory_share_count=pulumi.get(__response__, 'memory_share_count'),
|
|
1222
|
+
memory_share_level=pulumi.get(__response__, 'memory_share_level'),
|
|
1223
|
+
moid=pulumi.get(__response__, 'moid'),
|
|
1224
|
+
name=pulumi.get(__response__, 'name'),
|
|
1225
|
+
nested_hv_enabled=pulumi.get(__response__, 'nested_hv_enabled'),
|
|
1226
|
+
network_interface_types=pulumi.get(__response__, 'network_interface_types'),
|
|
1227
|
+
network_interfaces=pulumi.get(__response__, 'network_interfaces'),
|
|
1228
|
+
num_cores_per_socket=pulumi.get(__response__, 'num_cores_per_socket'),
|
|
1229
|
+
num_cpus=pulumi.get(__response__, 'num_cpus'),
|
|
1230
|
+
nvme_controller_scan_count=pulumi.get(__response__, 'nvme_controller_scan_count'),
|
|
1231
|
+
replace_trigger=pulumi.get(__response__, 'replace_trigger'),
|
|
1232
|
+
run_tools_scripts_after_power_on=pulumi.get(__response__, 'run_tools_scripts_after_power_on'),
|
|
1233
|
+
run_tools_scripts_after_resume=pulumi.get(__response__, 'run_tools_scripts_after_resume'),
|
|
1234
|
+
run_tools_scripts_before_guest_reboot=pulumi.get(__response__, 'run_tools_scripts_before_guest_reboot'),
|
|
1235
|
+
run_tools_scripts_before_guest_shutdown=pulumi.get(__response__, 'run_tools_scripts_before_guest_shutdown'),
|
|
1236
|
+
run_tools_scripts_before_guest_standby=pulumi.get(__response__, 'run_tools_scripts_before_guest_standby'),
|
|
1237
|
+
sata_controller_scan_count=pulumi.get(__response__, 'sata_controller_scan_count'),
|
|
1238
|
+
scsi_bus_sharing=pulumi.get(__response__, 'scsi_bus_sharing'),
|
|
1239
|
+
scsi_controller_scan_count=pulumi.get(__response__, 'scsi_controller_scan_count'),
|
|
1240
|
+
scsi_type=pulumi.get(__response__, 'scsi_type'),
|
|
1241
|
+
storage_policy_id=pulumi.get(__response__, 'storage_policy_id'),
|
|
1242
|
+
swap_placement_policy=pulumi.get(__response__, 'swap_placement_policy'),
|
|
1243
|
+
sync_time_with_host=pulumi.get(__response__, 'sync_time_with_host'),
|
|
1244
|
+
sync_time_with_host_periodically=pulumi.get(__response__, 'sync_time_with_host_periodically'),
|
|
1245
|
+
tools_upgrade_policy=pulumi.get(__response__, 'tools_upgrade_policy'),
|
|
1246
|
+
uuid=pulumi.get(__response__, 'uuid'),
|
|
1247
|
+
vapp=pulumi.get(__response__, 'vapp'),
|
|
1248
|
+
vapp_transports=pulumi.get(__response__, 'vapp_transports'),
|
|
1249
|
+
vbs_enabled=pulumi.get(__response__, 'vbs_enabled'),
|
|
1250
|
+
vtpm=pulumi.get(__response__, 'vtpm'),
|
|
1251
|
+
vvtd_enabled=pulumi.get(__response__, 'vvtd_enabled')))
|