pulumi-vsphere 4.10.0a1710160860__py3-none-any.whl → 4.10.0a1710245029__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-vsphere might be problematic. Click here for more details.
- pulumi_vsphere/__init__.py +2 -0
- pulumi_vsphere/get_datastore.py +27 -3
- pulumi_vsphere/get_datastore_stats.py +202 -0
- pulumi_vsphere/get_host_vgpu_profile.py +190 -0
- pulumi_vsphere/get_virtual_machine.py +29 -1
- pulumi_vsphere/outputs.py +71 -0
- pulumi_vsphere/virtual_machine.py +68 -7
- {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/METADATA +1 -1
- {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/RECORD +11 -9
- {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/WHEEL +1 -1
- {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/top_level.txt +0 -0
pulumi_vsphere/__init__.py
CHANGED
|
@@ -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 *
|
pulumi_vsphere/get_datastore.py
CHANGED
|
@@ -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.
|
pulumi_vsphere/outputs.py
CHANGED
|
@@ -45,6 +45,7 @@ __all__ = [
|
|
|
45
45
|
'GetGuestOsCustomizationSpecLinuxOptionResult',
|
|
46
46
|
'GetGuestOsCustomizationSpecNetworkInterfaceResult',
|
|
47
47
|
'GetGuestOsCustomizationSpecWindowsOptionResult',
|
|
48
|
+
'GetHostVgpuProfileVgpuProfileResult',
|
|
48
49
|
'GetVirtualMachineDiskResult',
|
|
49
50
|
'GetVirtualMachineNetworkInterfaceResult',
|
|
50
51
|
'GetVirtualMachineVappResult',
|
|
@@ -3366,6 +3367,76 @@ class GetGuestOsCustomizationSpecWindowsOptionResult(dict):
|
|
|
3366
3367
|
return pulumi.get(self, "domain_admin_password")
|
|
3367
3368
|
|
|
3368
3369
|
|
|
3370
|
+
@pulumi.output_type
|
|
3371
|
+
class GetHostVgpuProfileVgpuProfileResult(dict):
|
|
3372
|
+
def __init__(__self__, *,
|
|
3373
|
+
disk_snapshot_supported: bool,
|
|
3374
|
+
memory_snapshot_supported: bool,
|
|
3375
|
+
migrate_supported: bool,
|
|
3376
|
+
suspend_supported: bool,
|
|
3377
|
+
vgpu: str):
|
|
3378
|
+
"""
|
|
3379
|
+
:param bool disk_snapshot_supported: Indicates whether the GPU plugin on this host is
|
|
3380
|
+
capable of disk-only snapshots when VM is not powered off.
|
|
3381
|
+
:param bool memory_snapshot_supported: Indicates whether the GPU plugin on this host is
|
|
3382
|
+
capable of memory snapshots.
|
|
3383
|
+
:param bool migrate_supported: Indicates whether the GPU plugin on this host is capable
|
|
3384
|
+
of migration.
|
|
3385
|
+
:param bool suspend_supported: Indicates whether the GPU plugin on this host is capable
|
|
3386
|
+
of suspend-resume.
|
|
3387
|
+
:param str vgpu: Name of a particular vGPU available as a shared GPU device (vGPU profile).
|
|
3388
|
+
"""
|
|
3389
|
+
pulumi.set(__self__, "disk_snapshot_supported", disk_snapshot_supported)
|
|
3390
|
+
pulumi.set(__self__, "memory_snapshot_supported", memory_snapshot_supported)
|
|
3391
|
+
pulumi.set(__self__, "migrate_supported", migrate_supported)
|
|
3392
|
+
pulumi.set(__self__, "suspend_supported", suspend_supported)
|
|
3393
|
+
pulumi.set(__self__, "vgpu", vgpu)
|
|
3394
|
+
|
|
3395
|
+
@property
|
|
3396
|
+
@pulumi.getter(name="diskSnapshotSupported")
|
|
3397
|
+
def disk_snapshot_supported(self) -> bool:
|
|
3398
|
+
"""
|
|
3399
|
+
Indicates whether the GPU plugin on this host is
|
|
3400
|
+
capable of disk-only snapshots when VM is not powered off.
|
|
3401
|
+
"""
|
|
3402
|
+
return pulumi.get(self, "disk_snapshot_supported")
|
|
3403
|
+
|
|
3404
|
+
@property
|
|
3405
|
+
@pulumi.getter(name="memorySnapshotSupported")
|
|
3406
|
+
def memory_snapshot_supported(self) -> bool:
|
|
3407
|
+
"""
|
|
3408
|
+
Indicates whether the GPU plugin on this host is
|
|
3409
|
+
capable of memory snapshots.
|
|
3410
|
+
"""
|
|
3411
|
+
return pulumi.get(self, "memory_snapshot_supported")
|
|
3412
|
+
|
|
3413
|
+
@property
|
|
3414
|
+
@pulumi.getter(name="migrateSupported")
|
|
3415
|
+
def migrate_supported(self) -> bool:
|
|
3416
|
+
"""
|
|
3417
|
+
Indicates whether the GPU plugin on this host is capable
|
|
3418
|
+
of migration.
|
|
3419
|
+
"""
|
|
3420
|
+
return pulumi.get(self, "migrate_supported")
|
|
3421
|
+
|
|
3422
|
+
@property
|
|
3423
|
+
@pulumi.getter(name="suspendSupported")
|
|
3424
|
+
def suspend_supported(self) -> bool:
|
|
3425
|
+
"""
|
|
3426
|
+
Indicates whether the GPU plugin on this host is capable
|
|
3427
|
+
of suspend-resume.
|
|
3428
|
+
"""
|
|
3429
|
+
return pulumi.get(self, "suspend_supported")
|
|
3430
|
+
|
|
3431
|
+
@property
|
|
3432
|
+
@pulumi.getter
|
|
3433
|
+
def vgpu(self) -> str:
|
|
3434
|
+
"""
|
|
3435
|
+
Name of a particular vGPU available as a shared GPU device (vGPU profile).
|
|
3436
|
+
"""
|
|
3437
|
+
return pulumi.get(self, "vgpu")
|
|
3438
|
+
|
|
3439
|
+
|
|
3369
3440
|
@pulumi.output_type
|
|
3370
3441
|
class GetVirtualMachineDiskResult(dict):
|
|
3371
3442
|
def __init__(__self__, *,
|
|
@@ -56,6 +56,7 @@ class VirtualMachineArgs:
|
|
|
56
56
|
memory_hot_add_enabled: Optional[pulumi.Input[bool]] = None,
|
|
57
57
|
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
58
58
|
memory_reservation: Optional[pulumi.Input[int]] = None,
|
|
59
|
+
memory_reservation_locked_to_max: Optional[pulumi.Input[bool]] = None,
|
|
59
60
|
memory_share_count: Optional[pulumi.Input[int]] = None,
|
|
60
61
|
memory_share_level: Optional[pulumi.Input[str]] = None,
|
|
61
62
|
migrate_wait_timeout: Optional[pulumi.Input[int]] = None,
|
|
@@ -161,6 +162,9 @@ class VirtualMachineArgs:
|
|
|
161
162
|
[vmware-kb-2008405]: https://kb.vmware.com/s/article/2008405
|
|
162
163
|
:param pulumi.Input[int] memory_limit: The maximum amount of memory (in MB) that th virtual machine can consume, regardless of available resources. The default is no limit.
|
|
163
164
|
:param pulumi.Input[int] memory_reservation: The amount of memory (in MB) that the virtual machine is guaranteed. The default is no reservation.
|
|
165
|
+
:param pulumi.Input[bool] memory_reservation_locked_to_max: If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory
|
|
166
|
+
size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature
|
|
167
|
+
may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
|
|
164
168
|
:param pulumi.Input[int] memory_share_count: The number of memory shares allocated to the virtual machine when the `memory_share_level` is `custom`.
|
|
165
169
|
:param pulumi.Input[str] memory_share_level: The allocation level for the virtual machine memory resources. One of `high`, `low`, `normal`, or `custom`. Default: `custom`.
|
|
166
170
|
:param pulumi.Input[int] migrate_wait_timeout: The amount of time, in minutes, to wait for a virtual machine migration to complete before failing. Default: `10` minutes. See the section on virtual machine migration for more information.
|
|
@@ -193,7 +197,7 @@ class VirtualMachineArgs:
|
|
|
193
197
|
:param pulumi.Input[int] shutdown_wait_timeout: The amount of time, in minutes, to wait for a graceful guest shutdown when making necessary updates to the virtual machine. If `force_power_off` is set to `true`, the virtual machine will be forced to power-off after the timeout, otherwise an error is returned. Default: `3` minutes.
|
|
194
198
|
:param pulumi.Input[str] storage_policy_id: The UUID of the storage policy to assign to the virtual disk.
|
|
195
199
|
:param pulumi.Input[str] swap_placement_policy: The swap file placement policy for the virtual machine. One of `inherit`, `hostLocal`, or `vmDirectory`. Default: `inherit`.
|
|
196
|
-
:param pulumi.Input[bool] sync_time_with_host: Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `
|
|
200
|
+
:param pulumi.Input[bool] sync_time_with_host: Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `true`.
|
|
197
201
|
:param pulumi.Input[bool] sync_time_with_host_periodically: Enable the guest operating system to periodically synchronize its clock with the host. Requires vSphere 7.0 Update 1 and later. On previous versions, setting `sync_time_with_host` is will enable periodic synchronization. Requires VMware Tools to be installed. Default: `false`.
|
|
198
202
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please refer to the `Tag` resource for more information on applying tags to virtual machine resources.
|
|
199
203
|
|
|
@@ -285,6 +289,8 @@ class VirtualMachineArgs:
|
|
|
285
289
|
pulumi.set(__self__, "memory_limit", memory_limit)
|
|
286
290
|
if memory_reservation is not None:
|
|
287
291
|
pulumi.set(__self__, "memory_reservation", memory_reservation)
|
|
292
|
+
if memory_reservation_locked_to_max is not None:
|
|
293
|
+
pulumi.set(__self__, "memory_reservation_locked_to_max", memory_reservation_locked_to_max)
|
|
288
294
|
if memory_share_count is not None:
|
|
289
295
|
pulumi.set(__self__, "memory_share_count", memory_share_count)
|
|
290
296
|
if memory_share_level is not None:
|
|
@@ -863,6 +869,20 @@ class VirtualMachineArgs:
|
|
|
863
869
|
def memory_reservation(self, value: Optional[pulumi.Input[int]]):
|
|
864
870
|
pulumi.set(self, "memory_reservation", value)
|
|
865
871
|
|
|
872
|
+
@property
|
|
873
|
+
@pulumi.getter(name="memoryReservationLockedToMax")
|
|
874
|
+
def memory_reservation_locked_to_max(self) -> Optional[pulumi.Input[bool]]:
|
|
875
|
+
"""
|
|
876
|
+
If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory
|
|
877
|
+
size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature
|
|
878
|
+
may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
|
|
879
|
+
"""
|
|
880
|
+
return pulumi.get(self, "memory_reservation_locked_to_max")
|
|
881
|
+
|
|
882
|
+
@memory_reservation_locked_to_max.setter
|
|
883
|
+
def memory_reservation_locked_to_max(self, value: Optional[pulumi.Input[bool]]):
|
|
884
|
+
pulumi.set(self, "memory_reservation_locked_to_max", value)
|
|
885
|
+
|
|
866
886
|
@property
|
|
867
887
|
@pulumi.getter(name="memoryShareCount")
|
|
868
888
|
def memory_share_count(self) -> Optional[pulumi.Input[int]]:
|
|
@@ -1163,7 +1183,7 @@ class VirtualMachineArgs:
|
|
|
1163
1183
|
@pulumi.getter(name="syncTimeWithHost")
|
|
1164
1184
|
def sync_time_with_host(self) -> Optional[pulumi.Input[bool]]:
|
|
1165
1185
|
"""
|
|
1166
|
-
Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `
|
|
1186
|
+
Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `true`.
|
|
1167
1187
|
"""
|
|
1168
1188
|
return pulumi.get(self, "sync_time_with_host")
|
|
1169
1189
|
|
|
@@ -1328,6 +1348,7 @@ class _VirtualMachineState:
|
|
|
1328
1348
|
memory_hot_add_enabled: Optional[pulumi.Input[bool]] = None,
|
|
1329
1349
|
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
1330
1350
|
memory_reservation: Optional[pulumi.Input[int]] = None,
|
|
1351
|
+
memory_reservation_locked_to_max: Optional[pulumi.Input[bool]] = None,
|
|
1331
1352
|
memory_share_count: Optional[pulumi.Input[int]] = None,
|
|
1332
1353
|
memory_share_level: Optional[pulumi.Input[str]] = None,
|
|
1333
1354
|
migrate_wait_timeout: Optional[pulumi.Input[int]] = None,
|
|
@@ -1442,6 +1463,9 @@ class _VirtualMachineState:
|
|
|
1442
1463
|
[vmware-kb-2008405]: https://kb.vmware.com/s/article/2008405
|
|
1443
1464
|
:param pulumi.Input[int] memory_limit: The maximum amount of memory (in MB) that th virtual machine can consume, regardless of available resources. The default is no limit.
|
|
1444
1465
|
:param pulumi.Input[int] memory_reservation: The amount of memory (in MB) that the virtual machine is guaranteed. The default is no reservation.
|
|
1466
|
+
:param pulumi.Input[bool] memory_reservation_locked_to_max: If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory
|
|
1467
|
+
size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature
|
|
1468
|
+
may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
|
|
1445
1469
|
:param pulumi.Input[int] memory_share_count: The number of memory shares allocated to the virtual machine when the `memory_share_level` is `custom`.
|
|
1446
1470
|
:param pulumi.Input[str] memory_share_level: The allocation level for the virtual machine memory resources. One of `high`, `low`, `normal`, or `custom`. Default: `custom`.
|
|
1447
1471
|
:param pulumi.Input[int] migrate_wait_timeout: The amount of time, in minutes, to wait for a virtual machine migration to complete before failing. Default: `10` minutes. See the section on virtual machine migration for more information.
|
|
@@ -1480,7 +1504,7 @@ class _VirtualMachineState:
|
|
|
1480
1504
|
:param pulumi.Input[int] shutdown_wait_timeout: The amount of time, in minutes, to wait for a graceful guest shutdown when making necessary updates to the virtual machine. If `force_power_off` is set to `true`, the virtual machine will be forced to power-off after the timeout, otherwise an error is returned. Default: `3` minutes.
|
|
1481
1505
|
:param pulumi.Input[str] storage_policy_id: The UUID of the storage policy to assign to the virtual disk.
|
|
1482
1506
|
:param pulumi.Input[str] swap_placement_policy: The swap file placement policy for the virtual machine. One of `inherit`, `hostLocal`, or `vmDirectory`. Default: `inherit`.
|
|
1483
|
-
:param pulumi.Input[bool] sync_time_with_host: Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `
|
|
1507
|
+
:param pulumi.Input[bool] sync_time_with_host: Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `true`.
|
|
1484
1508
|
:param pulumi.Input[bool] sync_time_with_host_periodically: Enable the guest operating system to periodically synchronize its clock with the host. Requires vSphere 7.0 Update 1 and later. On previous versions, setting `sync_time_with_host` is will enable periodic synchronization. Requires VMware Tools to be installed. Default: `false`.
|
|
1485
1509
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please refer to the `Tag` resource for more information on applying tags to virtual machine resources.
|
|
1486
1510
|
|
|
@@ -1583,6 +1607,8 @@ class _VirtualMachineState:
|
|
|
1583
1607
|
pulumi.set(__self__, "memory_limit", memory_limit)
|
|
1584
1608
|
if memory_reservation is not None:
|
|
1585
1609
|
pulumi.set(__self__, "memory_reservation", memory_reservation)
|
|
1610
|
+
if memory_reservation_locked_to_max is not None:
|
|
1611
|
+
pulumi.set(__self__, "memory_reservation_locked_to_max", memory_reservation_locked_to_max)
|
|
1586
1612
|
if memory_share_count is not None:
|
|
1587
1613
|
pulumi.set(__self__, "memory_share_count", memory_share_count)
|
|
1588
1614
|
if memory_share_level is not None:
|
|
@@ -2211,6 +2237,20 @@ class _VirtualMachineState:
|
|
|
2211
2237
|
def memory_reservation(self, value: Optional[pulumi.Input[int]]):
|
|
2212
2238
|
pulumi.set(self, "memory_reservation", value)
|
|
2213
2239
|
|
|
2240
|
+
@property
|
|
2241
|
+
@pulumi.getter(name="memoryReservationLockedToMax")
|
|
2242
|
+
def memory_reservation_locked_to_max(self) -> Optional[pulumi.Input[bool]]:
|
|
2243
|
+
"""
|
|
2244
|
+
If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory
|
|
2245
|
+
size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature
|
|
2246
|
+
may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
|
|
2247
|
+
"""
|
|
2248
|
+
return pulumi.get(self, "memory_reservation_locked_to_max")
|
|
2249
|
+
|
|
2250
|
+
@memory_reservation_locked_to_max.setter
|
|
2251
|
+
def memory_reservation_locked_to_max(self, value: Optional[pulumi.Input[bool]]):
|
|
2252
|
+
pulumi.set(self, "memory_reservation_locked_to_max", value)
|
|
2253
|
+
|
|
2214
2254
|
@property
|
|
2215
2255
|
@pulumi.getter(name="memoryShareCount")
|
|
2216
2256
|
def memory_share_count(self) -> Optional[pulumi.Input[int]]:
|
|
@@ -2561,7 +2601,7 @@ class _VirtualMachineState:
|
|
|
2561
2601
|
@pulumi.getter(name="syncTimeWithHost")
|
|
2562
2602
|
def sync_time_with_host(self) -> Optional[pulumi.Input[bool]]:
|
|
2563
2603
|
"""
|
|
2564
|
-
Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `
|
|
2604
|
+
Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `true`.
|
|
2565
2605
|
"""
|
|
2566
2606
|
return pulumi.get(self, "sync_time_with_host")
|
|
2567
2607
|
|
|
@@ -2772,6 +2812,7 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
2772
2812
|
memory_hot_add_enabled: Optional[pulumi.Input[bool]] = None,
|
|
2773
2813
|
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
2774
2814
|
memory_reservation: Optional[pulumi.Input[int]] = None,
|
|
2815
|
+
memory_reservation_locked_to_max: Optional[pulumi.Input[bool]] = None,
|
|
2775
2816
|
memory_share_count: Optional[pulumi.Input[int]] = None,
|
|
2776
2817
|
memory_share_level: Optional[pulumi.Input[str]] = None,
|
|
2777
2818
|
migrate_wait_timeout: Optional[pulumi.Input[int]] = None,
|
|
@@ -2878,6 +2919,9 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
2878
2919
|
[vmware-kb-2008405]: https://kb.vmware.com/s/article/2008405
|
|
2879
2920
|
:param pulumi.Input[int] memory_limit: The maximum amount of memory (in MB) that th virtual machine can consume, regardless of available resources. The default is no limit.
|
|
2880
2921
|
:param pulumi.Input[int] memory_reservation: The amount of memory (in MB) that the virtual machine is guaranteed. The default is no reservation.
|
|
2922
|
+
:param pulumi.Input[bool] memory_reservation_locked_to_max: If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory
|
|
2923
|
+
size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature
|
|
2924
|
+
may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
|
|
2881
2925
|
:param pulumi.Input[int] memory_share_count: The number of memory shares allocated to the virtual machine when the `memory_share_level` is `custom`.
|
|
2882
2926
|
:param pulumi.Input[str] memory_share_level: The allocation level for the virtual machine memory resources. One of `high`, `low`, `normal`, or `custom`. Default: `custom`.
|
|
2883
2927
|
:param pulumi.Input[int] migrate_wait_timeout: The amount of time, in minutes, to wait for a virtual machine migration to complete before failing. Default: `10` minutes. See the section on virtual machine migration for more information.
|
|
@@ -2913,7 +2957,7 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
2913
2957
|
:param pulumi.Input[int] shutdown_wait_timeout: The amount of time, in minutes, to wait for a graceful guest shutdown when making necessary updates to the virtual machine. If `force_power_off` is set to `true`, the virtual machine will be forced to power-off after the timeout, otherwise an error is returned. Default: `3` minutes.
|
|
2914
2958
|
:param pulumi.Input[str] storage_policy_id: The UUID of the storage policy to assign to the virtual disk.
|
|
2915
2959
|
:param pulumi.Input[str] swap_placement_policy: The swap file placement policy for the virtual machine. One of `inherit`, `hostLocal`, or `vmDirectory`. Default: `inherit`.
|
|
2916
|
-
:param pulumi.Input[bool] sync_time_with_host: Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `
|
|
2960
|
+
:param pulumi.Input[bool] sync_time_with_host: Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `true`.
|
|
2917
2961
|
:param pulumi.Input[bool] sync_time_with_host_periodically: Enable the guest operating system to periodically synchronize its clock with the host. Requires vSphere 7.0 Update 1 and later. On previous versions, setting `sync_time_with_host` is will enable periodic synchronization. Requires VMware Tools to be installed. Default: `false`.
|
|
2918
2962
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please refer to the `Tag` resource for more information on applying tags to virtual machine resources.
|
|
2919
2963
|
|
|
@@ -2988,6 +3032,7 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
2988
3032
|
memory_hot_add_enabled: Optional[pulumi.Input[bool]] = None,
|
|
2989
3033
|
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
2990
3034
|
memory_reservation: Optional[pulumi.Input[int]] = None,
|
|
3035
|
+
memory_reservation_locked_to_max: Optional[pulumi.Input[bool]] = None,
|
|
2991
3036
|
memory_share_count: Optional[pulumi.Input[int]] = None,
|
|
2992
3037
|
memory_share_level: Optional[pulumi.Input[str]] = None,
|
|
2993
3038
|
migrate_wait_timeout: Optional[pulumi.Input[int]] = None,
|
|
@@ -3071,6 +3116,7 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
3071
3116
|
__props__.__dict__["memory_hot_add_enabled"] = memory_hot_add_enabled
|
|
3072
3117
|
__props__.__dict__["memory_limit"] = memory_limit
|
|
3073
3118
|
__props__.__dict__["memory_reservation"] = memory_reservation
|
|
3119
|
+
__props__.__dict__["memory_reservation_locked_to_max"] = memory_reservation_locked_to_max
|
|
3074
3120
|
__props__.__dict__["memory_share_count"] = memory_share_count
|
|
3075
3121
|
__props__.__dict__["memory_share_level"] = memory_share_level
|
|
3076
3122
|
__props__.__dict__["migrate_wait_timeout"] = migrate_wait_timeout
|
|
@@ -3172,6 +3218,7 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
3172
3218
|
memory_hot_add_enabled: Optional[pulumi.Input[bool]] = None,
|
|
3173
3219
|
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
3174
3220
|
memory_reservation: Optional[pulumi.Input[int]] = None,
|
|
3221
|
+
memory_reservation_locked_to_max: Optional[pulumi.Input[bool]] = None,
|
|
3175
3222
|
memory_share_count: Optional[pulumi.Input[int]] = None,
|
|
3176
3223
|
memory_share_level: Optional[pulumi.Input[str]] = None,
|
|
3177
3224
|
migrate_wait_timeout: Optional[pulumi.Input[int]] = None,
|
|
@@ -3291,6 +3338,9 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
3291
3338
|
[vmware-kb-2008405]: https://kb.vmware.com/s/article/2008405
|
|
3292
3339
|
:param pulumi.Input[int] memory_limit: The maximum amount of memory (in MB) that th virtual machine can consume, regardless of available resources. The default is no limit.
|
|
3293
3340
|
:param pulumi.Input[int] memory_reservation: The amount of memory (in MB) that the virtual machine is guaranteed. The default is no reservation.
|
|
3341
|
+
:param pulumi.Input[bool] memory_reservation_locked_to_max: If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory
|
|
3342
|
+
size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature
|
|
3343
|
+
may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
|
|
3294
3344
|
:param pulumi.Input[int] memory_share_count: The number of memory shares allocated to the virtual machine when the `memory_share_level` is `custom`.
|
|
3295
3345
|
:param pulumi.Input[str] memory_share_level: The allocation level for the virtual machine memory resources. One of `high`, `low`, `normal`, or `custom`. Default: `custom`.
|
|
3296
3346
|
:param pulumi.Input[int] migrate_wait_timeout: The amount of time, in minutes, to wait for a virtual machine migration to complete before failing. Default: `10` minutes. See the section on virtual machine migration for more information.
|
|
@@ -3329,7 +3379,7 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
3329
3379
|
:param pulumi.Input[int] shutdown_wait_timeout: The amount of time, in minutes, to wait for a graceful guest shutdown when making necessary updates to the virtual machine. If `force_power_off` is set to `true`, the virtual machine will be forced to power-off after the timeout, otherwise an error is returned. Default: `3` minutes.
|
|
3330
3380
|
:param pulumi.Input[str] storage_policy_id: The UUID of the storage policy to assign to the virtual disk.
|
|
3331
3381
|
:param pulumi.Input[str] swap_placement_policy: The swap file placement policy for the virtual machine. One of `inherit`, `hostLocal`, or `vmDirectory`. Default: `inherit`.
|
|
3332
|
-
:param pulumi.Input[bool] sync_time_with_host: Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `
|
|
3382
|
+
:param pulumi.Input[bool] sync_time_with_host: Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `true`.
|
|
3333
3383
|
:param pulumi.Input[bool] sync_time_with_host_periodically: Enable the guest operating system to periodically synchronize its clock with the host. Requires vSphere 7.0 Update 1 and later. On previous versions, setting `sync_time_with_host` is will enable periodic synchronization. Requires VMware Tools to be installed. Default: `false`.
|
|
3334
3384
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please refer to the `Tag` resource for more information on applying tags to virtual machine resources.
|
|
3335
3385
|
|
|
@@ -3393,6 +3443,7 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
3393
3443
|
__props__.__dict__["memory_hot_add_enabled"] = memory_hot_add_enabled
|
|
3394
3444
|
__props__.__dict__["memory_limit"] = memory_limit
|
|
3395
3445
|
__props__.__dict__["memory_reservation"] = memory_reservation
|
|
3446
|
+
__props__.__dict__["memory_reservation_locked_to_max"] = memory_reservation_locked_to_max
|
|
3396
3447
|
__props__.__dict__["memory_share_count"] = memory_share_count
|
|
3397
3448
|
__props__.__dict__["memory_share_level"] = memory_share_level
|
|
3398
3449
|
__props__.__dict__["migrate_wait_timeout"] = migrate_wait_timeout
|
|
@@ -3808,6 +3859,16 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
3808
3859
|
"""
|
|
3809
3860
|
return pulumi.get(self, "memory_reservation")
|
|
3810
3861
|
|
|
3862
|
+
@property
|
|
3863
|
+
@pulumi.getter(name="memoryReservationLockedToMax")
|
|
3864
|
+
def memory_reservation_locked_to_max(self) -> pulumi.Output[Optional[bool]]:
|
|
3865
|
+
"""
|
|
3866
|
+
If set true, memory resource reservation for this virtual machine will always be equal to the virtual machine's memory
|
|
3867
|
+
size;increases in memory size will be rejected when a corresponding reservation increase is not possible. This feature
|
|
3868
|
+
may only be enabled if it is currently possible to reserve all of the virtual machine's memory.
|
|
3869
|
+
"""
|
|
3870
|
+
return pulumi.get(self, "memory_reservation_locked_to_max")
|
|
3871
|
+
|
|
3811
3872
|
@property
|
|
3812
3873
|
@pulumi.getter(name="memoryShareCount")
|
|
3813
3874
|
def memory_share_count(self) -> pulumi.Output[int]:
|
|
@@ -4046,7 +4107,7 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
4046
4107
|
@pulumi.getter(name="syncTimeWithHost")
|
|
4047
4108
|
def sync_time_with_host(self) -> pulumi.Output[Optional[bool]]:
|
|
4048
4109
|
"""
|
|
4049
|
-
Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `
|
|
4110
|
+
Enable the guest operating system to synchronization its clock with the host when the virtual machine is powered on or resumed. Requires vSphere 7.0 Update 1 and later. Requires VMware Tools to be installed. Default: `true`.
|
|
4050
4111
|
"""
|
|
4051
4112
|
return pulumi.get(self, "sync_time_with_host")
|
|
4052
4113
|
|
{pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/RECORD
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
pulumi_vsphere/__init__.py,sha256=
|
|
1
|
+
pulumi_vsphere/__init__.py,sha256=D0xUdIG9TzexthoPimJXUxoqiIfxr5H0lOHIAJhhsjE,10114
|
|
2
2
|
pulumi_vsphere/_inputs.py,sha256=n7IWt2LMpbsan_Pw5DPlEWWXolg15HOVJQ1dAIgPKGM,136898
|
|
3
3
|
pulumi_vsphere/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
|
|
4
4
|
pulumi_vsphere/compute_cluster.py,sha256=8HJuTuH9JIxCMh2WTG7zT7f6JwUy8qScFsr2S8ozkHg,245818
|
|
@@ -27,8 +27,9 @@ pulumi_vsphere/get_content_library.py,sha256=zaz3CNzLrJLB5rH0D1zQk5Mi_g_LANjeHfH
|
|
|
27
27
|
pulumi_vsphere/get_content_library_item.py,sha256=-yztx7VLc3cyG8nwjZ4iA4QbwvVGgL6K81YHOrYHJ4U,4496
|
|
28
28
|
pulumi_vsphere/get_custom_attribute.py,sha256=KMIPUXKbqrRMzUFgQ91V6A_qwHttMHIaSSof4KOoD9Q,4494
|
|
29
29
|
pulumi_vsphere/get_datacenter.py,sha256=XjgzHmheL3QNXnywVEoJ7dHZqzR2P-_kmJrfx14tX-k,4223
|
|
30
|
-
pulumi_vsphere/get_datastore.py,sha256=
|
|
30
|
+
pulumi_vsphere/get_datastore.py,sha256=paiKxWPfdEyz7Z9yRAe_wcfMVDVeJH59_ezscPg09_s,6119
|
|
31
31
|
pulumi_vsphere/get_datastore_cluster.py,sha256=U108Z7EMqK4Q-7QYzIAuYSLaZQywdA7HVMT417ppC2E,5297
|
|
32
|
+
pulumi_vsphere/get_datastore_stats.py,sha256=O8FhEGF5NT2mlFnNzgU-v3kxqvQjscPCtia-daF4qA4,7917
|
|
32
33
|
pulumi_vsphere/get_distributed_virtual_switch.py,sha256=3Y9Z7qhXnUz60I1WGF3g6UUQu_iwqdmZYumZxM6iFVE,7014
|
|
33
34
|
pulumi_vsphere/get_dynamic.py,sha256=4evdnVACuoARVhytaBkXCPOQTJfAhzU63H1dy2MYYL4,6242
|
|
34
35
|
pulumi_vsphere/get_folder.py,sha256=cZn7YUGiNn6sziSiH1_6v-p9LVLxiiiEwXgUnjR93Qk,3765
|
|
@@ -36,6 +37,7 @@ pulumi_vsphere/get_guest_os_customization.py,sha256=a-hctk_ltCSfcjAgx_IxqQtOCd-d
|
|
|
36
37
|
pulumi_vsphere/get_host.py,sha256=PBTK0McfwvgkKjuBeZbQWESeBrhbeIL1mafQO5Au0kY,5340
|
|
37
38
|
pulumi_vsphere/get_host_pci_device.py,sha256=47KyrlqKw_mnLK3eaVMbmI8bEGqUye0BVh6YGPO_cWI,7898
|
|
38
39
|
pulumi_vsphere/get_host_thumbprint.py,sha256=9UmtSmyhiewNXW-7cifViECzkU6RXUN0aNcbhOKsf5k,5103
|
|
40
|
+
pulumi_vsphere/get_host_vgpu_profile.py,sha256=5LP_PDfY3wXA4zCml3Cz_yANEHPIh0OFoMK9PNJnJhI,6628
|
|
39
41
|
pulumi_vsphere/get_license.py,sha256=2egn7bCzJt6Eul_HWgPTrHpzzfruab3JlPBrNWCWfkc,5398
|
|
40
42
|
pulumi_vsphere/get_network.py,sha256=Cm2IZobXCW_RbyfGJybAqULksx4LUNFg-7oNKEWL0qs,7273
|
|
41
43
|
pulumi_vsphere/get_ovf_vm_template.py,sha256=1C3sBBXBAzpxaZBiv4knADbzSNN7XaV3ItNLwRcFwb4,25791
|
|
@@ -45,7 +47,7 @@ pulumi_vsphere/get_role.py,sha256=ZH7ycfvudtiCgmFZV3fJobeitdyFYCrZ0gmli46rFCs,53
|
|
|
45
47
|
pulumi_vsphere/get_tag.py,sha256=Cf7jDIln9TEHBrjH9AWWUEFreEA9Z2Anm7umdbBWVlA,4956
|
|
46
48
|
pulumi_vsphere/get_tag_category.py,sha256=vB023_5_viINfklL9-KKhvADQKoY8ZDjTTQVgF2w3-Q,5174
|
|
47
49
|
pulumi_vsphere/get_vapp_container.py,sha256=Ae77fQHwunAm8Ab97wEYqjL-ZmdTuyj8yoE57RU6xzs,4613
|
|
48
|
-
pulumi_vsphere/get_virtual_machine.py,sha256=
|
|
50
|
+
pulumi_vsphere/get_virtual_machine.py,sha256=FsY6V0eKMRXr2JBqFtkdyu1nU9PvVmFsLd30FHhMlJc,58811
|
|
49
51
|
pulumi_vsphere/get_vmfs_disks.py,sha256=ItMOx8cK9l12N4Yc4hQb2Ocuk_hCwb4Ql39QX9Tt1HQ,6857
|
|
50
52
|
pulumi_vsphere/guest_os_customization.py,sha256=HB-qrGxduUJH_cUpKyLbnmmV-HOBqJWesV4lWTLdETk,15360
|
|
51
53
|
pulumi_vsphere/ha_vm_override.py,sha256=gGQd5NMeFDznmfLTQvuXuVM5JT_ZAmQRxwuVEDe_FxI,58963
|
|
@@ -54,7 +56,7 @@ pulumi_vsphere/host_port_group.py,sha256=_0k6zNLexAWeaOocfTLZRCWwbsZ5vRbrsceoL1A
|
|
|
54
56
|
pulumi_vsphere/host_virtual_switch.py,sha256=gj2BcglObvCxe4tkIze0OxW2xnGDDOhWKUc2Qbz99eQ,61643
|
|
55
57
|
pulumi_vsphere/license.py,sha256=FUrMgYlPCR74DuWahcgZttso7Q2m9kpoKiTb-6IOWy4,12908
|
|
56
58
|
pulumi_vsphere/nas_datastore.py,sha256=X5PeUipclE4MG0uHS_SlmpaHBrz4jtaLhVEfOybjYQY,48202
|
|
57
|
-
pulumi_vsphere/outputs.py,sha256=
|
|
59
|
+
pulumi_vsphere/outputs.py,sha256=PQWYuK0-fabmFt2L7I7YXrCRJluhu8mvak_KSlGwMJw,151078
|
|
58
60
|
pulumi_vsphere/provider.py,sha256=ljEs3n-BiTMtFb7qqPn6YDZh3M-L5Oq2LAbX1QfV274,20511
|
|
59
61
|
pulumi_vsphere/pulumi-plugin.json,sha256=GPkzWdIfUGLp-CeSzzIZ8ksrThmeZnOYMcpaT3JCpTU,44
|
|
60
62
|
pulumi_vsphere/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -66,7 +68,7 @@ pulumi_vsphere/tag_category.py,sha256=FzqdUOMwmAo7W6Xuw3-CByCbBSmsvkCGXiLRaMUVVQ
|
|
|
66
68
|
pulumi_vsphere/vapp_container.py,sha256=1On1t7PnLEqnQvNIt1XIh9VFu7LaSegyRyDaJf8lQmQ,48255
|
|
67
69
|
pulumi_vsphere/vapp_entity.py,sha256=JePz7OF__e1x7aFp_9I257S61HnDT7gdHsWK-u17nlM,29555
|
|
68
70
|
pulumi_vsphere/virtual_disk.py,sha256=kWAUojQyOg9zFj_sYAjz0O_FtSWmwfDzeCOdTWelNZ0,28723
|
|
69
|
-
pulumi_vsphere/virtual_machine.py,sha256=
|
|
71
|
+
pulumi_vsphere/virtual_machine.py,sha256=VzvF0jXEWx_ROG_t8MiIUJqEaJ4lW29uVimFFCbyxP4,273930
|
|
70
72
|
pulumi_vsphere/virtual_machine_snapshot.py,sha256=G8-3jJEsViVYhF4v4LSfWSw1ajq3AdaSloMO1rseyww,24082
|
|
71
73
|
pulumi_vsphere/vm_storage_policy.py,sha256=MzAcDxZfj6p25LFT6sS-zho9i_uDXlU6uytttWQyJkg,21426
|
|
72
74
|
pulumi_vsphere/vmfs_datastore.py,sha256=gNhmetE0wMDKMEM_ImATFpnTJhqMEPd0q8eOgqpedr0,34596
|
|
@@ -74,7 +76,7 @@ pulumi_vsphere/vnic.py,sha256=upByAXkmwaA7U9VYF2huy2yntN2creeBaFvIoRfee_o,30855
|
|
|
74
76
|
pulumi_vsphere/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
|
|
75
77
|
pulumi_vsphere/config/__init__.pyi,sha256=ZO6ktIIpO1bKQNe2__l8JqDti_ZKgnRvHTcXcRWzb0M,1351
|
|
76
78
|
pulumi_vsphere/config/vars.py,sha256=fcurb1Hwqp3evWnRD4s2t--MUjqR9R11nIm04F1UMW0,3210
|
|
77
|
-
pulumi_vsphere-4.10.
|
|
78
|
-
pulumi_vsphere-4.10.
|
|
79
|
-
pulumi_vsphere-4.10.
|
|
80
|
-
pulumi_vsphere-4.10.
|
|
79
|
+
pulumi_vsphere-4.10.0a1710245029.dist-info/METADATA,sha256=3RNEnksv0PgFg176Gk8du4214EXWfAXO6cUnmnGZ9lg,4958
|
|
80
|
+
pulumi_vsphere-4.10.0a1710245029.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
81
|
+
pulumi_vsphere-4.10.0a1710245029.dist-info/top_level.txt,sha256=00BIE8zaYtdsw0_tBfXR8E5sTs3lRnwlcZ6lUdu4loI,15
|
|
82
|
+
pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD,,
|
|
File without changes
|