pulumi-vsphere 4.10.0a1710245029__py3-none-any.whl → 4.10.2__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 (64) hide show
  1. pulumi_vsphere/__init__.py +28 -0
  2. pulumi_vsphere/_inputs.py +566 -236
  3. pulumi_vsphere/_utilities.py +35 -0
  4. pulumi_vsphere/compute_cluster.py +747 -1477
  5. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +28 -20
  6. pulumi_vsphere/datacenter.py +33 -40
  7. pulumi_vsphere/datastore_cluster.py +154 -364
  8. pulumi_vsphere/distributed_port_group.py +126 -182
  9. pulumi_vsphere/distributed_virtual_switch.py +301 -819
  10. pulumi_vsphere/entity_permissions.py +56 -35
  11. pulumi_vsphere/file.py +16 -24
  12. pulumi_vsphere/folder.py +7 -28
  13. pulumi_vsphere/get_compute_cluster.py +0 -4
  14. pulumi_vsphere/get_compute_cluster_host_group.py +20 -20
  15. pulumi_vsphere/get_content_library.py +10 -10
  16. pulumi_vsphere/get_content_library_item.py +12 -8
  17. pulumi_vsphere/get_custom_attribute.py +0 -4
  18. pulumi_vsphere/get_datacenter.py +0 -4
  19. pulumi_vsphere/get_datastore.py +9 -13
  20. pulumi_vsphere/get_datastore_cluster.py +0 -4
  21. pulumi_vsphere/get_datastore_stats.py +38 -44
  22. pulumi_vsphere/get_distributed_virtual_switch.py +2 -4
  23. pulumi_vsphere/get_dynamic.py +18 -20
  24. pulumi_vsphere/get_folder.py +10 -6
  25. pulumi_vsphere/get_guest_os_customization.py +8 -47
  26. pulumi_vsphere/get_host.py +0 -4
  27. pulumi_vsphere/get_host_base_images.py +97 -0
  28. pulumi_vsphere/get_host_pci_device.py +8 -14
  29. pulumi_vsphere/get_host_thumbprint.py +12 -16
  30. pulumi_vsphere/get_host_vgpu_profile.py +4 -10
  31. pulumi_vsphere/get_license.py +2 -5
  32. pulumi_vsphere/get_network.py +14 -18
  33. pulumi_vsphere/get_policy.py +0 -4
  34. pulumi_vsphere/get_resource_pool.py +14 -18
  35. pulumi_vsphere/get_role.py +4 -8
  36. pulumi_vsphere/get_tag.py +0 -4
  37. pulumi_vsphere/get_tag_category.py +0 -4
  38. pulumi_vsphere/get_vapp_container.py +0 -4
  39. pulumi_vsphere/get_virtual_machine.py +58 -41
  40. pulumi_vsphere/get_vmfs_disks.py +0 -4
  41. pulumi_vsphere/guest_os_customization.py +50 -0
  42. pulumi_vsphere/ha_vm_override.py +189 -378
  43. pulumi_vsphere/host.py +0 -20
  44. pulumi_vsphere/host_port_group.py +12 -24
  45. pulumi_vsphere/host_virtual_switch.py +140 -287
  46. pulumi_vsphere/license.py +0 -32
  47. pulumi_vsphere/nas_datastore.py +7 -7
  48. pulumi_vsphere/offline_software_depot.py +180 -0
  49. pulumi_vsphere/outputs.py +591 -270
  50. pulumi_vsphere/provider.py +2 -6
  51. pulumi_vsphere/pulumi-plugin.json +2 -1
  52. pulumi_vsphere/resource_pool.py +50 -24
  53. pulumi_vsphere/supervisor.py +962 -0
  54. pulumi_vsphere/virtual_disk.py +14 -20
  55. pulumi_vsphere/virtual_machine.py +580 -809
  56. pulumi_vsphere/virtual_machine_class.py +442 -0
  57. pulumi_vsphere/virtual_machine_snapshot.py +8 -12
  58. pulumi_vsphere/vm_storage_policy.py +74 -86
  59. pulumi_vsphere/vnic.py +61 -77
  60. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/METADATA +1 -1
  61. pulumi_vsphere-4.10.2.dist-info/RECORD +86 -0
  62. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/WHEEL +1 -1
  63. pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +0 -82
  64. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/top_level.txt +0 -0
pulumi_vsphere/host.py CHANGED
@@ -616,7 +616,6 @@ class Host(pulumi.CustomResource):
616
616
 
617
617
  ### Create a standalone host
618
618
 
619
- <!--Start PulumiCodeChooser -->
620
619
  ```python
621
620
  import pulumi
622
621
  import pulumi_vsphere as vsphere
@@ -632,11 +631,9 @@ class Host(pulumi.CustomResource):
632
631
  thumbprint=thumbprint.id,
633
632
  datacenter=datacenter.id)
634
633
  ```
