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
|
@@ -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__ = ['DrsVmOverrideArgs', 'DrsVmOverride']
|
|
@@ -209,37 +204,7 @@ class DrsVmOverride(pulumi.CustomResource):
|
|
|
209
204
|
virtual_machine_id: Optional[pulumi.Input[str]] = None,
|
|
210
205
|
__props__=None):
|
|
211
206
|
"""
|
|
212
|
-
|
|
213
|
-
cluster for a specific virtual machine. With this resource, one can enable or
|
|
214
|
-
disable DRS and control the automation level for a single virtual machine
|
|
215
|
-
without affecting the rest of the cluster.
|
|
216
|
-
|
|
217
|
-
For more information on vSphere clusters and DRS, see [this
|
|
218
|
-
page][ref-vsphere-drs-clusters].
|
|
219
|
-
|
|
220
|
-
[ref-vsphere-drs-clusters]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-8ACF3502-5314-469F-8CC9-4A9BD5925BC2.html
|
|
221
|
-
|
|
222
|
-
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
223
|
-
connections.
|
|
224
|
-
|
|
225
|
-
## Import
|
|
226
|
-
|
|
227
|
-
An existing override can be imported into this resource by
|
|
228
|
-
|
|
229
|
-
supplying both the path to the cluster, and the path to the virtual machine, to
|
|
230
|
-
|
|
231
|
-
`pulumi import`. If no override exists, an error will be given. An example
|
|
232
|
-
|
|
233
|
-
is below:
|
|
234
|
-
|
|
235
|
-
```sh
|
|
236
|
-
$ pulumi import vsphere:index/drsVmOverride:DrsVmOverride drs_vm_override \\
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
'{"compute_cluster_path": "/dc1/host/cluster1", \\
|
|
240
|
-
|
|
241
|
-
"virtual_machine_path": "/dc1/vm/srv1"}'
|
|
242
|
-
|
|
207
|
+
Create a DrsVmOverride resource with the given unique name, props, and options.
|
|
243
208
|
:param str resource_name: The name of the resource.
|
|
244
209
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
245
210
|
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
@@ -264,37 +229,7 @@ class DrsVmOverride(pulumi.CustomResource):
|
|
|
264
229
|
args: DrsVmOverrideArgs,
|
|
265
230
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
266
231
|
"""
|
|
267
|
-
|
|
268
|
-
cluster for a specific virtual machine. With this resource, one can enable or
|
|
269
|
-
disable DRS and control the automation level for a single virtual machine
|
|
270
|
-
without affecting the rest of the cluster.
|
|
271
|
-
|
|
272
|
-
For more information on vSphere clusters and DRS, see [this
|
|
273
|
-
page][ref-vsphere-drs-clusters].
|
|
274
|
-
|
|
275
|
-
[ref-vsphere-drs-clusters]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-8ACF3502-5314-469F-8CC9-4A9BD5925BC2.html
|
|
276
|
-
|
|
277
|
-
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
278
|
-
connections.
|
|
279
|
-
|
|
280
|
-
## Import
|
|
281
|
-
|
|
282
|
-
An existing override can be imported into this resource by
|
|
283
|
-
|
|
284
|
-
supplying both the path to the cluster, and the path to the virtual machine, to
|
|
285
|
-
|
|
286
|
-
`pulumi import`. If no override exists, an error will be given. An example
|
|
287
|
-
|
|
288
|
-
is below:
|
|
289
|
-
|
|
290
|
-
```sh
|
|
291
|
-
$ pulumi import vsphere:index/drsVmOverride:DrsVmOverride drs_vm_override \\
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
'{"compute_cluster_path": "/dc1/host/cluster1", \\
|
|
295
|
-
|
|
296
|
-
"virtual_machine_path": "/dc1/vm/srv1"}'
|
|
297
|
-
|
|
232
|
+
Create a DrsVmOverride resource with the given unique name, props, and options.
|
|
298
233
|
:param str resource_name: The name of the resource.
|
|
299
234
|
:param DrsVmOverrideArgs args: The arguments to use to populate this resource's properties.
|
|
300
235
|
: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/file.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__ = ['FileArgs', 'File']
|
pulumi_vsphere/folder.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__ = ['FolderArgs', 'Folder']
|
|
@@ -290,74 +285,7 @@ class Folder(pulumi.CustomResource):
|
|
|
290
285
|
type: Optional[pulumi.Input[str]] = None,
|
|
291
286
|
__props__=None):
|
|
292
287
|
"""
|
|
293
|
-
|
|
294
|
-
The resource supports creating folders of the 5 major types - datacenter
|
|
295
|
-
folders, host and cluster folders, virtual machine folders, storage folders,
|
|
296
|
-
and network folders.
|
|
297
|
-
|
|
298
|
-
Paths are always relative to the specific type of folder you are creating.
|
|
299
|
-
A subfolder is discovered by parsing the relative path specified in `path`, so
|
|
300
|
-
`foo/bar` will create a folder named `bar` in the parent folder `foo`, as long
|
|
301
|
-
as that folder exists.
|
|
302
|
-
|
|
303
|
-
## Example Usage
|
|
304
|
-
|
|
305
|
-
The basic example below creates a virtual machine folder named
|
|
306
|
-
`test-folder` in the default datacenter's VM hierarchy.
|
|
307
|
-
|
|
308
|
-
```python
|
|
309
|
-
import pulumi
|
|
310
|
-
import pulumi_vsphere as vsphere
|
|
311
|
-
|
|
312
|
-
datacenter = vsphere.get_datacenter()
|
|
313
|
-
folder = vsphere.Folder("folder",
|
|
314
|
-
path="test-folder",
|
|
315
|
-
type="vm",
|
|
316
|
-
datacenter_id=datacenter.id)
|
|
317
|
-
```
|
|
318
|
-
|
|
319
|
-
### Example with subfolders
|
|
320
|
-
|
|
321
|
-
The below example builds off of the above by first creating a folder named
|
|
322
|
-
`test-parent`, and then locating `test-folder` in that
|
|
323
|
-
folder. To ensure the parent is created first, we create an interpolation
|
|
324
|
-
dependency off the parent's `path` attribute.
|
|
325
|
-
|
|
326
|
-
Note that if you change parents (for example, went from the above basic
|
|
327
|
-
configuration to this one), your folder will be moved to be under the correct
|
|
328
|
-
parent.
|
|
329
|
-
|
|
330
|
-
```python
|
|
331
|
-
import pulumi
|
|
332
|
-
import pulumi_vsphere as vsphere
|
|
333
|
-
|
|
334
|
-
datacenter = vsphere.get_datacenter()
|
|
335
|
-
parent = vsphere.Folder("parent",
|
|
336
|
-
path="test-parent",
|
|
337
|
-
type="vm",
|
|
338
|
-
datacenter_id=datacenter.id)
|
|
339
|
-
folder = vsphere.Folder("folder",
|
|
340
|
-
path=parent.path.apply(lambda path: f"{path}/test-folder"),
|
|
341
|
-
type="vm",
|
|
342
|
-
datacenter_id=datacenter.id)
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
## Import
|
|
346
|
-
|
|
347
|
-
An existing folder can be imported into this resource via
|
|
348
|
-
|
|
349
|
-
its full path, via the following command:
|
|
350
|
-
|
|
351
|
-
```sh
|
|
352
|
-
$ pulumi import vsphere:index/folder:Folder folder /default-dc/vm/terraform-test-folder
|
|
353
|
-
```
|
|
354
|
-
|
|
355
|
-
The above command would import the folder from our examples above, the VM
|
|
356
|
-
|
|
357
|
-
folder named `terraform-test-folder` located in the datacenter named
|
|
358
|
-
|
|
359
|
-
`default-dc`.
|
|
360
|
-
|
|
288
|
+
Create a Folder resource with the given unique name, props, and options.
|
|
361
289
|
:param str resource_name: The name of the resource.
|
|
362
290
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
363
291
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
@@ -395,74 +323,7 @@ class Folder(pulumi.CustomResource):
|
|
|
395
323
|
args: FolderArgs,
|
|
396
324
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
397
325
|
"""
|
|
398
|
-
|
|
399
|
-
The resource supports creating folders of the 5 major types - datacenter
|
|
400
|
-
folders, host and cluster folders, virtual machine folders, storage folders,
|
|
401
|
-
and network folders.
|
|
402
|
-
|
|
403
|
-
Paths are always relative to the specific type of folder you are creating.
|
|
404
|
-
A subfolder is discovered by parsing the relative path specified in `path`, so
|
|
405
|
-
`foo/bar` will create a folder named `bar` in the parent folder `foo`, as long
|
|
406
|
-
as that folder exists.
|
|
407
|
-
|
|
408
|
-
## Example Usage
|
|
409
|
-
|
|
410
|
-
The basic example below creates a virtual machine folder named
|
|
411
|
-
`test-folder` in the default datacenter's VM hierarchy.
|
|
412
|
-
|
|
413
|
-
```python
|
|
414
|
-
import pulumi
|
|
415
|
-
import pulumi_vsphere as vsphere
|
|
416
|
-
|
|
417
|
-
datacenter = vsphere.get_datacenter()
|
|
418
|
-
folder = vsphere.Folder("folder",
|
|
419
|
-
path="test-folder",
|
|
420
|
-
type="vm",
|
|
421
|
-
datacenter_id=datacenter.id)
|
|
422
|
-
```
|
|
423
|
-
|
|
424
|
-
### Example with subfolders
|
|
425
|
-
|
|
426
|
-
The below example builds off of the above by first creating a folder named
|
|
427
|
-
`test-parent`, and then locating `test-folder` in that
|
|
428
|
-
folder. To ensure the parent is created first, we create an interpolation
|
|
429
|
-
dependency off the parent's `path` attribute.
|
|
430
|
-
|
|
431
|
-
Note that if you change parents (for example, went from the above basic
|
|
432
|
-
configuration to this one), your folder will be moved to be under the correct
|
|
433
|
-
parent.
|
|
434
|
-
|
|
435
|
-
```python
|
|
436
|
-
import pulumi
|
|
437
|
-
import pulumi_vsphere as vsphere
|
|
438
|
-
|
|
439
|
-
datacenter = vsphere.get_datacenter()
|
|
440
|
-
parent = vsphere.Folder("parent",
|
|
441
|
-
path="test-parent",
|
|
442
|
-
type="vm",
|
|
443
|
-
datacenter_id=datacenter.id)
|
|
444
|
-
folder = vsphere.Folder("folder",
|
|
445
|
-
path=parent.path.apply(lambda path: f"{path}/test-folder"),
|
|
446
|
-
type="vm",
|
|
447
|
-
datacenter_id=datacenter.id)
|
|
448
|
-
```
|
|
449
|
-
|
|
450
|
-
## Import
|
|
451
|
-
|
|
452
|
-
An existing folder can be imported into this resource via
|
|
453
|
-
|
|
454
|
-
its full path, via the following command:
|
|
455
|
-
|
|
456
|
-
```sh
|
|
457
|
-
$ pulumi import vsphere:index/folder:Folder folder /default-dc/vm/terraform-test-folder
|
|
458
|
-
```
|
|
459
|
-
|
|
460
|
-
The above command would import the folder from our examples above, the VM
|
|
461
|
-
|
|
462
|
-
folder named `terraform-test-folder` located in the datacenter named
|
|
463
|
-
|
|
464
|
-
`default-dc`.
|
|
465
|
-
|
|
326
|
+
Create a Folder resource with the given unique name, props, and options.
|
|
466
327
|
:param str resource_name: The name of the resource.
|
|
467
328
|
:param FolderArgs args: The arguments to use to populate this resource's properties.
|
|
468
329
|
: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
|
__all__ = [
|
|
@@ -123,6 +118,9 @@ def get_compute_cluster(datacenter_id: Optional[str] = None,
|
|
|
123
118
|
id=pulumi.get(__ret__, 'id'),
|
|
124
119
|
name=pulumi.get(__ret__, 'name'),
|
|
125
120
|
resource_pool_id=pulumi.get(__ret__, 'resource_pool_id'))
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
@_utilities.lift_output_func(get_compute_cluster)
|
|
126
124
|
def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
127
125
|
name: Optional[pulumi.Input[str]] = None,
|
|
128
126
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetComputeClusterResult]:
|
|
@@ -155,13 +153,4 @@ def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str
|
|
|
155
153
|
use the `id` attribute from an empty `Datacenter` data source.
|
|
156
154
|
:param str name: The name or absolute path to the cluster.
|
|
157
155
|
"""
|
|
158
|
-
|
|
159
|
-
__args__['datacenterId'] = datacenter_id
|
|
160
|
-
__args__['name'] = name
|
|
161
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
162
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getComputeCluster:getComputeCluster', __args__, opts=opts, typ=GetComputeClusterResult)
|
|
163
|
-
return __ret__.apply(lambda __response__: GetComputeClusterResult(
|
|
164
|
-
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
165
|
-
id=pulumi.get(__response__, 'id'),
|
|
166
|
-
name=pulumi.get(__response__, 'name'),
|
|
167
|
-
resource_pool_id=pulumi.get(__response__, 'resource_pool_id')))
|
|
156
|
+
...
|
|
@@ -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__ = [
|
|
@@ -101,7 +96,7 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None,
|
|
|
101
96
|
compute_cluster_id=cluster.id)
|
|
102
97
|
host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
|
|
103
98
|
compute_cluster_id=cluster.id,
|
|
104
|
-
name="
|
|
99
|
+
name="terraform-host-rule1",
|
|
105
100
|
vm_group_name="vmgroup-01",
|
|
106
101
|
affinity_host_group_name=host_group.name)
|
|
107
102
|
```
|
|
@@ -125,6 +120,9 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None,
|
|
|
125
120
|
host_system_ids=pulumi.get(__ret__, 'host_system_ids'),
|
|
126
121
|
id=pulumi.get(__ret__, 'id'),
|
|
127
122
|
name=pulumi.get(__ret__, 'name'))
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
@_utilities.lift_output_func(get_compute_cluster_host_group)
|
|
128
126
|
def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
129
127
|
name: Optional[pulumi.Input[str]] = None,
|
|
130
128
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetComputeClusterHostGroupResult]:
|
|
@@ -146,7 +144,7 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
|
|
|
146
144
|
compute_cluster_id=cluster.id)
|
|
147
145
|
host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
|
|
148
146
|
compute_cluster_id=cluster.id,
|
|
149
|
-
name="
|
|
147
|
+
name="terraform-host-rule1",
|
|
150
148
|
vm_group_name="vmgroup-01",
|
|
151
149
|
affinity_host_group_name=host_group.name)
|
|
152
150
|
```
|
|
@@ -159,13 +157,4 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
|
|
|
159
157
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
160
158
|
:param str name: The name of the host group.
|
|
161
159
|
"""
|
|
162
|
-
|
|
163
|
-
__args__['computeClusterId'] = compute_cluster_id
|
|
164
|
-
__args__['name'] = name
|
|
165
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
166
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getComputeClusterHostGroup:getComputeClusterHostGroup', __args__, opts=opts, typ=GetComputeClusterHostGroupResult)
|
|
167
|
-
return __ret__.apply(lambda __response__: GetComputeClusterHostGroupResult(
|
|
168
|
-
compute_cluster_id=pulumi.get(__response__, 'compute_cluster_id'),
|
|
169
|
-
host_system_ids=pulumi.get(__response__, 'host_system_ids'),
|
|
170
|
-
id=pulumi.get(__response__, 'id'),
|
|
171
|
-
name=pulumi.get(__response__, 'name')))
|
|
160
|
+
...
|
|
@@ -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__ = [
|
|
@@ -87,6 +82,9 @@ def get_content_library(name: Optional[str] = None,
|
|
|
87
82
|
return AwaitableGetContentLibraryResult(
|
|
88
83
|
id=pulumi.get(__ret__, 'id'),
|
|
89
84
|
name=pulumi.get(__ret__, 'name'))
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
@_utilities.lift_output_func(get_content_library)
|
|
90
88
|
def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
|
|
91
89
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetContentLibraryResult]:
|
|
92
90
|
"""
|
|
@@ -108,10 +106,4 @@ def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
108
106
|
|
|
109
107
|
:param str name: The name of the content library.
|
|
110
108
|
"""
|
|
111
|
-
|
|
112
|
-
__args__['name'] = name
|
|
113
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
114
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getContentLibrary:getContentLibrary', __args__, opts=opts, typ=GetContentLibraryResult)
|
|
115
|
-
return __ret__.apply(lambda __response__: GetContentLibraryResult(
|
|
116
|
-
id=pulumi.get(__response__, 'id'),
|
|
117
|
-
name=pulumi.get(__response__, 'name')))
|
|
109
|
+
...
|
|
@@ -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__ = [
|
|
@@ -106,6 +101,9 @@ def get_content_library_item(library_id: Optional[str] = None,
|
|
|
106
101
|
library_id=pulumi.get(__ret__, 'library_id'),
|
|
107
102
|
name=pulumi.get(__ret__, 'name'),
|
|
108
103
|
type=pulumi.get(__ret__, 'type'))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
@_utilities.lift_output_func(get_content_library_item)
|
|
109
107
|
def get_content_library_item_output(library_id: Optional[pulumi.Input[str]] = None,
|
|
110
108
|
name: Optional[pulumi.Input[str]] = None,
|
|
111
109
|
type: Optional[pulumi.Input[str]] = None,
|
|
@@ -124,14 +122,4 @@ def get_content_library_item_output(library_id: Optional[pulumi.Input[str]] = No
|
|
|
124
122
|
:param str type: The type for the content library item. One of `ovf`,
|
|
125
123
|
`vm-template`, or `iso`
|
|
126
124
|
"""
|
|
127
|
-
|
|
128
|
-
__args__['libraryId'] = library_id
|
|
129
|
-
__args__['name'] = name
|
|
130
|
-
__args__['type'] = type
|
|
131
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
132
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getContentLibraryItem:getContentLibraryItem', __args__, opts=opts, typ=GetContentLibraryItemResult)
|
|
133
|
-
return __ret__.apply(lambda __response__: GetContentLibraryItemResult(
|
|
134
|
-
id=pulumi.get(__response__, 'id'),
|
|
135
|
-
library_id=pulumi.get(__response__, 'library_id'),
|
|
136
|
-
name=pulumi.get(__response__, 'name'),
|
|
137
|
-
type=pulumi.get(__response__, 'type')))
|
|
125
|
+
...
|
|
@@ -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__ = [
|
|
@@ -100,6 +95,9 @@ def get_custom_attribute(name: Optional[str] = None,
|
|
|
100
95
|
id=pulumi.get(__ret__, 'id'),
|
|
101
96
|
managed_object_type=pulumi.get(__ret__, 'managed_object_type'),
|
|
102
97
|
name=pulumi.get(__ret__, 'name'))
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
@_utilities.lift_output_func(get_custom_attribute)
|
|
103
101
|
def get_custom_attribute_output(name: Optional[pulumi.Input[str]] = None,
|
|
104
102
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCustomAttributeResult]:
|
|
105
103
|
"""
|
|
@@ -124,11 +122,4 @@ def get_custom_attribute_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
124
122
|
|
|
125
123
|
:param str name: The name of the custom attribute.
|
|
126
124
|
"""
|
|
127
|
-
|
|
128
|
-
__args__['name'] = name
|
|
129
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
130
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getCustomAttribute:getCustomAttribute', __args__, opts=opts, typ=GetCustomAttributeResult)
|
|
131
|
-
return __ret__.apply(lambda __response__: GetCustomAttributeResult(
|
|
132
|
-
id=pulumi.get(__response__, 'id'),
|
|
133
|
-
managed_object_type=pulumi.get(__response__, 'managed_object_type'),
|
|
134
|
-
name=pulumi.get(__response__, 'name')))
|
|
125
|
+
...
|
pulumi_vsphere/get_datacenter.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__ = [
|
|
@@ -92,6 +87,9 @@ def get_datacenter(name: Optional[str] = None,
|
|
|
92
87
|
return AwaitableGetDatacenterResult(
|
|
93
88
|
id=pulumi.get(__ret__, 'id'),
|
|
94
89
|
name=pulumi.get(__ret__, 'name'))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@_utilities.lift_output_func(get_datacenter)
|
|
95
93
|
def get_datacenter_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
96
94
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatacenterResult]:
|
|
97
95
|
"""
|
|
@@ -118,10 +116,4 @@ def get_datacenter_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
118
116
|
datacenters that exist in the vSphere inventory when managed by a vCenter Server
|
|
119
117
|
instance. Hence, the `name` attribute is completely ignored.
|
|
120
118
|
"""
|
|
121
|
-
|
|
122
|
-
__args__['name'] = name
|
|
123
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
124
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatacenter:getDatacenter', __args__, opts=opts, typ=GetDatacenterResult)
|
|
125
|
-
return __ret__.apply(lambda __response__: GetDatacenterResult(
|
|
126
|
-
id=pulumi.get(__response__, 'id'),
|
|
127
|
-
name=pulumi.get(__response__, 'name')))
|
|
119
|
+
...
|
pulumi_vsphere/get_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__ = [
|
|
@@ -124,6 +119,9 @@ def get_datastore(datacenter_id: Optional[str] = None,
|
|
|
124
119
|
id=pulumi.get(__ret__, 'id'),
|
|
125
120
|
name=pulumi.get(__ret__, 'name'),
|
|
126
121
|
stats=pulumi.get(__ret__, 'stats'))
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
@_utilities.lift_output_func(get_datastore)
|
|
127
125
|
def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
128
126
|
name: Optional[pulumi.Input[str]] = None,
|
|
129
127
|
stats: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
|
|
@@ -155,14 +153,4 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
155
153
|
total datastore capacity is represented as `capacity` and the free remaining
|
|
156
154
|
disk is represented as `free`.
|
|
157
155
|
"""
|
|
158
|
-
|
|
159
|
-
__args__['datacenterId'] = datacenter_id
|
|
160
|
-
__args__['name'] = name
|
|
161
|
-
__args__['stats'] = stats
|
|
162
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
163
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatastore:getDatastore', __args__, opts=opts, typ=GetDatastoreResult)
|
|
164
|
-
return __ret__.apply(lambda __response__: GetDatastoreResult(
|
|
165
|
-
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
166
|
-
id=pulumi.get(__response__, 'id'),
|
|
167
|
-
name=pulumi.get(__response__, 'name'),
|
|
168
|
-
stats=pulumi.get(__response__, 'stats')))
|
|
156
|
+
...
|
|
@@ -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__ = [
|
|
@@ -105,6 +100,9 @@ def get_datastore_cluster(datacenter_id: Optional[str] = None,
|
|
|
105
100
|
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
106
101
|
id=pulumi.get(__ret__, 'id'),
|
|
107
102
|
name=pulumi.get(__ret__, 'name'))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
@_utilities.lift_output_func(get_datastore_cluster)
|
|
108
106
|
def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
109
107
|
name: Optional[pulumi.Input[str]] = None,
|
|
110
108
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreClusterResult]:
|
|
@@ -133,12 +131,4 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s
|
|
|
133
131
|
`Datacenter` data source.
|
|
134
132
|
:param str name: The name or absolute path to the datastore cluster.
|
|
135
133
|
"""
|
|
136
|
-
|
|
137
|
-
__args__['datacenterId'] = datacenter_id
|
|
138
|
-
__args__['name'] = name
|
|
139
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
140
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatastoreCluster:getDatastoreCluster', __args__, opts=opts, typ=GetDatastoreClusterResult)
|
|
141
|
-
return __ret__.apply(lambda __response__: GetDatastoreClusterResult(
|
|
142
|
-
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
143
|
-
id=pulumi.get(__response__, 'id'),
|
|
144
|
-
name=pulumi.get(__response__, 'name')))
|
|
134
|
+
...
|
|
@@ -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__ = [
|
|
@@ -148,6 +143,9 @@ def get_datastore_stats(capacity: Optional[Mapping[str, str]] = None,
|
|
|
148
143
|
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
149
144
|
free_space=pulumi.get(__ret__, 'free_space'),
|
|
150
145
|
id=pulumi.get(__ret__, 'id'))
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
@_utilities.lift_output_func(get_datastore_stats)
|
|
151
149
|
def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
|
|
152
150
|
datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
153
151
|
free_space: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
|
|
@@ -195,14 +193,4 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
|
|
|
195
193
|
datacenter, where the name of the datastore is used as key and the free space
|
|
196
194
|
as value.
|
|
197
195
|
"""
|
|
198
|
-
|
|
199
|
-
__args__['capacity'] = capacity
|
|
200
|
-
__args__['datacenterId'] = datacenter_id
|
|
201
|
-
__args__['freeSpace'] = free_space
|
|
202
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
203
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatastoreStats:getDatastoreStats', __args__, opts=opts, typ=GetDatastoreStatsResult)
|
|
204
|
-
return __ret__.apply(lambda __response__: GetDatastoreStatsResult(
|
|
205
|
-
capacity=pulumi.get(__response__, 'capacity'),
|
|
206
|
-
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
207
|
-
free_space=pulumi.get(__response__, 'free_space'),
|
|
208
|
-
id=pulumi.get(__response__, 'id')))
|
|
196
|
+
...
|