pulumi-vsphere 4.10.0a1710160860__tar.gz → 4.10.0a1710245029__tar.gz
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-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/PKG-INFO +1 -1
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/__init__.py +2 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_datastore.py +27 -3
- pulumi_vsphere-4.10.0a1710245029/pulumi_vsphere/get_datastore_stats.py +202 -0
- pulumi_vsphere-4.10.0a1710245029/pulumi_vsphere/get_host_vgpu_profile.py +190 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_virtual_machine.py +29 -1
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/outputs.py +71 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/virtual_machine.py +68 -7
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere.egg-info/PKG-INFO +1 -1
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere.egg-info/SOURCES.txt +2 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pyproject.toml +1 -1
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/README.md +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/_inputs.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/_utilities.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/compute_cluster.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/compute_cluster_host_group.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/compute_cluster_vm_affinity_rule.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/compute_cluster_vm_dependency_rule.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/compute_cluster_vm_group.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/compute_cluster_vm_host_rule.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/config/__init__.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/config/__init__.pyi +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/config/vars.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/content_library.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/content_library_item.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/custom_attribute.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/datacenter.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/datastore_cluster.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/distributed_port_group.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/distributed_virtual_switch.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/dpm_host_override.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/drs_vm_override.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/entity_permissions.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/file.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/folder.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_compute_cluster.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_compute_cluster_host_group.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_content_library.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_content_library_item.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_custom_attribute.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_datacenter.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_datastore_cluster.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_distributed_virtual_switch.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_dynamic.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_folder.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_guest_os_customization.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_host.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_host_pci_device.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_host_thumbprint.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_license.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_network.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_ovf_vm_template.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_policy.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_resource_pool.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_role.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_tag.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_tag_category.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_vapp_container.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/get_vmfs_disks.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/guest_os_customization.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/ha_vm_override.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/host.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/host_port_group.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/host_virtual_switch.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/license.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/nas_datastore.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/provider.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/pulumi-plugin.json +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/py.typed +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/resource_pool.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/role.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/storage_drs_vm_override.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/tag.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/tag_category.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/vapp_container.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/vapp_entity.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/virtual_disk.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/virtual_machine_snapshot.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/vm_storage_policy.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/vmfs_datastore.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/vnic.py +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere.egg-info/dependency_links.txt +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere.egg-info/requires.txt +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere.egg-info/top_level.txt +0 -0
- {pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/setup.cfg +0 -0
{pulumi_vsphere-4.10.0a1710160860 → pulumi_vsphere-4.10.0a1710245029}/pulumi_vsphere/__init__.py
RENAMED
|
@@ -33,6 +33,7 @@ from .get_custom_attribute import *
|
|
|
33
33
|
from .get_datacenter import *
|
|
34
34
|
from .get_datastore import *
|
|
35
35
|
from .get_datastore_cluster import *
|
|
36
|
+
from .get_datastore_stats import *
|
|
36
37
|
from .get_distributed_virtual_switch import *
|
|
37
38
|
from .get_dynamic import *
|
|
38
39
|
from .get_folder import *
|
|
@@ -40,6 +41,7 @@ from .get_guest_os_customization import *
|
|
|
40
41
|
from .get_host import *
|
|
41
42
|
from .get_host_pci_device import *
|
|
42
43
|
from .get_host_thumbprint import *
|
|
44
|
+
from .get_host_vgpu_profile import *
|
|
43
45
|
from .get_license import *
|
|
44
46
|
from .get_network import *
|
|
45
47
|
from .get_ovf_vm_template import *
|
|
@@ -21,7 +21,7 @@ class GetDatastoreResult:
|
|
|
21
21
|
"""
|
|
22
22
|
A collection of values returned by getDatastore.
|
|
23
23
|
"""
|
|
24
|
-
def __init__(__self__, datacenter_id=None, id=None, name=None):
|
|
24
|
+
def __init__(__self__, datacenter_id=None, id=None, name=None, stats=None):
|
|
25
25
|
if datacenter_id and not isinstance(datacenter_id, str):
|
|
26
26
|
raise TypeError("Expected argument 'datacenter_id' to be a str")
|
|
27
27
|
pulumi.set(__self__, "datacenter_id", datacenter_id)
|
|
@@ -31,6 +31,9 @@ class GetDatastoreResult:
|
|
|
31
31
|
if name and not isinstance(name, str):
|
|
32
32
|
raise TypeError("Expected argument 'name' to be a str")
|
|
33
33
|
pulumi.set(__self__, "name", name)
|
|
34
|
+
if stats and not isinstance(stats, dict):
|
|
35
|
+
raise TypeError("Expected argument 'stats' to be a dict")
|
|
36
|
+
pulumi.set(__self__, "stats", stats)
|
|
34
37
|
|
|
35
38
|
@property
|
|
36
39
|
@pulumi.getter(name="datacenterId")
|
|
@@ -50,6 +53,16 @@ class GetDatastoreResult:
|
|
|
50
53
|
def name(self) -> str:
|
|
51
54
|
return pulumi.get(self, "name")
|
|
52
55
|
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter
|
|
58
|
+
def stats(self) -> Optional[Mapping[str, Any]]:
|
|
59
|
+
"""
|
|
60
|
+
The disk space usage statistics for the specific datastore. The total
|
|
61
|
+
datastore capacity is represented as `capacity` and the free remaining disk is
|
|
62
|
+
represented as `free`.
|
|
63
|
+
"""
|
|
64
|
+
return pulumi.get(self, "stats")
|
|
65
|
+
|
|
53
66
|
|
|
54
67
|
class AwaitableGetDatastoreResult(GetDatastoreResult):
|
|
55
68
|
# pylint: disable=using-constant-test
|
|
@@ -59,11 +72,13 @@ class AwaitableGetDatastoreResult(GetDatastoreResult):
|
|
|
59
72
|
return GetDatastoreResult(
|
|
60
73
|
datacenter_id=self.datacenter_id,
|
|
61
74
|
id=self.id,
|
|
62
|
-
name=self.name
|
|
75
|
+
name=self.name,
|
|
76
|
+
stats=self.stats)
|
|
63
77
|
|
|
64
78
|
|
|
65
79
|
def get_datastore(datacenter_id: Optional[str] = None,
|
|
66
80
|
name: Optional[str] = None,
|
|
81
|
+
stats: Optional[Mapping[str, Any]] = None,
|
|
67
82
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreResult:
|
|
68
83
|
"""
|
|
69
84
|
The `get_datastore` data source can be used to discover the ID of a
|
|
@@ -90,22 +105,28 @@ def get_datastore(datacenter_id: Optional[str] = None,
|
|
|
90
105
|
search path used in `name` is an absolute path. For default datacenters, use
|
|
91
106
|
the `id` attribute from an empty `Datacenter` data source.
|
|
92
107
|
:param str name: The name of the datastore. This can be a name or path.
|
|
108
|
+
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The total
|
|
109
|
+
datastore capacity is represented as `capacity` and the free remaining disk is
|
|
110
|
+
represented as `free`.
|
|
93
111
|
"""
|
|
94
112
|
__args__ = dict()
|
|
95
113
|
__args__['datacenterId'] = datacenter_id
|
|
96
114
|
__args__['name'] = name
|
|
115
|
+
__args__['stats'] = stats
|
|
97
116
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
98
117
|
__ret__ = pulumi.runtime.invoke('vsphere:index/getDatastore:getDatastore', __args__, opts=opts, typ=GetDatastoreResult).value
|
|
99
118
|
|
|
100
119
|
return AwaitableGetDatastoreResult(
|
|
101
120
|
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
102
121
|
id=pulumi.get(__ret__, 'id'),
|
|
103
|
-
name=pulumi.get(__ret__, 'name')
|
|
122
|
+
name=pulumi.get(__ret__, 'name'),
|
|
123
|
+
stats=pulumi.get(__ret__, 'stats'))
|
|
104
124
|
|
|
105
125
|
|
|
106
126
|
@_utilities.lift_output_func(get_datastore)
|
|
107
127
|
def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
108
128
|
name: Optional[pulumi.Input[str]] = None,
|
|
129
|
+
stats: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
|
|
109
130
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreResult]:
|
|
110
131
|
"""
|
|
111
132
|
The `get_datastore` data source can be used to discover the ID of a
|
|
@@ -132,5 +153,8 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
132
153
|
search path used in `name` is an absolute path. For default datacenters, use
|
|
133
154
|
the `id` attribute from an empty `Datacenter` data source.
|
|
134
155
|
:param str name: The name of the datastore. This can be a name or path.
|
|
156
|
+
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The total
|
|
157
|
+
datastore capacity is represented as `capacity` and the free remaining disk is
|
|
158
|
+
represented as `free`.
|
|
135
159
|
"""
|
|
136
160
|
...
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from . import _utilities
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
'GetDatastoreStatsResult',
|
|
14
|
+
'AwaitableGetDatastoreStatsResult',
|
|
15
|
+
'get_datastore_stats',
|
|
16
|
+
'get_datastore_stats_output',
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
@pulumi.output_type
|
|
20
|
+
class GetDatastoreStatsResult:
|
|
21
|
+
"""
|
|
22
|
+
A collection of values returned by getDatastoreStats.
|
|
23
|
+
"""
|
|
24
|
+
def __init__(__self__, capacity=None, datacenter_id=None, free_space=None, id=None):
|
|
25
|
+
if capacity and not isinstance(capacity, dict):
|
|
26
|
+
raise TypeError("Expected argument 'capacity' to be a dict")
|
|
27
|
+
pulumi.set(__self__, "capacity", capacity)
|
|
28
|
+
if datacenter_id and not isinstance(datacenter_id, str):
|
|
29
|
+
raise TypeError("Expected argument 'datacenter_id' to be a str")
|
|
30
|
+
pulumi.set(__self__, "datacenter_id", datacenter_id)
|
|
31
|
+
if free_space and not isinstance(free_space, dict):
|
|
32
|
+
raise TypeError("Expected argument 'free_space' to be a dict")
|
|
33
|
+
pulumi.set(__self__, "free_space", free_space)
|
|
34
|
+
if id and not isinstance(id, str):
|
|
35
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "id", id)
|
|
37
|
+
|
|
38
|
+
@property
|
|
39
|
+
@pulumi.getter
|
|
40
|
+
def capacity(self) -> Optional[Mapping[str, Any]]:
|
|
41
|
+
"""
|
|
42
|
+
A mapping of the capacity for all datastore in the datacenter
|
|
43
|
+
, where the name of the datastore is used as key and the capacity as value.
|
|
44
|
+
"""
|
|
45
|
+
return pulumi.get(self, "capacity")
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
@pulumi.getter(name="datacenterId")
|
|
49
|
+
def datacenter_id(self) -> str:
|
|
50
|
+
"""
|
|
51
|
+
The [managed object reference ID][docs-about-morefs]
|
|
52
|
+
of the datacenter the datastores are located in.
|
|
53
|
+
"""
|
|
54
|
+
return pulumi.get(self, "datacenter_id")
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
@pulumi.getter(name="freeSpace")
|
|
58
|
+
def free_space(self) -> Optional[Mapping[str, Any]]:
|
|
59
|
+
"""
|
|
60
|
+
A mapping of the free space for each datastore in the
|
|
61
|
+
datacenter, where the name of the datastore is used as key and the free
|
|
62
|
+
space as value.
|
|
63
|
+
"""
|
|
64
|
+
return pulumi.get(self, "free_space")
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
@pulumi.getter
|
|
68
|
+
def id(self) -> str:
|
|
69
|
+
"""
|
|
70
|
+
The provider-assigned unique ID for this managed resource.
|
|
71
|
+
"""
|
|
72
|
+
return pulumi.get(self, "id")
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class AwaitableGetDatastoreStatsResult(GetDatastoreStatsResult):
|
|
76
|
+
# pylint: disable=using-constant-test
|
|
77
|
+
def __await__(self):
|
|
78
|
+
if False:
|
|
79
|
+
yield self
|
|
80
|
+
return GetDatastoreStatsResult(
|
|
81
|
+
capacity=self.capacity,
|
|
82
|
+
datacenter_id=self.datacenter_id,
|
|
83
|
+
free_space=self.free_space,
|
|
84
|
+
id=self.id)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
|
|
88
|
+
datacenter_id: Optional[str] = None,
|
|
89
|
+
free_space: Optional[Mapping[str, Any]] = None,
|
|
90
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreStatsResult:
|
|
91
|
+
"""
|
|
92
|
+
The `get_datastore_stats` data source can be used to retrieve the usage stats
|
|
93
|
+
of all vSphere datastore objects in a datacenter. This can then be used as a
|
|
94
|
+
standalone datasource to get information required as input to other data sources.
|
|
95
|
+
|
|
96
|
+
## Example Usage
|
|
97
|
+
|
|
98
|
+
<!--Start PulumiCodeChooser -->
|
|
99
|
+
```python
|
|
100
|
+
import pulumi
|
|
101
|
+
import pulumi_vsphere as vsphere
|
|
102
|
+
|
|
103
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
104
|
+
datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
|
|
105
|
+
```
|
|
106
|
+
<!--End PulumiCodeChooser -->
|
|
107
|
+
|
|
108
|
+
A usefull example of this datasource would be to determine the
|
|
109
|
+
datastore with the most free space. For example, in addition to
|
|
110
|
+
the above:
|
|
111
|
+
|
|
112
|
+
Create an `outputs.tf` like that:
|
|
113
|
+
|
|
114
|
+
<!--Start PulumiCodeChooser -->
|
|
115
|
+
```python
|
|
116
|
+
import pulumi
|
|
117
|
+
|
|
118
|
+
pulumi.export("maxFreeSpaceName", local["max_free_space_name"])
|
|
119
|
+
pulumi.export("maxFreeSpace", local["max_free_space"])
|
|
120
|
+
```
|
|
121
|
+
<!--End PulumiCodeChooser -->
|
|
122
|
+
|
|
123
|
+
and a `locals.tf` like that:
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
:param Mapping[str, Any] capacity: A mapping of the capacity for all datastore in the datacenter
|
|
127
|
+
, where the name of the datastore is used as key and the capacity as value.
|
|
128
|
+
:param str datacenter_id: The [managed object reference ID][docs-about-morefs]
|
|
129
|
+
of the datacenter the datastores are located in. For default datacenters, use
|
|
130
|
+
the `id` attribute from an empty `Datacenter` data source.
|
|
131
|
+
|
|
132
|
+
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
133
|
+
:param Mapping[str, Any] free_space: A mapping of the free space for each datastore in the
|
|
134
|
+
datacenter, where the name of the datastore is used as key and the free
|
|
135
|
+
space as value.
|
|
136
|
+
"""
|
|
137
|
+
__args__ = dict()
|
|
138
|
+
__args__['capacity'] = capacity
|
|
139
|
+
__args__['datacenterId'] = datacenter_id
|
|
140
|
+
__args__['freeSpace'] = free_space
|
|
141
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
142
|
+
__ret__ = pulumi.runtime.invoke('vsphere:index/getDatastoreStats:getDatastoreStats', __args__, opts=opts, typ=GetDatastoreStatsResult).value
|
|
143
|
+
|
|
144
|
+
return AwaitableGetDatastoreStatsResult(
|
|
145
|
+
capacity=pulumi.get(__ret__, 'capacity'),
|
|
146
|
+
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
147
|
+
free_space=pulumi.get(__ret__, 'free_space'),
|
|
148
|
+
id=pulumi.get(__ret__, 'id'))
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
@_utilities.lift_output_func(get_datastore_stats)
|
|
152
|
+
def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
|
|
153
|
+
datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
154
|
+
free_space: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
|
|
155
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreStatsResult]:
|
|
156
|
+
"""
|
|
157
|
+
The `get_datastore_stats` data source can be used to retrieve the usage stats
|
|
158
|
+
of all vSphere datastore objects in a datacenter. This can then be used as a
|
|
159
|
+
standalone datasource to get information required as input to other data sources.
|
|
160
|
+
|
|
161
|
+
## Example Usage
|
|
162
|
+
|
|
163
|
+
<!--Start PulumiCodeChooser -->
|
|
164
|
+
```python
|
|
165
|
+
import pulumi
|
|
166
|
+
import pulumi_vsphere as vsphere
|
|
167
|
+
|
|
168
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
169
|
+
datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
|
|
170
|
+
```
|
|
171
|
+
<!--End PulumiCodeChooser -->
|
|
172
|
+
|
|
173
|
+
A usefull example of this datasource would be to determine the
|
|
174
|
+
datastore with the most free space. For example, in addition to
|
|
175
|
+
the above:
|
|
176
|
+
|
|
177
|
+
Create an `outputs.tf` like that:
|
|
178
|
+
|
|
179
|
+
<!--Start PulumiCodeChooser -->
|
|
180
|
+
```python
|
|
181
|
+
import pulumi
|
|
182
|
+
|
|
183
|
+
pulumi.export("maxFreeSpaceName", local["max_free_space_name"])
|
|
184
|
+
pulumi.export("maxFreeSpace", local["max_free_space"])
|
|
185
|
+
```
|
|
186
|
+
<!--End PulumiCodeChooser -->
|
|
187
|
+
|
|
188
|
+
and a `locals.tf` like that:
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
:param Mapping[str, Any] capacity: A mapping of the capacity for all datastore in the datacenter
|
|
192
|
+
, where the name of the datastore is used as key and the capacity as value.
|
|
193
|
+
:param str datacenter_id: The [managed object reference ID][docs-about-morefs]
|
|
194
|
+
of the datacenter the datastores are located in. For default datacenters, use
|
|
195
|
+
the `id` attribute from an empty `Datacenter` data source.
|
|
196
|
+
|
|
197
|
+
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
198
|
+
:param Mapping[str, Any] free_space: A mapping of the free space for each datastore in the
|
|
199
|
+
datacenter, where the name of the datastore is used as key and the free
|
|
200
|
+
space as value.
|
|
201
|
+
"""
|
|
202
|
+
...
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from . import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
'GetHostVgpuProfileResult',
|
|
15
|
+
'AwaitableGetHostVgpuProfileResult',
|
|
16
|
+
'get_host_vgpu_profile',
|
|
17
|
+
'get_host_vgpu_profile_output',
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
@pulumi.output_type
|
|
21
|
+
class GetHostVgpuProfileResult:
|
|
22
|
+
"""
|
|
23
|
+
A collection of values returned by getHostVgpuProfile.
|
|
24
|
+
"""
|
|
25
|
+
def __init__(__self__, host_id=None, id=None, name_regex=None, vgpu_profiles=None):
|
|
26
|
+
if host_id and not isinstance(host_id, str):
|
|
27
|
+
raise TypeError("Expected argument 'host_id' to be a str")
|
|
28
|
+
pulumi.set(__self__, "host_id", host_id)
|
|
29
|
+
if id and not isinstance(id, str):
|
|
30
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
31
|
+
pulumi.set(__self__, "id", id)
|
|
32
|
+
if name_regex and not isinstance(name_regex, str):
|
|
33
|
+
raise TypeError("Expected argument 'name_regex' to be a str")
|
|
34
|
+
pulumi.set(__self__, "name_regex", name_regex)
|
|
35
|
+
if vgpu_profiles and not isinstance(vgpu_profiles, list):
|
|
36
|
+
raise TypeError("Expected argument 'vgpu_profiles' to be a list")
|
|
37
|
+
pulumi.set(__self__, "vgpu_profiles", vgpu_profiles)
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
@pulumi.getter(name="hostId")
|
|
41
|
+
def host_id(self) -> str:
|
|
42
|
+
"""
|
|
43
|
+
The [managed objectID][docs-about-morefs] of the ESXi host.
|
|
44
|
+
"""
|
|
45
|
+
return pulumi.get(self, "host_id")
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
@pulumi.getter
|
|
49
|
+
def id(self) -> str:
|
|
50
|
+
"""
|
|
51
|
+
The provider-assigned unique ID for this managed resource.
|
|
52
|
+
"""
|
|
53
|
+
return pulumi.get(self, "id")
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
@pulumi.getter(name="nameRegex")
|
|
57
|
+
def name_regex(self) -> Optional[str]:
|
|
58
|
+
"""
|
|
59
|
+
(Optional) A regular expression that will be used to match the
|
|
60
|
+
host vGPU profile name.
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "name_regex")
|
|
63
|
+
|
|
64
|
+
@property
|
|
65
|
+
@pulumi.getter(name="vgpuProfiles")
|
|
66
|
+
def vgpu_profiles(self) -> Sequence['outputs.GetHostVgpuProfileVgpuProfileResult']:
|
|
67
|
+
"""
|
|
68
|
+
The list of available vGPU profiles on the ESXi host.
|
|
69
|
+
This may be and empty array if no vGPU profile are identified.
|
|
70
|
+
"""
|
|
71
|
+
return pulumi.get(self, "vgpu_profiles")
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class AwaitableGetHostVgpuProfileResult(GetHostVgpuProfileResult):
|
|
75
|
+
# pylint: disable=using-constant-test
|
|
76
|
+
def __await__(self):
|
|
77
|
+
if False:
|
|
78
|
+
yield self
|
|
79
|
+
return GetHostVgpuProfileResult(
|
|
80
|
+
host_id=self.host_id,
|
|
81
|
+
id=self.id,
|
|
82
|
+
name_regex=self.name_regex,
|
|
83
|
+
vgpu_profiles=self.vgpu_profiles)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def get_host_vgpu_profile(host_id: Optional[str] = None,
|
|
87
|
+
name_regex: Optional[str] = None,
|
|
88
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHostVgpuProfileResult:
|
|
89
|
+
"""
|
|
90
|
+
The `get_host_vgpu_profile` data source can be used to discover the
|
|
91
|
+
available vGPU profiles of a vSphere host.
|
|
92
|
+
|
|
93
|
+
## Example Usage
|
|
94
|
+
|
|
95
|
+
### To Return All VGPU Profiles
|
|
96
|
+
|
|
97
|
+
<!--Start PulumiCodeChooser -->
|
|
98
|
+
```python
|
|
99
|
+
import pulumi
|
|
100
|
+
import pulumi_vsphere as vsphere
|
|
101
|
+
|
|
102
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
103
|
+
host = vsphere.get_host(name="esxi-01.example.com",
|
|
104
|
+
datacenter_id=datacenter.id)
|
|
105
|
+
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id)
|
|
106
|
+
```
|
|
107
|
+
<!--End PulumiCodeChooser -->
|
|
108
|
+
|
|
109
|
+
### With VGPU Profile Name_regex
|
|
110
|
+
|
|
111
|
+
<!--Start PulumiCodeChooser -->
|
|
112
|
+
```python
|
|
113
|
+
import pulumi
|
|
114
|
+
import pulumi_vsphere as vsphere
|
|
115
|
+
|
|
116
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
117
|
+
host = vsphere.get_host(name="esxi-01.example.com",
|
|
118
|
+
datacenter_id=datacenter.id)
|
|
119
|
+
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id,
|
|
120
|
+
name_regex="a100")
|
|
121
|
+
```
|
|
122
|
+
<!--End PulumiCodeChooser -->
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
126
|
+
:param str name_regex: A regular expression that will be used to match the
|
|
127
|
+
host vGPU profile name.
|
|
128
|
+
|
|
129
|
+
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
130
|
+
"""
|
|
131
|
+
__args__ = dict()
|
|
132
|
+
__args__['hostId'] = host_id
|
|
133
|
+
__args__['nameRegex'] = name_regex
|
|
134
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
135
|
+
__ret__ = pulumi.runtime.invoke('vsphere:index/getHostVgpuProfile:getHostVgpuProfile', __args__, opts=opts, typ=GetHostVgpuProfileResult).value
|
|
136
|
+
|
|
137
|
+
return AwaitableGetHostVgpuProfileResult(
|
|
138
|
+
host_id=pulumi.get(__ret__, 'host_id'),
|
|
139
|
+
id=pulumi.get(__ret__, 'id'),
|
|
140
|
+
name_regex=pulumi.get(__ret__, 'name_regex'),
|
|
141
|
+
vgpu_profiles=pulumi.get(__ret__, 'vgpu_profiles'))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
@_utilities.lift_output_func(get_host_vgpu_profile)
|
|
145
|
+
def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
146
|
+
name_regex: Optional[pulumi.Input[Optional[str]]] = None,
|
|
147
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostVgpuProfileResult]:
|
|
148
|
+
"""
|
|
149
|
+
The `get_host_vgpu_profile` data source can be used to discover the
|
|
150
|
+
available vGPU profiles of a vSphere host.
|
|
151
|
+
|
|
152
|
+
## Example Usage
|
|
153
|
+
|
|
154
|
+
### To Return All VGPU Profiles
|
|
155
|
+
|
|
156
|
+
<!--Start PulumiCodeChooser -->
|
|
157
|
+
```python
|
|
158
|
+
import pulumi
|
|
159
|
+
import pulumi_vsphere as vsphere
|
|
160
|
+
|
|
161
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
162
|
+
host = vsphere.get_host(name="esxi-01.example.com",
|
|
163
|
+
datacenter_id=datacenter.id)
|
|
164
|
+
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id)
|
|
165
|
+
```
|
|
166
|
+
<!--End PulumiCodeChooser -->
|
|
167
|
+
|
|
168
|
+
### With VGPU Profile Name_regex
|
|
169
|
+
|
|
170
|
+
<!--Start PulumiCodeChooser -->
|
|
171
|
+
```python
|
|
172
|
+
import pulumi
|
|
173
|
+
import pulumi_vsphere as vsphere
|
|
174
|
+
|
|
175
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
176
|
+
host = vsphere.get_host(name="esxi-01.example.com",
|
|
177
|
+
datacenter_id=datacenter.id)
|
|
178
|
+
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id,
|
|
179
|
+
name_regex="a100")
|
|
180
|
+
```
|
|
181
|
+
<!--End PulumiCodeChooser -->
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
185
|
+
:param str name_regex: A regular expression that will be used to match the
|
|
186
|
+
host vGPU profile name.
|
|
187
|
+
|
|
188
|
+
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
189
|
+
"""
|
|
190
|
+
...
|
|
@@ -23,7 +23,7 @@ class GetVirtualMachineResult:
|
|
|
23
23
|
"""
|
|
24
24
|
A collection of values returned by getVirtualMachine.
|
|
25
25
|
"""
|
|
26
|
-
def __init__(__self__, alternate_guest_name=None, annotation=None, boot_delay=None, boot_retry_delay=None, boot_retry_enabled=None, change_version=None, cpu_hot_add_enabled=None, cpu_hot_remove_enabled=None, cpu_limit=None, cpu_performance_counters_enabled=None, cpu_reservation=None, cpu_share_count=None, cpu_share_level=None, datacenter_id=None, default_ip_address=None, disks=None, efi_secure_boot_enabled=None, enable_disk_uuid=None, enable_logging=None, ept_rvi_mode=None, extra_config=None, extra_config_reboot_required=None, firmware=None, guest_id=None, guest_ip_addresses=None, hardware_version=None, hv_mode=None, id=None, ide_controller_scan_count=None, latency_sensitivity=None, memory=None, memory_hot_add_enabled=None, memory_limit=None, memory_reservation=None, memory_share_count=None, memory_share_level=None, moid=None, name=None, nested_hv_enabled=None, network_interface_types=None, network_interfaces=None, num_cores_per_socket=None, num_cpus=None, replace_trigger=None, run_tools_scripts_after_power_on=None, run_tools_scripts_after_resume=None, run_tools_scripts_before_guest_reboot=None, run_tools_scripts_before_guest_shutdown=None, run_tools_scripts_before_guest_standby=None, sata_controller_scan_count=None, scsi_bus_sharing=None, scsi_controller_scan_count=None, scsi_type=None, storage_policy_id=None, swap_placement_policy=None, sync_time_with_host=None, sync_time_with_host_periodically=None, tools_upgrade_policy=None, uuid=None, vapp=None, vapp_transports=None, vbs_enabled=None, vvtd_enabled=None):
|
|
26
|
+
def __init__(__self__, alternate_guest_name=None, annotation=None, boot_delay=None, boot_retry_delay=None, boot_retry_enabled=None, change_version=None, cpu_hot_add_enabled=None, cpu_hot_remove_enabled=None, cpu_limit=None, cpu_performance_counters_enabled=None, cpu_reservation=None, cpu_share_count=None, cpu_share_level=None, datacenter_id=None, default_ip_address=None, disks=None, efi_secure_boot_enabled=None, enable_disk_uuid=None, enable_logging=None, ept_rvi_mode=None, extra_config=None, extra_config_reboot_required=None, firmware=None, folder=None, guest_id=None, guest_ip_addresses=None, hardware_version=None, hv_mode=None, id=None, ide_controller_scan_count=None, latency_sensitivity=None, memory=None, memory_hot_add_enabled=None, memory_limit=None, memory_reservation=None, memory_reservation_locked_to_max=None, memory_share_count=None, memory_share_level=None, moid=None, name=None, nested_hv_enabled=None, network_interface_types=None, network_interfaces=None, num_cores_per_socket=None, num_cpus=None, replace_trigger=None, run_tools_scripts_after_power_on=None, run_tools_scripts_after_resume=None, run_tools_scripts_before_guest_reboot=None, run_tools_scripts_before_guest_shutdown=None, run_tools_scripts_before_guest_standby=None, sata_controller_scan_count=None, scsi_bus_sharing=None, scsi_controller_scan_count=None, scsi_type=None, storage_policy_id=None, swap_placement_policy=None, sync_time_with_host=None, sync_time_with_host_periodically=None, tools_upgrade_policy=None, uuid=None, vapp=None, vapp_transports=None, vbs_enabled=None, vvtd_enabled=None):
|
|
27
27
|
if alternate_guest_name and not isinstance(alternate_guest_name, str):
|
|
28
28
|
raise TypeError("Expected argument 'alternate_guest_name' to be a str")
|
|
29
29
|
pulumi.set(__self__, "alternate_guest_name", alternate_guest_name)
|
|
@@ -93,6 +93,9 @@ class GetVirtualMachineResult:
|
|
|
93
93
|
if firmware and not isinstance(firmware, str):
|
|
94
94
|
raise TypeError("Expected argument 'firmware' to be a str")
|
|
95
95
|
pulumi.set(__self__, "firmware", firmware)
|
|
96
|
+
if folder and not isinstance(folder, str):
|
|
97
|
+
raise TypeError("Expected argument 'folder' to be a str")
|
|
98
|
+
pulumi.set(__self__, "folder", folder)
|
|
96
99
|
if guest_id and not isinstance(guest_id, str):
|
|
97
100
|
raise TypeError("Expected argument 'guest_id' to be a str")
|
|
98
101
|
pulumi.set(__self__, "guest_id", guest_id)
|
|
@@ -126,6 +129,9 @@ class GetVirtualMachineResult:
|
|
|
126
129
|
if memory_reservation and not isinstance(memory_reservation, int):
|
|
127
130
|
raise TypeError("Expected argument 'memory_reservation' to be a int")
|
|
128
131
|
pulumi.set(__self__, "memory_reservation", memory_reservation)
|
|
132
|
+
if memory_reservation_locked_to_max and not isinstance(memory_reservation_locked_to_max, bool):
|
|
133
|
+
raise TypeError("Expected argument 'memory_reservation_locked_to_max' to be a bool")
|
|
134
|
+
pulumi.set(__self__, "memory_reservation_locked_to_max", memory_reservation_locked_to_max)
|
|
129
135
|
if memory_share_count and not isinstance(memory_share_count, int):
|
|
130
136
|
raise TypeError("Expected argument 'memory_share_count' to be a int")
|
|
131
137
|
pulumi.set(__self__, "memory_share_count", memory_share_count)
|
|
@@ -356,6 +362,11 @@ class GetVirtualMachineResult:
|
|
|
356
362
|
"""
|
|
357
363
|
return pulumi.get(self, "firmware")
|
|
358
364
|
|
|
365
|
+
@property
|
|
366
|
+
@pulumi.getter
|
|
367
|
+
def folder(self) -> Optional[str]:
|
|
368
|
+
return pulumi.get(self, "folder")
|
|
369
|
+
|
|
359
370
|
@property
|
|
360
371
|
@pulumi.getter(name="guestId")
|
|
361
372
|
def guest_id(self) -> str:
|
|
@@ -426,6 +437,11 @@ class GetVirtualMachineResult:
|
|
|
426
437
|
def memory_reservation(self) -> Optional[int]:
|
|
427
438
|
return pulumi.get(self, "memory_reservation")
|
|
428
439
|
|
|
440
|
+
@property
|
|
441
|
+
@pulumi.getter(name="memoryReservationLockedToMax")
|
|
442
|
+
def memory_reservation_locked_to_max(self) -> Optional[bool]:
|
|
443
|
+
return pulumi.get(self, "memory_reservation_locked_to_max")
|
|
444
|
+
|
|
429
445
|
@property
|
|
430
446
|
@pulumi.getter(name="memoryShareCount")
|
|
431
447
|
def memory_share_count(self) -> int:
|
|
@@ -634,6 +650,7 @@ class AwaitableGetVirtualMachineResult(GetVirtualMachineResult):
|
|
|
634
650
|
extra_config=self.extra_config,
|
|
635
651
|
extra_config_reboot_required=self.extra_config_reboot_required,
|
|
636
652
|
firmware=self.firmware,
|
|
653
|
+
folder=self.folder,
|
|
637
654
|
guest_id=self.guest_id,
|
|
638
655
|
guest_ip_addresses=self.guest_ip_addresses,
|
|
639
656
|
hardware_version=self.hardware_version,
|
|
@@ -645,6 +662,7 @@ class AwaitableGetVirtualMachineResult(GetVirtualMachineResult):
|
|
|
645
662
|
memory_hot_add_enabled=self.memory_hot_add_enabled,
|
|
646
663
|
memory_limit=self.memory_limit,
|
|
647
664
|
memory_reservation=self.memory_reservation,
|
|
665
|
+
memory_reservation_locked_to_max=self.memory_reservation_locked_to_max,
|
|
648
666
|
memory_share_count=self.memory_share_count,
|
|
649
667
|
memory_share_level=self.memory_share_level,
|
|
650
668
|
moid=self.moid,
|
|
@@ -696,6 +714,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
696
714
|
extra_config: Optional[Mapping[str, str]] = None,
|
|
697
715
|
extra_config_reboot_required: Optional[bool] = None,
|
|
698
716
|
firmware: Optional[str] = None,
|
|
717
|
+
folder: Optional[str] = None,
|
|
699
718
|
guest_id: Optional[str] = None,
|
|
700
719
|
hardware_version: Optional[int] = None,
|
|
701
720
|
hv_mode: Optional[str] = None,
|
|
@@ -705,6 +724,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
705
724
|
memory_hot_add_enabled: Optional[bool] = None,
|
|
706
725
|
memory_limit: Optional[int] = None,
|
|
707
726
|
memory_reservation: Optional[int] = None,
|
|
727
|
+
memory_reservation_locked_to_max: Optional[bool] = None,
|
|
708
728
|
memory_share_count: Optional[int] = None,
|
|
709
729
|
memory_share_level: Optional[str] = None,
|
|
710
730
|
moid: Optional[str] = None,
|
|
@@ -778,6 +798,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
778
798
|
For default datacenters, use the `id` attribute from an empty
|
|
779
799
|
`Datacenter` data source.
|
|
780
800
|
:param str firmware: The firmware type for this virtual machine. Can be `bios` or `efi`.
|
|
801
|
+
:param str folder: The name of the virtual machine folder where the virtual machine is located. The `name` argument is limited to 80 characters. If the `name` argument includes the full path to the virtual machine and exceeds the 80 characters limit, the `folder` folder argument can be used.
|
|
781
802
|
:param str guest_id: The guest ID of the virtual machine or template.
|
|
782
803
|
:param int hardware_version: The hardware version number on this virtual machine.
|
|
783
804
|
:param int memory: The size of the virtual machine's memory, in MB.
|
|
@@ -819,6 +840,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
819
840
|
__args__['extraConfig'] = extra_config
|
|
820
841
|
__args__['extraConfigRebootRequired'] = extra_config_reboot_required
|
|
821
842
|
__args__['firmware'] = firmware
|
|
843
|
+
__args__['folder'] = folder
|
|
822
844
|
__args__['guestId'] = guest_id
|
|
823
845
|
__args__['hardwareVersion'] = hardware_version
|
|
824
846
|
__args__['hvMode'] = hv_mode
|
|
@@ -828,6 +850,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
828
850
|
__args__['memoryHotAddEnabled'] = memory_hot_add_enabled
|
|
829
851
|
__args__['memoryLimit'] = memory_limit
|
|
830
852
|
__args__['memoryReservation'] = memory_reservation
|
|
853
|
+
__args__['memoryReservationLockedToMax'] = memory_reservation_locked_to_max
|
|
831
854
|
__args__['memoryShareCount'] = memory_share_count
|
|
832
855
|
__args__['memoryShareLevel'] = memory_share_level
|
|
833
856
|
__args__['moid'] = moid
|
|
@@ -879,6 +902,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
879
902
|
extra_config=pulumi.get(__ret__, 'extra_config'),
|
|
880
903
|
extra_config_reboot_required=pulumi.get(__ret__, 'extra_config_reboot_required'),
|
|
881
904
|
firmware=pulumi.get(__ret__, 'firmware'),
|
|
905
|
+
folder=pulumi.get(__ret__, 'folder'),
|
|
882
906
|
guest_id=pulumi.get(__ret__, 'guest_id'),
|
|
883
907
|
guest_ip_addresses=pulumi.get(__ret__, 'guest_ip_addresses'),
|
|
884
908
|
hardware_version=pulumi.get(__ret__, 'hardware_version'),
|
|
@@ -890,6 +914,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
890
914
|
memory_hot_add_enabled=pulumi.get(__ret__, 'memory_hot_add_enabled'),
|
|
891
915
|
memory_limit=pulumi.get(__ret__, 'memory_limit'),
|
|
892
916
|
memory_reservation=pulumi.get(__ret__, 'memory_reservation'),
|
|
917
|
+
memory_reservation_locked_to_max=pulumi.get(__ret__, 'memory_reservation_locked_to_max'),
|
|
893
918
|
memory_share_count=pulumi.get(__ret__, 'memory_share_count'),
|
|
894
919
|
memory_share_level=pulumi.get(__ret__, 'memory_share_level'),
|
|
895
920
|
moid=pulumi.get(__ret__, 'moid'),
|
|
@@ -942,6 +967,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
942
967
|
extra_config: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
|
|
943
968
|
extra_config_reboot_required: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
944
969
|
firmware: Optional[pulumi.Input[Optional[str]]] = None,
|
|
970
|
+
folder: Optional[pulumi.Input[Optional[str]]] = None,
|
|
945
971
|
guest_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
946
972
|
hardware_version: Optional[pulumi.Input[Optional[int]]] = None,
|
|
947
973
|
hv_mode: Optional[pulumi.Input[Optional[str]]] = None,
|
|
@@ -951,6 +977,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
951
977
|
memory_hot_add_enabled: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
952
978
|
memory_limit: Optional[pulumi.Input[Optional[int]]] = None,
|
|
953
979
|
memory_reservation: Optional[pulumi.Input[Optional[int]]] = None,
|
|
980
|
+
memory_reservation_locked_to_max: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
954
981
|
memory_share_count: Optional[pulumi.Input[Optional[int]]] = None,
|
|
955
982
|
memory_share_level: Optional[pulumi.Input[Optional[str]]] = None,
|
|
956
983
|
moid: Optional[pulumi.Input[Optional[str]]] = None,
|
|
@@ -1024,6 +1051,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1024
1051
|
For default datacenters, use the `id` attribute from an empty
|
|
1025
1052
|
`Datacenter` data source.
|
|
1026
1053
|
:param str firmware: The firmware type for this virtual machine. Can be `bios` or `efi`.
|
|
1054
|
+
:param str folder: The name of the virtual machine folder where the virtual machine is located. The `name` argument is limited to 80 characters. If the `name` argument includes the full path to the virtual machine and exceeds the 80 characters limit, the `folder` folder argument can be used.
|
|
1027
1055
|
:param str guest_id: The guest ID of the virtual machine or template.
|
|
1028
1056
|
:param int hardware_version: The hardware version number on this virtual machine.
|
|
1029
1057
|
:param int memory: The size of the virtual machine's memory, in MB.
|