pulumi-vsphere 4.10.1__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.
- pulumi_vsphere/__init__.py +28 -0
- pulumi_vsphere/_inputs.py +470 -6
- pulumi_vsphere/_utilities.py +35 -0
- pulumi_vsphere/compute_cluster.py +47 -0
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +0 -4
- pulumi_vsphere/datacenter.py +7 -28
- pulumi_vsphere/datastore_cluster.py +0 -14
- pulumi_vsphere/distributed_port_group.py +56 -7
- pulumi_vsphere/distributed_virtual_switch.py +7 -28
- pulumi_vsphere/entity_permissions.py +56 -35
- pulumi_vsphere/folder.py +7 -28
- pulumi_vsphere/get_compute_cluster_host_group.py +18 -16
- pulumi_vsphere/get_content_library.py +10 -6
- pulumi_vsphere/get_content_library_item.py +12 -8
- pulumi_vsphere/get_datastore.py +9 -9
- pulumi_vsphere/get_datastore_stats.py +34 -32
- pulumi_vsphere/get_dynamic.py +14 -12
- pulumi_vsphere/get_folder.py +10 -2
- pulumi_vsphere/get_guest_os_customization.py +8 -43
- pulumi_vsphere/get_host_base_images.py +97 -0
- pulumi_vsphere/get_host_pci_device.py +4 -2
- pulumi_vsphere/get_host_thumbprint.py +12 -12
- pulumi_vsphere/get_host_vgpu_profile.py +4 -2
- pulumi_vsphere/get_license.py +2 -1
- pulumi_vsphere/get_network.py +14 -14
- pulumi_vsphere/get_resource_pool.py +12 -8
- pulumi_vsphere/get_role.py +4 -4
- pulumi_vsphere/get_virtual_machine.py +58 -33
- pulumi_vsphere/guest_os_customization.py +4 -4
- pulumi_vsphere/nas_datastore.py +7 -7
- pulumi_vsphere/offline_software_depot.py +180 -0
- pulumi_vsphere/outputs.py +495 -40
- pulumi_vsphere/provider.py +2 -6
- pulumi_vsphere/pulumi-plugin.json +2 -1
- pulumi_vsphere/resource_pool.py +2 -2
- pulumi_vsphere/supervisor.py +962 -0
- pulumi_vsphere/virtual_disk.py +10 -16
- pulumi_vsphere/virtual_machine.py +2 -2
- pulumi_vsphere/virtual_machine_class.py +442 -0
- pulumi_vsphere/virtual_machine_snapshot.py +2 -2
- pulumi_vsphere/vm_storage_policy.py +2 -2
- pulumi_vsphere/vnic.py +61 -65
- {pulumi_vsphere-4.10.1.dist-info → pulumi_vsphere-4.10.2.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.10.2.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.10.1.dist-info → pulumi_vsphere-4.10.2.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.1.dist-info/RECORD +0 -82
- {pulumi_vsphere-4.10.1.dist-info → pulumi_vsphere-4.10.2.dist-info}/top_level.txt +0 -0
|
@@ -181,8 +181,7 @@ class DistributedVirtualSwitchArgs:
|
|
|
181
181
|
with the VDS. Can be one of `legacyFiltering` or `snooping`.
|
|
182
182
|
:param pulumi.Input[str] name: The name of the VDS.
|
|
183
183
|
:param pulumi.Input[int] netflow_active_flow_timeout: The number of seconds after which active flows are forced to be exported to the collector.
|
|
184
|
-
:param pulumi.Input[str] netflow_collector_ip_address: IP address for the netflow collector, using IPv4 or IPv6.
|
|
185
|
-
later.
|
|
184
|
+
:param pulumi.Input[str] netflow_collector_ip_address: IP address for the netflow collector, using IPv4 or IPv6.
|
|
186
185
|
:param pulumi.Input[int] netflow_collector_port: The port for the netflow collector.
|
|
187
186
|
:param pulumi.Input[bool] netflow_enabled: Indicates whether to enable netflow on all ports.
|
|
188
187
|
:param pulumi.Input[int] netflow_idle_flow_timeout: The number of seconds after which idle flows are forced to be exported to the collector.
|
|
@@ -201,8 +200,6 @@ class DistributedVirtualSwitchArgs:
|
|
|
201
200
|
:param pulumi.Input[Sequence[pulumi.Input['DistributedVirtualSwitchPvlanMappingArgs']]] pvlan_mappings: A private VLAN (PVLAN) mapping.
|
|
202
201
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] standby_uplinks: List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
|
|
203
202
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
204
|
-
|
|
205
|
-
> **NOTE:** Tagging support requires vCenter Server 6.0 or higher.
|
|
206
203
|
:param pulumi.Input[str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid,
|
|
207
204
|
failover_explicit, or loadbalance_loadbased.
|
|
208
205
|
:param pulumi.Input[bool] tx_uplink: If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet
|
|
@@ -1086,8 +1083,7 @@ class DistributedVirtualSwitchArgs:
|
|
|
1086
1083
|
@pulumi.getter(name="netflowCollectorIpAddress")
|
|
1087
1084
|
def netflow_collector_ip_address(self) -> Optional[pulumi.Input[str]]:
|
|
1088
1085
|
"""
|
|
1089
|
-
IP address for the netflow collector, using IPv4 or IPv6.
|
|
1090
|
-
later.
|
|
1086
|
+
IP address for the netflow collector, using IPv4 or IPv6.
|
|
1091
1087
|
"""
|
|
1092
1088
|
return pulumi.get(self, "netflow_collector_ip_address")
|
|
1093
1089
|
|
|
@@ -1293,8 +1289,6 @@ class DistributedVirtualSwitchArgs:
|
|
|
1293
1289
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
1294
1290
|
"""
|
|
1295
1291
|
The IDs of any tags to attach to this resource.
|
|
1296
|
-
|
|
1297
|
-
> **NOTE:** Tagging support requires vCenter Server 6.0 or higher.
|
|
1298
1292
|
"""
|
|
1299
1293
|
return pulumi.get(self, "tags")
|
|
1300
1294
|
|
|
@@ -1743,8 +1737,7 @@ class _DistributedVirtualSwitchState:
|
|
|
1743
1737
|
with the VDS. Can be one of `legacyFiltering` or `snooping`.
|
|
1744
1738
|
:param pulumi.Input[str] name: The name of the VDS.
|
|
1745
1739
|
:param pulumi.Input[int] netflow_active_flow_timeout: The number of seconds after which active flows are forced to be exported to the collector.
|
|
1746
|
-
:param pulumi.Input[str] netflow_collector_ip_address: IP address for the netflow collector, using IPv4 or IPv6.
|
|
1747
|
-
later.
|
|
1740
|
+
:param pulumi.Input[str] netflow_collector_ip_address: IP address for the netflow collector, using IPv4 or IPv6.
|
|
1748
1741
|
:param pulumi.Input[int] netflow_collector_port: The port for the netflow collector.
|
|
1749
1742
|
:param pulumi.Input[bool] netflow_enabled: Indicates whether to enable netflow on all ports.
|
|
1750
1743
|
:param pulumi.Input[int] netflow_idle_flow_timeout: The number of seconds after which idle flows are forced to be exported to the collector.
|
|
@@ -1763,8 +1756,6 @@ class _DistributedVirtualSwitchState:
|
|
|
1763
1756
|
:param pulumi.Input[Sequence[pulumi.Input['DistributedVirtualSwitchPvlanMappingArgs']]] pvlan_mappings: A private VLAN (PVLAN) mapping.
|
|
1764
1757
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] standby_uplinks: List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
|
|
1765
1758
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
1766
|
-
|
|
1767
|
-
> **NOTE:** Tagging support requires vCenter Server 6.0 or higher.
|
|
1768
1759
|
:param pulumi.Input[str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid,
|
|
1769
1760
|
failover_explicit, or loadbalance_loadbased.
|
|
1770
1761
|
:param pulumi.Input[bool] tx_uplink: If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet
|
|
@@ -2664,8 +2655,7 @@ class _DistributedVirtualSwitchState:
|
|
|
2664
2655
|
@pulumi.getter(name="netflowCollectorIpAddress")
|
|
2665
2656
|
def netflow_collector_ip_address(self) -> Optional[pulumi.Input[str]]:
|
|
2666
2657
|
"""
|
|
2667
|
-
IP address for the netflow collector, using IPv4 or IPv6.
|
|
2668
|
-
later.
|
|
2658
|
+
IP address for the netflow collector, using IPv4 or IPv6.
|
|
2669
2659
|
"""
|
|
2670
2660
|
return pulumi.get(self, "netflow_collector_ip_address")
|
|
2671
2661
|
|
|
@@ -2871,8 +2861,6 @@ class _DistributedVirtualSwitchState:
|
|
|
2871
2861
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
2872
2862
|
"""
|
|
2873
2863
|
The IDs of any tags to attach to this resource.
|
|
2874
|
-
|
|
2875
|
-
> **NOTE:** Tagging support requires vCenter Server 6.0 or higher.
|
|
2876
2864
|
"""
|
|
2877
2865
|
return pulumi.get(self, "tags")
|
|
2878
2866
|
|
|
@@ -3323,8 +3311,7 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
|
|
|
3323
3311
|
with the VDS. Can be one of `legacyFiltering` or `snooping`.
|
|
3324
3312
|
:param pulumi.Input[str] name: The name of the VDS.
|
|
3325
3313
|
:param pulumi.Input[int] netflow_active_flow_timeout: The number of seconds after which active flows are forced to be exported to the collector.
|
|
3326
|
-
:param pulumi.Input[str] netflow_collector_ip_address: IP address for the netflow collector, using IPv4 or IPv6.
|
|
3327
|
-
later.
|
|
3314
|
+
:param pulumi.Input[str] netflow_collector_ip_address: IP address for the netflow collector, using IPv4 or IPv6.
|
|
3328
3315
|
:param pulumi.Input[int] netflow_collector_port: The port for the netflow collector.
|
|
3329
3316
|
:param pulumi.Input[bool] netflow_enabled: Indicates whether to enable netflow on all ports.
|
|
3330
3317
|
:param pulumi.Input[int] netflow_idle_flow_timeout: The number of seconds after which idle flows are forced to be exported to the collector.
|
|
@@ -3343,8 +3330,6 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
|
|
|
3343
3330
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DistributedVirtualSwitchPvlanMappingArgs']]]] pvlan_mappings: A private VLAN (PVLAN) mapping.
|
|
3344
3331
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] standby_uplinks: List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
|
|
3345
3332
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
3346
|
-
|
|
3347
|
-
> **NOTE:** Tagging support requires vCenter Server 6.0 or higher.
|
|
3348
3333
|
:param pulumi.Input[str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid,
|
|
3349
3334
|
failover_explicit, or loadbalance_loadbased.
|
|
3350
3335
|
:param pulumi.Input[bool] tx_uplink: If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet
|
|
@@ -3779,8 +3764,7 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
|
|
|
3779
3764
|
with the VDS. Can be one of `legacyFiltering` or `snooping`.
|
|
3780
3765
|
:param pulumi.Input[str] name: The name of the VDS.
|
|
3781
3766
|
:param pulumi.Input[int] netflow_active_flow_timeout: The number of seconds after which active flows are forced to be exported to the collector.
|
|
3782
|
-
:param pulumi.Input[str] netflow_collector_ip_address: IP address for the netflow collector, using IPv4 or IPv6.
|
|
3783
|
-
later.
|
|
3767
|
+
:param pulumi.Input[str] netflow_collector_ip_address: IP address for the netflow collector, using IPv4 or IPv6.
|
|
3784
3768
|
:param pulumi.Input[int] netflow_collector_port: The port for the netflow collector.
|
|
3785
3769
|
:param pulumi.Input[bool] netflow_enabled: Indicates whether to enable netflow on all ports.
|
|
3786
3770
|
:param pulumi.Input[int] netflow_idle_flow_timeout: The number of seconds after which idle flows are forced to be exported to the collector.
|
|
@@ -3799,8 +3783,6 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
|
|
|
3799
3783
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DistributedVirtualSwitchPvlanMappingArgs']]]] pvlan_mappings: A private VLAN (PVLAN) mapping.
|
|
3800
3784
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] standby_uplinks: List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
|
|
3801
3785
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
3802
|
-
|
|
3803
|
-
> **NOTE:** Tagging support requires vCenter Server 6.0 or higher.
|
|
3804
3786
|
:param pulumi.Input[str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid,
|
|
3805
3787
|
failover_explicit, or loadbalance_loadbased.
|
|
3806
3788
|
:param pulumi.Input[bool] tx_uplink: If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet
|
|
@@ -4390,8 +4372,7 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
|
|
|
4390
4372
|
@pulumi.getter(name="netflowCollectorIpAddress")
|
|
4391
4373
|
def netflow_collector_ip_address(self) -> pulumi.Output[Optional[str]]:
|
|
4392
4374
|
"""
|
|
4393
|
-
IP address for the netflow collector, using IPv4 or IPv6.
|
|
4394
|
-
later.
|
|
4375
|
+
IP address for the netflow collector, using IPv4 or IPv6.
|
|
4395
4376
|
"""
|
|
4396
4377
|
return pulumi.get(self, "netflow_collector_ip_address")
|
|
4397
4378
|
|
|
@@ -4529,8 +4510,6 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
|
|
|
4529
4510
|
def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
4530
4511
|
"""
|
|
4531
4512
|
The IDs of any tags to attach to this resource.
|
|
4532
|
-
|
|
4533
|
-
> **NOTE:** Tagging support requires vCenter Server 6.0 or higher.
|
|
4534
4513
|
"""
|
|
4535
4514
|
return pulumi.get(self, "tags")
|
|
4536
4515
|
|
|
@@ -21,11 +21,14 @@ class EntityPermissionsArgs:
|
|
|
21
21
|
permissions: pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]):
|
|
22
22
|
"""
|
|
23
23
|
The set of arguments for constructing a EntityPermissions resource.
|
|
24
|
-
:param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
:param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
|
|
25
|
+
which permissions are to be created.
|
|
26
|
+
:param pulumi.Input[str] entity_type: The managed object type, types can be found in the
|
|
27
|
+
managed object type section
|
|
28
|
+
[here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
|
|
29
|
+
:param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep
|
|
30
|
+
the permissions sorted alphabetically on `user_or_group` for a better user
|
|
31
|
+
experience.
|
|
29
32
|
"""
|
|
30
33
|
pulumi.set(__self__, "entity_id", entity_id)
|
|
31
34
|
pulumi.set(__self__, "entity_type", entity_type)
|
|
@@ -35,7 +38,8 @@ class EntityPermissionsArgs:
|
|
|
35
38
|
@pulumi.getter(name="entityId")
|
|
36
39
|
def entity_id(self) -> pulumi.Input[str]:
|
|
37
40
|
"""
|
|
38
|
-
The managed object id (uuid for some entities) on
|
|
41
|
+
The managed object id (uuid for some entities) on
|
|
42
|
+
which permissions are to be created.
|
|
39
43
|
"""
|
|
40
44
|
return pulumi.get(self, "entity_id")
|
|
41
45
|
|
|
@@ -47,8 +51,9 @@ class EntityPermissionsArgs:
|
|
|
47
51
|
@pulumi.getter(name="entityType")
|
|
48
52
|
def entity_type(self) -> pulumi.Input[str]:
|
|
49
53
|
"""
|
|
50
|
-
The managed object type, types can be found in the
|
|
51
|
-
|
|
54
|
+
The managed object type, types can be found in the
|
|
55
|
+
managed object type section
|
|
56
|
+
[here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
|
|
52
57
|
"""
|
|
53
58
|
return pulumi.get(self, "entity_type")
|
|
54
59
|
|
|
@@ -60,8 +65,9 @@ class EntityPermissionsArgs:
|
|
|
60
65
|
@pulumi.getter
|
|
61
66
|
def permissions(self) -> pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]:
|
|
62
67
|
"""
|
|
63
|
-
The permissions to be given on this entity. Keep
|
|
64
|
-
alphabetically on `user_or_group` for a better user
|
|
68
|
+
The permissions to be given on this entity. Keep
|
|
69
|
+
the permissions sorted alphabetically on `user_or_group` for a better user
|
|
70
|
+
experience.
|
|
65
71
|
"""
|
|
66
72
|
return pulumi.get(self, "permissions")
|
|
67
73
|
|
|
@@ -78,11 +84,14 @@ class _EntityPermissionsState:
|
|
|
78
84
|
permissions: Optional[pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]] = None):
|
|
79
85
|
"""
|
|
80
86
|
Input properties used for looking up and filtering EntityPermissions resources.
|
|
81
|
-
:param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
:param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
|
|
88
|
+
which permissions are to be created.
|
|
89
|
+
:param pulumi.Input[str] entity_type: The managed object type, types can be found in the
|
|
90
|
+
managed object type section
|
|
91
|
+
[here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
|
|
92
|
+
:param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep
|
|
93
|
+
the permissions sorted alphabetically on `user_or_group` for a better user
|
|
94
|
+
experience.
|
|
86
95
|
"""
|
|
87
96
|
if entity_id is not None:
|
|
88
97
|
pulumi.set(__self__, "entity_id", entity_id)
|
|
@@ -95,7 +104,8 @@ class _EntityPermissionsState:
|
|
|
95
104
|
@pulumi.getter(name="entityId")
|
|
96
105
|
def entity_id(self) -> Optional[pulumi.Input[str]]:
|
|
97
106
|
"""
|
|
98
|
-
The managed object id (uuid for some entities) on
|
|
107
|
+
The managed object id (uuid for some entities) on
|
|
108
|
+
which permissions are to be created.
|
|
99
109
|
"""
|
|
100
110
|
return pulumi.get(self, "entity_id")
|
|
101
111
|
|
|
@@ -107,8 +117,9 @@ class _EntityPermissionsState:
|
|
|
107
117
|
@pulumi.getter(name="entityType")
|
|
108
118
|
def entity_type(self) -> Optional[pulumi.Input[str]]:
|
|
109
119
|
"""
|
|
110
|
-
The managed object type, types can be found in the
|
|
111
|
-
|
|
120
|
+
The managed object type, types can be found in the
|
|
121
|
+
managed object type section
|
|
122
|
+
[here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
|
|
112
123
|
"""
|
|
113
124
|
return pulumi.get(self, "entity_type")
|
|
114
125
|
|
|
@@ -120,8 +131,9 @@ class _EntityPermissionsState:
|
|
|
120
131
|
@pulumi.getter
|
|
121
132
|
def permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]]:
|
|
122
133
|
"""
|
|
123
|
-
The permissions to be given on this entity. Keep
|
|
124
|
-
alphabetically on `user_or_group` for a better user
|
|
134
|
+
The permissions to be given on this entity. Keep
|
|
135
|
+
the permissions sorted alphabetically on `user_or_group` for a better user
|
|
136
|
+
experience.
|
|
125
137
|
"""
|
|
126
138
|
return pulumi.get(self, "permissions")
|
|
127
139
|
|
|
@@ -143,11 +155,14 @@ class EntityPermissions(pulumi.CustomResource):
|
|
|
143
155
|
Create a EntityPermissions resource with the given unique name, props, and options.
|
|
144
156
|
:param str resource_name: The name of the resource.
|
|
145
157
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
146
|
-
:param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
158
|
+
:param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
|
|
159
|
+
which permissions are to be created.
|
|
160
|
+
:param pulumi.Input[str] entity_type: The managed object type, types can be found in the
|
|
161
|
+
managed object type section
|
|
162
|
+
[here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
|
|
163
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]] permissions: The permissions to be given on this entity. Keep
|
|
164
|
+
the permissions sorted alphabetically on `user_or_group` for a better user
|
|
165
|
+
experience.
|
|
151
166
|
"""
|
|
152
167
|
...
|
|
153
168
|
@overload
|
|
@@ -213,11 +228,14 @@ class EntityPermissions(pulumi.CustomResource):
|
|
|
213
228
|
:param str resource_name: The unique name of the resulting resource.
|
|
214
229
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
215
230
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
216
|
-
:param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
231
|
+
:param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
|
|
232
|
+
which permissions are to be created.
|
|
233
|
+
:param pulumi.Input[str] entity_type: The managed object type, types can be found in the
|
|
234
|
+
managed object type section
|
|
235
|
+
[here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
|
|
236
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]] permissions: The permissions to be given on this entity. Keep
|
|
237
|
+
the permissions sorted alphabetically on `user_or_group` for a better user
|
|
238
|
+
experience.
|
|
221
239
|
"""
|
|
222
240
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
223
241
|
|
|
@@ -232,7 +250,8 @@ class EntityPermissions(pulumi.CustomResource):
|
|
|
232
250
|
@pulumi.getter(name="entityId")
|
|
233
251
|
def entity_id(self) -> pulumi.Output[str]:
|
|
234
252
|
"""
|
|
235
|
-
The managed object id (uuid for some entities) on
|
|
253
|
+
The managed object id (uuid for some entities) on
|
|
254
|
+
which permissions are to be created.
|
|
236
255
|
"""
|
|
237
256
|
return pulumi.get(self, "entity_id")
|
|
238
257
|
|
|
@@ -240,8 +259,9 @@ class EntityPermissions(pulumi.CustomResource):
|
|
|
240
259
|
@pulumi.getter(name="entityType")
|
|
241
260
|
def entity_type(self) -> pulumi.Output[str]:
|
|
242
261
|
"""
|
|
243
|
-
The managed object type, types can be found in the
|
|
244
|
-
|
|
262
|
+
The managed object type, types can be found in the
|
|
263
|
+
managed object type section
|
|
264
|
+
[here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
|
|
245
265
|
"""
|
|
246
266
|
return pulumi.get(self, "entity_type")
|
|
247
267
|
|
|
@@ -249,8 +269,9 @@ class EntityPermissions(pulumi.CustomResource):
|
|
|
249
269
|
@pulumi.getter
|
|
250
270
|
def permissions(self) -> pulumi.Output[Sequence['outputs.EntityPermissionsPermission']]:
|
|
251
271
|
"""
|
|
252
|
-
The permissions to be given on this entity. Keep
|
|
253
|
-
alphabetically on `user_or_group` for a better user
|
|
272
|
+
The permissions to be given on this entity. Keep
|
|
273
|
+
the permissions sorted alphabetically on `user_or_group` for a better user
|
|
274
|
+
experience.
|
|
254
275
|
"""
|
|
255
276
|
return pulumi.get(self, "permissions")
|
|
256
277
|
|
pulumi_vsphere/folder.py
CHANGED
|
@@ -36,7 +36,7 @@ class FolderArgs:
|
|
|
36
36
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
37
37
|
`vm` for virtual machine folders, `datastore` for datastore folders, and
|
|
38
38
|
`network` for network folders. Forces a new resource if changed.
|
|
39
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
39
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
40
40
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
41
41
|
for a reference on how to set values for custom attributes.
|
|
42
42
|
|
|
@@ -48,9 +48,6 @@ class FolderArgs:
|
|
|
48
48
|
Required for all folder types except for datacenter folders. Forces a new
|
|
49
49
|
resource if changed.
|
|
50
50
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
51
|
-
|
|
52
|
-
> **NOTE:** Tagging support is unsupported on direct ESXi connections and
|
|
53
|
-
requires vCenter 6.0 or higher.
|
|
54
51
|
"""
|
|
55
52
|
pulumi.set(__self__, "path", path)
|
|
56
53
|
pulumi.set(__self__, "type", type)
|
|
@@ -102,7 +99,7 @@ class FolderArgs:
|
|
|
102
99
|
@pulumi.getter(name="customAttributes")
|
|
103
100
|
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
104
101
|
"""
|
|
105
|
-
Map of custom attribute ids to attribute
|
|
102
|
+
Map of custom attribute ids to attribute
|
|
106
103
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
107
104
|
for a reference on how to set values for custom attributes.
|
|
108
105
|
|
|
@@ -136,9 +133,6 @@ class FolderArgs:
|
|
|
136
133
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
137
134
|
"""
|
|
138
135
|
The IDs of any tags to attach to this resource.
|
|
139
|
-
|
|
140
|
-
> **NOTE:** Tagging support is unsupported on direct ESXi connections and
|
|
141
|
-
requires vCenter 6.0 or higher.
|
|
142
136
|
"""
|
|
143
137
|
return pulumi.get(self, "tags")
|
|
144
138
|
|
|
@@ -157,7 +151,7 @@ class _FolderState:
|
|
|
157
151
|
type: Optional[pulumi.Input[str]] = None):
|
|
158
152
|
"""
|
|
159
153
|
Input properties used for looking up and filtering Folder resources.
|
|
160
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
154
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
161
155
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
162
156
|
for a reference on how to set values for custom attributes.
|
|
163
157
|
|
|
@@ -180,9 +174,6 @@ class _FolderState:
|
|
|
180
174
|
any part before the last `/`), your folder will be moved to that new parent. If
|
|
181
175
|
modifying the name (the part after the last `/`), your folder will be renamed.
|
|
182
176
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
183
|
-
|
|
184
|
-
> **NOTE:** Tagging support is unsupported on direct ESXi connections and
|
|
185
|
-
requires vCenter 6.0 or higher.
|
|
186
177
|
:param pulumi.Input[str] type: The type of folder to create. Allowed options are
|
|
187
178
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
188
179
|
`vm` for virtual machine folders, `datastore` for datastore folders, and
|
|
@@ -203,7 +194,7 @@ class _FolderState:
|
|
|
203
194
|
@pulumi.getter(name="customAttributes")
|
|
204
195
|
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
205
196
|
"""
|
|
206
|
-
Map of custom attribute ids to attribute
|
|
197
|
+
Map of custom attribute ids to attribute
|
|
207
198
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
208
199
|
for a reference on how to set values for custom attributes.
|
|
209
200
|
|
|
@@ -259,9 +250,6 @@ class _FolderState:
|
|
|
259
250
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
260
251
|
"""
|
|
261
252
|
The IDs of any tags to attach to this resource.
|
|
262
|
-
|
|
263
|
-
> **NOTE:** Tagging support is unsupported on direct ESXi connections and
|
|
264
|
-
requires vCenter 6.0 or higher.
|
|
265
253
|
"""
|
|
266
254
|
return pulumi.get(self, "tags")
|
|
267
255
|
|
|
@@ -300,7 +288,7 @@ class Folder(pulumi.CustomResource):
|
|
|
300
288
|
Create a Folder resource with the given unique name, props, and options.
|
|
301
289
|
:param str resource_name: The name of the resource.
|
|
302
290
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
303
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
291
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
304
292
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
305
293
|
for a reference on how to set values for custom attributes.
|
|
306
294
|
|
|
@@ -323,9 +311,6 @@ class Folder(pulumi.CustomResource):
|
|
|
323
311
|
any part before the last `/`), your folder will be moved to that new parent. If
|
|
324
312
|
modifying the name (the part after the last `/`), your folder will be renamed.
|
|
325
313
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
326
|
-
|
|
327
|
-
> **NOTE:** Tagging support is unsupported on direct ESXi connections and
|
|
328
|
-
requires vCenter 6.0 or higher.
|
|
329
314
|
:param pulumi.Input[str] type: The type of folder to create. Allowed options are
|
|
330
315
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
331
316
|
`vm` for virtual machine folders, `datastore` for datastore folders, and
|
|
@@ -399,7 +384,7 @@ class Folder(pulumi.CustomResource):
|
|
|
399
384
|
:param str resource_name: The unique name of the resulting resource.
|
|
400
385
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
401
386
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
402
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
387
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
403
388
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
404
389
|
for a reference on how to set values for custom attributes.
|
|
405
390
|
|
|
@@ -422,9 +407,6 @@ class Folder(pulumi.CustomResource):
|
|
|
422
407
|
any part before the last `/`), your folder will be moved to that new parent. If
|
|
423
408
|
modifying the name (the part after the last `/`), your folder will be renamed.
|
|
424
409
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
425
|
-
|
|
426
|
-
> **NOTE:** Tagging support is unsupported on direct ESXi connections and
|
|
427
|
-
requires vCenter 6.0 or higher.
|
|
428
410
|
:param pulumi.Input[str] type: The type of folder to create. Allowed options are
|
|
429
411
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
430
412
|
`vm` for virtual machine folders, `datastore` for datastore folders, and
|
|
@@ -445,7 +427,7 @@ class Folder(pulumi.CustomResource):
|
|
|
445
427
|
@pulumi.getter(name="customAttributes")
|
|
446
428
|
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
447
429
|
"""
|
|
448
|
-
Map of custom attribute ids to attribute
|
|
430
|
+
Map of custom attribute ids to attribute
|
|
449
431
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
450
432
|
for a reference on how to set values for custom attributes.
|
|
451
433
|
|
|
@@ -489,9 +471,6 @@ class Folder(pulumi.CustomResource):
|
|
|
489
471
|
def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
490
472
|
"""
|
|
491
473
|
The IDs of any tags to attach to this resource.
|
|
492
|
-
|
|
493
|
-
> **NOTE:** Tagging support is unsupported on direct ESXi connections and
|
|
494
|
-
requires vCenter 6.0 or higher.
|
|
495
474
|
"""
|
|
496
475
|
return pulumi.get(self, "tags")
|
|
497
476
|
|
|
@@ -89,21 +89,22 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None,
|
|
|
89
89
|
import pulumi
|
|
90
90
|
import pulumi_vsphere as vsphere
|
|
91
91
|
|
|
92
|
-
datacenter = vsphere.get_datacenter(name=
|
|
93
|
-
cluster = vsphere.get_compute_cluster(name=
|
|
92
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
93
|
+
cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
94
94
|
datacenter_id=datacenter.id)
|
|
95
|
-
|
|
95
|
+
host_group = vsphere.get_compute_cluster_host_group(name="hostgroup-01",
|
|
96
96
|
compute_cluster_id=cluster.id)
|
|
97
|
-
|
|
97
|
+
host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
|
|
98
98
|
compute_cluster_id=cluster.id,
|
|
99
99
|
name="terraform-host-rule1",
|
|
100
|
-
vm_group_name="
|
|
101
|
-
affinity_host_group_name=
|
|
100
|
+
vm_group_name="vmgroup-01",
|
|
101
|
+
affinity_host_group_name=host_group.name)
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
:param str compute_cluster_id: The
|
|
106
|
-
of the compute cluster for
|
|
105
|
+
:param str compute_cluster_id: The
|
|
106
|
+
[managed object reference ID][docs-about-morefs] of the compute cluster for
|
|
107
|
+
the host group.
|
|
107
108
|
|
|
108
109
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
109
110
|
:param str name: The name of the host group.
|
|
@@ -136,21 +137,22 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
|
|
|
136
137
|
import pulumi
|
|
137
138
|
import pulumi_vsphere as vsphere
|
|
138
139
|
|
|
139
|
-
datacenter = vsphere.get_datacenter(name=
|
|
140
|
-
cluster = vsphere.get_compute_cluster(name=
|
|
140
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
141
|
+
cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
141
142
|
datacenter_id=datacenter.id)
|
|
142
|
-
|
|
143
|
+
host_group = vsphere.get_compute_cluster_host_group(name="hostgroup-01",
|
|
143
144
|
compute_cluster_id=cluster.id)
|
|
144
|
-
|
|
145
|
+
host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
|
|
145
146
|
compute_cluster_id=cluster.id,
|
|
146
147
|
name="terraform-host-rule1",
|
|
147
|
-
vm_group_name="
|
|
148
|
-
affinity_host_group_name=
|
|
148
|
+
vm_group_name="vmgroup-01",
|
|
149
|
+
affinity_host_group_name=host_group.name)
|
|
149
150
|
```
|
|
150
151
|
|
|
151
152
|
|
|
152
|
-
:param str compute_cluster_id: The
|
|
153
|
-
of the compute cluster for
|
|
153
|
+
:param str compute_cluster_id: The
|
|
154
|
+
[managed object reference ID][docs-about-morefs] of the compute cluster for
|
|
155
|
+
the host group.
|
|
154
156
|
|
|
155
157
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
156
158
|
:param str name: The name of the host group.
|
|
@@ -56,9 +56,11 @@ class AwaitableGetContentLibraryResult(GetContentLibraryResult):
|
|
|
56
56
|
def get_content_library(name: Optional[str] = None,
|
|
57
57
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetContentLibraryResult:
|
|
58
58
|
"""
|
|
59
|
-
The `ContentLibrary` data source can be used to discover the ID of a
|
|
59
|
+
The `ContentLibrary` data source can be used to discover the ID of a
|
|
60
|
+
content library.
|
|
60
61
|
|
|
61
|
-
> **NOTE:** This resource requires vCenter
|
|
62
|
+
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
63
|
+
host connections.
|
|
62
64
|
|
|
63
65
|
## Example Usage
|
|
64
66
|
|
|
@@ -66,7 +68,7 @@ def get_content_library(name: Optional[str] = None,
|
|
|
66
68
|
import pulumi
|
|
67
69
|
import pulumi_vsphere as vsphere
|
|
68
70
|
|
|
69
|
-
|
|
71
|
+
content_library = vsphere.get_content_library(name="Content Library")
|
|
70
72
|
```
|
|
71
73
|
|
|
72
74
|
|
|
@@ -86,9 +88,11 @@ def get_content_library(name: Optional[str] = None,
|
|
|
86
88
|
def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
|
|
87
89
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetContentLibraryResult]:
|
|
88
90
|
"""
|
|
89
|
-
The `ContentLibrary` data source can be used to discover the ID of a
|
|
91
|
+
The `ContentLibrary` data source can be used to discover the ID of a
|
|
92
|
+
content library.
|
|
90
93
|
|
|
91
|
-
> **NOTE:** This resource requires vCenter
|
|
94
|
+
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
95
|
+
host connections.
|
|
92
96
|
|
|
93
97
|
## Example Usage
|
|
94
98
|
|
|
@@ -96,7 +100,7 @@ def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
96
100
|
import pulumi
|
|
97
101
|
import pulumi_vsphere as vsphere
|
|
98
102
|
|
|
99
|
-
|
|
103
|
+
content_library = vsphere.get_content_library(name="Content Library")
|
|
100
104
|
```
|
|
101
105
|
|
|
102
106
|
|
|
@@ -79,13 +79,15 @@ def get_content_library_item(library_id: Optional[str] = None,
|
|
|
79
79
|
The `ContentLibraryItem` data source can be used to discover the ID
|
|
80
80
|
of a content library item.
|
|
81
81
|
|
|
82
|
-
> **NOTE:** This resource requires vCenter
|
|
83
|
-
|
|
82
|
+
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
83
|
+
host connections.
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
:param str library_id: The ID of the content library in which the item
|
|
86
|
+
:param str library_id: The ID of the content library in which the item
|
|
87
|
+
exists.
|
|
87
88
|
:param str name: The name of the content library item.
|
|
88
|
-
:param str type: The type for the content library item. One of `ovf`,
|
|
89
|
+
:param str type: The type for the content library item. One of `ovf`,
|
|
90
|
+
`vm-template`, or `iso`
|
|
89
91
|
"""
|
|
90
92
|
__args__ = dict()
|
|
91
93
|
__args__['libraryId'] = library_id
|
|
@@ -110,12 +112,14 @@ def get_content_library_item_output(library_id: Optional[pulumi.Input[str]] = No
|
|
|
110
112
|
The `ContentLibraryItem` data source can be used to discover the ID
|
|
111
113
|
of a content library item.
|
|
112
114
|
|
|
113
|
-
> **NOTE:** This resource requires vCenter
|
|
114
|
-
|
|
115
|
+
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
116
|
+
host connections.
|
|
115
117
|
|
|
116
118
|
|
|
117
|
-
:param str library_id: The ID of the content library in which the item
|
|
119
|
+
:param str library_id: The ID of the content library in which the item
|
|
120
|
+
exists.
|
|
118
121
|
:param str name: The name of the content library item.
|
|
119
|
-
:param str type: The type for the content library item. One of `ovf`,
|
|
122
|
+
:param str type: The type for the content library item. One of `ovf`,
|
|
123
|
+
`vm-template`, or `iso`
|
|
120
124
|
"""
|
|
121
125
|
...
|
pulumi_vsphere/get_datastore.py
CHANGED
|
@@ -57,9 +57,9 @@ class GetDatastoreResult:
|
|
|
57
57
|
@pulumi.getter
|
|
58
58
|
def stats(self) -> Optional[Mapping[str, Any]]:
|
|
59
59
|
"""
|
|
60
|
-
The disk space usage statistics for the specific datastore. The
|
|
61
|
-
datastore capacity is represented as `capacity` and the free remaining
|
|
62
|
-
represented as `free`.
|
|
60
|
+
The disk space usage statistics for the specific datastore. The
|
|
61
|
+
total datastore capacity is represented as `capacity` and the free remaining
|
|
62
|
+
disk is represented as `free`.
|
|
63
63
|
"""
|
|
64
64
|
return pulumi.get(self, "stats")
|
|
65
65
|
|
|
@@ -103,9 +103,9 @@ def get_datastore(datacenter_id: Optional[str] = None,
|
|
|
103
103
|
search path used in `name` is an absolute path. For default datacenters, use
|
|
104
104
|
the `id` attribute from an empty `Datacenter` data source.
|
|
105
105
|
:param str name: The name of the datastore. This can be a name or path.
|
|
106
|
-
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The
|
|
107
|
-
datastore capacity is represented as `capacity` and the free remaining
|
|
108
|
-
represented as `free`.
|
|
106
|
+
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The
|
|
107
|
+
total datastore capacity is represented as `capacity` and the free remaining
|
|
108
|
+
disk is represented as `free`.
|
|
109
109
|
"""
|
|
110
110
|
__args__ = dict()
|
|
111
111
|
__args__['datacenterId'] = datacenter_id
|
|
@@ -149,8 +149,8 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
149
149
|
search path used in `name` is an absolute path. For default datacenters, use
|
|
150
150
|
the `id` attribute from an empty `Datacenter` data source.
|
|
151
151
|
:param str name: The name of the datastore. This can be a name or path.
|
|
152
|
-
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The
|
|
153
|
-
datastore capacity is represented as `capacity` and the free remaining
|
|
154
|
-
represented as `free`.
|
|
152
|
+
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The
|
|
153
|
+
total datastore capacity is represented as `capacity` and the free remaining
|
|
154
|
+
disk is represented as `free`.
|
|
155
155
|
"""
|
|
156
156
|
...
|