pulumi-vsphere 4.10.0a1709368772__py3-none-any.whl → 4.10.0a1710245029__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.

Files changed (48) hide show
  1. pulumi_vsphere/__init__.py +2 -0
  2. pulumi_vsphere/_inputs.py +4 -0
  3. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +8 -0
  4. pulumi_vsphere/datacenter.py +12 -0
  5. pulumi_vsphere/datastore_cluster.py +7 -7
  6. pulumi_vsphere/distributed_virtual_switch.py +28 -7
  7. pulumi_vsphere/file.py +12 -0
  8. pulumi_vsphere/get_compute_cluster.py +4 -0
  9. pulumi_vsphere/get_compute_cluster_host_group.py +4 -0
  10. pulumi_vsphere/get_content_library.py +4 -0
  11. pulumi_vsphere/get_custom_attribute.py +4 -0
  12. pulumi_vsphere/get_datacenter.py +4 -0
  13. pulumi_vsphere/get_datastore.py +31 -3
  14. pulumi_vsphere/get_datastore_cluster.py +4 -0
  15. pulumi_vsphere/get_datastore_stats.py +202 -0
  16. pulumi_vsphere/get_distributed_virtual_switch.py +4 -0
  17. pulumi_vsphere/get_dynamic.py +4 -0
  18. pulumi_vsphere/get_folder.py +4 -0
  19. pulumi_vsphere/get_guest_os_customization.py +4 -0
  20. pulumi_vsphere/get_host.py +4 -0
  21. pulumi_vsphere/get_host_pci_device.py +34 -0
  22. pulumi_vsphere/get_host_thumbprint.py +4 -0
  23. pulumi_vsphere/get_host_vgpu_profile.py +190 -0
  24. pulumi_vsphere/get_license.py +4 -0
  25. pulumi_vsphere/get_network.py +4 -0
  26. pulumi_vsphere/get_ovf_vm_template.py +0 -168
  27. pulumi_vsphere/get_policy.py +4 -0
  28. pulumi_vsphere/get_resource_pool.py +10 -0
  29. pulumi_vsphere/get_role.py +4 -0
  30. pulumi_vsphere/get_tag.py +4 -0
  31. pulumi_vsphere/get_tag_category.py +4 -0
  32. pulumi_vsphere/get_vapp_container.py +4 -0
  33. pulumi_vsphere/get_virtual_machine.py +37 -1
  34. pulumi_vsphere/get_vmfs_disks.py +4 -0
  35. pulumi_vsphere/host.py +18 -0
  36. pulumi_vsphere/host_port_group.py +14 -0
  37. pulumi_vsphere/license.py +4 -0
  38. pulumi_vsphere/outputs.py +75 -0
  39. pulumi_vsphere/resource_pool.py +12 -12
  40. pulumi_vsphere/virtual_machine.py +75 -14
  41. pulumi_vsphere/virtual_machine_snapshot.py +4 -0
  42. pulumi_vsphere/vm_storage_policy.py +12 -0
  43. pulumi_vsphere/vnic.py +18 -0
  44. {pulumi_vsphere-4.10.0a1709368772.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/METADATA +1 -1
  45. pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +82 -0
  46. {pulumi_vsphere-4.10.0a1709368772.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/WHEEL +1 -1
  47. pulumi_vsphere-4.10.0a1709368772.dist-info/RECORD +0 -80
  48. {pulumi_vsphere-4.10.0a1709368772.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/top_level.txt +0 -0
@@ -23,7 +23,7 @@ class GetVirtualMachineResult:
23
23
  """
24
24
  A collection of values returned by getVirtualMachine.
25
25
  """
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):
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):
27
27
  if alternate_guest_name and not isinstance(alternate_guest_name, str):
28
28
  raise TypeError("Expected argument 'alternate_guest_name' to be a str")
29
29
  pulumi.set(__self__, "alternate_guest_name", alternate_guest_name)
@@ -93,6 +93,9 @@ class GetVirtualMachineResult:
93
93
  if firmware and not isinstance(firmware, str):
94
94
  raise TypeError("Expected argument 'firmware' to be a str")
95
95
  pulumi.set(__self__, "firmware", firmware)
96
+ if folder and not isinstance(folder, str):
97
+ raise TypeError("Expected argument 'folder' to be a str")
98
+ pulumi.set(__self__, "folder", folder)
96
99
  if guest_id and not isinstance(guest_id, str):
97
100
  raise TypeError("Expected argument 'guest_id' to be a str")
98
101
  pulumi.set(__self__, "guest_id", guest_id)
@@ -126,6 +129,9 @@ class GetVirtualMachineResult:
126
129
  if memory_reservation and not isinstance(memory_reservation, int):
127
130
  raise TypeError("Expected argument 'memory_reservation' to be a int")
128
131
  pulumi.set(__self__, "memory_reservation", memory_reservation)
132
+ if memory_reservation_locked_to_max and not isinstance(memory_reservation_locked_to_max, bool):
133
+ raise TypeError("Expected argument 'memory_reservation_locked_to_max' to be a bool")
134
+ pulumi.set(__self__, "memory_reservation_locked_to_max", memory_reservation_locked_to_max)
129
135
  if memory_share_count and not isinstance(memory_share_count, int):
130
136
  raise TypeError("Expected argument 'memory_share_count' to be a int")
131
137
  pulumi.set(__self__, "memory_share_count", memory_share_count)
@@ -356,6 +362,11 @@ class GetVirtualMachineResult:
356
362
  """
357
363
  return pulumi.get(self, "firmware")
358
364
 
365
+ @property
366
+ @pulumi.getter
367
+ def folder(self) -> Optional[str]:
368
+ return pulumi.get(self, "folder")
369
+
359
370
  @property
360
371
  @pulumi.getter(name="guestId")
361
372
  def guest_id(self) -> str:
@@ -426,6 +437,11 @@ class GetVirtualMachineResult:
426
437
  def memory_reservation(self) -> Optional[int]:
427
438
  return pulumi.get(self, "memory_reservation")
428
439
 
440
+ @property
441
+ @pulumi.getter(name="memoryReservationLockedToMax")
442
+ def memory_reservation_locked_to_max(self) -> Optional[bool]:
443
+ return pulumi.get(self, "memory_reservation_locked_to_max")
444
+
429
445
  @property
430
446
  @pulumi.getter(name="memoryShareCount")
431
447
  def memory_share_count(self) -> int:
@@ -634,6 +650,7 @@ class AwaitableGetVirtualMachineResult(GetVirtualMachineResult):
634
650
  extra_config=self.extra_config,
635
651
  extra_config_reboot_required=self.extra_config_reboot_required,
636
652
  firmware=self.firmware,
653
+ folder=self.folder,
637
654
  guest_id=self.guest_id,
638
655
  guest_ip_addresses=self.guest_ip_addresses,
639
656
  hardware_version=self.hardware_version,
@@ -645,6 +662,7 @@ class AwaitableGetVirtualMachineResult(GetVirtualMachineResult):
645
662
  memory_hot_add_enabled=self.memory_hot_add_enabled,
646
663
  memory_limit=self.memory_limit,
647
664
  memory_reservation=self.memory_reservation,
665
+ memory_reservation_locked_to_max=self.memory_reservation_locked_to_max,
648
666
  memory_share_count=self.memory_share_count,
649
667
  memory_share_level=self.memory_share_level,
650
668
  moid=self.moid,
@@ -696,6 +714,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
696
714
  extra_config: Optional[Mapping[str, str]] = None,
697
715
  extra_config_reboot_required: Optional[bool] = None,
698
716
  firmware: Optional[str] = None,
717
+ folder: Optional[str] = None,
699
718
  guest_id: Optional[str] = None,
700
719
  hardware_version: Optional[int] = None,
701
720
  hv_mode: Optional[str] = None,
@@ -705,6 +724,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
705
724
  memory_hot_add_enabled: Optional[bool] = None,
706
725
  memory_limit: Optional[int] = None,
707
726
  memory_reservation: Optional[int] = None,
727
+ memory_reservation_locked_to_max: Optional[bool] = None,
708
728
  memory_share_count: Optional[int] = None,
709
729
  memory_share_level: Optional[str] = None,
710
730
  moid: Optional[str] = None,
@@ -742,6 +762,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
742
762
  In the following example, a virtual machine template is returned by its
743
763
  unique name within the `Datacenter`.
744
764
 
765
+ <!--Start PulumiCodeChooser -->
745
766
  ```python
746
767
  import pulumi
747
768
  import pulumi_vsphere as vsphere
@@ -750,9 +771,11 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
750
771
  template = vsphere.get_virtual_machine(name="ubuntu-server-template",
751
772
  datacenter_id=datacenter.id)
752
773
  ```
774
+ <!--End PulumiCodeChooser -->
753
775
  In the following example, each virtual machine template is returned by its
754
776
  unique full path within the `Datacenter`.
755
777
 
778
+ <!--Start PulumiCodeChooser -->
756
779
  ```python
757
780
  import pulumi
758
781
  import pulumi_vsphere as vsphere
@@ -763,6 +786,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
763
786
  development_template = vsphere.get_virtual_machine(name="development/templates/ubuntu-server-template",
764
787
  datacenter_id=datacenter.id)
765
788
  ```
789
+ <!--End PulumiCodeChooser -->
766
790
 
767
791
 
768
792
  :param str alternate_guest_name: The alternate guest name of the virtual machine when
@@ -774,6 +798,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
774
798
  For default datacenters, use the `id` attribute from an empty
775
799
  `Datacenter` data source.
776
800
  :param str firmware: The firmware type for this virtual machine. Can be `bios` or `efi`.
801
+ :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.
777
802
  :param str guest_id: The guest ID of the virtual machine or template.
778
803
  :param int hardware_version: The hardware version number on this virtual machine.
779
804
  :param int memory: The size of the virtual machine's memory, in MB.
@@ -815,6 +840,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
815
840
  __args__['extraConfig'] = extra_config
816
841
  __args__['extraConfigRebootRequired'] = extra_config_reboot_required
817
842
  __args__['firmware'] = firmware
843
+ __args__['folder'] = folder
818
844
  __args__['guestId'] = guest_id
819
845
  __args__['hardwareVersion'] = hardware_version
820
846
  __args__['hvMode'] = hv_mode
@@ -824,6 +850,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
824
850
  __args__['memoryHotAddEnabled'] = memory_hot_add_enabled
825
851
  __args__['memoryLimit'] = memory_limit
826
852
  __args__['memoryReservation'] = memory_reservation
853
+ __args__['memoryReservationLockedToMax'] = memory_reservation_locked_to_max
827
854
  __args__['memoryShareCount'] = memory_share_count
828
855
  __args__['memoryShareLevel'] = memory_share_level
829
856
  __args__['moid'] = moid
@@ -875,6 +902,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
875
902
  extra_config=pulumi.get(__ret__, 'extra_config'),
876
903
  extra_config_reboot_required=pulumi.get(__ret__, 'extra_config_reboot_required'),
877
904
  firmware=pulumi.get(__ret__, 'firmware'),
905
+ folder=pulumi.get(__ret__, 'folder'),
878
906
  guest_id=pulumi.get(__ret__, 'guest_id'),
879
907
  guest_ip_addresses=pulumi.get(__ret__, 'guest_ip_addresses'),
880
908
  hardware_version=pulumi.get(__ret__, 'hardware_version'),
@@ -886,6 +914,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
886
914
  memory_hot_add_enabled=pulumi.get(__ret__, 'memory_hot_add_enabled'),
887
915
  memory_limit=pulumi.get(__ret__, 'memory_limit'),
888
916
  memory_reservation=pulumi.get(__ret__, 'memory_reservation'),
917
+ memory_reservation_locked_to_max=pulumi.get(__ret__, 'memory_reservation_locked_to_max'),
889
918
  memory_share_count=pulumi.get(__ret__, 'memory_share_count'),
890
919
  memory_share_level=pulumi.get(__ret__, 'memory_share_level'),
891
920
  moid=pulumi.get(__ret__, 'moid'),
@@ -938,6 +967,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
938
967
  extra_config: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
939
968
  extra_config_reboot_required: Optional[pulumi.Input[Optional[bool]]] = None,
940
969
  firmware: Optional[pulumi.Input[Optional[str]]] = None,
970
+ folder: Optional[pulumi.Input[Optional[str]]] = None,
941
971
  guest_id: Optional[pulumi.Input[Optional[str]]] = None,
942
972
  hardware_version: Optional[pulumi.Input[Optional[int]]] = None,
943
973
  hv_mode: Optional[pulumi.Input[Optional[str]]] = None,
@@ -947,6 +977,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
947
977
  memory_hot_add_enabled: Optional[pulumi.Input[Optional[bool]]] = None,
948
978
  memory_limit: Optional[pulumi.Input[Optional[int]]] = None,
949
979
  memory_reservation: Optional[pulumi.Input[Optional[int]]] = None,
980
+ memory_reservation_locked_to_max: Optional[pulumi.Input[Optional[bool]]] = None,
950
981
  memory_share_count: Optional[pulumi.Input[Optional[int]]] = None,
951
982
  memory_share_level: Optional[pulumi.Input[Optional[str]]] = None,
952
983
  moid: Optional[pulumi.Input[Optional[str]]] = None,
@@ -984,6 +1015,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
984
1015
  In the following example, a virtual machine template is returned by its
985
1016
  unique name within the `Datacenter`.
986
1017
 
1018
+ <!--Start PulumiCodeChooser -->
987
1019
  ```python
988
1020
  import pulumi
989
1021
  import pulumi_vsphere as vsphere
@@ -992,9 +1024,11 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
992
1024
  template = vsphere.get_virtual_machine(name="ubuntu-server-template",
993
1025
  datacenter_id=datacenter.id)
994
1026
  ```
1027
+ <!--End PulumiCodeChooser -->
995
1028
  In the following example, each virtual machine template is returned by its
996
1029
  unique full path within the `Datacenter`.
997
1030
 
1031
+ <!--Start PulumiCodeChooser -->
998
1032
  ```python
999
1033
  import pulumi
1000
1034
  import pulumi_vsphere as vsphere
@@ -1005,6 +1039,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1005
1039
  development_template = vsphere.get_virtual_machine(name="development/templates/ubuntu-server-template",
1006
1040
  datacenter_id=datacenter.id)
1007
1041
  ```
1042
+ <!--End PulumiCodeChooser -->
1008
1043
 
1009
1044
 
1010
1045
  :param str alternate_guest_name: The alternate guest name of the virtual machine when
@@ -1016,6 +1051,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1016
1051
  For default datacenters, use the `id` attribute from an empty
1017
1052
  `Datacenter` data source.
1018
1053
  :param str firmware: The firmware type for this virtual machine. Can be `bios` or `efi`.
1054
+ :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.
1019
1055
  :param str guest_id: The guest ID of the virtual machine or template.
1020
1056
  :param int hardware_version: The hardware version number on this virtual machine.
1021
1057
  :param int memory: The size of the virtual machine's memory, in MB.
@@ -96,6 +96,7 @@ def get_vmfs_disks(filter: Optional[str] = None,
96
96
 
97
97
  ## Example Usage
98
98
 
99
+ <!--Start PulumiCodeChooser -->
99
100
  ```python
100
101
  import pulumi
101
102
  import pulumi_vsphere as vsphere
@@ -107,6 +108,7 @@ def get_vmfs_disks(filter: Optional[str] = None,
107
108
  rescan=True,
108
109
  filter="mpx.vmhba1:C0:T[12]:L0")
109
110
  ```
111
+ <!--End PulumiCodeChooser -->
110
112
 
111
113
 
112
114
  :param str filter: A regular expression to filter the disks against. Only
@@ -149,6 +151,7 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
149
151
 
150
152
  ## Example Usage
151
153
 
154
+ <!--Start PulumiCodeChooser -->
152
155
  ```python
153
156
  import pulumi
154
157
  import pulumi_vsphere as vsphere
@@ -160,6 +163,7 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
160
163
  rescan=True,
161
164
  filter="mpx.vmhba1:C0:T[12]:L0")
162
165
  ```
166
+ <!--End PulumiCodeChooser -->
163
167
 
164
168
 
165
169
  :param str filter: A regular expression to filter the disks against. Only
pulumi_vsphere/host.py CHANGED
@@ -613,8 +613,10 @@ class Host(pulumi.CustomResource):
613
613
  can be used either as a member of a cluster or as a standalone host.
614
614
 
615
615
  ## Example Usage
616
+
616
617
  ### Create a standalone host
617
618
 
619
+ <!--Start PulumiCodeChooser -->
618
620
  ```python
619
621
  import pulumi
620
622
  import pulumi_vsphere as vsphere
@@ -630,8 +632,11 @@ class Host(pulumi.CustomResource):
630
632
  thumbprint=thumbprint.id,
631
633
  datacenter=datacenter.id)
632
634
  ```
635
+ <!--End PulumiCodeChooser -->
636
+
633
637
  ### Create host in a compute cluster
634
638
 
639
+ <!--Start PulumiCodeChooser -->
635
640
  ```python
636
641
  import pulumi
637
642
  import pulumi_vsphere as vsphere
@@ -649,6 +654,8 @@ class Host(pulumi.CustomResource):
649
654
  thumbprint=thumbprint.id,
650
655
  cluster=cluster.id)
651
656
  ```
657
+ <!--End PulumiCodeChooser -->
658
+
652
659
  ## Importing
653
660
 
654
661
  An existing host can be [imported][docs-import] into this resource by supplying
@@ -656,9 +663,11 @@ class Host(pulumi.CustomResource):
656
663
 
657
664
  [docs-import]: /docs/import/index.html
658
665
 
666
+ <!--Start PulumiCodeChooser -->
659
667
  ```python
660
668
  import pulumi
661
669
  ```
670
+ <!--End PulumiCodeChooser -->
662
671
 
663
672
  The above would import the host with ID `host-123`.
664
673
 
@@ -719,8 +728,10 @@ class Host(pulumi.CustomResource):
719
728
  can be used either as a member of a cluster or as a standalone host.
720
729
 
721
730
  ## Example Usage
731
+
722
732
  ### Create a standalone host
723
733
 
734
+ <!--Start PulumiCodeChooser -->
724
735
  ```python
725
736
  import pulumi
726
737
  import pulumi_vsphere as vsphere
@@ -736,8 +747,11 @@ class Host(pulumi.CustomResource):
736
747
  thumbprint=thumbprint.id,
737
748
  datacenter=datacenter.id)
738
749
  ```
750
+ <!--End PulumiCodeChooser -->
751
+
739
752
  ### Create host in a compute cluster
740
753
 
754
+ <!--Start PulumiCodeChooser -->
741
755
  ```python
742
756
  import pulumi
743
757
  import pulumi_vsphere as vsphere
@@ -755,6 +769,8 @@ class Host(pulumi.CustomResource):
755
769
  thumbprint=thumbprint.id,
756
770
  cluster=cluster.id)
757
771
  ```
772
+ <!--End PulumiCodeChooser -->
773
+
758
774
  ## Importing
759
775
 
760
776
  An existing host can be [imported][docs-import] into this resource by supplying
@@ -762,9 +778,11 @@ class Host(pulumi.CustomResource):
762
778
 
763
779
  [docs-import]: /docs/import/index.html
764
780
 
781
+ <!--Start PulumiCodeChooser -->
765
782
  ```python
766
783
  import pulumi
767
784
  ```
785
+ <!--End PulumiCodeChooser -->
768
786
 
769
787
  The above would import the host with ID `host-123`.
770
788
 
@@ -696,6 +696,7 @@ class HostPortGroup(pulumi.CustomResource):
696
696
 
697
697
  **Create a Virtual Switch and Bind a Port Group:**
698
698
 
699
+ <!--Start PulumiCodeChooser -->
699
700
  ```python
700
701
  import pulumi
701
702
  import pulumi_vsphere as vsphere
@@ -715,6 +716,7 @@ class HostPortGroup(pulumi.CustomResource):
715
716
  host_system_id=host.id,
716
717
  virtual_switch_name=host_virtual_switch.name)
717
718
  ```
719
+ <!--End PulumiCodeChooser -->
718
720
 
719
721
  **Create a Port Group with a VLAN and ab Override:**
720
722
 
@@ -724,6 +726,7 @@ class HostPortGroup(pulumi.CustomResource):
724
726
  to ensure that all traffic is seen on the port. The setting overrides
725
727
  the implicit default of `false` set on the standard switch.
726
728
 
729
+ <!--Start PulumiCodeChooser -->
727
730
  ```python
728
731
  import pulumi
729
732
  import pulumi_vsphere as vsphere
@@ -745,14 +748,18 @@ class HostPortGroup(pulumi.CustomResource):
745
748
  vlan_id=4095,
746
749
  allow_promiscuous=True)
747
750
  ```
751
+ <!--End PulumiCodeChooser -->
752
+
748
753
  ## Importing
749
754
 
750
755
  An existing host port group can be imported into this resource
751
756
  using the host port group's ID. An example is below:
752
757
 
758
+ <!--Start PulumiCodeChooser -->
753
759
  ```python
754
760
  import pulumi
755
761
  ```
762
+ <!--End PulumiCodeChooser -->
756
763
 
757
764
  The above would import the `management` host port group from host with ID `host-123`.
758
765
 
@@ -805,6 +812,7 @@ class HostPortGroup(pulumi.CustomResource):
805
812
 
806
813
  **Create a Virtual Switch and Bind a Port Group:**
807
814
 
815
+ <!--Start PulumiCodeChooser -->
808
816
  ```python
809
817
  import pulumi
810
818
  import pulumi_vsphere as vsphere
@@ -824,6 +832,7 @@ class HostPortGroup(pulumi.CustomResource):
824
832
  host_system_id=host.id,
825
833
  virtual_switch_name=host_virtual_switch.name)
826
834
  ```
835
+ <!--End PulumiCodeChooser -->
827
836
 
828
837
  **Create a Port Group with a VLAN and ab Override:**
829
838
 
@@ -833,6 +842,7 @@ class HostPortGroup(pulumi.CustomResource):
833
842
  to ensure that all traffic is seen on the port. The setting overrides
834
843
  the implicit default of `false` set on the standard switch.
835
844
 
845
+ <!--Start PulumiCodeChooser -->
836
846
  ```python
837
847
  import pulumi
838
848
  import pulumi_vsphere as vsphere
@@ -854,14 +864,18 @@ class HostPortGroup(pulumi.CustomResource):
854
864
  vlan_id=4095,
855
865
  allow_promiscuous=True)
856
866
  ```
867
+ <!--End PulumiCodeChooser -->
868
+
857
869
  ## Importing
858
870
 
859
871
  An existing host port group can be imported into this resource
860
872
  using the host port group's ID. An example is below:
861
873
 
874
+ <!--Start PulumiCodeChooser -->
862
875
  ```python
863
876
  import pulumi
864
877
  ```
878
+ <!--End PulumiCodeChooser -->
865
879
 
866
880
  The above would import the `management` host port group from host with ID `host-123`.
867
881
 
pulumi_vsphere/license.py CHANGED
@@ -167,6 +167,7 @@ class License(pulumi.CustomResource):
167
167
 
168
168
  ## Example Usage
169
169
 
170
+ <!--Start PulumiCodeChooser -->
170
171
  ```python
171
172
  import pulumi
172
173
  import pulumi_vsphere as vsphere
@@ -178,6 +179,7 @@ class License(pulumi.CustomResource):
178
179
  },
179
180
  license_key="452CQ-2EK54-K8742-00000-00000")
180
181
  ```
182
+ <!--End PulumiCodeChooser -->
181
183
 
182
184
  :param str resource_name: The name of the resource.
183
185
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -195,6 +197,7 @@ class License(pulumi.CustomResource):
195
197
 
196
198
  ## Example Usage
197
199
 
200
+ <!--Start PulumiCodeChooser -->
198
201
  ```python
199
202
  import pulumi
200
203
  import pulumi_vsphere as vsphere
@@ -206,6 +209,7 @@ class License(pulumi.CustomResource):
206
209
  },
207
210
  license_key="452CQ-2EK54-K8742-00000-00000")
208
211
  ```
212
+ <!--End PulumiCodeChooser -->
209
213
 
210
214
  :param str resource_name: The name of the resource.
211
215
  :param LicenseArgs args: The arguments to use to populate this resource's properties.
pulumi_vsphere/outputs.py CHANGED
@@ -45,6 +45,7 @@ __all__ = [
45
45
  'GetGuestOsCustomizationSpecLinuxOptionResult',
46
46
  'GetGuestOsCustomizationSpecNetworkInterfaceResult',
47
47
  'GetGuestOsCustomizationSpecWindowsOptionResult',
48
+ 'GetHostVgpuProfileVgpuProfileResult',
48
49
  'GetVirtualMachineDiskResult',
49
50
  'GetVirtualMachineNetworkInterfaceResult',
50
51
  'GetVirtualMachineVappResult',
@@ -206,6 +207,7 @@ class ComputeClusterVsanStretchedCluster(dict):
206
207
  > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster.
207
208
  You can enable or re-enable vSphere HA after vSAN is configured.
208
209
 
210
+ <!--Start PulumiCodeChooser -->
209
211
  ```python
210
212
  import pulumi
211
213
  import pulumi_vsphere as vsphere
@@ -248,6 +250,7 @@ class ComputeClusterVsanStretchedCluster(dict):
248
250
  witness_node=data["vsphere_host"]["witness_host"]["id"],
249
251
  ))
250
252
  ```
253
+ <!--End PulumiCodeChooser -->
251
254
  """
252
255
  pulumi.set(__self__, "preferred_fault_domain_host_ids", preferred_fault_domain_host_ids)
253
256
  pulumi.set(__self__, "secondary_fault_domain_host_ids", secondary_fault_domain_host_ids)
@@ -298,6 +301,7 @@ class ComputeClusterVsanStretchedCluster(dict):
298
301
  > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster.
299
302
  You can enable or re-enable vSphere HA after vSAN is configured.
300
303
 
304
+ <!--Start PulumiCodeChooser -->
301
305
  ```python
302
306
  import pulumi
303
307
  import pulumi_vsphere as vsphere
@@ -340,6 +344,7 @@ class ComputeClusterVsanStretchedCluster(dict):
340
344
  witness_node=data["vsphere_host"]["witness_host"]["id"],
341
345
  ))
342
346
  ```
347
+ <!--End PulumiCodeChooser -->
343
348
  """
344
349
  return pulumi.get(self, "secondary_fault_domain_name")
345
350
 
@@ -3362,6 +3367,76 @@ class GetGuestOsCustomizationSpecWindowsOptionResult(dict):
3362
3367
  return pulumi.get(self, "domain_admin_password")
3363
3368
 
3364
3369
 
3370
+ @pulumi.output_type
3371
+ class GetHostVgpuProfileVgpuProfileResult(dict):
3372
+ def __init__(__self__, *,
3373
+ disk_snapshot_supported: bool,
3374
+ memory_snapshot_supported: bool,
3375
+ migrate_supported: bool,
3376
+ suspend_supported: bool,
3377
+ vgpu: str):
3378
+ """
3379
+ :param bool disk_snapshot_supported: Indicates whether the GPU plugin on this host is
3380
+ capable of disk-only snapshots when VM is not powered off.
3381
+ :param bool memory_snapshot_supported: Indicates whether the GPU plugin on this host is
3382
+ capable of memory snapshots.
3383
+ :param bool migrate_supported: Indicates whether the GPU plugin on this host is capable
3384
+ of migration.
3385
+ :param bool suspend_supported: Indicates whether the GPU plugin on this host is capable
3386
+ of suspend-resume.
3387
+ :param str vgpu: Name of a particular vGPU available as a shared GPU device (vGPU profile).
3388
+ """
3389
+ pulumi.set(__self__, "disk_snapshot_supported", disk_snapshot_supported)
3390
+ pulumi.set(__self__, "memory_snapshot_supported", memory_snapshot_supported)
3391
+ pulumi.set(__self__, "migrate_supported", migrate_supported)
3392
+ pulumi.set(__self__, "suspend_supported", suspend_supported)
3393
+ pulumi.set(__self__, "vgpu", vgpu)
3394
+
3395
+ @property
3396
+ @pulumi.getter(name="diskSnapshotSupported")
3397
+ def disk_snapshot_supported(self) -> bool:
3398
+ """
3399
+ Indicates whether the GPU plugin on this host is
3400
+ capable of disk-only snapshots when VM is not powered off.
3401
+ """
3402
+ return pulumi.get(self, "disk_snapshot_supported")
3403
+
3404
+ @property
3405
+ @pulumi.getter(name="memorySnapshotSupported")
3406
+ def memory_snapshot_supported(self) -> bool:
3407
+ """
3408
+ Indicates whether the GPU plugin on this host is
3409
+ capable of memory snapshots.
3410
+ """
3411
+ return pulumi.get(self, "memory_snapshot_supported")
3412
+
3413
+ @property
3414
+ @pulumi.getter(name="migrateSupported")
3415
+ def migrate_supported(self) -> bool:
3416
+ """
3417
+ Indicates whether the GPU plugin on this host is capable
3418
+ of migration.
3419
+ """
3420
+ return pulumi.get(self, "migrate_supported")
3421
+
3422
+ @property
3423
+ @pulumi.getter(name="suspendSupported")
3424
+ def suspend_supported(self) -> bool:
3425
+ """
3426
+ Indicates whether the GPU plugin on this host is capable
3427
+ of suspend-resume.
3428
+ """
3429
+ return pulumi.get(self, "suspend_supported")
3430
+
3431
+ @property
3432
+ @pulumi.getter
3433
+ def vgpu(self) -> str:
3434
+ """
3435
+ Name of a particular vGPU available as a shared GPU device (vGPU profile).
3436
+ """
3437
+ return pulumi.get(self, "vgpu")
3438
+
3439
+
3365
3440
  @pulumi.output_type
3366
3441
  class GetVirtualMachineDiskResult(dict):
3367
3442
  def __init__(__self__, *,
@@ -657,6 +657,7 @@ class ResourcePool(pulumi.CustomResource):
657
657
  The following example sets up a resource pool in an existing compute cluster
658
658
  with the default settings for CPU and memory reservations, shares, and limits.
659
659
 
660
+ <!--Start PulumiCodeChooser -->
660
661
  ```python
661
662
  import pulumi
662
663
  import pulumi_vsphere as vsphere
@@ -666,10 +667,12 @@ class ResourcePool(pulumi.CustomResource):
666
667
  datacenter_id=datacenter.id)
667
668
  resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id)
668
669
  ```
670
+ <!--End PulumiCodeChooser -->
669
671
 
670
672
  A virtual machine resource could be targeted to use the default resource pool
671
673
  of the cluster using the following:
672
674
 
675
+ <!--Start PulumiCodeChooser -->
673
676
  ```python
674
677
  import pulumi
675
678
  import pulumi_vsphere as vsphere
@@ -677,11 +680,13 @@ class ResourcePool(pulumi.CustomResource):
677
680
  vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"])
678
681
  # ... other configuration ...
679
682
  ```
683
+ <!--End PulumiCodeChooser -->
680
684
 
681
685
  The following example sets up a parent resource pool in an existing compute cluster
682
686
  with a child resource pool nested below. Each resource pool is configured with
683
687
  the default settings for CPU and memory reservations, shares, and limits.
684
688
 
689
+ <!--Start PulumiCodeChooser -->
685
690
  ```python
686
691
  import pulumi
687
692
  import pulumi_vsphere as vsphere
@@ -692,12 +697,7 @@ class ResourcePool(pulumi.CustomResource):
692
697
  resource_pool_parent = vsphere.ResourcePool("resourcePoolParent", parent_resource_pool_id=compute_cluster.resource_pool_id)
693
698
  resource_pool_child = vsphere.ResourcePool("resourcePoolChild", parent_resource_pool_id=resource_pool_parent.id)
694
699
  ```
695
- ## Importing
696
- ### Settings that Require vSphere 7.0 or higher
697
-
698
- These settings require vSphere 7.0 or higher:
699
-
700
- * `scale_descendants_shares`
700
+ <!--End PulumiCodeChooser -->
701
701
 
702
702
  :param str resource_name: The name of the resource.
703
703
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -766,6 +766,7 @@ class ResourcePool(pulumi.CustomResource):
766
766
  The following example sets up a resource pool in an existing compute cluster
767
767
  with the default settings for CPU and memory reservations, shares, and limits.
768
768
 
769
+ <!--Start PulumiCodeChooser -->
769
770
  ```python
770
771
  import pulumi
771
772
  import pulumi_vsphere as vsphere
@@ -775,10 +776,12 @@ class ResourcePool(pulumi.CustomResource):
775
776
  datacenter_id=datacenter.id)
776
777
  resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id)
777
778
  ```
779
+ <!--End PulumiCodeChooser -->
778
780
 
779
781
  A virtual machine resource could be targeted to use the default resource pool
780
782
  of the cluster using the following:
781
783
 
784
+ <!--Start PulumiCodeChooser -->
782
785
  ```python
783
786
  import pulumi
784
787
  import pulumi_vsphere as vsphere
@@ -786,11 +789,13 @@ class ResourcePool(pulumi.CustomResource):
786
789
  vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"])
787
790
  # ... other configuration ...
788
791
  ```
792
+ <!--End PulumiCodeChooser -->
789
793
 
790
794
  The following example sets up a parent resource pool in an existing compute cluster
791
795
  with a child resource pool nested below. Each resource pool is configured with
792
796
  the default settings for CPU and memory reservations, shares, and limits.
793
797
 
798
+ <!--Start PulumiCodeChooser -->
794
799
  ```python
795
800
  import pulumi
796
801
  import pulumi_vsphere as vsphere
@@ -801,12 +806,7 @@ class ResourcePool(pulumi.CustomResource):
801
806
  resource_pool_parent = vsphere.ResourcePool("resourcePoolParent", parent_resource_pool_id=compute_cluster.resource_pool_id)
802
807
  resource_pool_child = vsphere.ResourcePool("resourcePoolChild", parent_resource_pool_id=resource_pool_parent.id)
803
808
  ```
804
- ## Importing
805
- ### Settings that Require vSphere 7.0 or higher
806
-
807
- These settings require vSphere 7.0 or higher:
808
-
809
- * `scale_descendants_shares`
809
+ <!--End PulumiCodeChooser -->
810
810
 
811
811
  :param str resource_name: The name of the resource.
812
812
  :param ResourcePoolArgs args: The arguments to use to populate this resource's properties.