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