pulumi-vsphere 4.12.0__py3-none-any.whl → 4.12.0a1725645004__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-vsphere might be problematic. Click here for more details.
- pulumi_vsphere/_inputs.py +6 -1135
- pulumi_vsphere/_utilities.py +1 -1
- pulumi_vsphere/compute_cluster.py +2 -181
- pulumi_vsphere/compute_cluster_host_group.py +2 -67
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +2 -29
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +2 -41
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +2 -205
- pulumi_vsphere/compute_cluster_vm_group.py +2 -198
- pulumi_vsphere/compute_cluster_vm_host_rule.py +2 -73
- pulumi_vsphere/config/__init__.pyi +0 -5
- pulumi_vsphere/config/vars.py +0 -5
- pulumi_vsphere/content_library.py +2 -103
- pulumi_vsphere/content_library_item.py +2 -143
- pulumi_vsphere/custom_attribute.py +2 -77
- pulumi_vsphere/datacenter.py +4 -19
- pulumi_vsphere/datastore_cluster.py +2 -63
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +2 -159
- pulumi_vsphere/distributed_port_group.py +2 -285
- pulumi_vsphere/distributed_virtual_switch.py +2 -261
- pulumi_vsphere/dpm_host_override.py +2 -63
- pulumi_vsphere/drs_vm_override.py +2 -67
- pulumi_vsphere/entity_permissions.py +0 -5
- pulumi_vsphere/file.py +0 -5
- pulumi_vsphere/folder.py +2 -141
- pulumi_vsphere/get_compute_cluster.py +4 -15
- pulumi_vsphere/get_compute_cluster_host_group.py +6 -17
- pulumi_vsphere/get_content_library.py +4 -12
- pulumi_vsphere/get_content_library_item.py +4 -16
- pulumi_vsphere/get_custom_attribute.py +4 -13
- pulumi_vsphere/get_datacenter.py +7 -29
- pulumi_vsphere/get_datastore.py +4 -16
- pulumi_vsphere/get_datastore_cluster.py +5 -30
- pulumi_vsphere/get_datastore_stats.py +4 -16
- pulumi_vsphere/get_distributed_virtual_switch.py +4 -15
- pulumi_vsphere/get_dynamic.py +4 -16
- pulumi_vsphere/get_folder.py +4 -12
- pulumi_vsphere/get_guest_os_customization.py +4 -17
- pulumi_vsphere/get_host.py +4 -15
- pulumi_vsphere/get_host_base_images.py +4 -11
- pulumi_vsphere/get_host_pci_device.py +4 -19
- pulumi_vsphere/get_host_thumbprint.py +14 -34
- pulumi_vsphere/get_host_vgpu_profile.py +4 -15
- pulumi_vsphere/get_license.py +4 -17
- pulumi_vsphere/get_network.py +5 -65
- pulumi_vsphere/get_ovf_vm_template.py +4 -55
- pulumi_vsphere/get_policy.py +4 -12
- pulumi_vsphere/get_resource_pool.py +4 -14
- pulumi_vsphere/get_role.py +4 -18
- pulumi_vsphere/get_tag.py +4 -15
- pulumi_vsphere/get_tag_category.py +4 -15
- pulumi_vsphere/get_vapp_container.py +4 -14
- pulumi_vsphere/get_virtual_machine.py +5 -145
- pulumi_vsphere/get_vmfs_disks.py +4 -17
- pulumi_vsphere/guest_os_customization.py +0 -5
- pulumi_vsphere/ha_vm_override.py +2 -163
- pulumi_vsphere/host.py +12 -203
- pulumi_vsphere/host_port_group.py +2 -17
- pulumi_vsphere/host_virtual_switch.py +2 -69
- pulumi_vsphere/license.py +0 -5
- pulumi_vsphere/nas_datastore.py +2 -67
- pulumi_vsphere/offline_software_depot.py +0 -5
- pulumi_vsphere/outputs.py +0 -45
- pulumi_vsphere/provider.py +0 -5
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +437 -168
- pulumi_vsphere/role.py +2 -33
- pulumi_vsphere/storage_drs_vm_override.py +2 -133
- pulumi_vsphere/supervisor.py +0 -5
- pulumi_vsphere/tag.py +2 -159
- pulumi_vsphere/tag_category.py +2 -83
- pulumi_vsphere/vapp_container.py +2 -163
- pulumi_vsphere/vapp_entity.py +2 -147
- pulumi_vsphere/virtual_disk.py +2 -81
- pulumi_vsphere/virtual_machine.py +2 -100
- pulumi_vsphere/virtual_machine_class.py +0 -5
- pulumi_vsphere/virtual_machine_snapshot.py +0 -5
- pulumi_vsphere/vm_storage_policy.py +0 -5
- pulumi_vsphere/vmfs_datastore.py +2 -271
- pulumi_vsphere/vnic.py +4 -19
- {pulumi_vsphere-4.12.0.dist-info → pulumi_vsphere-4.12.0a1725645004.dist-info}/METADATA +2 -3
- pulumi_vsphere-4.12.0a1725645004.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.12.0.dist-info → pulumi_vsphere-4.12.0a1725645004.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.12.0.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.12.0.dist-info → pulumi_vsphere-4.12.0a1725645004.dist-info}/top_level.txt +0 -0
pulumi_vsphere/resource_pool.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
-
if sys.version_info >= (3, 11):
|
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
-
else:
|
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = ['ResourcePoolArgs', 'ResourcePool']
|
|
@@ -36,30 +31,50 @@ class ResourcePoolArgs:
|
|
|
36
31
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
37
32
|
"""
|
|
38
33
|
The set of arguments for constructing a ResourcePool resource.
|
|
39
|
-
:param pulumi.Input[str] parent_resource_pool_id: The
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
:param pulumi.Input[
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
:param pulumi.Input[int]
|
|
48
|
-
|
|
34
|
+
:param pulumi.Input[str] parent_resource_pool_id: The managed object ID
|
|
35
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
36
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
37
|
+
from one parent resource pool to another, both must share a common root
|
|
38
|
+
resource pool.
|
|
39
|
+
:param pulumi.Input[bool] cpu_expandable: Determines if the reservation on a resource
|
|
40
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
41
|
+
unreserved resources. Default: `true`
|
|
42
|
+
:param pulumi.Input[int] cpu_limit: The CPU utilization of a resource pool will not
|
|
43
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
44
|
+
unlimited. Default: `-1`
|
|
45
|
+
:param pulumi.Input[int] cpu_reservation: Amount of CPU (MHz) that is guaranteed
|
|
46
|
+
available to the resource pool. Default: `0`
|
|
47
|
+
:param pulumi.Input[str] cpu_share_level: The CPU allocation level. The level is a
|
|
48
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
49
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
50
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
51
|
+
ignored. Default: `normal`
|
|
52
|
+
:param pulumi.Input[int] cpu_shares: The number of shares allocated for CPU. Used to
|
|
53
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
54
|
+
`cpu_share_level` must be `custom`.
|
|
49
55
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: A list of custom attributes to set on this resource.
|
|
50
|
-
:param pulumi.Input[bool] memory_expandable: Determines if the reservation on a resource
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
:param pulumi.Input[bool] memory_expandable: Determines if the reservation on a resource
|
|
57
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
58
|
+
unreserved resources. Default: `true`
|
|
59
|
+
:param pulumi.Input[int] memory_limit: The CPU utilization of a resource pool will not
|
|
60
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
61
|
+
unlimited. Default: `-1`
|
|
62
|
+
:param pulumi.Input[int] memory_reservation: Amount of CPU (MHz) that is guaranteed
|
|
63
|
+
available to the resource pool. Default: `0`
|
|
64
|
+
:param pulumi.Input[str] memory_share_level: The CPU allocation level. The level is a
|
|
65
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
66
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
67
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
68
|
+
ignored. Default: `normal`
|
|
69
|
+
:param pulumi.Input[int] memory_shares: The number of shares allocated for CPU. Used to
|
|
70
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
71
|
+
`memory_share_level` must be `custom`.
|
|
72
|
+
:param pulumi.Input[str] name: The name of the resource pool.
|
|
73
|
+
:param pulumi.Input[str] scale_descendants_shares: Determines if the shares of all
|
|
74
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
75
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
76
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
77
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
63
78
|
"""
|
|
64
79
|
pulumi.set(__self__, "parent_resource_pool_id", parent_resource_pool_id)
|
|
65
80
|
if cpu_expandable is not None:
|
|
@@ -95,7 +110,11 @@ class ResourcePoolArgs:
|
|
|
95
110
|
@pulumi.getter(name="parentResourcePoolId")
|
|
96
111
|
def parent_resource_pool_id(self) -> pulumi.Input[str]:
|
|
97
112
|
"""
|
|
98
|
-
The
|
|
113
|
+
The managed object ID
|
|
114
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
115
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
116
|
+
from one parent resource pool to another, both must share a common root
|
|
117
|
+
resource pool.
|
|
99
118
|
"""
|
|
100
119
|
return pulumi.get(self, "parent_resource_pool_id")
|
|
101
120
|
|
|
@@ -107,8 +126,9 @@ class ResourcePoolArgs:
|
|
|
107
126
|
@pulumi.getter(name="cpuExpandable")
|
|
108
127
|
def cpu_expandable(self) -> Optional[pulumi.Input[bool]]:
|
|
109
128
|
"""
|
|
110
|
-
Determines if the reservation on a resource
|
|
111
|
-
|
|
129
|
+
Determines if the reservation on a resource
|
|
130
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
131
|
+
unreserved resources. Default: `true`
|
|
112
132
|
"""
|
|
113
133
|
return pulumi.get(self, "cpu_expandable")
|
|
114
134
|
|
|
@@ -120,8 +140,9 @@ class ResourcePoolArgs:
|
|
|
120
140
|
@pulumi.getter(name="cpuLimit")
|
|
121
141
|
def cpu_limit(self) -> Optional[pulumi.Input[int]]:
|
|
122
142
|
"""
|
|
123
|
-
The utilization of a resource pool will not
|
|
124
|
-
|
|
143
|
+
The CPU utilization of a resource pool will not
|
|
144
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
145
|
+
unlimited. Default: `-1`
|
|
125
146
|
"""
|
|
126
147
|
return pulumi.get(self, "cpu_limit")
|
|
127
148
|
|
|
@@ -133,7 +154,8 @@ class ResourcePoolArgs:
|
|
|
133
154
|
@pulumi.getter(name="cpuReservation")
|
|
134
155
|
def cpu_reservation(self) -> Optional[pulumi.Input[int]]:
|
|
135
156
|
"""
|
|
136
|
-
Amount of CPU (MHz) that is guaranteed
|
|
157
|
+
Amount of CPU (MHz) that is guaranteed
|
|
158
|
+
available to the resource pool. Default: `0`
|
|
137
159
|
"""
|
|
138
160
|
return pulumi.get(self, "cpu_reservation")
|
|
139
161
|
|
|
@@ -145,8 +167,11 @@ class ResourcePoolArgs:
|
|
|
145
167
|
@pulumi.getter(name="cpuShareLevel")
|
|
146
168
|
def cpu_share_level(self) -> Optional[pulumi.Input[str]]:
|
|
147
169
|
"""
|
|
148
|
-
The allocation level. The level is a
|
|
149
|
-
shares.
|
|
170
|
+
The CPU allocation level. The level is a
|
|
171
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
172
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
173
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
174
|
+
ignored. Default: `normal`
|
|
150
175
|
"""
|
|
151
176
|
return pulumi.get(self, "cpu_share_level")
|
|
152
177
|
|
|
@@ -158,8 +183,9 @@ class ResourcePoolArgs:
|
|
|
158
183
|
@pulumi.getter(name="cpuShares")
|
|
159
184
|
def cpu_shares(self) -> Optional[pulumi.Input[int]]:
|
|
160
185
|
"""
|
|
161
|
-
The number of shares allocated. Used to
|
|
162
|
-
|
|
186
|
+
The number of shares allocated for CPU. Used to
|
|
187
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
188
|
+
`cpu_share_level` must be `custom`.
|
|
163
189
|
"""
|
|
164
190
|
return pulumi.get(self, "cpu_shares")
|
|
165
191
|
|
|
@@ -183,8 +209,9 @@ class ResourcePoolArgs:
|
|
|
183
209
|
@pulumi.getter(name="memoryExpandable")
|
|
184
210
|
def memory_expandable(self) -> Optional[pulumi.Input[bool]]:
|
|
185
211
|
"""
|
|
186
|
-
Determines if the reservation on a resource
|
|
187
|
-
|
|
212
|
+
Determines if the reservation on a resource
|
|
213
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
214
|
+
unreserved resources. Default: `true`
|
|
188
215
|
"""
|
|
189
216
|
return pulumi.get(self, "memory_expandable")
|
|
190
217
|
|
|
@@ -196,8 +223,9 @@ class ResourcePoolArgs:
|
|
|
196
223
|
@pulumi.getter(name="memoryLimit")
|
|
197
224
|
def memory_limit(self) -> Optional[pulumi.Input[int]]:
|
|
198
225
|
"""
|
|
199
|
-
The utilization of a resource pool will not
|
|
200
|
-
|
|
226
|
+
The CPU utilization of a resource pool will not
|
|
227
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
228
|
+
unlimited. Default: `-1`
|
|
201
229
|
"""
|
|
202
230
|
return pulumi.get(self, "memory_limit")
|
|
203
231
|
|
|
@@ -209,7 +237,8 @@ class ResourcePoolArgs:
|
|
|
209
237
|
@pulumi.getter(name="memoryReservation")
|
|
210
238
|
def memory_reservation(self) -> Optional[pulumi.Input[int]]:
|
|
211
239
|
"""
|
|
212
|
-
Amount of
|
|
240
|
+
Amount of CPU (MHz) that is guaranteed
|
|
241
|
+
available to the resource pool. Default: `0`
|
|
213
242
|
"""
|
|
214
243
|
return pulumi.get(self, "memory_reservation")
|
|
215
244
|
|
|
@@ -221,8 +250,11 @@ class ResourcePoolArgs:
|
|
|
221
250
|
@pulumi.getter(name="memoryShareLevel")
|
|
222
251
|
def memory_share_level(self) -> Optional[pulumi.Input[str]]:
|
|
223
252
|
"""
|
|
224
|
-
The allocation level. The level is a
|
|
225
|
-
shares.
|
|
253
|
+
The CPU allocation level. The level is a
|
|
254
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
255
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
256
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
257
|
+
ignored. Default: `normal`
|
|
226
258
|
"""
|
|
227
259
|
return pulumi.get(self, "memory_share_level")
|
|
228
260
|
|
|
@@ -234,8 +266,9 @@ class ResourcePoolArgs:
|
|
|
234
266
|
@pulumi.getter(name="memoryShares")
|
|
235
267
|
def memory_shares(self) -> Optional[pulumi.Input[int]]:
|
|
236
268
|
"""
|
|
237
|
-
The number of shares allocated. Used to
|
|
238
|
-
|
|
269
|
+
The number of shares allocated for CPU. Used to
|
|
270
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
271
|
+
`memory_share_level` must be `custom`.
|
|
239
272
|
"""
|
|
240
273
|
return pulumi.get(self, "memory_shares")
|
|
241
274
|
|
|
@@ -247,7 +280,7 @@ class ResourcePoolArgs:
|
|
|
247
280
|
@pulumi.getter
|
|
248
281
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
249
282
|
"""
|
|
250
|
-
|
|
283
|
+
The name of the resource pool.
|
|
251
284
|
"""
|
|
252
285
|
return pulumi.get(self, "name")
|
|
253
286
|
|
|
@@ -259,8 +292,10 @@ class ResourcePoolArgs:
|
|
|
259
292
|
@pulumi.getter(name="scaleDescendantsShares")
|
|
260
293
|
def scale_descendants_shares(self) -> Optional[pulumi.Input[str]]:
|
|
261
294
|
"""
|
|
262
|
-
Determines if the shares of all
|
|
263
|
-
pool are scaled up or down
|
|
295
|
+
Determines if the shares of all
|
|
296
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
297
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
298
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
264
299
|
"""
|
|
265
300
|
return pulumi.get(self, "scale_descendants_shares")
|
|
266
301
|
|
|
@@ -272,7 +307,7 @@ class ResourcePoolArgs:
|
|
|
272
307
|
@pulumi.getter
|
|
273
308
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
274
309
|
"""
|
|
275
|
-
|
|
310
|
+
The IDs of any tags to attach to this resource.
|
|
276
311
|
"""
|
|
277
312
|
return pulumi.get(self, "tags")
|
|
278
313
|
|
|
@@ -301,30 +336,50 @@ class _ResourcePoolState:
|
|
|
301
336
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
302
337
|
"""
|
|
303
338
|
Input properties used for looking up and filtering ResourcePool resources.
|
|
304
|
-
:param pulumi.Input[bool] cpu_expandable: Determines if the reservation on a resource
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
339
|
+
:param pulumi.Input[bool] cpu_expandable: Determines if the reservation on a resource
|
|
340
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
341
|
+
unreserved resources. Default: `true`
|
|
342
|
+
:param pulumi.Input[int] cpu_limit: The CPU utilization of a resource pool will not
|
|
343
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
344
|
+
unlimited. Default: `-1`
|
|
345
|
+
:param pulumi.Input[int] cpu_reservation: Amount of CPU (MHz) that is guaranteed
|
|
346
|
+
available to the resource pool. Default: `0`
|
|
347
|
+
:param pulumi.Input[str] cpu_share_level: The CPU allocation level. The level is a
|
|
348
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
349
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
350
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
351
|
+
ignored. Default: `normal`
|
|
352
|
+
:param pulumi.Input[int] cpu_shares: The number of shares allocated for CPU. Used to
|
|
353
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
354
|
+
`cpu_share_level` must be `custom`.
|
|
313
355
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: A list of custom attributes to set on this resource.
|
|
314
|
-
:param pulumi.Input[bool] memory_expandable: Determines if the reservation on a resource
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
:param pulumi.Input[
|
|
356
|
+
:param pulumi.Input[bool] memory_expandable: Determines if the reservation on a resource
|
|
357
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
358
|
+
unreserved resources. Default: `true`
|
|
359
|
+
:param pulumi.Input[int] memory_limit: The CPU utilization of a resource pool will not
|
|
360
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
361
|
+
unlimited. Default: `-1`
|
|
362
|
+
:param pulumi.Input[int] memory_reservation: Amount of CPU (MHz) that is guaranteed
|
|
363
|
+
available to the resource pool. Default: `0`
|
|
364
|
+
:param pulumi.Input[str] memory_share_level: The CPU allocation level. The level is a
|
|
365
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
366
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
367
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
368
|
+
ignored. Default: `normal`
|
|
369
|
+
:param pulumi.Input[int] memory_shares: The number of shares allocated for CPU. Used to
|
|
370
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
371
|
+
`memory_share_level` must be `custom`.
|
|
372
|
+
:param pulumi.Input[str] name: The name of the resource pool.
|
|
373
|
+
:param pulumi.Input[str] parent_resource_pool_id: The managed object ID
|
|
374
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
375
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
376
|
+
from one parent resource pool to another, both must share a common root
|
|
377
|
+
resource pool.
|
|
378
|
+
:param pulumi.Input[str] scale_descendants_shares: Determines if the shares of all
|
|
379
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
380
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
381
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
382
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
328
383
|
"""
|
|
329
384
|
if cpu_expandable is not None:
|
|
330
385
|
pulumi.set(__self__, "cpu_expandable", cpu_expandable)
|
|
@@ -361,8 +416,9 @@ class _ResourcePoolState:
|
|
|
361
416
|
@pulumi.getter(name="cpuExpandable")
|
|
362
417
|
def cpu_expandable(self) -> Optional[pulumi.Input[bool]]:
|
|
363
418
|
"""
|
|
364
|
-
Determines if the reservation on a resource
|
|
365
|
-
|
|
419
|
+
Determines if the reservation on a resource
|
|
420
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
421
|
+
unreserved resources. Default: `true`
|
|
366
422
|
"""
|
|
367
423
|
return pulumi.get(self, "cpu_expandable")
|
|
368
424
|
|
|
@@ -374,8 +430,9 @@ class _ResourcePoolState:
|
|
|
374
430
|
@pulumi.getter(name="cpuLimit")
|
|
375
431
|
def cpu_limit(self) -> Optional[pulumi.Input[int]]:
|
|
376
432
|
"""
|
|
377
|
-
The utilization of a resource pool will not
|
|
378
|
-
|
|
433
|
+
The CPU utilization of a resource pool will not
|
|
434
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
435
|
+
unlimited. Default: `-1`
|
|
379
436
|
"""
|
|
380
437
|
return pulumi.get(self, "cpu_limit")
|
|
381
438
|
|
|
@@ -387,7 +444,8 @@ class _ResourcePoolState:
|
|
|
387
444
|
@pulumi.getter(name="cpuReservation")
|
|
388
445
|
def cpu_reservation(self) -> Optional[pulumi.Input[int]]:
|
|
389
446
|
"""
|
|
390
|
-
Amount of CPU (MHz) that is guaranteed
|
|
447
|
+
Amount of CPU (MHz) that is guaranteed
|
|
448
|
+
available to the resource pool. Default: `0`
|
|
391
449
|
"""
|
|
392
450
|
return pulumi.get(self, "cpu_reservation")
|
|
393
451
|
|
|
@@ -399,8 +457,11 @@ class _ResourcePoolState:
|
|
|
399
457
|
@pulumi.getter(name="cpuShareLevel")
|
|
400
458
|
def cpu_share_level(self) -> Optional[pulumi.Input[str]]:
|
|
401
459
|
"""
|
|
402
|
-
The allocation level. The level is a
|
|
403
|
-
shares.
|
|
460
|
+
The CPU allocation level. The level is a
|
|
461
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
462
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
463
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
464
|
+
ignored. Default: `normal`
|
|
404
465
|
"""
|
|
405
466
|
return pulumi.get(self, "cpu_share_level")
|
|
406
467
|
|
|
@@ -412,8 +473,9 @@ class _ResourcePoolState:
|
|
|
412
473
|
@pulumi.getter(name="cpuShares")
|
|
413
474
|
def cpu_shares(self) -> Optional[pulumi.Input[int]]:
|
|
414
475
|
"""
|
|
415
|
-
The number of shares allocated. Used to
|
|
416
|
-
|
|
476
|
+
The number of shares allocated for CPU. Used to
|
|
477
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
478
|
+
`cpu_share_level` must be `custom`.
|
|
417
479
|
"""
|
|
418
480
|
return pulumi.get(self, "cpu_shares")
|
|
419
481
|
|
|
@@ -437,8 +499,9 @@ class _ResourcePoolState:
|
|
|
437
499
|
@pulumi.getter(name="memoryExpandable")
|
|
438
500
|
def memory_expandable(self) -> Optional[pulumi.Input[bool]]:
|
|
439
501
|
"""
|
|
440
|
-
Determines if the reservation on a resource
|
|
441
|
-
|
|
502
|
+
Determines if the reservation on a resource
|
|
503
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
504
|
+
unreserved resources. Default: `true`
|
|
442
505
|
"""
|
|
443
506
|
return pulumi.get(self, "memory_expandable")
|
|
444
507
|
|
|
@@ -450,8 +513,9 @@ class _ResourcePoolState:
|
|
|
450
513
|
@pulumi.getter(name="memoryLimit")
|
|
451
514
|
def memory_limit(self) -> Optional[pulumi.Input[int]]:
|
|
452
515
|
"""
|
|
453
|
-
The utilization of a resource pool will not
|
|
454
|
-
|
|
516
|
+
The CPU utilization of a resource pool will not
|
|
517
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
518
|
+
unlimited. Default: `-1`
|
|
455
519
|
"""
|
|
456
520
|
return pulumi.get(self, "memory_limit")
|
|
457
521
|
|
|
@@ -463,7 +527,8 @@ class _ResourcePoolState:
|
|
|
463
527
|
@pulumi.getter(name="memoryReservation")
|
|
464
528
|
def memory_reservation(self) -> Optional[pulumi.Input[int]]:
|
|
465
529
|
"""
|
|
466
|
-
Amount of
|
|
530
|
+
Amount of CPU (MHz) that is guaranteed
|
|
531
|
+
available to the resource pool. Default: `0`
|
|
467
532
|
"""
|
|
468
533
|
return pulumi.get(self, "memory_reservation")
|
|
469
534
|
|
|
@@ -475,8 +540,11 @@ class _ResourcePoolState:
|
|
|
475
540
|
@pulumi.getter(name="memoryShareLevel")
|
|
476
541
|
def memory_share_level(self) -> Optional[pulumi.Input[str]]:
|
|
477
542
|
"""
|
|
478
|
-
The allocation level. The level is a
|
|
479
|
-
shares.
|
|
543
|
+
The CPU allocation level. The level is a
|
|
544
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
545
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
546
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
547
|
+
ignored. Default: `normal`
|
|
480
548
|
"""
|
|
481
549
|
return pulumi.get(self, "memory_share_level")
|
|
482
550
|
|
|
@@ -488,8 +556,9 @@ class _ResourcePoolState:
|
|
|
488
556
|
@pulumi.getter(name="memoryShares")
|
|
489
557
|
def memory_shares(self) -> Optional[pulumi.Input[int]]:
|
|
490
558
|
"""
|
|
491
|
-
The number of shares allocated. Used to
|
|
492
|
-
|
|
559
|
+
The number of shares allocated for CPU. Used to
|
|
560
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
561
|
+
`memory_share_level` must be `custom`.
|
|
493
562
|
"""
|
|
494
563
|
return pulumi.get(self, "memory_shares")
|
|
495
564
|
|
|
@@ -501,7 +570,7 @@ class _ResourcePoolState:
|
|
|
501
570
|
@pulumi.getter
|
|
502
571
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
503
572
|
"""
|
|
504
|
-
|
|
573
|
+
The name of the resource pool.
|
|
505
574
|
"""
|
|
506
575
|
return pulumi.get(self, "name")
|
|
507
576
|
|
|
@@ -513,7 +582,11 @@ class _ResourcePoolState:
|
|
|
513
582
|
@pulumi.getter(name="parentResourcePoolId")
|
|
514
583
|
def parent_resource_pool_id(self) -> Optional[pulumi.Input[str]]:
|
|
515
584
|
"""
|
|
516
|
-
The
|
|
585
|
+
The managed object ID
|
|
586
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
587
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
588
|
+
from one parent resource pool to another, both must share a common root
|
|
589
|
+
resource pool.
|
|
517
590
|
"""
|
|
518
591
|
return pulumi.get(self, "parent_resource_pool_id")
|
|
519
592
|
|
|
@@ -525,8 +598,10 @@ class _ResourcePoolState:
|
|
|
525
598
|
@pulumi.getter(name="scaleDescendantsShares")
|
|
526
599
|
def scale_descendants_shares(self) -> Optional[pulumi.Input[str]]:
|
|
527
600
|
"""
|
|
528
|
-
Determines if the shares of all
|
|
529
|
-
pool are scaled up or down
|
|
601
|
+
Determines if the shares of all
|
|
602
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
603
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
604
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
530
605
|
"""
|
|
531
606
|
return pulumi.get(self, "scale_descendants_shares")
|
|
532
607
|
|
|
@@ -538,7 +613,7 @@ class _ResourcePoolState:
|
|
|
538
613
|
@pulumi.getter
|
|
539
614
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
540
615
|
"""
|
|
541
|
-
|
|
616
|
+
The IDs of any tags to attach to this resource.
|
|
542
617
|
"""
|
|
543
618
|
return pulumi.get(self, "tags")
|
|
544
619
|
|
|
@@ -569,33 +644,120 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
569
644
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
570
645
|
__props__=None):
|
|
571
646
|
"""
|
|
572
|
-
|
|
647
|
+
The `ResourcePool` resource can be used to create and manage
|
|
648
|
+
resource pools on DRS-enabled vSphere clusters or standalone ESXi hosts.
|
|
649
|
+
|
|
650
|
+
For more information on vSphere resource pools, please refer to the
|
|
651
|
+
[product documentation][ref-vsphere-resource_pools].
|
|
652
|
+
|
|
653
|
+
[ref-vsphere-resource_pools]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-60077B40-66FF-4625-934A-641703ED7601.html
|
|
654
|
+
|
|
655
|
+
## Example Usage
|
|
656
|
+
|
|
657
|
+
The following example sets up a resource pool in an existing compute cluster
|
|
658
|
+
with the default settings for CPU and memory reservations, shares, and limits.
|
|
659
|
+
|
|
660
|
+
```python
|
|
661
|
+
import pulumi
|
|
662
|
+
import pulumi_vsphere as vsphere
|
|
663
|
+
|
|
664
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
665
|
+
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
666
|
+
datacenter_id=datacenter.id)
|
|
667
|
+
resource_pool = vsphere.ResourcePool("resource_pool",
|
|
668
|
+
name="resource-pool-01",
|
|
669
|
+
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
670
|
+
```
|
|
671
|
+
|
|
672
|
+
A virtual machine resource could be targeted to use the default resource pool
|
|
673
|
+
of the cluster using the following:
|
|
674
|
+
|
|
675
|
+
```python
|
|
676
|
+
import pulumi
|
|
677
|
+
import pulumi_vsphere as vsphere
|
|
678
|
+
|
|
679
|
+
vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["resourcePoolId"])
|
|
680
|
+
```
|
|
681
|
+
|
|
682
|
+
The following example sets up a parent resource pool in an existing compute cluster
|
|
683
|
+
with a child resource pool nested below. Each resource pool is configured with
|
|
684
|
+
the default settings for CPU and memory reservations, shares, and limits.
|
|
685
|
+
|
|
686
|
+
```python
|
|
687
|
+
import pulumi
|
|
688
|
+
import pulumi_vsphere as vsphere
|
|
689
|
+
|
|
690
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
691
|
+
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
692
|
+
datacenter_id=datacenter.id)
|
|
693
|
+
resource_pool_parent = vsphere.ResourcePool("resource_pool_parent",
|
|
694
|
+
name="parent",
|
|
695
|
+
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
696
|
+
resource_pool_child = vsphere.ResourcePool("resource_pool_child",
|
|
697
|
+
name="child",
|
|
698
|
+
parent_resource_pool_id=resource_pool_parent.id)
|
|
699
|
+
```
|
|
700
|
+
|
|
701
|
+
## Importing
|
|
702
|
+
|
|
703
|
+
An existing resource pool can be imported into this resource via
|
|
704
|
+
the path to the resource pool, using the following command:
|
|
705
|
+
|
|
706
|
+
The above would import the resource pool named `resource-pool-01` that is located
|
|
707
|
+
in the compute cluster `cluster-01` in the `dc-01` datacenter.
|
|
708
|
+
|
|
709
|
+
### Settings that Require vSphere 7.0 or higher
|
|
710
|
+
|
|
711
|
+
These settings require vSphere 7.0 or higher:
|
|
712
|
+
|
|
713
|
+
* `scale_descendants_shares`
|
|
714
|
+
|
|
573
715
|
:param str resource_name: The name of the resource.
|
|
574
716
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
575
|
-
:param pulumi.Input[bool] cpu_expandable: Determines if the reservation on a resource
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
717
|
+
:param pulumi.Input[bool] cpu_expandable: Determines if the reservation on a resource
|
|
718
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
719
|
+
unreserved resources. Default: `true`
|
|
720
|
+
:param pulumi.Input[int] cpu_limit: The CPU utilization of a resource pool will not
|
|
721
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
722
|
+
unlimited. Default: `-1`
|
|
723
|
+
:param pulumi.Input[int] cpu_reservation: Amount of CPU (MHz) that is guaranteed
|
|
724
|
+
available to the resource pool. Default: `0`
|
|
725
|
+
:param pulumi.Input[str] cpu_share_level: The CPU allocation level. The level is a
|
|
726
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
727
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
728
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
729
|
+
ignored. Default: `normal`
|
|
730
|
+
:param pulumi.Input[int] cpu_shares: The number of shares allocated for CPU. Used to
|
|
731
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
732
|
+
`cpu_share_level` must be `custom`.
|
|
584
733
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: A list of custom attributes to set on this resource.
|
|
585
|
-
:param pulumi.Input[bool] memory_expandable: Determines if the reservation on a resource
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
:param pulumi.Input[
|
|
734
|
+
:param pulumi.Input[bool] memory_expandable: Determines if the reservation on a resource
|
|
735
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
736
|
+
unreserved resources. Default: `true`
|
|
737
|
+
:param pulumi.Input[int] memory_limit: The CPU utilization of a resource pool will not
|
|
738
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
739
|
+
unlimited. Default: `-1`
|
|
740
|
+
:param pulumi.Input[int] memory_reservation: Amount of CPU (MHz) that is guaranteed
|
|
741
|
+
available to the resource pool. Default: `0`
|
|
742
|
+
:param pulumi.Input[str] memory_share_level: The CPU allocation level. The level is a
|
|
743
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
744
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
745
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
746
|
+
ignored. Default: `normal`
|
|
747
|
+
:param pulumi.Input[int] memory_shares: The number of shares allocated for CPU. Used to
|
|
748
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
749
|
+
`memory_share_level` must be `custom`.
|
|
750
|
+
:param pulumi.Input[str] name: The name of the resource pool.
|
|
751
|
+
:param pulumi.Input[str] parent_resource_pool_id: The managed object ID
|
|
752
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
753
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
754
|
+
from one parent resource pool to another, both must share a common root
|
|
755
|
+
resource pool.
|
|
756
|
+
:param pulumi.Input[str] scale_descendants_shares: Determines if the shares of all
|
|
757
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
758
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
759
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
760
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
599
761
|
"""
|
|
600
762
|
...
|
|
601
763
|
@overload
|
|
@@ -604,7 +766,74 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
604
766
|
args: ResourcePoolArgs,
|
|
605
767
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
606
768
|
"""
|
|
607
|
-
|
|
769
|
+
The `ResourcePool` resource can be used to create and manage
|
|
770
|
+
resource pools on DRS-enabled vSphere clusters or standalone ESXi hosts.
|
|
771
|
+
|
|
772
|
+
For more information on vSphere resource pools, please refer to the
|
|
773
|
+
[product documentation][ref-vsphere-resource_pools].
|
|
774
|
+
|
|
775
|
+
[ref-vsphere-resource_pools]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-60077B40-66FF-4625-934A-641703ED7601.html
|
|
776
|
+
|
|
777
|
+
## Example Usage
|
|
778
|
+
|
|
779
|
+
The following example sets up a resource pool in an existing compute cluster
|
|
780
|
+
with the default settings for CPU and memory reservations, shares, and limits.
|
|
781
|
+
|
|
782
|
+
```python
|
|
783
|
+
import pulumi
|
|
784
|
+
import pulumi_vsphere as vsphere
|
|
785
|
+
|
|
786
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
787
|
+
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
788
|
+
datacenter_id=datacenter.id)
|
|
789
|
+
resource_pool = vsphere.ResourcePool("resource_pool",
|
|
790
|
+
name="resource-pool-01",
|
|
791
|
+
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
792
|
+
```
|
|
793
|
+
|
|
794
|
+
A virtual machine resource could be targeted to use the default resource pool
|
|
795
|
+
of the cluster using the following:
|
|
796
|
+
|
|
797
|
+
```python
|
|
798
|
+
import pulumi
|
|
799
|
+
import pulumi_vsphere as vsphere
|
|
800
|
+
|
|
801
|
+
vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["resourcePoolId"])
|
|
802
|
+
```
|
|
803
|
+
|
|
804
|
+
The following example sets up a parent resource pool in an existing compute cluster
|
|
805
|
+
with a child resource pool nested below. Each resource pool is configured with
|
|
806
|
+
the default settings for CPU and memory reservations, shares, and limits.
|
|
807
|
+
|
|
808
|
+
```python
|
|
809
|
+
import pulumi
|
|
810
|
+
import pulumi_vsphere as vsphere
|
|
811
|
+
|
|
812
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
813
|
+
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
814
|
+
datacenter_id=datacenter.id)
|
|
815
|
+
resource_pool_parent = vsphere.ResourcePool("resource_pool_parent",
|
|
816
|
+
name="parent",
|
|
817
|
+
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
818
|
+
resource_pool_child = vsphere.ResourcePool("resource_pool_child",
|
|
819
|
+
name="child",
|
|
820
|
+
parent_resource_pool_id=resource_pool_parent.id)
|
|
821
|
+
```
|
|
822
|
+
|
|
823
|
+
## Importing
|
|
824
|
+
|
|
825
|
+
An existing resource pool can be imported into this resource via
|
|
826
|
+
the path to the resource pool, using the following command:
|
|
827
|
+
|
|
828
|
+
The above would import the resource pool named `resource-pool-01` that is located
|
|
829
|
+
in the compute cluster `cluster-01` in the `dc-01` datacenter.
|
|
830
|
+
|
|
831
|
+
### Settings that Require vSphere 7.0 or higher
|
|
832
|
+
|
|
833
|
+
These settings require vSphere 7.0 or higher:
|
|
834
|
+
|
|
835
|
+
* `scale_descendants_shares`
|
|
836
|
+
|
|
608
837
|
:param str resource_name: The name of the resource.
|
|
609
838
|
:param ResourcePoolArgs args: The arguments to use to populate this resource's properties.
|
|
610
839
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -693,30 +922,50 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
693
922
|
:param str resource_name: The unique name of the resulting resource.
|
|
694
923
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
695
924
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
696
|
-
:param pulumi.Input[bool] cpu_expandable: Determines if the reservation on a resource
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
925
|
+
:param pulumi.Input[bool] cpu_expandable: Determines if the reservation on a resource
|
|
926
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
927
|
+
unreserved resources. Default: `true`
|
|
928
|
+
:param pulumi.Input[int] cpu_limit: The CPU utilization of a resource pool will not
|
|
929
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
930
|
+
unlimited. Default: `-1`
|
|
931
|
+
:param pulumi.Input[int] cpu_reservation: Amount of CPU (MHz) that is guaranteed
|
|
932
|
+
available to the resource pool. Default: `0`
|
|
933
|
+
:param pulumi.Input[str] cpu_share_level: The CPU allocation level. The level is a
|
|
934
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
935
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
936
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
937
|
+
ignored. Default: `normal`
|
|
938
|
+
:param pulumi.Input[int] cpu_shares: The number of shares allocated for CPU. Used to
|
|
939
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
940
|
+
`cpu_share_level` must be `custom`.
|
|
705
941
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: A list of custom attributes to set on this resource.
|
|
706
|
-
:param pulumi.Input[bool] memory_expandable: Determines if the reservation on a resource
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
:param pulumi.Input[
|
|
942
|
+
:param pulumi.Input[bool] memory_expandable: Determines if the reservation on a resource
|
|
943
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
944
|
+
unreserved resources. Default: `true`
|
|
945
|
+
:param pulumi.Input[int] memory_limit: The CPU utilization of a resource pool will not
|
|
946
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
947
|
+
unlimited. Default: `-1`
|
|
948
|
+
:param pulumi.Input[int] memory_reservation: Amount of CPU (MHz) that is guaranteed
|
|
949
|
+
available to the resource pool. Default: `0`
|
|
950
|
+
:param pulumi.Input[str] memory_share_level: The CPU allocation level. The level is a
|
|
951
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
952
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
953
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
954
|
+
ignored. Default: `normal`
|
|
955
|
+
:param pulumi.Input[int] memory_shares: The number of shares allocated for CPU. Used to
|
|
956
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
957
|
+
`memory_share_level` must be `custom`.
|
|
958
|
+
:param pulumi.Input[str] name: The name of the resource pool.
|
|
959
|
+
:param pulumi.Input[str] parent_resource_pool_id: The managed object ID
|
|
960
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
961
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
962
|
+
from one parent resource pool to another, both must share a common root
|
|
963
|
+
resource pool.
|
|
964
|
+
:param pulumi.Input[str] scale_descendants_shares: Determines if the shares of all
|
|
965
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
966
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
967
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
968
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
720
969
|
"""
|
|
721
970
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
722
971
|
|
|
@@ -743,8 +992,9 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
743
992
|
@pulumi.getter(name="cpuExpandable")
|
|
744
993
|
def cpu_expandable(self) -> pulumi.Output[Optional[bool]]:
|
|
745
994
|
"""
|
|
746
|
-
Determines if the reservation on a resource
|
|
747
|
-
|
|
995
|
+
Determines if the reservation on a resource
|
|
996
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
997
|
+
unreserved resources. Default: `true`
|
|
748
998
|
"""
|
|
749
999
|
return pulumi.get(self, "cpu_expandable")
|
|
750
1000
|
|
|
@@ -752,8 +1002,9 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
752
1002
|
@pulumi.getter(name="cpuLimit")
|
|
753
1003
|
def cpu_limit(self) -> pulumi.Output[Optional[int]]:
|
|
754
1004
|
"""
|
|
755
|
-
The utilization of a resource pool will not
|
|
756
|
-
|
|
1005
|
+
The CPU utilization of a resource pool will not
|
|
1006
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
1007
|
+
unlimited. Default: `-1`
|
|
757
1008
|
"""
|
|
758
1009
|
return pulumi.get(self, "cpu_limit")
|
|
759
1010
|
|
|
@@ -761,7 +1012,8 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
761
1012
|
@pulumi.getter(name="cpuReservation")
|
|
762
1013
|
def cpu_reservation(self) -> pulumi.Output[Optional[int]]:
|
|
763
1014
|
"""
|
|
764
|
-
Amount of CPU (MHz) that is guaranteed
|
|
1015
|
+
Amount of CPU (MHz) that is guaranteed
|
|
1016
|
+
available to the resource pool. Default: `0`
|
|
765
1017
|
"""
|
|
766
1018
|
return pulumi.get(self, "cpu_reservation")
|
|
767
1019
|
|
|
@@ -769,8 +1021,11 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
769
1021
|
@pulumi.getter(name="cpuShareLevel")
|
|
770
1022
|
def cpu_share_level(self) -> pulumi.Output[Optional[str]]:
|
|
771
1023
|
"""
|
|
772
|
-
The allocation level. The level is a
|
|
773
|
-
shares.
|
|
1024
|
+
The CPU allocation level. The level is a
|
|
1025
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
1026
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
1027
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
1028
|
+
ignored. Default: `normal`
|
|
774
1029
|
"""
|
|
775
1030
|
return pulumi.get(self, "cpu_share_level")
|
|
776
1031
|
|
|
@@ -778,8 +1033,9 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
778
1033
|
@pulumi.getter(name="cpuShares")
|
|
779
1034
|
def cpu_shares(self) -> pulumi.Output[int]:
|
|
780
1035
|
"""
|
|
781
|
-
The number of shares allocated. Used to
|
|
782
|
-
|
|
1036
|
+
The number of shares allocated for CPU. Used to
|
|
1037
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
1038
|
+
`cpu_share_level` must be `custom`.
|
|
783
1039
|
"""
|
|
784
1040
|
return pulumi.get(self, "cpu_shares")
|
|
785
1041
|
|
|
@@ -795,8 +1051,9 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
795
1051
|
@pulumi.getter(name="memoryExpandable")
|
|
796
1052
|
def memory_expandable(self) -> pulumi.Output[Optional[bool]]:
|
|
797
1053
|
"""
|
|
798
|
-
Determines if the reservation on a resource
|
|
799
|
-
|
|
1054
|
+
Determines if the reservation on a resource
|
|
1055
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
1056
|
+
unreserved resources. Default: `true`
|
|
800
1057
|
"""
|
|
801
1058
|
return pulumi.get(self, "memory_expandable")
|
|
802
1059
|
|
|
@@ -804,8 +1061,9 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
804
1061
|
@pulumi.getter(name="memoryLimit")
|
|
805
1062
|
def memory_limit(self) -> pulumi.Output[Optional[int]]:
|
|
806
1063
|
"""
|
|
807
|
-
The utilization of a resource pool will not
|
|
808
|
-
|
|
1064
|
+
The CPU utilization of a resource pool will not
|
|
1065
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
1066
|
+
unlimited. Default: `-1`
|
|
809
1067
|
"""
|
|
810
1068
|
return pulumi.get(self, "memory_limit")
|
|
811
1069
|
|
|
@@ -813,7 +1071,8 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
813
1071
|
@pulumi.getter(name="memoryReservation")
|
|
814
1072
|
def memory_reservation(self) -> pulumi.Output[Optional[int]]:
|
|
815
1073
|
"""
|
|
816
|
-
Amount of
|
|
1074
|
+
Amount of CPU (MHz) that is guaranteed
|
|
1075
|
+
available to the resource pool. Default: `0`
|
|
817
1076
|
"""
|
|
818
1077
|
return pulumi.get(self, "memory_reservation")
|
|
819
1078
|
|
|
@@ -821,8 +1080,11 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
821
1080
|
@pulumi.getter(name="memoryShareLevel")
|
|
822
1081
|
def memory_share_level(self) -> pulumi.Output[Optional[str]]:
|
|
823
1082
|
"""
|
|
824
|
-
The allocation level. The level is a
|
|
825
|
-
shares.
|
|
1083
|
+
The CPU allocation level. The level is a
|
|
1084
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
1085
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
1086
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
1087
|
+
ignored. Default: `normal`
|
|
826
1088
|
"""
|
|
827
1089
|
return pulumi.get(self, "memory_share_level")
|
|
828
1090
|
|
|
@@ -830,8 +1092,9 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
830
1092
|
@pulumi.getter(name="memoryShares")
|
|
831
1093
|
def memory_shares(self) -> pulumi.Output[int]:
|
|
832
1094
|
"""
|
|
833
|
-
The number of shares allocated. Used to
|
|
834
|
-
|
|
1095
|
+
The number of shares allocated for CPU. Used to
|
|
1096
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
1097
|
+
`memory_share_level` must be `custom`.
|
|
835
1098
|
"""
|
|
836
1099
|
return pulumi.get(self, "memory_shares")
|
|
837
1100
|
|
|
@@ -839,7 +1102,7 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
839
1102
|
@pulumi.getter
|
|
840
1103
|
def name(self) -> pulumi.Output[str]:
|
|
841
1104
|
"""
|
|
842
|
-
|
|
1105
|
+
The name of the resource pool.
|
|
843
1106
|
"""
|
|
844
1107
|
return pulumi.get(self, "name")
|
|
845
1108
|
|
|
@@ -847,7 +1110,11 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
847
1110
|
@pulumi.getter(name="parentResourcePoolId")
|
|
848
1111
|
def parent_resource_pool_id(self) -> pulumi.Output[str]:
|
|
849
1112
|
"""
|
|
850
|
-
The
|
|
1113
|
+
The managed object ID
|
|
1114
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
1115
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
1116
|
+
from one parent resource pool to another, both must share a common root
|
|
1117
|
+
resource pool.
|
|
851
1118
|
"""
|
|
852
1119
|
return pulumi.get(self, "parent_resource_pool_id")
|
|
853
1120
|
|
|
@@ -855,8 +1122,10 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
855
1122
|
@pulumi.getter(name="scaleDescendantsShares")
|
|
856
1123
|
def scale_descendants_shares(self) -> pulumi.Output[Optional[str]]:
|
|
857
1124
|
"""
|
|
858
|
-
Determines if the shares of all
|
|
859
|
-
pool are scaled up or down
|
|
1125
|
+
Determines if the shares of all
|
|
1126
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
1127
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
1128
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
860
1129
|
"""
|
|
861
1130
|
return pulumi.get(self, "scale_descendants_shares")
|
|
862
1131
|
|
|
@@ -864,7 +1133,7 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
864
1133
|
@pulumi.getter
|
|
865
1134
|
def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
866
1135
|
"""
|
|
867
|
-
|
|
1136
|
+
The IDs of any tags to attach to this resource.
|
|
868
1137
|
"""
|
|
869
1138
|
return pulumi.get(self, "tags")
|
|
870
1139
|
|