pulumi-vsphere 4.11.5__py3-none-any.whl → 4.12.0a1725603256__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-vsphere might be problematic. Click here for more details.
- pulumi_vsphere/_inputs.py +5 -1066
- pulumi_vsphere/_utilities.py +1 -1
- pulumi_vsphere/compute_cluster.py +2 -181
- pulumi_vsphere/compute_cluster_host_group.py +2 -67
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +2 -29
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +2 -41
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +2 -205
- pulumi_vsphere/compute_cluster_vm_group.py +2 -198
- pulumi_vsphere/compute_cluster_vm_host_rule.py +2 -73
- pulumi_vsphere/config/__init__.pyi +0 -5
- pulumi_vsphere/config/vars.py +0 -5
- pulumi_vsphere/content_library.py +2 -103
- pulumi_vsphere/content_library_item.py +2 -143
- pulumi_vsphere/custom_attribute.py +2 -77
- pulumi_vsphere/datacenter.py +4 -19
- pulumi_vsphere/datastore_cluster.py +2 -63
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +2 -159
- pulumi_vsphere/distributed_port_group.py +2 -285
- pulumi_vsphere/distributed_virtual_switch.py +2 -261
- pulumi_vsphere/dpm_host_override.py +2 -63
- pulumi_vsphere/drs_vm_override.py +2 -67
- pulumi_vsphere/entity_permissions.py +0 -5
- pulumi_vsphere/file.py +0 -5
- pulumi_vsphere/folder.py +2 -141
- pulumi_vsphere/get_compute_cluster.py +4 -15
- pulumi_vsphere/get_compute_cluster_host_group.py +6 -17
- pulumi_vsphere/get_content_library.py +4 -12
- pulumi_vsphere/get_content_library_item.py +4 -16
- pulumi_vsphere/get_custom_attribute.py +4 -13
- pulumi_vsphere/get_datacenter.py +4 -12
- pulumi_vsphere/get_datastore.py +4 -16
- pulumi_vsphere/get_datastore_cluster.py +4 -14
- pulumi_vsphere/get_datastore_stats.py +4 -16
- pulumi_vsphere/get_distributed_virtual_switch.py +4 -15
- pulumi_vsphere/get_dynamic.py +4 -16
- pulumi_vsphere/get_folder.py +4 -12
- pulumi_vsphere/get_guest_os_customization.py +4 -17
- pulumi_vsphere/get_host.py +4 -15
- pulumi_vsphere/get_host_base_images.py +4 -11
- pulumi_vsphere/get_host_pci_device.py +4 -19
- pulumi_vsphere/get_host_thumbprint.py +14 -34
- pulumi_vsphere/get_host_vgpu_profile.py +4 -15
- pulumi_vsphere/get_license.py +4 -17
- pulumi_vsphere/get_network.py +4 -17
- pulumi_vsphere/get_ovf_vm_template.py +4 -55
- pulumi_vsphere/get_policy.py +4 -12
- pulumi_vsphere/get_resource_pool.py +4 -14
- pulumi_vsphere/get_role.py +4 -18
- pulumi_vsphere/get_tag.py +4 -15
- pulumi_vsphere/get_tag_category.py +4 -15
- pulumi_vsphere/get_vapp_container.py +4 -14
- pulumi_vsphere/get_virtual_machine.py +4 -130
- pulumi_vsphere/get_vmfs_disks.py +4 -17
- pulumi_vsphere/guest_os_customization.py +0 -5
- pulumi_vsphere/ha_vm_override.py +2 -163
- pulumi_vsphere/host.py +12 -203
- pulumi_vsphere/host_port_group.py +2 -17
- pulumi_vsphere/host_virtual_switch.py +2 -69
- pulumi_vsphere/license.py +0 -5
- pulumi_vsphere/nas_datastore.py +2 -67
- pulumi_vsphere/offline_software_depot.py +0 -5
- pulumi_vsphere/outputs.py +0 -5
- pulumi_vsphere/provider.py +0 -5
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +437 -168
- pulumi_vsphere/role.py +2 -33
- pulumi_vsphere/storage_drs_vm_override.py +2 -133
- pulumi_vsphere/supervisor.py +0 -5
- pulumi_vsphere/tag.py +2 -159
- pulumi_vsphere/tag_category.py +2 -83
- pulumi_vsphere/vapp_container.py +2 -163
- pulumi_vsphere/vapp_entity.py +2 -147
- pulumi_vsphere/virtual_disk.py +2 -81
- pulumi_vsphere/virtual_machine.py +2 -53
- pulumi_vsphere/virtual_machine_class.py +0 -5
- pulumi_vsphere/virtual_machine_snapshot.py +0 -5
- pulumi_vsphere/vm_storage_policy.py +0 -5
- pulumi_vsphere/vmfs_datastore.py +2 -271
- pulumi_vsphere/vnic.py +4 -19
- {pulumi_vsphere-4.11.5.dist-info → pulumi_vsphere-4.12.0a1725603256.dist-info}/METADATA +2 -3
- pulumi_vsphere-4.12.0a1725603256.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.11.5.dist-info → pulumi_vsphere-4.12.0a1725603256.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.11.5.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.11.5.dist-info → pulumi_vsphere-4.12.0a1725603256.dist-info}/top_level.txt +0 -0
pulumi_vsphere/host.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
|
|
15
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
from ._inputs import *
|
|
@@ -661,10 +656,10 @@ class Host(pulumi.CustomResource):
|
|
|
661
656
|
import pulumi_vsphere as vsphere
|
|
662
657
|
|
|
663
658
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
664
|
-
thumbprint = vsphere.get_host_thumbprint(address="
|
|
659
|
+
thumbprint = vsphere.get_host_thumbprint(address="esx-01.example.com",
|
|
665
660
|
insecure=True)
|
|
666
661
|
esx_01 = vsphere.Host("esx-01",
|
|
667
|
-
hostname="
|
|
662
|
+
hostname="esx-01.example.com",
|
|
668
663
|
username="root",
|
|
669
664
|
password="password",
|
|
670
665
|
license="00000-00000-00000-00000-00000",
|
|
@@ -672,107 +667,14 @@ class Host(pulumi.CustomResource):
|
|
|
672
667
|
datacenter=datacenter.id)
|
|
673
668
|
```
|
|
674
669
|
|
|
675
|
-
##
|
|
670
|
+
## Importing
|
|
676
671
|
|
|
677
|
-
An existing host can be imported into this resource by supplying
|
|
678
|
-
|
|
679
|
-
the host's ID.
|
|
672
|
+
An existing host can be [imported][docs-import] into this resource by supplying
|
|
673
|
+
the host's ID. An example is below:
|
|
680
674
|
|
|
681
675
|
[docs-import]: /docs/import/index.html
|
|
682
676
|
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
hcl
|
|
686
|
-
|
|
687
|
-
data "vsphere_datacenter" "datacenter" {
|
|
688
|
-
|
|
689
|
-
name = "dc-01"
|
|
690
|
-
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
data "vsphere_host" "host" {
|
|
694
|
-
|
|
695
|
-
name = "esxi-01.example.com"
|
|
696
|
-
|
|
697
|
-
datacenter_id = data.vsphere_datacenter.datacenter.id
|
|
698
|
-
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
output "host_id" {
|
|
702
|
-
|
|
703
|
-
value = data.vsphere_host.host.id
|
|
704
|
-
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
Next, create a resource configuration, For example:
|
|
708
|
-
|
|
709
|
-
hcl
|
|
710
|
-
|
|
711
|
-
data "vsphere_datacenter" "datacenter" {
|
|
712
|
-
|
|
713
|
-
name = "dc-01"
|
|
714
|
-
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
data "vsphere_host_thumbprint" "thumbprint" {
|
|
718
|
-
|
|
719
|
-
address = "esxi-01.example.com"
|
|
720
|
-
|
|
721
|
-
insecure = true
|
|
722
|
-
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
resource "vsphere_host" "esx-01" {
|
|
726
|
-
|
|
727
|
-
hostname = "esxi-01.example.com"
|
|
728
|
-
|
|
729
|
-
username = "root"
|
|
730
|
-
|
|
731
|
-
password = "password"
|
|
732
|
-
|
|
733
|
-
thumbprint = data.vsphere_host_thumbprint.thumbprint.id
|
|
734
|
-
|
|
735
|
-
datacenter = data.vsphere_datacenter.datacenter.id
|
|
736
|
-
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
hcl
|
|
740
|
-
|
|
741
|
-
resource "vsphere_host" "esx-01" {
|
|
742
|
-
|
|
743
|
-
hostname = "esxi-01.example.com"
|
|
744
|
-
|
|
745
|
-
username = "root"
|
|
746
|
-
|
|
747
|
-
password = "password"
|
|
748
|
-
|
|
749
|
-
license = "00000-00000-00000-00000-00000"
|
|
750
|
-
|
|
751
|
-
thumbprint = data.vsphere_host_thumbprint.thumbprint.id
|
|
752
|
-
|
|
753
|
-
cluster = data.vsphere_compute_cluster.cluster.id
|
|
754
|
-
|
|
755
|
-
services {
|
|
756
|
-
|
|
757
|
-
ntpd {
|
|
758
|
-
|
|
759
|
-
enabled = true
|
|
760
|
-
|
|
761
|
-
policy = "on"
|
|
762
|
-
|
|
763
|
-
ntp_servers = ["pool.ntp.org"]
|
|
764
|
-
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
console
|
|
770
|
-
|
|
771
|
-
```sh
|
|
772
|
-
$ pulumi import vsphere:index/host:Host esx-01 host-123
|
|
773
|
-
```
|
|
774
|
-
|
|
775
|
-
The above would import the host `esxi-01.example.com` with the host ID `host-123`.
|
|
677
|
+
The above would import the host with ID `host-123`.
|
|
776
678
|
|
|
777
679
|
:param str resource_name: The name of the resource.
|
|
778
680
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -840,10 +742,10 @@ class Host(pulumi.CustomResource):
|
|
|
840
742
|
import pulumi_vsphere as vsphere
|
|
841
743
|
|
|
842
744
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
843
|
-
thumbprint = vsphere.get_host_thumbprint(address="
|
|
745
|
+
thumbprint = vsphere.get_host_thumbprint(address="esx-01.example.com",
|
|
844
746
|
insecure=True)
|
|
845
747
|
esx_01 = vsphere.Host("esx-01",
|
|
846
|
-
hostname="
|
|
748
|
+
hostname="esx-01.example.com",
|
|
847
749
|
username="root",
|
|
848
750
|
password="password",
|
|
849
751
|
license="00000-00000-00000-00000-00000",
|
|
@@ -851,107 +753,14 @@ class Host(pulumi.CustomResource):
|
|
|
851
753
|
datacenter=datacenter.id)
|
|
852
754
|
```
|
|
853
755
|
|
|
854
|
-
##
|
|
756
|
+
## Importing
|
|
855
757
|
|
|
856
|
-
An existing host can be imported into this resource by supplying
|
|
857
|
-
|
|
858
|
-
the host's ID.
|
|
758
|
+
An existing host can be [imported][docs-import] into this resource by supplying
|
|
759
|
+
the host's ID. An example is below:
|
|
859
760
|
|
|
860
761
|
[docs-import]: /docs/import/index.html
|
|
861
762
|
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
hcl
|
|
865
|
-
|
|
866
|
-
data "vsphere_datacenter" "datacenter" {
|
|
867
|
-
|
|
868
|
-
name = "dc-01"
|
|
869
|
-
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
data "vsphere_host" "host" {
|
|
873
|
-
|
|
874
|
-
name = "esxi-01.example.com"
|
|
875
|
-
|
|
876
|
-
datacenter_id = data.vsphere_datacenter.datacenter.id
|
|
877
|
-
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
output "host_id" {
|
|
881
|
-
|
|
882
|
-
value = data.vsphere_host.host.id
|
|
883
|
-
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
Next, create a resource configuration, For example:
|
|
887
|
-
|
|
888
|
-
hcl
|
|
889
|
-
|
|
890
|
-
data "vsphere_datacenter" "datacenter" {
|
|
891
|
-
|
|
892
|
-
name = "dc-01"
|
|
893
|
-
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
data "vsphere_host_thumbprint" "thumbprint" {
|
|
897
|
-
|
|
898
|
-
address = "esxi-01.example.com"
|
|
899
|
-
|
|
900
|
-
insecure = true
|
|
901
|
-
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
resource "vsphere_host" "esx-01" {
|
|
905
|
-
|
|
906
|
-
hostname = "esxi-01.example.com"
|
|
907
|
-
|
|
908
|
-
username = "root"
|
|
909
|
-
|
|
910
|
-
password = "password"
|
|
911
|
-
|
|
912
|
-
thumbprint = data.vsphere_host_thumbprint.thumbprint.id
|
|
913
|
-
|
|
914
|
-
datacenter = data.vsphere_datacenter.datacenter.id
|
|
915
|
-
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
hcl
|
|
919
|
-
|
|
920
|
-
resource "vsphere_host" "esx-01" {
|
|
921
|
-
|
|
922
|
-
hostname = "esxi-01.example.com"
|
|
923
|
-
|
|
924
|
-
username = "root"
|
|
925
|
-
|
|
926
|
-
password = "password"
|
|
927
|
-
|
|
928
|
-
license = "00000-00000-00000-00000-00000"
|
|
929
|
-
|
|
930
|
-
thumbprint = data.vsphere_host_thumbprint.thumbprint.id
|
|
931
|
-
|
|
932
|
-
cluster = data.vsphere_compute_cluster.cluster.id
|
|
933
|
-
|
|
934
|
-
services {
|
|
935
|
-
|
|
936
|
-
ntpd {
|
|
937
|
-
|
|
938
|
-
enabled = true
|
|
939
|
-
|
|
940
|
-
policy = "on"
|
|
941
|
-
|
|
942
|
-
ntp_servers = ["pool.ntp.org"]
|
|
943
|
-
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
console
|
|
949
|
-
|
|
950
|
-
```sh
|
|
951
|
-
$ pulumi import vsphere:index/host:Host esx-01 host-123
|
|
952
|
-
```
|
|
953
|
-
|
|
954
|
-
The above would import the host `esxi-01.example.com` with the host ID `host-123`.
|
|
763
|
+
The above would import the host with ID `host-123`.
|
|
955
764
|
|
|
956
765
|
:param str resource_name: The name of the resource.
|
|
957
766
|
:param HostArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
|
|
15
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
from ._inputs import *
|
|
@@ -755,16 +750,11 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
755
750
|
allow_promiscuous=True)
|
|
756
751
|
```
|
|
757
752
|
|
|
758
|
-
##
|
|
753
|
+
## Importing
|
|
759
754
|
|
|
760
755
|
An existing host port group can be imported into this resource
|
|
761
|
-
|
|
762
756
|
using the host port group's ID. An example is below:
|
|
763
757
|
|
|
764
|
-
```sh
|
|
765
|
-
$ pulumi import vsphere:index/hostPortGroup:HostPortGroup management tf-HostPortGroup:host-123:management
|
|
766
|
-
```
|
|
767
|
-
|
|
768
758
|
The above would import the `management` host port group from host with ID `host-123`.
|
|
769
759
|
|
|
770
760
|
:param str resource_name: The name of the resource.
|
|
@@ -870,16 +860,11 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
870
860
|
allow_promiscuous=True)
|
|
871
861
|
```
|
|
872
862
|
|
|
873
|
-
##
|
|
863
|
+
## Importing
|
|
874
864
|
|
|
875
865
|
An existing host port group can be imported into this resource
|
|
876
|
-
|
|
877
866
|
using the host port group's ID. An example is below:
|
|
878
867
|
|
|
879
|
-
```sh
|
|
880
|
-
$ pulumi import vsphere:index/hostPortGroup:HostPortGroup management tf-HostPortGroup:host-123:management
|
|
881
|
-
```
|
|
882
|
-
|
|
883
868
|
The above would import the `management` host port group from host with ID `host-123`.
|
|
884
869
|
|
|
885
870
|
:param str resource_name: The name of the resource.
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
|
|
15
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = ['HostVirtualSwitchArgs', 'HostVirtualSwitch']
|
|
@@ -769,38 +764,7 @@ class HostVirtualSwitch(pulumi.CustomResource):
|
|
|
769
764
|
teaming_policy: Optional[pulumi.Input[str]] = None,
|
|
770
765
|
__props__=None):
|
|
771
766
|
"""
|
|
772
|
-
|
|
773
|
-
standard switches on an ESXi host. These switches can be used as a backing for
|
|
774
|
-
standard port groups, which can be managed by the
|
|
775
|
-
`HostPortGroup` resource.
|
|
776
|
-
|
|
777
|
-
For an overview on vSphere networking concepts, see [this
|
|
778
|
-
page][ref-vsphere-net-concepts].
|
|
779
|
-
|
|
780
|
-
[ref-vsphere-net-concepts]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.networking.doc/GUID-2B11DBB8-CB3C-4AFF-8885-EFEA0FC562F4.html
|
|
781
|
-
|
|
782
|
-
## Example Usage
|
|
783
|
-
|
|
784
|
-
## Import
|
|
785
|
-
|
|
786
|
-
An existing vSwitch can be imported into this resource by its ID.
|
|
787
|
-
|
|
788
|
-
The convention of the id is a prefix, the host system [managed objectID][docs-about-morefs], and the virtual switch
|
|
789
|
-
|
|
790
|
-
name. An example would be `tf-HostVirtualSwitch:host-10:vSwitchTerraformTest`.
|
|
791
|
-
|
|
792
|
-
Import can the be done via the following command:
|
|
793
|
-
|
|
794
|
-
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
795
|
-
|
|
796
|
-
```sh
|
|
797
|
-
$ pulumi import vsphere:index/hostVirtualSwitch:HostVirtualSwitch switch tf-HostVirtualSwitch:host-10:vSwitchTerraformTest
|
|
798
|
-
```
|
|
799
|
-
|
|
800
|
-
The above would import the vSwitch named `vSwitchTerraformTest` that is located in the `host-10`
|
|
801
|
-
|
|
802
|
-
vSphere host.
|
|
803
|
-
|
|
767
|
+
Create a HostVirtualSwitch resource with the given unique name, props, and options.
|
|
804
768
|
:param str resource_name: The name of the resource.
|
|
805
769
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
806
770
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] active_nics: List of active network adapters used for load balancing.
|
|
@@ -842,38 +806,7 @@ class HostVirtualSwitch(pulumi.CustomResource):
|
|
|
842
806
|
args: HostVirtualSwitchArgs,
|
|
843
807
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
844
808
|
"""
|
|
845
|
-
|
|
846
|
-
standard switches on an ESXi host. These switches can be used as a backing for
|
|
847
|
-
standard port groups, which can be managed by the
|
|
848
|
-
`HostPortGroup` resource.
|
|
849
|
-
|
|
850
|
-
For an overview on vSphere networking concepts, see [this
|
|
851
|
-
page][ref-vsphere-net-concepts].
|
|
852
|
-
|
|
853
|
-
[ref-vsphere-net-concepts]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.networking.doc/GUID-2B11DBB8-CB3C-4AFF-8885-EFEA0FC562F4.html
|
|
854
|
-
|
|
855
|
-
## Example Usage
|
|
856
|
-
|
|
857
|
-
## Import
|
|
858
|
-
|
|
859
|
-
An existing vSwitch can be imported into this resource by its ID.
|
|
860
|
-
|
|
861
|
-
The convention of the id is a prefix, the host system [managed objectID][docs-about-morefs], and the virtual switch
|
|
862
|
-
|
|
863
|
-
name. An example would be `tf-HostVirtualSwitch:host-10:vSwitchTerraformTest`.
|
|
864
|
-
|
|
865
|
-
Import can the be done via the following command:
|
|
866
|
-
|
|
867
|
-
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
868
|
-
|
|
869
|
-
```sh
|
|
870
|
-
$ pulumi import vsphere:index/hostVirtualSwitch:HostVirtualSwitch switch tf-HostVirtualSwitch:host-10:vSwitchTerraformTest
|
|
871
|
-
```
|
|
872
|
-
|
|
873
|
-
The above would import the vSwitch named `vSwitchTerraformTest` that is located in the `host-10`
|
|
874
|
-
|
|
875
|
-
vSphere host.
|
|
876
|
-
|
|
809
|
+
Create a HostVirtualSwitch resource with the given unique name, props, and options.
|
|
877
810
|
:param str resource_name: The name of the resource.
|
|
878
811
|
:param HostVirtualSwitchArgs args: The arguments to use to populate this resource's properties.
|
|
879
812
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
pulumi_vsphere/license.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
|
|
15
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = ['LicenseArgs', 'License']
|
pulumi_vsphere/nas_datastore.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
|
|
15
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = ['NasDatastoreArgs', 'NasDatastore']
|
|
@@ -643,37 +638,7 @@ class NasDatastore(pulumi.CustomResource):
|
|
|
643
638
|
type: Optional[pulumi.Input[str]] = None,
|
|
644
639
|
__props__=None):
|
|
645
640
|
"""
|
|
646
|
-
|
|
647
|
-
datastores on an ESXi host or a set of hosts. The resource supports mounting
|
|
648
|
-
NFS v3 and v4.1 shares to be used as datastores.
|
|
649
|
-
|
|
650
|
-
> **NOTE:** Unlike `VmfsDatastore`, a NAS
|
|
651
|
-
datastore is only mounted on the hosts you choose to mount it on. To mount on
|
|
652
|
-
multiple hosts, you must specify each host that you want to add in the
|
|
653
|
-
`host_system_ids` argument.
|
|
654
|
-
|
|
655
|
-
## Import
|
|
656
|
-
|
|
657
|
-
An existing NAS datastore can be imported into this resource via
|
|
658
|
-
|
|
659
|
-
its managed object ID, via the following command:
|
|
660
|
-
|
|
661
|
-
```sh
|
|
662
|
-
$ pulumi import vsphere:index/nasDatastore:NasDatastore datastore datastore-123
|
|
663
|
-
```
|
|
664
|
-
|
|
665
|
-
You need a tool like [`govc`][ext-govc] that can display managed object IDs.
|
|
666
|
-
|
|
667
|
-
[ext-govc]: https://github.com/vmware/govmomi/tree/master/govc
|
|
668
|
-
|
|
669
|
-
In the case of govc, you can locate a managed object ID from an inventory path
|
|
670
|
-
|
|
671
|
-
by doing the following:
|
|
672
|
-
|
|
673
|
-
$ govc ls -i /dc/datastore/terraform-test
|
|
674
|
-
|
|
675
|
-
Datastore:datastore-123
|
|
676
|
-
|
|
641
|
+
Create a NasDatastore resource with the given unique name, props, and options.
|
|
677
642
|
:param str resource_name: The name of the resource.
|
|
678
643
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
679
644
|
:param pulumi.Input[str] access_mode: Access mode for the mount point. Can be one of
|
|
@@ -722,37 +687,7 @@ class NasDatastore(pulumi.CustomResource):
|
|
|
722
687
|
args: NasDatastoreArgs,
|
|
723
688
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
724
689
|
"""
|
|
725
|
-
|
|
726
|
-
datastores on an ESXi host or a set of hosts. The resource supports mounting
|
|
727
|
-
NFS v3 and v4.1 shares to be used as datastores.
|
|
728
|
-
|
|
729
|
-
> **NOTE:** Unlike `VmfsDatastore`, a NAS
|
|
730
|
-
datastore is only mounted on the hosts you choose to mount it on. To mount on
|
|
731
|
-
multiple hosts, you must specify each host that you want to add in the
|
|
732
|
-
`host_system_ids` argument.
|
|
733
|
-
|
|
734
|
-
## Import
|
|
735
|
-
|
|
736
|
-
An existing NAS datastore can be imported into this resource via
|
|
737
|
-
|
|
738
|
-
its managed object ID, via the following command:
|
|
739
|
-
|
|
740
|
-
```sh
|
|
741
|
-
$ pulumi import vsphere:index/nasDatastore:NasDatastore datastore datastore-123
|
|
742
|
-
```
|
|
743
|
-
|
|
744
|
-
You need a tool like [`govc`][ext-govc] that can display managed object IDs.
|
|
745
|
-
|
|
746
|
-
[ext-govc]: https://github.com/vmware/govmomi/tree/master/govc
|
|
747
|
-
|
|
748
|
-
In the case of govc, you can locate a managed object ID from an inventory path
|
|
749
|
-
|
|
750
|
-
by doing the following:
|
|
751
|
-
|
|
752
|
-
$ govc ls -i /dc/datastore/terraform-test
|
|
753
|
-
|
|
754
|
-
Datastore:datastore-123
|
|
755
|
-
|
|
690
|
+
Create a NasDatastore resource with the given unique name, props, and options.
|
|
756
691
|
:param str resource_name: The name of the resource.
|
|
757
692
|
:param NasDatastoreArgs args: The arguments to use to populate this resource's properties.
|
|
758
693
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
|
|
15
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
from ._inputs import *
|
pulumi_vsphere/outputs.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
|
|
15
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
|
pulumi_vsphere/provider.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
|
|
15
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = ['ProviderArgs', 'Provider']
|