635
- <!--End PulumiCodeChooser -->
636
634
 
637
635
  ### Create host in a compute cluster
638
636
 
639
- <!--Start PulumiCodeChooser -->
640
637
  ```python
641
638
  import pulumi
642
639
  import pulumi_vsphere as vsphere
@@ -654,7 +651,6 @@ class Host(pulumi.CustomResource):
654
651
  thumbprint=thumbprint.id,
655
652
  cluster=cluster.id)
656
653
  ```
657
- <!--End PulumiCodeChooser -->
658
654
 
659
655
  ## Importing
660
656
 
@@ -663,12 +659,6 @@ class Host(pulumi.CustomResource):
663
659
 
664
660
  [docs-import]: /docs/import/index.html
665
661
 
666
- <!--Start PulumiCodeChooser -->
667
- ```python
668
- import pulumi
669
- ```
670
- <!--End PulumiCodeChooser -->
671
-
672
662
  The above would import the host with ID `host-123`.
673
663
 
674
664
  :param str resource_name: The name of the resource.
@@ -731,7 +721,6 @@ class Host(pulumi.CustomResource):
731
721
 
732
722
  ### Create a standalone host
733
723
 
734
- <!--Start PulumiCodeChooser -->
735
724
  ```python
736
725
  import pulumi
737
726
  import pulumi_vsphere as vsphere
@@ -747,11 +736,9 @@ class Host(pulumi.CustomResource):
747
736
  thumbprint=thumbprint.id,
748
737
  datacenter=datacenter.id)
749
738
  ```
750
- <!--End PulumiCodeChooser -->
751
739
 
752
740
  ### Create host in a compute cluster
753
741
 
754
- <!--Start PulumiCodeChooser -->
755
742
  ```python
756
743
  import pulumi
757
744
  import pulumi_vsphere as vsphere
@@ -769,7 +756,6 @@ class Host(pulumi.CustomResource):
769
756
  thumbprint=thumbprint.id,
770
757
  cluster=cluster.id)
771
758
  ```
772
- <!--End PulumiCodeChooser -->
773
759
 
774
760
  ## Importing
775
761
 
@@ -778,12 +764,6 @@ class Host(pulumi.CustomResource):
778
764
 
779
765
  [docs-import]: /docs/import/index.html
780
766
 
781
- <!--Start PulumiCodeChooser -->
782
- ```python
783
- import pulumi
784
- ```
785
- <!--End PulumiCodeChooser -->
786
-
787
767
  The above would import the host with ID `host-123`.
788
768
 
789
769
  :param str resource_name: The name of the resource.
@@ -696,7 +696,6 @@ class HostPortGroup(pulumi.CustomResource):
696
696
 
697
697
  **Create a Virtual Switch and Bind a Port Group:**
698
698
 
699
- <!--Start PulumiCodeChooser -->
700
699
  ```python
701
700
  import pulumi
702
701
  import pulumi_vsphere as vsphere
@@ -704,7 +703,8 @@ class HostPortGroup(pulumi.CustomResource):
704
703
  datacenter = vsphere.get_datacenter(name="dc-01")
705
704
  host = vsphere.get_host(name="esxi-01.example.com",
706
705
  datacenter_id=datacenter.id)
707
- host_virtual_switch = vsphere.HostVirtualSwitch("hostVirtualSwitch",
706
+ host_virtual_switch = vsphere.HostVirtualSwitch("host_virtual_switch",
707
+ name="switch-01",
708
708
  host_system_id=host.id,
709
709
  network_adapters=[
710
710
  "vmnic0",
@@ -713,10 +713,10 @@ class HostPortGroup(pulumi.CustomResource):
713
713
  active_nics=["vmnic0"],
714
714
  standby_nics=["vmnic1"])
715
715
  pg = vsphere.HostPortGroup("pg",
716
+ name="portgroup-01",
716
717
  host_system_id=host.id,
717
718
  virtual_switch_name=host_virtual_switch.name)
718
719
  ```
719
- <!--End PulumiCodeChooser -->
720
720
 
721
721
  **Create a Port Group with a VLAN and ab Override:**
722
722
 
@@ -726,7 +726,6 @@ class HostPortGroup(pulumi.CustomResource):
726
726
  to ensure that all traffic is seen on the port. The setting overrides
727
727
  the implicit default of `false` set on the standard switch.
728
728
 
