pulumi-vsphere 4.12.0__py3-none-any.whl → 4.12.0a1725645004__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 +6 -1135
- 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 +7 -29
- pulumi_vsphere/get_datastore.py +4 -16
- pulumi_vsphere/get_datastore_cluster.py +5 -30
- 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 +5 -65
- 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 +5 -145
- 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 -45
- 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 -100
- 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.12.0.dist-info → pulumi_vsphere-4.12.0a1725645004.dist-info}/METADATA +2 -3
- pulumi_vsphere-4.12.0a1725645004.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.12.0.dist-info → pulumi_vsphere-4.12.0a1725645004.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.12.0.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.12.0.dist-info → pulumi_vsphere-4.12.0a1725645004.dist-info}/top_level.txt +0 -0
|
@@ -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__ = ['ComputeClusterVmGroupArgs', 'ComputeClusterVmGroup']
|
|
@@ -36,11 +31,6 @@ class ComputeClusterVmGroupArgs:
|
|
|
36
31
|
`name` argument) is shared with the
|
|
37
32
|
`ComputeClusterHostGroup`
|
|
38
33
|
resource. Make sure your names are unique across both resources.
|
|
39
|
-
|
|
40
|
-
> **NOTE:** To update a existing VM group, you must first import the group with `import` command in
|
|
41
|
-
import section. When importing a VM group, validate that all virtual machines that
|
|
42
|
-
need to be in the group are included in the `virtual_machine_ids`; otherwise, any virtual machines
|
|
43
|
-
that are not in `virtual_machine_ids` the included will be removed from the group.
|
|
44
34
|
"""
|
|
45
35
|
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
|
|
46
36
|
if name is not None:
|
|
@@ -86,11 +76,6 @@ class ComputeClusterVmGroupArgs:
|
|
|
86
76
|
`name` argument) is shared with the
|
|
87
77
|
`ComputeClusterHostGroup`
|
|
88
78
|
resource. Make sure your names are unique across both resources.
|
|
89
|
-
|
|
90
|
-
> **NOTE:** To update a existing VM group, you must first import the group with `import` command in
|
|
91
|
-
import section. When importing a VM group, validate that all virtual machines that
|
|
92
|
-
need to be in the group are included in the `virtual_machine_ids`; otherwise, any virtual machines
|
|
93
|
-
that are not in `virtual_machine_ids` the included will be removed from the group.
|
|
94
79
|
"""
|
|
95
80
|
return pulumi.get(self, "virtual_machine_ids")
|
|
96
81
|
|
|
@@ -119,11 +104,6 @@ class _ComputeClusterVmGroupState:
|
|
|
119
104
|
`name` argument) is shared with the
|
|
120
105
|
`ComputeClusterHostGroup`
|
|
121
106
|
resource. Make sure your names are unique across both resources.
|
|
122
|
-
|
|
123
|
-
> **NOTE:** To update a existing VM group, you must first import the group with `import` command in
|
|
124
|
-
import section. When importing a VM group, validate that all virtual machines that
|
|
125
|
-
need to be in the group are included in the `virtual_machine_ids`; otherwise, any virtual machines
|
|
126
|
-
that are not in `virtual_machine_ids` the included will be removed from the group.
|
|
127
107
|
"""
|
|
128
108
|
if compute_cluster_id is not None:
|
|
129
109
|
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
|
|
@@ -170,11 +150,6 @@ class _ComputeClusterVmGroupState:
|
|
|
170
150
|
`name` argument) is shared with the
|
|
171
151
|
`ComputeClusterHostGroup`
|
|
172
152
|
resource. Make sure your names are unique across both resources.
|
|
173
|
-
|
|
174
|
-
> **NOTE:** To update a existing VM group, you must first import the group with `import` command in
|
|
175
|
-
import section. When importing a VM group, validate that all virtual machines that
|
|
176
|
-
need to be in the group are included in the `virtual_machine_ids`; otherwise, any virtual machines
|
|
177
|
-
that are not in `virtual_machine_ids` the included will be removed from the group.
|
|
178
153
|
"""
|
|
179
154
|
return pulumi.get(self, "virtual_machine_ids")
|
|
180
155
|
|
|
@@ -193,85 +168,7 @@ class ComputeClusterVmGroup(pulumi.CustomResource):
|
|
|
193
168
|
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
194
169
|
__props__=None):
|
|
195
170
|
"""
|
|
196
|
-
|
|
197
|
-
virtual machines in a cluster, either created by the
|
|
198
|
-
[`ComputeCluster`][tf-vsphere-cluster-resource] resource or looked up
|
|
199
|
-
by the [`ComputeCluster`][tf-vsphere-cluster-data-source] data source.
|
|
200
|
-
|
|
201
|
-
[tf-vsphere-cluster-resource]: /docs/providers/vsphere/r/compute_cluster.html
|
|
202
|
-
[tf-vsphere-cluster-data-source]: /docs/providers/vsphere/d/compute_cluster.html
|
|
203
|
-
|
|
204
|
-
This resource mainly serves as an input to the
|
|
205
|
-
[`ComputeClusterVmDependencyRule`][tf-vsphere-cluster-vm-dependency-rule-resource]
|
|
206
|
-
and
|
|
207
|
-
[`ComputeClusterVmHostRule`][tf-vsphere-cluster-vm-host-rule-resource]
|
|
208
|
-
resources. See the individual resource documentation pages for more information.
|
|
209
|
-
|
|
210
|
-
[tf-vsphere-cluster-vm-dependency-rule-resource]: /docs/providers/vsphere/r/compute_cluster_vm_dependency_rule.html
|
|
211
|
-
[tf-vsphere-cluster-vm-host-rule-resource]: /docs/providers/vsphere/r/compute_cluster_vm_host_rule.html
|
|
212
|
-
|
|
213
|
-
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
214
|
-
connections.
|
|
215
|
-
|
|
216
|
-
## Example Usage
|
|
217
|
-
|
|
218
|
-
The example below creates two virtual machines in a cluster using the
|
|
219
|
-
`VirtualMachine` resource, creating the
|
|
220
|
-
virtual machine in the cluster looked up by the
|
|
221
|
-
`ComputeCluster` data source. It
|
|
222
|
-
then creates a group from these two virtual machines.
|
|
223
|
-
|
|
224
|
-
```python
|
|
225
|
-
import pulumi
|
|
226
|
-
import pulumi_vsphere as vsphere
|
|
227
|
-
|
|
228
|
-
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
229
|
-
datastore = vsphere.get_datastore(name="datastore1",
|
|
230
|
-
datacenter_id=datacenter.id)
|
|
231
|
-
cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
232
|
-
datacenter_id=datacenter.id)
|
|
233
|
-
network = vsphere.get_network(name="network1",
|
|
234
|
-
datacenter_id=datacenter.id)
|
|
235
|
-
vm = []
|
|
236
|
-
for range in [{"value": i} for i in range(0, 2)]:
|
|
237
|
-
vm.append(vsphere.VirtualMachine(f"vm-{range['value']}",
|
|
238
|
-
name=f"test-{range['value']}",
|
|
239
|
-
resource_pool_id=cluster.resource_pool_id,
|
|
240
|
-
datastore_id=datastore.id,
|
|
241
|
-
num_cpus=2,
|
|
242
|
-
memory=2048,
|
|
243
|
-
guest_id="otherLinux64Guest",
|
|
244
|
-
network_interfaces=[{
|
|
245
|
-
"network_id": network.id,
|
|
246
|
-
}],
|
|
247
|
-
disks=[{
|
|
248
|
-
"label": "disk0",
|
|
249
|
-
"size": 20,
|
|
250
|
-
}]))
|
|
251
|
-
cluster_vm_group = vsphere.ComputeClusterVmGroup("cluster_vm_group",
|
|
252
|
-
name="test-cluster-vm-group",
|
|
253
|
-
compute_cluster_id=cluster.id,
|
|
254
|
-
virtual_machine_ids=[[__item.id for __item in vm]])
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
## Import
|
|
258
|
-
|
|
259
|
-
An existing group can be imported into this resource by
|
|
260
|
-
|
|
261
|
-
supplying both the path to the cluster, and the name of the VM group. If the
|
|
262
|
-
|
|
263
|
-
name or cluster is not found, or if the group is of a different type, an error
|
|
264
|
-
|
|
265
|
-
will be returned. An example is below:
|
|
266
|
-
|
|
267
|
-
```sh
|
|
268
|
-
$ pulumi import vsphere:index/computeClusterVmGroup:ComputeClusterVmGroup cluster_vm_group \\
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
'{"compute_cluster_path": "/dc1/host/cluster1", \\
|
|
272
|
-
|
|
273
|
-
"name": "pulumi-test-cluster-vm-group"}'
|
|
274
|
-
|
|
171
|
+
Create a ComputeClusterVmGroup resource with the given unique name, props, and options.
|
|
275
172
|
:param str resource_name: The name of the resource.
|
|
276
173
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
277
174
|
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
@@ -286,11 +183,6 @@ class ComputeClusterVmGroup(pulumi.CustomResource):
|
|
|
286
183
|
`name` argument) is shared with the
|
|
287
184
|
`ComputeClusterHostGroup`
|
|
288
185
|
resource. Make sure your names are unique across both resources.
|
|
289
|
-
|
|
290
|
-
> **NOTE:** To update a existing VM group, you must first import the group with `import` command in
|
|
291
|
-
import section. When importing a VM group, validate that all virtual machines that
|
|
292
|
-
need to be in the group are included in the `virtual_machine_ids`; otherwise, any virtual machines
|
|
293
|
-
that are not in `virtual_machine_ids` the included will be removed from the group.
|
|
294
186
|
"""
|
|
295
187
|
...
|
|
296
188
|
@overload
|
|
@@ -299,85 +191,7 @@ class ComputeClusterVmGroup(pulumi.CustomResource):
|
|
|
299
191
|
args: ComputeClusterVmGroupArgs,
|
|
300
192
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
301
193
|
"""
|
|
302
|
-
|
|
303
|
-
virtual machines in a cluster, either created by the
|
|
304
|
-
[`ComputeCluster`][tf-vsphere-cluster-resource] resource or looked up
|
|
305
|
-
by the [`ComputeCluster`][tf-vsphere-cluster-data-source] data source.
|
|
306
|
-
|
|
307
|
-
[tf-vsphere-cluster-resource]: /docs/providers/vsphere/r/compute_cluster.html
|
|
308
|
-
[tf-vsphere-cluster-data-source]: /docs/providers/vsphere/d/compute_cluster.html
|
|
309
|
-
|
|
310
|
-
This resource mainly serves as an input to the
|
|
311
|
-
[`ComputeClusterVmDependencyRule`][tf-vsphere-cluster-vm-dependency-rule-resource]
|
|
312
|
-
and
|
|
313
|
-
[`ComputeClusterVmHostRule`][tf-vsphere-cluster-vm-host-rule-resource]
|
|
314
|
-
resources. See the individual resource documentation pages for more information.
|
|
315
|
-
|
|
316
|
-
[tf-vsphere-cluster-vm-dependency-rule-resource]: /docs/providers/vsphere/r/compute_cluster_vm_dependency_rule.html
|
|
317
|
-
[tf-vsphere-cluster-vm-host-rule-resource]: /docs/providers/vsphere/r/compute_cluster_vm_host_rule.html
|
|
318
|
-
|
|
319
|
-
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
320
|
-
connections.
|
|
321
|
-
|
|
322
|
-
## Example Usage
|
|
323
|
-
|
|
324
|
-
The example below creates two virtual machines in a cluster using the
|
|
325
|
-
`VirtualMachine` resource, creating the
|
|
326
|
-
virtual machine in the cluster looked up by the
|
|
327
|
-
`ComputeCluster` data source. It
|
|
328
|
-
then creates a group from these two virtual machines.
|
|
329
|
-
|
|
330
|
-
```python
|
|
331
|
-
import pulumi
|
|
332
|
-
import pulumi_vsphere as vsphere
|
|
333
|
-
|
|
334
|
-
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
335
|
-
datastore = vsphere.get_datastore(name="datastore1",
|
|
336
|
-
datacenter_id=datacenter.id)
|
|
337
|
-
cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
338
|
-
datacenter_id=datacenter.id)
|
|
339
|
-
network = vsphere.get_network(name="network1",
|
|
340
|
-
datacenter_id=datacenter.id)
|
|
341
|
-
vm = []
|
|
342
|
-
for range in [{"value": i} for i in range(0, 2)]:
|
|
343
|
-
vm.append(vsphere.VirtualMachine(f"vm-{range['value']}",
|
|
344
|
-
name=f"test-{range['value']}",
|
|
345
|
-
resource_pool_id=cluster.resource_pool_id,
|
|
346
|
-
datastore_id=datastore.id,
|
|
347
|
-
num_cpus=2,
|
|
348
|
-
memory=2048,
|
|
349
|
-
guest_id="otherLinux64Guest",
|
|
350
|
-
network_interfaces=[{
|
|
351
|
-
"network_id": network.id,
|
|
352
|
-
}],
|
|
353
|
-
disks=[{
|
|
354
|
-
"label": "disk0",
|
|
355
|
-
"size": 20,
|
|
356
|
-
}]))
|
|
357
|
-
cluster_vm_group = vsphere.ComputeClusterVmGroup("cluster_vm_group",
|
|
358
|
-
name="test-cluster-vm-group",
|
|
359
|
-
compute_cluster_id=cluster.id,
|
|
360
|
-
virtual_machine_ids=[[__item.id for __item in vm]])
|
|
361
|
-
```
|
|
362
|
-
|
|
363
|
-
## Import
|
|
364
|
-
|
|
365
|
-
An existing group can be imported into this resource by
|
|
366
|
-
|
|
367
|
-
supplying both the path to the cluster, and the name of the VM group. If the
|
|
368
|
-
|
|
369
|
-
name or cluster is not found, or if the group is of a different type, an error
|
|
370
|
-
|
|
371
|
-
will be returned. An example is below:
|
|
372
|
-
|
|
373
|
-
```sh
|
|
374
|
-
$ pulumi import vsphere:index/computeClusterVmGroup:ComputeClusterVmGroup cluster_vm_group \\
|
|
375
|
-
```
|
|
376
|
-
|
|
377
|
-
'{"compute_cluster_path": "/dc1/host/cluster1", \\
|
|
378
|
-
|
|
379
|
-
"name": "pulumi-test-cluster-vm-group"}'
|
|
380
|
-
|
|
194
|
+
Create a ComputeClusterVmGroup resource with the given unique name, props, and options.
|
|
381
195
|
:param str resource_name: The name of the resource.
|
|
382
196
|
:param ComputeClusterVmGroupArgs args: The arguments to use to populate this resource's properties.
|
|
383
197
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -442,11 +256,6 @@ class ComputeClusterVmGroup(pulumi.CustomResource):
|
|
|
442
256
|
`name` argument) is shared with the
|
|
443
257
|
`ComputeClusterHostGroup`
|
|
444
258
|
resource. Make sure your names are unique across both resources.
|
|
445
|
-
|
|
446
|
-
> **NOTE:** To update a existing VM group, you must first import the group with `import` command in
|
|
447
|
-
import section. When importing a VM group, validate that all virtual machines that
|
|
448
|
-
need to be in the group are included in the `virtual_machine_ids`; otherwise, any virtual machines
|
|
449
|
-
that are not in `virtual_machine_ids` the included will be removed from the group.
|
|
450
259
|
"""
|
|
451
260
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
452
261
|
|
|
@@ -487,11 +296,6 @@ class ComputeClusterVmGroup(pulumi.CustomResource):
|
|
|
487
296
|
`name` argument) is shared with the
|
|
488
297
|
`ComputeClusterHostGroup`
|
|
489
298
|
resource. Make sure your names are unique across both resources.
|
|
490
|
-
|
|
491
|
-
> **NOTE:** To update a existing VM group, you must first import the group with `import` command in
|
|
492
|
-
import section. When importing a VM group, validate that all virtual machines that
|
|
493
|
-
need to be in the group are included in the `virtual_machine_ids`; otherwise, any virtual machines
|
|
494
|
-
that are not in `virtual_machine_ids` the included will be removed from the group.
|
|
495
299
|
"""
|
|
496
300
|
return pulumi.get(self, "virtual_machine_ids")
|
|
497
301
|
|
|
@@ -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__ = ['ComputeClusterVmHostRuleArgs', 'ComputeClusterVmHostRule']
|
|
@@ -336,40 +331,7 @@ class ComputeClusterVmHostRule(pulumi.CustomResource):
|
|
|
336
331
|
vm_group_name: Optional[pulumi.Input[str]] = None,
|
|
337
332
|
__props__=None):
|
|
338
333
|
"""
|
|
339
|
-
|
|
340
|
-
VM-to-host rules in a cluster, either created by the
|
|
341
|
-
`ComputeCluster` resource or looked up
|
|
342
|
-
by the `ComputeCluster` data source.
|
|
343
|
-
|
|
344
|
-
This resource can create both _affinity rules_, where virtual machines run on
|
|
345
|
-
specified hosts, or _anti-affinity_ rules, where virtual machines run on hosts
|
|
346
|
-
outside of the ones specified in the rule. Virtual machines and hosts are
|
|
347
|
-
supplied via groups, which can be managed via the
|
|
348
|
-
`ComputeClusterVmGroup` and
|
|
349
|
-
`ComputeClusterHostGroup`
|
|
350
|
-
resources.
|
|
351
|
-
|
|
352
|
-
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
353
|
-
connections.
|
|
354
|
-
|
|
355
|
-
## Import
|
|
356
|
-
|
|
357
|
-
An existing rule can be imported into this resource by supplying
|
|
358
|
-
|
|
359
|
-
both the path to the cluster, and the name the rule. If the name or cluster is
|
|
360
|
-
|
|
361
|
-
not found, or if the rule is of a different type, an error will be returned. An
|
|
362
|
-
|
|
363
|
-
example is below:
|
|
364
|
-
|
|
365
|
-
```sh
|
|
366
|
-
$ pulumi import vsphere:index/computeClusterVmHostRule:ComputeClusterVmHostRule cluster_vm_host_rule \\
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
'{"compute_cluster_path": "/dc1/host/cluster1", \\
|
|
370
|
-
|
|
371
|
-
"name": "pulumi-test-cluster-vm-host-rule"}'
|
|
372
|
-
|
|
334
|
+
Create a ComputeClusterVmHostRule resource with the given unique name, props, and options.
|
|
373
335
|
:param str resource_name: The name of the resource.
|
|
374
336
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
375
337
|
:param pulumi.Input[str] affinity_host_group_name: When this field is used, the virtual
|
|
@@ -404,40 +366,7 @@ class ComputeClusterVmHostRule(pulumi.CustomResource):
|
|
|
404
366
|
args: ComputeClusterVmHostRuleArgs,
|
|
405
367
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
406
368
|
"""
|
|
407
|
-
|
|
408
|
-
VM-to-host rules in a cluster, either created by the
|
|
409
|
-
`ComputeCluster` resource or looked up
|
|
410
|
-
by the `ComputeCluster` data source.
|
|
411
|
-
|
|
412
|
-
This resource can create both _affinity rules_, where virtual machines run on
|
|
413
|
-
specified hosts, or _anti-affinity_ rules, where virtual machines run on hosts
|
|
414
|
-
outside of the ones specified in the rule. Virtual machines and hosts are
|
|
415
|
-
supplied via groups, which can be managed via the
|
|
416
|
-
`ComputeClusterVmGroup` and
|
|
417
|
-
`ComputeClusterHostGroup`
|
|
418
|
-
resources.
|
|
419
|
-
|
|
420
|
-
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
421
|
-
connections.
|
|
422
|
-
|
|
423
|
-
## Import
|
|
424
|
-
|
|
425
|
-
An existing rule can be imported into this resource by supplying
|
|
426
|
-
|
|
427
|
-
both the path to the cluster, and the name the rule. If the name or cluster is
|
|
428
|
-
|
|
429
|
-
not found, or if the rule is of a different type, an error will be returned. An
|
|
430
|
-
|
|
431
|
-
example is below:
|
|
432
|
-
|
|
433
|
-
```sh
|
|
434
|
-
$ pulumi import vsphere:index/computeClusterVmHostRule:ComputeClusterVmHostRule cluster_vm_host_rule \\
|
|
435
|
-
```
|
|
436
|
-
|
|
437
|
-
'{"compute_cluster_path": "/dc1/host/cluster1", \\
|
|
438
|
-
|
|
439
|
-
"name": "pulumi-test-cluster-vm-host-rule"}'
|
|
440
|
-
|
|
369
|
+
Create a ComputeClusterVmHostRule resource with the given unique name, props, and options.
|
|
441
370
|
:param str resource_name: The name of the resource.
|
|
442
371
|
:param ComputeClusterVmHostRuleArgs args: The arguments to use to populate this resource's properties.
|
|
443
372
|
: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
|
|
|
17
12
|
allowUnverifiedSsl: Optional[bool]
|
pulumi_vsphere/config/vars.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
|
import types
|
|
@@ -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 *
|
|
@@ -205,55 +200,7 @@ class ContentLibrary(pulumi.CustomResource):
|
|
|
205
200
|
subscription: Optional[pulumi.Input[Union['ContentLibrarySubscriptionArgs', 'ContentLibrarySubscriptionArgsDict']]] = None,
|
|
206
201
|
__props__=None):
|
|
207
202
|
"""
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
> **NOTE:** This resource requires a vCenter Server instance and is not available on direct ESXi host connections.
|
|
211
|
-
|
|
212
|
-
## Example Usage
|
|
213
|
-
|
|
214
|
-
The following example creates a publishing content library using the datastore named `publisher-datastore` as the storage backing.
|
|
215
|
-
|
|
216
|
-
```python
|
|
217
|
-
import pulumi
|
|
218
|
-
import pulumi_vsphere as vsphere
|
|
219
|
-
|
|
220
|
-
datacenter_a = vsphere.get_datacenter(name="dc-01-a")
|
|
221
|
-
publisher_datastore = vsphere.get_datastore(name="publisher-datastore",
|
|
222
|
-
datacenter_id=datacenter_a.id)
|
|
223
|
-
publisher_content_library = vsphere.ContentLibrary("publisher_content_library",
|
|
224
|
-
name="Publisher Content Library",
|
|
225
|
-
description="A publishing content library.",
|
|
226
|
-
storage_backings=[publisher_datastore.id])
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
The next example creates a subscribed content library using the URL of the publisher content library as the source and the datastore named `subscriber-datastore` as the storage backing.
|
|
230
|
-
|
|
231
|
-
```python
|
|
232
|
-
import pulumi
|
|
233
|
-
import pulumi_vsphere as vsphere
|
|
234
|
-
|
|
235
|
-
datacenter_b = vsphere.get_datacenter(name="dc-01-b")
|
|
236
|
-
subscriber_datastore = vsphere.get_datastore(name="subscriber-datastore",
|
|
237
|
-
datacenter_id=datacenter_b.id)
|
|
238
|
-
subscriber_content_library = vsphere.ContentLibrary("subscriber_content_library",
|
|
239
|
-
name="Subscriber Content Library",
|
|
240
|
-
description="A subscribing content library.",
|
|
241
|
-
storage_backings=[subscriber_datastore.id],
|
|
242
|
-
subscription={
|
|
243
|
-
"subscription_url": "https://vc-01-a.example.com:443/cls/vcsp/lib/f42a4b25-844a-44ec-9063-a3a5e9cc88c7/lib.json",
|
|
244
|
-
"automatic_sync": True,
|
|
245
|
-
"on_demand": False,
|
|
246
|
-
})
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
## Import
|
|
250
|
-
|
|
251
|
-
An existing content library can be imported into this resource by supplying the content library ID. For example:
|
|
252
|
-
|
|
253
|
-
```sh
|
|
254
|
-
$ pulumi import vsphere:index/contentLibrary:ContentLibrary vsphere_content_library publisher_content_library f42a4b25-844a-44ec-9063-a3a5e9cc88c7
|
|
255
|
-
```
|
|
256
|
-
|
|
203
|
+
Create a ContentLibrary resource with the given unique name, props, and options.
|
|
257
204
|
:param str resource_name: The name of the resource.
|
|
258
205
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
259
206
|
:param pulumi.Input[str] description: A description for the content library.
|
|
@@ -269,55 +216,7 @@ class ContentLibrary(pulumi.CustomResource):
|
|
|
269
216
|
args: ContentLibraryArgs,
|
|
270
217
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
271
218
|
"""
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
> **NOTE:** This resource requires a vCenter Server instance and is not available on direct ESXi host connections.
|
|
275
|
-
|
|
276
|
-
## Example Usage
|
|
277
|
-
|
|
278
|
-
The following example creates a publishing content library using the datastore named `publisher-datastore` as the storage backing.
|
|
279
|
-
|
|
280
|
-
```python
|
|
281
|
-
import pulumi
|
|
282
|
-
import pulumi_vsphere as vsphere
|
|
283
|
-
|
|
284
|
-
datacenter_a = vsphere.get_datacenter(name="dc-01-a")
|
|
285
|
-
publisher_datastore = vsphere.get_datastore(name="publisher-datastore",
|
|
286
|
-
datacenter_id=datacenter_a.id)
|
|
287
|
-
publisher_content_library = vsphere.ContentLibrary("publisher_content_library",
|
|
288
|
-
name="Publisher Content Library",
|
|
289
|
-
description="A publishing content library.",
|
|
290
|
-
storage_backings=[publisher_datastore.id])
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
The next example creates a subscribed content library using the URL of the publisher content library as the source and the datastore named `subscriber-datastore` as the storage backing.
|
|
294
|
-
|
|
295
|
-
```python
|
|
296
|
-
import pulumi
|
|
297
|
-
import pulumi_vsphere as vsphere
|
|
298
|
-
|
|
299
|
-
datacenter_b = vsphere.get_datacenter(name="dc-01-b")
|
|
300
|
-
subscriber_datastore = vsphere.get_datastore(name="subscriber-datastore",
|
|
301
|
-
datacenter_id=datacenter_b.id)
|
|
302
|
-
subscriber_content_library = vsphere.ContentLibrary("subscriber_content_library",
|
|
303
|
-
name="Subscriber Content Library",
|
|
304
|
-
description="A subscribing content library.",
|
|
305
|
-
storage_backings=[subscriber_datastore.id],
|
|
306
|
-
subscription={
|
|
307
|
-
"subscription_url": "https://vc-01-a.example.com:443/cls/vcsp/lib/f42a4b25-844a-44ec-9063-a3a5e9cc88c7/lib.json",
|
|
308
|
-
"automatic_sync": True,
|
|
309
|
-
"on_demand": False,
|
|
310
|
-
})
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
## Import
|
|
314
|
-
|
|
315
|
-
An existing content library can be imported into this resource by supplying the content library ID. For example:
|
|
316
|
-
|
|
317
|
-
```sh
|
|
318
|
-
$ pulumi import vsphere:index/contentLibrary:ContentLibrary vsphere_content_library publisher_content_library f42a4b25-844a-44ec-9063-a3a5e9cc88c7
|
|
319
|
-
```
|
|
320
|
-
|
|
219
|
+
Create a ContentLibrary resource with the given unique name, props, and options.
|
|
321
220
|
:param str resource_name: The name of the resource.
|
|
322
221
|
:param ContentLibraryArgs args: The arguments to use to populate this resource's properties.
|
|
323
222
|
:param pulumi.ResourceOptions opts: Options for the resource.
|