pulumi-vsphere 4.10.0a1710245029__py3-none-any.whl → 4.13.0a1736849827__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.
- pulumi_vsphere/__init__.py +28 -0
- pulumi_vsphere/_inputs.py +1816 -277
- pulumi_vsphere/_utilities.py +41 -5
- pulumi_vsphere/compute_cluster.py +937 -1488
- pulumi_vsphere/compute_cluster_host_group.py +67 -2
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +69 -34
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +41 -2
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +205 -2
- pulumi_vsphere/compute_cluster_vm_group.py +198 -2
- pulumi_vsphere/compute_cluster_vm_host_rule.py +73 -2
- pulumi_vsphere/config/__init__.pyi +5 -0
- pulumi_vsphere/config/vars.py +5 -0
- pulumi_vsphere/content_library.py +113 -12
- pulumi_vsphere/content_library_item.py +143 -2
- pulumi_vsphere/custom_attribute.py +77 -2
- pulumi_vsphere/datacenter.py +48 -40
- pulumi_vsphere/datastore_cluster.py +217 -366
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +159 -2
- pulumi_vsphere/distributed_port_group.py +416 -189
- pulumi_vsphere/distributed_virtual_switch.py +571 -830
- pulumi_vsphere/dpm_host_override.py +63 -2
- pulumi_vsphere/drs_vm_override.py +67 -2
- pulumi_vsphere/entity_permissions.py +64 -38
- pulumi_vsphere/file.py +21 -24
- pulumi_vsphere/folder.py +148 -30
- pulumi_vsphere/get_compute_cluster.py +16 -9
- pulumi_vsphere/get_compute_cluster_host_group.py +36 -25
- pulumi_vsphere/get_content_library.py +23 -15
- pulumi_vsphere/get_content_library_item.py +29 -13
- pulumi_vsphere/get_custom_attribute.py +14 -9
- pulumi_vsphere/get_datacenter.py +30 -12
- pulumi_vsphere/get_datastore.py +29 -21
- pulumi_vsphere/get_datastore_cluster.py +31 -10
- pulumi_vsphere/get_datastore_stats.py +63 -57
- pulumi_vsphere/get_distributed_virtual_switch.py +18 -9
- pulumi_vsphere/get_dynamic.py +35 -25
- pulumi_vsphere/get_folder.py +23 -11
- pulumi_vsphere/get_guest_os_customization.py +26 -52
- pulumi_vsphere/get_host.py +16 -9
- pulumi_vsphere/get_host_base_images.py +104 -0
- pulumi_vsphere/get_host_pci_device.py +28 -19
- pulumi_vsphere/get_host_thumbprint.py +41 -25
- pulumi_vsphere/get_host_vgpu_profile.py +20 -15
- pulumi_vsphere/get_license.py +20 -10
- pulumi_vsphere/get_network.py +80 -24
- pulumi_vsphere/get_ovf_vm_template.py +56 -5
- pulumi_vsphere/get_policy.py +13 -9
- pulumi_vsphere/get_resource_pool.py +29 -23
- pulumi_vsphere/get_role.py +23 -13
- pulumi_vsphere/get_tag.py +16 -9
- pulumi_vsphere/get_tag_category.py +16 -9
- pulumi_vsphere/get_vapp_container.py +15 -9
- pulumi_vsphere/get_virtual_machine.py +205 -48
- pulumi_vsphere/get_vmfs_disks.py +18 -9
- pulumi_vsphere/guest_os_customization.py +60 -5
- pulumi_vsphere/ha_vm_override.py +352 -380
- pulumi_vsphere/host.py +244 -64
- pulumi_vsphere/host_port_group.py +27 -24
- pulumi_vsphere/host_virtual_switch.py +209 -289
- pulumi_vsphere/license.py +5 -32
- pulumi_vsphere/nas_datastore.py +74 -9
- pulumi_vsphere/offline_software_depot.py +185 -0
- pulumi_vsphere/outputs.py +717 -270
- pulumi_vsphere/provider.py +7 -6
- pulumi_vsphere/pulumi-plugin.json +2 -1
- pulumi_vsphere/resource_pool.py +168 -411
- pulumi_vsphere/role.py +33 -2
- pulumi_vsphere/storage_drs_vm_override.py +133 -2
- pulumi_vsphere/supervisor.py +967 -0
- pulumi_vsphere/tag.py +159 -2
- pulumi_vsphere/tag_category.py +83 -2
- pulumi_vsphere/vapp_container.py +163 -2
- pulumi_vsphere/vapp_entity.py +147 -2
- pulumi_vsphere/virtual_disk.py +123 -36
- pulumi_vsphere/virtual_machine.py +698 -829
- pulumi_vsphere/virtual_machine_class.py +447 -0
- pulumi_vsphere/virtual_machine_snapshot.py +13 -12
- pulumi_vsphere/vm_storage_policy.py +120 -127
- pulumi_vsphere/vmfs_datastore.py +271 -2
- pulumi_vsphere/vnic.py +104 -105
- {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736849827.dist-info}/METADATA +7 -6
- pulumi_vsphere-4.13.0a1736849827.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736849827.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +0 -82
- {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736849827.dist-info}/top_level.txt +0 -0
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
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, folder=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_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, 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, 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)
|
|
@@ -114,6 +119,9 @@ class GetVirtualMachineResult:
|
|
|
114
119
|
if ide_controller_scan_count and not isinstance(ide_controller_scan_count, int):
|
|
115
120
|
raise TypeError("Expected argument 'ide_controller_scan_count' to be a int")
|
|
116
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)
|
|
117
125
|
if latency_sensitivity and not isinstance(latency_sensitivity, str):
|
|
118
126
|
raise TypeError("Expected argument 'latency_sensitivity' to be a str")
|
|
119
127
|
pulumi.set(__self__, "latency_sensitivity", latency_sensitivity)
|
|
@@ -216,6 +224,9 @@ class GetVirtualMachineResult:
|
|
|
216
224
|
if vbs_enabled and not isinstance(vbs_enabled, bool):
|
|
217
225
|
raise TypeError("Expected argument 'vbs_enabled' to be a bool")
|
|
218
226
|
pulumi.set(__self__, "vbs_enabled", vbs_enabled)
|
|
227
|
+
if vtpm and not isinstance(vtpm, bool):
|
|
228
|
+
raise TypeError("Expected argument 'vtpm' to be a bool")
|
|
229
|
+
pulumi.set(__self__, "vtpm", vtpm)
|
|
219
230
|
if vvtd_enabled and not isinstance(vvtd_enabled, bool):
|
|
220
231
|
raise TypeError("Expected argument 'vvtd_enabled' to be a bool")
|
|
221
232
|
pulumi.set(__self__, "vvtd_enabled", vvtd_enabled)
|
|
@@ -225,7 +236,8 @@ class GetVirtualMachineResult:
|
|
|
225
236
|
def alternate_guest_name(self) -> Optional[str]:
|
|
226
237
|
"""
|
|
227
238
|
The alternate guest name of the virtual machine when
|
|
228
|
-
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
239
|
+
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
240
|
+
`otherGuest64`.
|
|
229
241
|
"""
|
|
230
242
|
return pulumi.get(self, "alternate_guest_name")
|
|
231
243
|
|
|
@@ -301,11 +313,11 @@ class GetVirtualMachineResult:
|
|
|
301
313
|
@pulumi.getter(name="defaultIpAddress")
|
|
302
314
|
def default_ip_address(self) -> str:
|
|
303
315
|
"""
|
|
304
|
-
Whenever possible, this is the first IPv4 address that
|
|
305
|
-
the default gateway configured on the machine, then the
|
|
306
|
-
address, and then the first general discovered address if
|
|
307
|
-
VMware Tools is not running on the virtual machine, or if
|
|
308
|
-
off, this value will be blank.
|
|
316
|
+
Whenever possible, this is the first IPv4 address that
|
|
317
|
+
is reachable through the default gateway configured on the machine, then the
|
|
318
|
+
first reachable IPv6 address, and then the first general discovered address if
|
|
319
|
+
neither exist. If VMware Tools is not running on the virtual machine, or if
|
|
320
|
+
the VM is powered off, this value will be blank.
|
|
309
321
|
"""
|
|
310
322
|
return pulumi.get(self, "default_ip_address")
|
|
311
323
|
|
|
@@ -317,10 +329,10 @@ class GetVirtualMachineResult:
|
|
|
317
329
|
template. These are sorted by bus and unit number so that they can be applied
|
|
318
330
|
to a `VirtualMachine` resource in the order the resource expects
|
|
319
331
|
while cloning. This is useful for discovering certain disk settings while
|
|
320
|
-
performing a linked clone, as all settings that are output by this data
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
332
|
+
performing a linked clone, as all settings that are output by this data source
|
|
333
|
+
must be the same on the destination virtual machine as the source. Only the
|
|
334
|
+
first number of controllers defined by `scsi_controller_scan_count` are
|
|
335
|
+
scanned for disks. The sub-attributes are:
|
|
324
336
|
"""
|
|
325
337
|
return pulumi.get(self, "disks")
|
|
326
338
|
|
|
@@ -341,7 +353,7 @@ class GetVirtualMachineResult:
|
|
|
341
353
|
|
|
342
354
|
@property
|
|
343
355
|
@pulumi.getter(name="eptRviMode")
|
|
344
|
-
def ept_rvi_mode(self) ->
|
|
356
|
+
def ept_rvi_mode(self) -> str:
|
|
345
357
|
return pulumi.get(self, "ept_rvi_mode")
|
|
346
358
|
|
|
347
359
|
@property
|
|
@@ -358,7 +370,8 @@ class GetVirtualMachineResult:
|
|
|
358
370
|
@pulumi.getter
|
|
359
371
|
def firmware(self) -> Optional[str]:
|
|
360
372
|
"""
|
|
361
|
-
The firmware type for this virtual machine. Can be `bios` or
|
|
373
|
+
The firmware type for this virtual machine. Can be `bios` or
|
|
374
|
+
`efi`.
|
|
362
375
|
"""
|
|
363
376
|
return pulumi.get(self, "firmware")
|
|
364
377
|
|
|
@@ -393,7 +406,7 @@ class GetVirtualMachineResult:
|
|
|
393
406
|
|
|
394
407
|
@property
|
|
395
408
|
@pulumi.getter(name="hvMode")
|
|
396
|
-
def hv_mode(self) ->
|
|
409
|
+
def hv_mode(self) -> str:
|
|
397
410
|
return pulumi.get(self, "hv_mode")
|
|
398
411
|
|
|
399
412
|
@property
|
|
@@ -409,6 +422,14 @@ class GetVirtualMachineResult:
|
|
|
409
422
|
def ide_controller_scan_count(self) -> Optional[int]:
|
|
410
423
|
return pulumi.get(self, "ide_controller_scan_count")
|
|
411
424
|
|
|
425
|
+
@property
|
|
426
|
+
@pulumi.getter(name="instanceUuid")
|
|
427
|
+
def instance_uuid(self) -> str:
|
|
428
|
+
"""
|
|
429
|
+
The instance UUID of the virtual machine or template.
|
|
430
|
+
"""
|
|
431
|
+
return pulumi.get(self, "instance_uuid")
|
|
432
|
+
|
|
412
433
|
@property
|
|
413
434
|
@pulumi.getter(name="latencySensitivity")
|
|
414
435
|
def latency_sensitivity(self) -> Optional[str]:
|
|
@@ -473,7 +494,8 @@ class GetVirtualMachineResult:
|
|
|
473
494
|
"""
|
|
474
495
|
The network interface types for each network
|
|
475
496
|
interface found on the virtual machine, in device bus order. Will be one of
|
|
476
|
-
`e1000`, `e1000e`, `pcnet32`, `sriov`, `vmxnet2`, `vmxnet3vrdma`, or
|
|
497
|
+
`e1000`, `e1000e`, `pcnet32`, `sriov`, `vmxnet2`, `vmxnet3vrdma`, or
|
|
498
|
+
`vmxnet3`.
|
|
477
499
|
"""
|
|
478
500
|
return pulumi.get(self, "network_interface_types")
|
|
479
501
|
|
|
@@ -481,13 +503,13 @@ class GetVirtualMachineResult:
|
|
|
481
503
|
@pulumi.getter(name="networkInterfaces")
|
|
482
504
|
def network_interfaces(self) -> Sequence['outputs.GetVirtualMachineNetworkInterfaceResult']:
|
|
483
505
|
"""
|
|
484
|
-
Information about each of the network interfaces on
|
|
485
|
-
virtual machine or template. These are sorted by device bus order so that
|
|
486
|
-
can be applied to a `VirtualMachine` resource in the order the
|
|
487
|
-
expects while cloning. This is useful for discovering certain network
|
|
488
|
-
settings while performing a linked clone, as all settings that are
|
|
489
|
-
data source must be the same on the destination virtual machine
|
|
490
|
-
The sub-attributes are:
|
|
506
|
+
Information about each of the network interfaces on
|
|
507
|
+
this virtual machine or template. These are sorted by device bus order so that
|
|
508
|
+
they can be applied to a `VirtualMachine` resource in the order the
|
|
509
|
+
resource expects while cloning. This is useful for discovering certain network
|
|
510
|
+
interface settings while performing a linked clone, as all settings that are
|
|
511
|
+
output by this data source must be the same on the destination virtual machine
|
|
512
|
+
as the source. The sub-attributes are:
|
|
491
513
|
"""
|
|
492
514
|
return pulumi.get(self, "network_interfaces")
|
|
493
515
|
|
|
@@ -495,7 +517,8 @@ class GetVirtualMachineResult:
|
|
|
495
517
|
@pulumi.getter(name="numCoresPerSocket")
|
|
496
518
|
def num_cores_per_socket(self) -> Optional[int]:
|
|
497
519
|
"""
|
|
498
|
-
The number of cores per socket for this virtual
|
|
520
|
+
The number of cores per socket for this virtual
|
|
521
|
+
machine.
|
|
499
522
|
"""
|
|
500
523
|
return pulumi.get(self, "num_cores_per_socket")
|
|
501
524
|
|
|
@@ -615,6 +638,14 @@ class GetVirtualMachineResult:
|
|
|
615
638
|
def vbs_enabled(self) -> Optional[bool]:
|
|
616
639
|
return pulumi.get(self, "vbs_enabled")
|
|
617
640
|
|
|
641
|
+
@property
|
|
642
|
+
@pulumi.getter
|
|
643
|
+
def vtpm(self) -> bool:
|
|
644
|
+
"""
|
|
645
|
+
Indicates whether a virtual Trusted Platform Module (TPM) device is present on the virtual machine.
|
|
646
|
+
"""
|
|
647
|
+
return pulumi.get(self, "vtpm")
|
|
648
|
+
|
|
618
649
|
@property
|
|
619
650
|
@pulumi.getter(name="vvtdEnabled")
|
|
620
651
|
def vvtd_enabled(self) -> Optional[bool]:
|
|
@@ -657,6 +688,7 @@ class AwaitableGetVirtualMachineResult(GetVirtualMachineResult):
|
|
|
657
688
|
hv_mode=self.hv_mode,
|
|
658
689
|
id=self.id,
|
|
659
690
|
ide_controller_scan_count=self.ide_controller_scan_count,
|
|
691
|
+
instance_uuid=self.instance_uuid,
|
|
660
692
|
latency_sensitivity=self.latency_sensitivity,
|
|
661
693
|
memory=self.memory,
|
|
662
694
|
memory_hot_add_enabled=self.memory_hot_add_enabled,
|
|
@@ -691,6 +723,7 @@ class AwaitableGetVirtualMachineResult(GetVirtualMachineResult):
|
|
|
691
723
|
vapp=self.vapp,
|
|
692
724
|
vapp_transports=self.vapp_transports,
|
|
693
725
|
vbs_enabled=self.vbs_enabled,
|
|
726
|
+
vtpm=self.vtpm,
|
|
694
727
|
vvtd_enabled=self.vvtd_enabled)
|
|
695
728
|
|
|
696
729
|
|
|
@@ -746,7 +779,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
746
779
|
sync_time_with_host_periodically: Optional[bool] = None,
|
|
747
780
|
tools_upgrade_policy: Optional[str] = None,
|
|
748
781
|
uuid: Optional[str] = None,
|
|
749
|
-
vapp: Optional[
|
|
782
|
+
vapp: Optional[Union['GetVirtualMachineVappArgs', 'GetVirtualMachineVappArgsDict']] = None,
|
|
750
783
|
vbs_enabled: Optional[bool] = None,
|
|
751
784
|
vvtd_enabled: Optional[bool] = None,
|
|
752
785
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVirtualMachineResult:
|
|
@@ -759,10 +792,9 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
759
792
|
|
|
760
793
|
## Example Usage
|
|
761
794
|
|
|
762
|
-
In the following example, a virtual machine template is returned by its
|
|
763
|
-
|
|
795
|
+
In the following example, a virtual machine template is returned by its unique
|
|
796
|
+
name within the `Datacenter`.
|
|
764
797
|
|
|
765
|
-
<!--Start PulumiCodeChooser -->
|
|
766
798
|
```python
|
|
767
799
|
import pulumi
|
|
768
800
|
import pulumi_vsphere as vsphere
|
|
@@ -771,11 +803,10 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
771
803
|
template = vsphere.get_virtual_machine(name="ubuntu-server-template",
|
|
772
804
|
datacenter_id=datacenter.id)
|
|
773
805
|
```
|
|
774
|
-
|
|
806
|
+
|
|
775
807
|
In the following example, each virtual machine template is returned by its
|
|
776
808
|
unique full path within the `Datacenter`.
|
|
777
809
|
|
|
778
|
-
<!--Start PulumiCodeChooser -->
|
|
779
810
|
```python
|
|
780
811
|
import pulumi
|
|
781
812
|
import pulumi_vsphere as vsphere
|
|
@@ -786,18 +817,19 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
786
817
|
development_template = vsphere.get_virtual_machine(name="development/templates/ubuntu-server-template",
|
|
787
818
|
datacenter_id=datacenter.id)
|
|
788
819
|
```
|
|
789
|
-
<!--End PulumiCodeChooser -->
|
|
790
820
|
|
|
791
821
|
|
|
792
822
|
:param str alternate_guest_name: The alternate guest name of the virtual machine when
|
|
793
|
-
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
823
|
+
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
824
|
+
`otherGuest64`.
|
|
794
825
|
:param str annotation: The user-provided description of this virtual machine.
|
|
795
826
|
:param str datacenter_id: The managed object reference
|
|
796
827
|
ID of the datacenter the virtual machine is located in.
|
|
797
828
|
This can be omitted if the search path used in `name` is an absolute path.
|
|
798
829
|
For default datacenters, use the `id` attribute from an empty
|
|
799
830
|
`Datacenter` data source.
|
|
800
|
-
:param str firmware: The firmware type for this virtual machine. Can be `bios` or
|
|
831
|
+
:param str firmware: The firmware type for this virtual machine. Can be `bios` or
|
|
832
|
+
`efi`.
|
|
801
833
|
:param 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.
|
|
802
834
|
:param str guest_id: The guest ID of the virtual machine or template.
|
|
803
835
|
:param int hardware_version: The hardware version number on this virtual machine.
|
|
@@ -805,7 +837,8 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
805
837
|
:param str name: The name of the virtual machine. This can be a name or
|
|
806
838
|
the full path relative to the datacenter. This is required if a UUID lookup
|
|
807
839
|
is not performed.
|
|
808
|
-
:param int num_cores_per_socket: The number of cores per socket for this virtual
|
|
840
|
+
:param int num_cores_per_socket: The number of cores per socket for this virtual
|
|
841
|
+
machine.
|
|
809
842
|
:param int num_cpus: The total number of virtual processor cores assigned to this
|
|
810
843
|
virtual machine.
|
|
811
844
|
:param int scsi_controller_scan_count: The number of SCSI controllers to
|
|
@@ -909,6 +942,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
909
942
|
hv_mode=pulumi.get(__ret__, 'hv_mode'),
|
|
910
943
|
id=pulumi.get(__ret__, 'id'),
|
|
911
944
|
ide_controller_scan_count=pulumi.get(__ret__, 'ide_controller_scan_count'),
|
|
945
|
+
instance_uuid=pulumi.get(__ret__, 'instance_uuid'),
|
|
912
946
|
latency_sensitivity=pulumi.get(__ret__, 'latency_sensitivity'),
|
|
913
947
|
memory=pulumi.get(__ret__, 'memory'),
|
|
914
948
|
memory_hot_add_enabled=pulumi.get(__ret__, 'memory_hot_add_enabled'),
|
|
@@ -943,10 +977,8 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
943
977
|
vapp=pulumi.get(__ret__, 'vapp'),
|
|
944
978
|
vapp_transports=pulumi.get(__ret__, 'vapp_transports'),
|
|
945
979
|
vbs_enabled=pulumi.get(__ret__, 'vbs_enabled'),
|
|
980
|
+
vtpm=pulumi.get(__ret__, 'vtpm'),
|
|
946
981
|
vvtd_enabled=pulumi.get(__ret__, 'vvtd_enabled'))
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
@_utilities.lift_output_func(get_virtual_machine)
|
|
950
982
|
def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
951
983
|
annotation: Optional[pulumi.Input[Optional[str]]] = None,
|
|
952
984
|
boot_delay: Optional[pulumi.Input[Optional[int]]] = None,
|
|
@@ -999,10 +1031,10 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
999
1031
|
sync_time_with_host_periodically: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
1000
1032
|
tools_upgrade_policy: Optional[pulumi.Input[Optional[str]]] = None,
|
|
1001
1033
|
uuid: Optional[pulumi.Input[Optional[str]]] = None,
|
|
1002
|
-
vapp: Optional[pulumi.Input[Optional[
|
|
1034
|
+
vapp: Optional[pulumi.Input[Optional[Union['GetVirtualMachineVappArgs', 'GetVirtualMachineVappArgsDict']]]] = None,
|
|
1003
1035
|
vbs_enabled: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
1004
1036
|
vvtd_enabled: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
1005
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetVirtualMachineResult]:
|
|
1037
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVirtualMachineResult]:
|
|
1006
1038
|
"""
|
|
1007
1039
|
The `VirtualMachine` data source can be used to find the UUID of an
|
|
1008
1040
|
existing virtual machine or template. The most common purpose is for finding
|
|
@@ -1012,10 +1044,9 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1012
1044
|
|
|
1013
1045
|
## Example Usage
|
|
1014
1046
|
|
|
1015
|
-
In the following example, a virtual machine template is returned by its
|
|
1016
|
-
|
|
1047
|
+
In the following example, a virtual machine template is returned by its unique
|
|
1048
|
+
name within the `Datacenter`.
|
|
1017
1049
|
|
|
1018
|
-
<!--Start PulumiCodeChooser -->
|
|
1019
1050
|
```python
|
|
1020
1051
|
import pulumi
|
|
1021
1052
|
import pulumi_vsphere as vsphere
|
|
@@ -1024,11 +1055,10 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1024
1055
|
template = vsphere.get_virtual_machine(name="ubuntu-server-template",
|
|
1025
1056
|
datacenter_id=datacenter.id)
|
|
1026
1057
|
```
|
|
1027
|
-
|
|
1058
|
+
|
|
1028
1059
|
In the following example, each virtual machine template is returned by its
|
|
1029
1060
|
unique full path within the `Datacenter`.
|
|
1030
1061
|
|
|
1031
|
-
<!--Start PulumiCodeChooser -->
|
|
1032
1062
|
```python
|
|
1033
1063
|
import pulumi
|
|
1034
1064
|
import pulumi_vsphere as vsphere
|
|
@@ -1039,18 +1069,19 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1039
1069
|
development_template = vsphere.get_virtual_machine(name="development/templates/ubuntu-server-template",
|
|
1040
1070
|
datacenter_id=datacenter.id)
|
|
1041
1071
|
```
|
|
1042
|
-
<!--End PulumiCodeChooser -->
|
|
1043
1072
|
|
|
1044
1073
|
|
|
1045
1074
|
:param str alternate_guest_name: The alternate guest name of the virtual machine when
|
|
1046
|
-
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
1075
|
+
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
1076
|
+
`otherGuest64`.
|
|
1047
1077
|
:param str annotation: The user-provided description of this virtual machine.
|
|
1048
1078
|
:param str datacenter_id: The managed object reference
|
|
1049
1079
|
ID of the datacenter the virtual machine is located in.
|
|
1050
1080
|
This can be omitted if the search path used in `name` is an absolute path.
|
|
1051
1081
|
For default datacenters, use the `id` attribute from an empty
|
|
1052
1082
|
`Datacenter` data source.
|
|
1053
|
-
:param str firmware: The firmware type for this virtual machine. Can be `bios` or
|
|
1083
|
+
:param str firmware: The firmware type for this virtual machine. Can be `bios` or
|
|
1084
|
+
`efi`.
|
|
1054
1085
|
:param 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.
|
|
1055
1086
|
:param str guest_id: The guest ID of the virtual machine or template.
|
|
1056
1087
|
:param int hardware_version: The hardware version number on this virtual machine.
|
|
@@ -1058,7 +1089,8 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1058
1089
|
:param str name: The name of the virtual machine. This can be a name or
|
|
1059
1090
|
the full path relative to the datacenter. This is required if a UUID lookup
|
|
1060
1091
|
is not performed.
|
|
1061
|
-
:param int num_cores_per_socket: The number of cores per socket for this virtual
|
|
1092
|
+
:param int num_cores_per_socket: The number of cores per socket for this virtual
|
|
1093
|
+
machine.
|
|
1062
1094
|
:param int num_cpus: The total number of virtual processor cores assigned to this
|
|
1063
1095
|
virtual machine.
|
|
1064
1096
|
:param int scsi_controller_scan_count: The number of SCSI controllers to
|
|
@@ -1072,4 +1104,129 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1072
1104
|
:param str uuid: Specify this field for a UUID lookup, `name` and `datacenter_id`
|
|
1073
1105
|
are not required if this is specified.
|
|
1074
1106
|
"""
|
|
1075
|
-
|
|
1107
|
+
__args__ = dict()
|
|
1108
|
+
__args__['alternateGuestName'] = alternate_guest_name
|
|
1109
|
+
__args__['annotation'] = annotation
|
|
1110
|
+
__args__['bootDelay'] = boot_delay
|
|
1111
|
+
__args__['bootRetryDelay'] = boot_retry_delay
|
|
1112
|
+
__args__['bootRetryEnabled'] = boot_retry_enabled
|
|
1113
|
+
__args__['cpuHotAddEnabled'] = cpu_hot_add_enabled
|
|
1114
|
+
__args__['cpuHotRemoveEnabled'] = cpu_hot_remove_enabled
|
|
1115
|
+
__args__['cpuLimit'] = cpu_limit
|
|
1116
|
+
__args__['cpuPerformanceCountersEnabled'] = cpu_performance_counters_enabled
|
|
1117
|
+
__args__['cpuReservation'] = cpu_reservation
|
|
1118
|
+
__args__['cpuShareCount'] = cpu_share_count
|
|
1119
|
+
__args__['cpuShareLevel'] = cpu_share_level
|
|
1120
|
+
__args__['datacenterId'] = datacenter_id
|
|
1121
|
+
__args__['efiSecureBootEnabled'] = efi_secure_boot_enabled
|
|
1122
|
+
__args__['enableDiskUuid'] = enable_disk_uuid
|
|
1123
|
+
__args__['enableLogging'] = enable_logging
|
|
1124
|
+
__args__['eptRviMode'] = ept_rvi_mode
|
|
1125
|
+
__args__['extraConfig'] = extra_config
|
|
1126
|
+
__args__['extraConfigRebootRequired'] = extra_config_reboot_required
|
|
1127
|
+
__args__['firmware'] = firmware
|
|
1128
|
+
__args__['folder'] = folder
|
|
1129
|
+
__args__['guestId'] = guest_id
|
|
1130
|
+
__args__['hardwareVersion'] = hardware_version
|
|
1131
|
+
__args__['hvMode'] = hv_mode
|
|
1132
|
+
__args__['ideControllerScanCount'] = ide_controller_scan_count
|
|
1133
|
+
__args__['latencySensitivity'] = latency_sensitivity
|
|
1134
|
+
__args__['memory'] = memory
|
|
1135
|
+
__args__['memoryHotAddEnabled'] = memory_hot_add_enabled
|
|
1136
|
+
__args__['memoryLimit'] = memory_limit
|
|
1137
|
+
__args__['memoryReservation'] = memory_reservation
|
|
1138
|
+
__args__['memoryReservationLockedToMax'] = memory_reservation_locked_to_max
|
|
1139
|
+
__args__['memoryShareCount'] = memory_share_count
|
|
1140
|
+
__args__['memoryShareLevel'] = memory_share_level
|
|
1141
|
+
__args__['moid'] = moid
|
|
1142
|
+
__args__['name'] = name
|
|
1143
|
+
__args__['nestedHvEnabled'] = nested_hv_enabled
|
|
1144
|
+
__args__['numCoresPerSocket'] = num_cores_per_socket
|
|
1145
|
+
__args__['numCpus'] = num_cpus
|
|
1146
|
+
__args__['replaceTrigger'] = replace_trigger
|
|
1147
|
+
__args__['runToolsScriptsAfterPowerOn'] = run_tools_scripts_after_power_on
|
|
1148
|
+
__args__['runToolsScriptsAfterResume'] = run_tools_scripts_after_resume
|
|
1149
|
+
__args__['runToolsScriptsBeforeGuestReboot'] = run_tools_scripts_before_guest_reboot
|
|
1150
|
+
__args__['runToolsScriptsBeforeGuestShutdown'] = run_tools_scripts_before_guest_shutdown
|
|
1151
|
+
__args__['runToolsScriptsBeforeGuestStandby'] = run_tools_scripts_before_guest_standby
|
|
1152
|
+
__args__['sataControllerScanCount'] = sata_controller_scan_count
|
|
1153
|
+
__args__['scsiControllerScanCount'] = scsi_controller_scan_count
|
|
1154
|
+
__args__['storagePolicyId'] = storage_policy_id
|
|
1155
|
+
__args__['swapPlacementPolicy'] = swap_placement_policy
|
|
1156
|
+
__args__['syncTimeWithHost'] = sync_time_with_host
|
|
1157
|
+
__args__['syncTimeWithHostPeriodically'] = sync_time_with_host_periodically
|
|
1158
|
+
__args__['toolsUpgradePolicy'] = tools_upgrade_policy
|
|
1159
|
+
__args__['uuid'] = uuid
|
|
1160
|
+
__args__['vapp'] = vapp
|
|
1161
|
+
__args__['vbsEnabled'] = vbs_enabled
|
|
1162
|
+
__args__['vvtdEnabled'] = vvtd_enabled
|
|
1163
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
1164
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getVirtualMachine:getVirtualMachine', __args__, opts=opts, typ=GetVirtualMachineResult)
|
|
1165
|
+
return __ret__.apply(lambda __response__: GetVirtualMachineResult(
|
|
1166
|
+
alternate_guest_name=pulumi.get(__response__, 'alternate_guest_name'),
|
|
1167
|
+
annotation=pulumi.get(__response__, 'annotation'),
|
|
1168
|
+
boot_delay=pulumi.get(__response__, 'boot_delay'),
|
|
1169
|
+
boot_retry_delay=pulumi.get(__response__, 'boot_retry_delay'),
|
|
1170
|
+
boot_retry_enabled=pulumi.get(__response__, 'boot_retry_enabled'),
|
|
1171
|
+
change_version=pulumi.get(__response__, 'change_version'),
|
|
1172
|
+
cpu_hot_add_enabled=pulumi.get(__response__, 'cpu_hot_add_enabled'),
|
|
1173
|
+
cpu_hot_remove_enabled=pulumi.get(__response__, 'cpu_hot_remove_enabled'),
|
|
1174
|
+
cpu_limit=pulumi.get(__response__, 'cpu_limit'),
|
|
1175
|
+
cpu_performance_counters_enabled=pulumi.get(__response__, 'cpu_performance_counters_enabled'),
|
|
1176
|
+
cpu_reservation=pulumi.get(__response__, 'cpu_reservation'),
|
|
1177
|
+
cpu_share_count=pulumi.get(__response__, 'cpu_share_count'),
|
|
1178
|
+
cpu_share_level=pulumi.get(__response__, 'cpu_share_level'),
|
|
1179
|
+
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
1180
|
+
default_ip_address=pulumi.get(__response__, 'default_ip_address'),
|
|
1181
|
+
disks=pulumi.get(__response__, 'disks'),
|
|
1182
|
+
efi_secure_boot_enabled=pulumi.get(__response__, 'efi_secure_boot_enabled'),
|
|
1183
|
+
enable_disk_uuid=pulumi.get(__response__, 'enable_disk_uuid'),
|
|
1184
|
+
enable_logging=pulumi.get(__response__, 'enable_logging'),
|
|
1185
|
+
ept_rvi_mode=pulumi.get(__response__, 'ept_rvi_mode'),
|
|
1186
|
+
extra_config=pulumi.get(__response__, 'extra_config'),
|
|
1187
|
+
extra_config_reboot_required=pulumi.get(__response__, 'extra_config_reboot_required'),
|
|
1188
|
+
firmware=pulumi.get(__response__, 'firmware'),
|
|
1189
|
+
folder=pulumi.get(__response__, 'folder'),
|
|
1190
|
+
guest_id=pulumi.get(__response__, 'guest_id'),
|
|
1191
|
+
guest_ip_addresses=pulumi.get(__response__, 'guest_ip_addresses'),
|
|
1192
|
+
hardware_version=pulumi.get(__response__, 'hardware_version'),
|
|
1193
|
+
hv_mode=pulumi.get(__response__, 'hv_mode'),
|
|
1194
|
+
id=pulumi.get(__response__, 'id'),
|
|
1195
|
+
ide_controller_scan_count=pulumi.get(__response__, 'ide_controller_scan_count'),
|
|
1196
|
+
instance_uuid=pulumi.get(__response__, 'instance_uuid'),
|
|
1197
|
+
latency_sensitivity=pulumi.get(__response__, 'latency_sensitivity'),
|
|
1198
|
+
memory=pulumi.get(__response__, 'memory'),
|
|
1199
|
+
memory_hot_add_enabled=pulumi.get(__response__, 'memory_hot_add_enabled'),
|
|
1200
|
+
memory_limit=pulumi.get(__response__, 'memory_limit'),
|
|
1201
|
+
memory_reservation=pulumi.get(__response__, 'memory_reservation'),
|
|
1202
|
+
memory_reservation_locked_to_max=pulumi.get(__response__, 'memory_reservation_locked_to_max'),
|
|
1203
|
+
memory_share_count=pulumi.get(__response__, 'memory_share_count'),
|
|
1204
|
+
memory_share_level=pulumi.get(__response__, 'memory_share_level'),
|
|
1205
|
+
moid=pulumi.get(__response__, 'moid'),
|
|
1206
|
+
name=pulumi.get(__response__, 'name'),
|
|
1207
|
+
nested_hv_enabled=pulumi.get(__response__, 'nested_hv_enabled'),
|
|
1208
|
+
network_interface_types=pulumi.get(__response__, 'network_interface_types'),
|
|
1209
|
+
network_interfaces=pulumi.get(__response__, 'network_interfaces'),
|
|
1210
|
+
num_cores_per_socket=pulumi.get(__response__, 'num_cores_per_socket'),
|
|
1211
|
+
num_cpus=pulumi.get(__response__, 'num_cpus'),
|
|
1212
|
+
replace_trigger=pulumi.get(__response__, 'replace_trigger'),
|
|
1213
|
+
run_tools_scripts_after_power_on=pulumi.get(__response__, 'run_tools_scripts_after_power_on'),
|
|
1214
|
+
run_tools_scripts_after_resume=pulumi.get(__response__, 'run_tools_scripts_after_resume'),
|
|
1215
|
+
run_tools_scripts_before_guest_reboot=pulumi.get(__response__, 'run_tools_scripts_before_guest_reboot'),
|
|
1216
|
+
run_tools_scripts_before_guest_shutdown=pulumi.get(__response__, 'run_tools_scripts_before_guest_shutdown'),
|
|
1217
|
+
run_tools_scripts_before_guest_standby=pulumi.get(__response__, 'run_tools_scripts_before_guest_standby'),
|
|
1218
|
+
sata_controller_scan_count=pulumi.get(__response__, 'sata_controller_scan_count'),
|
|
1219
|
+
scsi_bus_sharing=pulumi.get(__response__, 'scsi_bus_sharing'),
|
|
1220
|
+
scsi_controller_scan_count=pulumi.get(__response__, 'scsi_controller_scan_count'),
|
|
1221
|
+
scsi_type=pulumi.get(__response__, 'scsi_type'),
|
|
1222
|
+
storage_policy_id=pulumi.get(__response__, 'storage_policy_id'),
|
|
1223
|
+
swap_placement_policy=pulumi.get(__response__, 'swap_placement_policy'),
|
|
1224
|
+
sync_time_with_host=pulumi.get(__response__, 'sync_time_with_host'),
|
|
1225
|
+
sync_time_with_host_periodically=pulumi.get(__response__, 'sync_time_with_host_periodically'),
|
|
1226
|
+
tools_upgrade_policy=pulumi.get(__response__, 'tools_upgrade_policy'),
|
|
1227
|
+
uuid=pulumi.get(__response__, 'uuid'),
|
|
1228
|
+
vapp=pulumi.get(__response__, 'vapp'),
|
|
1229
|
+
vapp_transports=pulumi.get(__response__, 'vapp_transports'),
|
|
1230
|
+
vbs_enabled=pulumi.get(__response__, 'vbs_enabled'),
|
|
1231
|
+
vtpm=pulumi.get(__response__, 'vtpm'),
|
|
1232
|
+
vvtd_enabled=pulumi.get(__response__, 'vvtd_enabled')))
|
pulumi_vsphere/get_vmfs_disks.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
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
|
|
|
12
17
|
__all__ = [
|
|
@@ -96,7 +101,6 @@ def get_vmfs_disks(filter: Optional[str] = None,
|
|
|
96
101
|
|
|
97
102
|
## Example Usage
|
|
98
103
|
|
|
99
|
-
<!--Start PulumiCodeChooser -->
|
|
100
104
|
```python
|
|
101
105
|
import pulumi
|
|
102
106
|
import pulumi_vsphere as vsphere
|
|
@@ -108,7 +112,6 @@ def get_vmfs_disks(filter: Optional[str] = None,
|
|
|
108
112
|
rescan=True,
|
|
109
113
|
filter="mpx.vmhba1:C0:T[12]:L0")
|
|
110
114
|
```
|
|
111
|
-
<!--End PulumiCodeChooser -->
|
|
112
115
|
|
|
113
116
|
|
|
114
117
|
:param str filter: A regular expression to filter the disks against. Only
|
|
@@ -136,13 +139,10 @@ def get_vmfs_disks(filter: Optional[str] = None,
|
|
|
136
139
|
host_system_id=pulumi.get(__ret__, 'host_system_id'),
|
|
137
140
|
id=pulumi.get(__ret__, 'id'),
|
|
138
141
|
rescan=pulumi.get(__ret__, 'rescan'))
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
@_utilities.lift_output_func(get_vmfs_disks)
|
|
142
142
|
def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
143
143
|
host_system_id: Optional[pulumi.Input[str]] = None,
|
|
144
144
|
rescan: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
145
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetVmfsDisksResult]:
|
|
145
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVmfsDisksResult]:
|
|
146
146
|
"""
|
|
147
147
|
The `get_vmfs_disks` data source can be used to discover the storage
|
|
148
148
|
devices available on an ESXi host. This data source can be combined with the
|
|
@@ -151,7 +151,6 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
151
151
|
|
|
152
152
|
## Example Usage
|
|
153
153
|
|
|
154
|
-
<!--Start PulumiCodeChooser -->
|
|
155
154
|
```python
|
|
156
155
|
import pulumi
|
|
157
156
|
import pulumi_vsphere as vsphere
|
|
@@ -163,7 +162,6 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
163
162
|
rescan=True,
|
|
164
163
|
filter="mpx.vmhba1:C0:T[12]:L0")
|
|
165
164
|
```
|
|
166
|
-
<!--End PulumiCodeChooser -->
|
|
167
165
|
|
|
168
166
|
|
|
169
167
|
:param str filter: A regular expression to filter the disks against. Only
|
|
@@ -178,4 +176,15 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
178
176
|
searching for disks. This may lengthen the time it takes to perform the
|
|
179
177
|
search. Default: `false`.
|
|
180
178
|
"""
|
|
181
|
-
|
|
179
|
+
__args__ = dict()
|
|
180
|
+
__args__['filter'] = filter
|
|
181
|
+
__args__['hostSystemId'] = host_system_id
|
|
182
|
+
__args__['rescan'] = rescan
|
|
183
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
184
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getVmfsDisks:getVmfsDisks', __args__, opts=opts, typ=GetVmfsDisksResult)
|
|
185
|
+
return __ret__.apply(lambda __response__: GetVmfsDisksResult(
|
|
186
|
+
disks=pulumi.get(__response__, 'disks'),
|
|
187
|
+
filter=pulumi.get(__response__, 'filter'),
|
|
188
|
+
host_system_id=pulumi.get(__response__, 'host_system_id'),
|
|
189
|
+
id=pulumi.get(__response__, 'id'),
|
|
190
|
+
rescan=pulumi.get(__response__, 'rescan')))
|