729
- <!--Start PulumiCodeChooser -->
730
729
  ```python
731
730
  import pulumi
732
731
  import pulumi_vsphere as vsphere
@@ -734,7 +733,8 @@ class HostPortGroup(pulumi.CustomResource):
734
733
  datacenter = vsphere.get_datacenter(name="dc-01")
735
734
  host = vsphere.get_host(name="esxi-01.example.com",
736
735
  datacenter_id=datacenter.id)
737
- host_virtual_switch = vsphere.HostVirtualSwitch("hostVirtualSwitch",
736
+ host_virtual_switch = vsphere.HostVirtualSwitch("host_virtual_switch",
737
+ name="switch-01",
738
738
  host_system_id=host.id,
739
739
  network_adapters=[
740
740
  "vmnic0",
@@ -743,24 +743,18 @@ class HostPortGroup(pulumi.CustomResource):
743
743
  active_nics=["vmnic0"],
744
744
  standby_nics=["vmnic1"])
745
745
  pg = vsphere.HostPortGroup("pg",
746
+ name="portgroup-01",
746
747
  host_system_id=host.id,
747
748
  virtual_switch_name=host_virtual_switch.name,
748
749
  vlan_id=4095,
749
750
  allow_promiscuous=True)
750
751
  ```
751
- <!--End PulumiCodeChooser -->
752
752
 
753
753
  ## Importing
754
754
 
755
755
  An existing host port group can be imported into this resource
756
756
  using the host port group's ID. An example is below:
757
757
 
758
- <!--Start PulumiCodeChooser -->
759
- ```python
760
- import pulumi
761
- ```
762
- <!--End PulumiCodeChooser -->
763
-
764
758
  The above would import the `management` host port group from host with ID `host-123`.
765
759
 
766
760
  :param str resource_name: The name of the resource.
@@ -812,7 +806,6 @@ class HostPortGroup(pulumi.CustomResource):
812
806
 
813
807
  **Create a Virtual Switch and Bind a Port Group:**
814
808
 
815
- <!--Start PulumiCodeChooser -->
816
809
  ```python
817
810
  import pulumi
818
811
  import pulumi_vsphere as vsphere
@@ -820,7 +813,8 @@ class HostPortGroup(pulumi.CustomResource):
820
813
  datacenter = vsphere.get_datacenter(name="dc-01")
821
814
  host = vsphere.get_host(name="esxi-01.example.com",
822
815
  datacenter_id=datacenter.id)
823
- host_virtual_switch = vsphere.HostVirtualSwitch("hostVirtualSwitch",
816
+ host_virtual_switch = vsphere.HostVirtualSwitch("host_virtual_switch",
817
+ name="switch-01",
824
818
  host_system_id=host.id,
825
819
  network_adapters=[
826
820
  "vmnic0",
@@ -829,10 +823,10 @@ class HostPortGroup(pulumi.CustomResource):
829
823
  active_nics=["vmnic0"],
830
824
  standby_nics=["vmnic1"])
831
825
  pg = vsphere.HostPortGroup("pg",
826
+ name="portgroup-01",
832
827
  host_system_id=host.id,
833
828
  virtual_switch_name=host_virtual_switch.name)
834
829
  ```
835
- <!--End PulumiCodeChooser -->
836
830
 
837
831
  **Create a Port Group with a VLAN and ab Override:**
838
832
 
@@ -842,7 +836,6 @@ class HostPortGroup(pulumi.CustomResource):
842
836
  to ensure that all traffic is seen on the port. The setting overrides
843
837
  the implicit default of `false` set on the standard switch.
844
838
 
845
- <!--Start PulumiCodeChooser -->
846
839
  ```python
847
840
  import pulumi
848
841
  import pulumi_vsphere as vsphere
@@ -850,7 +843,8 @@ class HostPortGroup(pulumi.CustomResource):
850
843
  datacenter = vsphere.get_datacenter(name="dc-01")
851
844
  host = vsphere.get_host(name="esxi-01.example.com",
852
845
  datacenter_id=datacenter.id)
853
- host_virtual_switch = vsphere.HostVirtualSwitch("hostVirtualSwitch",
846
+ host_virtual_switch = vsphere.HostVirtualSwitch("host_virtual_switch",
847
+ name="switch-01",
854
848
  host_system_id=host.id,
855
849
  network_adapters=[
856
850
  "vmnic0",
@@ -859,24 +853,18 @@ class HostPortGroup(pulumi.CustomResource):
859
853
  active_nics=["vmnic0"],
860
854
  standby_nics=["vmnic1"])
861
855
  pg = vsphere.HostPortGroup("pg",
856
+ name="portgroup-01",
862
857
  host_system_id=host.id,
863
858
  virtual_switch_name=host_virtual_switch.name,
864
859
  vlan_id=4095,
865
860
  allow_promiscuous=True)
866
861
  ```
867
- <!--End PulumiCodeChooser -->
868
862
 
869
863
  ## Importing
870
864
 
871
865
  An existing host port group can be imported into this resource
872
866
  using the host port group's ID. An example is below:
873
867
 
874
- <!--Start PulumiCodeChooser -->
875
- ```python
876
- import pulumi
877
- ```
878
- <!--End PulumiCodeChooser -->
879
-
880
868
  The above would import the `management` host port group from host with ID `host-123`.
881
869
 
882
870
  :param str resource_name: The name of the resource.