pulumi-vsphere 4.14.0a1739946909__py3-none-any.whl → 4.17.0a1763710194__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 +12 -1
- pulumi_vsphere/_inputs.py +1172 -1172
- pulumi_vsphere/_utilities.py +1 -1
- pulumi_vsphere/compute_cluster.py +1226 -1484
- pulumi_vsphere/compute_cluster_host_group.py +124 -53
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +88 -87
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +92 -87
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +109 -104
- pulumi_vsphere/compute_cluster_vm_group.py +58 -53
- pulumi_vsphere/compute_cluster_vm_host_rule.py +126 -121
- pulumi_vsphere/config/__init__.py +2 -1
- pulumi_vsphere/config/__init__.pyi +2 -2
- pulumi_vsphere/config/vars.py +15 -15
- pulumi_vsphere/configuration_profile.py +286 -0
- pulumi_vsphere/content_library.py +64 -59
- pulumi_vsphere/content_library_item.py +109 -104
- pulumi_vsphere/custom_attribute.py +41 -36
- pulumi_vsphere/datacenter.py +80 -79
- pulumi_vsphere/datastore_cluster.py +531 -477
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +92 -87
- pulumi_vsphere/distributed_port_group.py +802 -818
- pulumi_vsphere/distributed_virtual_switch.py +1590 -1620
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +71 -70
- pulumi_vsphere/dpm_host_override.py +159 -70
- pulumi_vsphere/drs_vm_override.py +75 -70
- pulumi_vsphere/entity_permissions.py +40 -39
- pulumi_vsphere/file.py +148 -162
- pulumi_vsphere/folder.py +104 -99
- pulumi_vsphere/get_compute_cluster.py +18 -18
- pulumi_vsphere/get_compute_cluster_host_group.py +18 -22
- pulumi_vsphere/get_configuration_profile.py +145 -0
- pulumi_vsphere/get_content_library.py +10 -10
- pulumi_vsphere/get_content_library_item.py +22 -22
- pulumi_vsphere/get_custom_attribute.py +12 -12
- pulumi_vsphere/get_datacenter.py +12 -12
- pulumi_vsphere/get_datastore.py +22 -22
- pulumi_vsphere/get_datastore_cluster.py +19 -19
- pulumi_vsphere/get_datastore_stats.py +22 -26
- pulumi_vsphere/get_distributed_virtual_switch.py +18 -18
- pulumi_vsphere/get_dynamic.py +22 -26
- pulumi_vsphere/get_folder.py +140 -18
- pulumi_vsphere/get_guest_os_customization.py +74 -21
- pulumi_vsphere/get_host.py +18 -18
- pulumi_vsphere/get_host_base_images.py +6 -6
- pulumi_vsphere/get_host_pci_device.py +30 -30
- pulumi_vsphere/get_host_thumbprint.py +22 -22
- pulumi_vsphere/get_host_vgpu_profile.py +17 -17
- pulumi_vsphere/get_license.py +26 -24
- pulumi_vsphere/get_network.py +80 -29
- pulumi_vsphere/get_ovf_vm_template.py +126 -126
- pulumi_vsphere/get_policy.py +10 -10
- pulumi_vsphere/get_resource_pool.py +77 -26
- pulumi_vsphere/get_role.py +26 -26
- pulumi_vsphere/get_tag.py +18 -18
- pulumi_vsphere/get_tag_category.py +16 -16
- pulumi_vsphere/get_vapp_container.py +16 -16
- pulumi_vsphere/get_virtual_machine.py +273 -273
- pulumi_vsphere/get_vmfs_disks.py +24 -24
- pulumi_vsphere/guest_os_customization.py +75 -74
- pulumi_vsphere/ha_vm_override.py +295 -374
- pulumi_vsphere/host.py +304 -249
- pulumi_vsphere/host_port_group.py +321 -341
- pulumi_vsphere/host_virtual_switch.py +373 -389
- pulumi_vsphere/license.py +125 -84
- pulumi_vsphere/nas_datastore.py +324 -261
- pulumi_vsphere/offline_software_depot.py +26 -21
- pulumi_vsphere/outputs.py +1003 -970
- pulumi_vsphere/provider.py +165 -146
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +691 -364
- pulumi_vsphere/role.py +46 -45
- pulumi_vsphere/storage_drs_vm_override.py +92 -87
- pulumi_vsphere/supervisor.py +210 -209
- pulumi_vsphere/tag.py +58 -53
- pulumi_vsphere/tag_category.py +75 -70
- pulumi_vsphere/vapp_container.py +262 -257
- pulumi_vsphere/vapp_entity.py +177 -172
- pulumi_vsphere/virtual_disk.py +130 -125
- pulumi_vsphere/virtual_machine.py +1339 -1443
- pulumi_vsphere/virtual_machine_class.py +109 -108
- pulumi_vsphere/virtual_machine_snapshot.py +122 -121
- pulumi_vsphere/vm_storage_policy.py +40 -39
- pulumi_vsphere/vmfs_datastore.py +189 -184
- pulumi_vsphere/vnic.py +145 -144
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +4 -4
- pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.14.0a1739946909.dist-info/RECORD +0 -87
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
pulumi_vsphere/resource_pool.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -19,47 +19,67 @@ __all__ = ['ResourcePoolArgs', 'ResourcePool']
|
|
|
19
19
|
@pulumi.input_type
|
|
20
20
|
class ResourcePoolArgs:
|
|
21
21
|
def __init__(__self__, *,
|
|
22
|
-
parent_resource_pool_id: pulumi.Input[str],
|
|
23
|
-
cpu_expandable: Optional[pulumi.Input[bool]] = None,
|
|
24
|
-
cpu_limit: Optional[pulumi.Input[int]] = None,
|
|
25
|
-
cpu_reservation: Optional[pulumi.Input[int]] = None,
|
|
26
|
-
cpu_share_level: Optional[pulumi.Input[str]] = None,
|
|
27
|
-
cpu_shares: Optional[pulumi.Input[int]] = None,
|
|
28
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
29
|
-
memory_expandable: Optional[pulumi.Input[bool]] = None,
|
|
30
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
31
|
-
memory_reservation: Optional[pulumi.Input[int]] = None,
|
|
32
|
-
memory_share_level: Optional[pulumi.Input[str]] = None,
|
|
33
|
-
memory_shares: Optional[pulumi.Input[int]] = None,
|
|
34
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
35
|
-
scale_descendants_shares: Optional[pulumi.Input[str]] = None,
|
|
36
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
22
|
+
parent_resource_pool_id: pulumi.Input[_builtins.str],
|
|
23
|
+
cpu_expandable: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
24
|
+
cpu_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
25
|
+
cpu_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
26
|
+
cpu_share_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
|
+
cpu_shares: Optional[pulumi.Input[_builtins.int]] = None,
|
|
28
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
29
|
+
memory_expandable: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
30
|
+
memory_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
31
|
+
memory_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
32
|
+
memory_share_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
33
|
+
memory_shares: Optional[pulumi.Input[_builtins.int]] = None,
|
|
34
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
35
|
+
scale_descendants_shares: Optional[pulumi.Input[_builtins.str]] = None,
|
|
36
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
37
37
|
"""
|
|
38
38
|
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
|
-
|
|
49
|
-
|
|
50
|
-
:param pulumi.Input[
|
|
51
|
-
|
|
52
|
-
:param pulumi.Input[
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
:param pulumi.Input[int]
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
:param pulumi.Input[str]
|
|
61
|
-
|
|
62
|
-
|
|
39
|
+
:param pulumi.Input[_builtins.str] parent_resource_pool_id: The managed object ID
|
|
40
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
41
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
42
|
+
from one parent resource pool to another, both must share a common root
|
|
43
|
+
resource pool.
|
|
44
|
+
:param pulumi.Input[_builtins.bool] cpu_expandable: Determines if the reservation on a resource
|
|
45
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
46
|
+
unreserved resources. Default: `true`
|
|
47
|
+
:param pulumi.Input[_builtins.int] cpu_limit: The CPU utilization of a resource pool will not
|
|
48
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
49
|
+
unlimited. Default: `-1`
|
|
50
|
+
:param pulumi.Input[_builtins.int] cpu_reservation: Amount of CPU (MHz) that is guaranteed
|
|
51
|
+
available to the resource pool. Default: `0`
|
|
52
|
+
:param pulumi.Input[_builtins.str] cpu_share_level: The CPU allocation level. The level is a
|
|
53
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
54
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
55
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
56
|
+
ignored. Default: `normal`
|
|
57
|
+
:param pulumi.Input[_builtins.int] cpu_shares: The number of shares allocated for CPU. Used to
|
|
58
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
59
|
+
`cpu_share_level` must be `custom`.
|
|
60
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: A list of custom attributes to set on this resource.
|
|
61
|
+
:param pulumi.Input[_builtins.bool] memory_expandable: Determines if the reservation on a resource
|
|
62
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
63
|
+
unreserved resources. Default: `true`
|
|
64
|
+
:param pulumi.Input[_builtins.int] memory_limit: The CPU utilization of a resource pool will not
|
|
65
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
66
|
+
unlimited. Default: `-1`
|
|
67
|
+
:param pulumi.Input[_builtins.int] memory_reservation: Amount of CPU (MHz) that is guaranteed
|
|
68
|
+
available to the resource pool. Default: `0`
|
|
69
|
+
:param pulumi.Input[_builtins.str] memory_share_level: The CPU allocation level. The level is a
|
|
70
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
71
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
72
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
73
|
+
ignored. Default: `normal`
|
|
74
|
+
:param pulumi.Input[_builtins.int] memory_shares: The number of shares allocated for CPU. Used to
|
|
75
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
76
|
+
`memory_share_level` must be `custom`.
|
|
77
|
+
:param pulumi.Input[_builtins.str] name: The name of the resource pool.
|
|
78
|
+
:param pulumi.Input[_builtins.str] scale_descendants_shares: Determines if the shares of all
|
|
79
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
80
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
81
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
82
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
63
83
|
"""
|
|
64
84
|
pulumi.set(__self__, "parent_resource_pool_id", parent_resource_pool_id)
|
|
65
85
|
if cpu_expandable is not None:
|
|
@@ -91,240 +111,280 @@ class ResourcePoolArgs:
|
|
|
91
111
|
if tags is not None:
|
|
92
112
|
pulumi.set(__self__, "tags", tags)
|
|
93
113
|
|
|
94
|
-
@property
|
|
114
|
+
@_builtins.property
|
|
95
115
|
@pulumi.getter(name="parentResourcePoolId")
|
|
96
|
-
def parent_resource_pool_id(self) -> pulumi.Input[str]:
|
|
116
|
+
def parent_resource_pool_id(self) -> pulumi.Input[_builtins.str]:
|
|
97
117
|
"""
|
|
98
|
-
The
|
|
118
|
+
The managed object ID
|
|
119
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
120
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
121
|
+
from one parent resource pool to another, both must share a common root
|
|
122
|
+
resource pool.
|
|
99
123
|
"""
|
|
100
124
|
return pulumi.get(self, "parent_resource_pool_id")
|
|
101
125
|
|
|
102
126
|
@parent_resource_pool_id.setter
|
|
103
|
-
def parent_resource_pool_id(self, value: pulumi.Input[str]):
|
|
127
|
+
def parent_resource_pool_id(self, value: pulumi.Input[_builtins.str]):
|
|
104
128
|
pulumi.set(self, "parent_resource_pool_id", value)
|
|
105
129
|
|
|
106
|
-
@property
|
|
130
|
+
@_builtins.property
|
|
107
131
|
@pulumi.getter(name="cpuExpandable")
|
|
108
|
-
def cpu_expandable(self) -> Optional[pulumi.Input[bool]]:
|
|
132
|
+
def cpu_expandable(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
109
133
|
"""
|
|
110
|
-
Determines if the reservation on a resource
|
|
111
|
-
|
|
134
|
+
Determines if the reservation on a resource
|
|
135
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
136
|
+
unreserved resources. Default: `true`
|
|
112
137
|
"""
|
|
113
138
|
return pulumi.get(self, "cpu_expandable")
|
|
114
139
|
|
|
115
140
|
@cpu_expandable.setter
|
|
116
|
-
def cpu_expandable(self, value: Optional[pulumi.Input[bool]]):
|
|
141
|
+
def cpu_expandable(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
117
142
|
pulumi.set(self, "cpu_expandable", value)
|
|
118
143
|
|
|
119
|
-
@property
|
|
144
|
+
@_builtins.property
|
|
120
145
|
@pulumi.getter(name="cpuLimit")
|
|
121
|
-
def cpu_limit(self) -> Optional[pulumi.Input[int]]:
|
|
146
|
+
def cpu_limit(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
122
147
|
"""
|
|
123
|
-
The utilization of a resource pool will not
|
|
124
|
-
|
|
148
|
+
The CPU utilization of a resource pool will not
|
|
149
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
150
|
+
unlimited. Default: `-1`
|
|
125
151
|
"""
|
|
126
152
|
return pulumi.get(self, "cpu_limit")
|
|
127
153
|
|
|
128
154
|
@cpu_limit.setter
|
|
129
|
-
def cpu_limit(self, value: Optional[pulumi.Input[int]]):
|
|
155
|
+
def cpu_limit(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
130
156
|
pulumi.set(self, "cpu_limit", value)
|
|
131
157
|
|
|
132
|
-
@property
|
|
158
|
+
@_builtins.property
|
|
133
159
|
@pulumi.getter(name="cpuReservation")
|
|
134
|
-
def cpu_reservation(self) -> Optional[pulumi.Input[int]]:
|
|
160
|
+
def cpu_reservation(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
135
161
|
"""
|
|
136
|
-
Amount of CPU (MHz) that is guaranteed
|
|
162
|
+
Amount of CPU (MHz) that is guaranteed
|
|
163
|
+
available to the resource pool. Default: `0`
|
|
137
164
|
"""
|
|
138
165
|
return pulumi.get(self, "cpu_reservation")
|
|
139
166
|
|
|
140
167
|
@cpu_reservation.setter
|
|
141
|
-
def cpu_reservation(self, value: Optional[pulumi.Input[int]]):
|
|
168
|
+
def cpu_reservation(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
142
169
|
pulumi.set(self, "cpu_reservation", value)
|
|
143
170
|
|
|
144
|
-
@property
|
|
171
|
+
@_builtins.property
|
|
145
172
|
@pulumi.getter(name="cpuShareLevel")
|
|
146
|
-
def cpu_share_level(self) -> Optional[pulumi.Input[str]]:
|
|
173
|
+
def cpu_share_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
147
174
|
"""
|
|
148
|
-
The allocation level. The level is a
|
|
149
|
-
shares.
|
|
175
|
+
The CPU allocation level. The level is a
|
|
176
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
177
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
178
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
179
|
+
ignored. Default: `normal`
|
|
150
180
|
"""
|
|
151
181
|
return pulumi.get(self, "cpu_share_level")
|
|
152
182
|
|
|
153
183
|
@cpu_share_level.setter
|
|
154
|
-
def cpu_share_level(self, value: Optional[pulumi.Input[str]]):
|
|
184
|
+
def cpu_share_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
155
185
|
pulumi.set(self, "cpu_share_level", value)
|
|
156
186
|
|
|
157
|
-
@property
|
|
187
|
+
@_builtins.property
|
|
158
188
|
@pulumi.getter(name="cpuShares")
|
|
159
|
-
def cpu_shares(self) -> Optional[pulumi.Input[int]]:
|
|
189
|
+
def cpu_shares(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
160
190
|
"""
|
|
161
|
-
The number of shares allocated. Used to
|
|
162
|
-
|
|
191
|
+
The number of shares allocated for CPU. Used to
|
|
192
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
193
|
+
`cpu_share_level` must be `custom`.
|
|
163
194
|
"""
|
|
164
195
|
return pulumi.get(self, "cpu_shares")
|
|
165
196
|
|
|
166
197
|
@cpu_shares.setter
|
|
167
|
-
def cpu_shares(self, value: Optional[pulumi.Input[int]]):
|
|
198
|
+
def cpu_shares(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
168
199
|
pulumi.set(self, "cpu_shares", value)
|
|
169
200
|
|
|
170
|
-
@property
|
|
201
|
+
@_builtins.property
|
|
171
202
|
@pulumi.getter(name="customAttributes")
|
|
172
|
-
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
203
|
+
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
173
204
|
"""
|
|
174
205
|
A list of custom attributes to set on this resource.
|
|
175
206
|
"""
|
|
176
207
|
return pulumi.get(self, "custom_attributes")
|
|
177
208
|
|
|
178
209
|
@custom_attributes.setter
|
|
179
|
-
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
210
|
+
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
180
211
|
pulumi.set(self, "custom_attributes", value)
|
|
181
212
|
|
|
182
|
-
@property
|
|
213
|
+
@_builtins.property
|
|
183
214
|
@pulumi.getter(name="memoryExpandable")
|
|
184
|
-
def memory_expandable(self) -> Optional[pulumi.Input[bool]]:
|
|
215
|
+
def memory_expandable(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
185
216
|
"""
|
|
186
|
-
Determines if the reservation on a resource
|
|
187
|
-
|
|
217
|
+
Determines if the reservation on a resource
|
|
218
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
219
|
+
unreserved resources. Default: `true`
|
|
188
220
|
"""
|
|
189
221
|
return pulumi.get(self, "memory_expandable")
|
|
190
222
|
|
|
191
223
|
@memory_expandable.setter
|
|
192
|
-
def memory_expandable(self, value: Optional[pulumi.Input[bool]]):
|
|
224
|
+
def memory_expandable(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
193
225
|
pulumi.set(self, "memory_expandable", value)
|
|
194
226
|
|
|
195
|
-
@property
|
|
227
|
+
@_builtins.property
|
|
196
228
|
@pulumi.getter(name="memoryLimit")
|
|
197
|
-
def memory_limit(self) -> Optional[pulumi.Input[int]]:
|
|
229
|
+
def memory_limit(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
198
230
|
"""
|
|
199
|
-
The utilization of a resource pool will not
|
|
200
|
-
|
|
231
|
+
The CPU utilization of a resource pool will not
|
|
232
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
233
|
+
unlimited. Default: `-1`
|
|
201
234
|
"""
|
|
202
235
|
return pulumi.get(self, "memory_limit")
|
|
203
236
|
|
|
204
237
|
@memory_limit.setter
|
|
205
|
-
def memory_limit(self, value: Optional[pulumi.Input[int]]):
|
|
238
|
+
def memory_limit(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
206
239
|
pulumi.set(self, "memory_limit", value)
|
|
207
240
|
|
|
208
|
-
@property
|
|
241
|
+
@_builtins.property
|
|
209
242
|
@pulumi.getter(name="memoryReservation")
|
|
210
|
-
def memory_reservation(self) -> Optional[pulumi.Input[int]]:
|
|
243
|
+
def memory_reservation(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
211
244
|
"""
|
|
212
|
-
Amount of
|
|
245
|
+
Amount of CPU (MHz) that is guaranteed
|
|
246
|
+
available to the resource pool. Default: `0`
|
|
213
247
|
"""
|
|
214
248
|
return pulumi.get(self, "memory_reservation")
|
|
215
249
|
|
|
216
250
|
@memory_reservation.setter
|
|
217
|
-
def memory_reservation(self, value: Optional[pulumi.Input[int]]):
|
|
251
|
+
def memory_reservation(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
218
252
|
pulumi.set(self, "memory_reservation", value)
|
|
219
253
|
|
|
220
|
-
@property
|
|
254
|
+
@_builtins.property
|
|
221
255
|
@pulumi.getter(name="memoryShareLevel")
|
|
222
|
-
def memory_share_level(self) -> Optional[pulumi.Input[str]]:
|
|
256
|
+
def memory_share_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
223
257
|
"""
|
|
224
|
-
The allocation level. The level is a
|
|
225
|
-
shares.
|
|
258
|
+
The CPU allocation level. The level is a
|
|
259
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
260
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
261
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
262
|
+
ignored. Default: `normal`
|
|
226
263
|
"""
|
|
227
264
|
return pulumi.get(self, "memory_share_level")
|
|
228
265
|
|
|
229
266
|
@memory_share_level.setter
|
|
230
|
-
def memory_share_level(self, value: Optional[pulumi.Input[str]]):
|
|
267
|
+
def memory_share_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
231
268
|
pulumi.set(self, "memory_share_level", value)
|
|
232
269
|
|
|
233
|
-
@property
|
|
270
|
+
@_builtins.property
|
|
234
271
|
@pulumi.getter(name="memoryShares")
|
|
235
|
-
def memory_shares(self) -> Optional[pulumi.Input[int]]:
|
|
272
|
+
def memory_shares(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
236
273
|
"""
|
|
237
|
-
The number of shares allocated. Used to
|
|
238
|
-
|
|
274
|
+
The number of shares allocated for CPU. Used to
|
|
275
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
276
|
+
`memory_share_level` must be `custom`.
|
|
239
277
|
"""
|
|
240
278
|
return pulumi.get(self, "memory_shares")
|
|
241
279
|
|
|
242
280
|
@memory_shares.setter
|
|
243
|
-
def memory_shares(self, value: Optional[pulumi.Input[int]]):
|
|
281
|
+
def memory_shares(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
244
282
|
pulumi.set(self, "memory_shares", value)
|
|
245
283
|
|
|
246
|
-
@property
|
|
284
|
+
@_builtins.property
|
|
247
285
|
@pulumi.getter
|
|
248
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
286
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
249
287
|
"""
|
|
250
|
-
|
|
288
|
+
The name of the resource pool.
|
|
251
289
|
"""
|
|
252
290
|
return pulumi.get(self, "name")
|
|
253
291
|
|
|
254
292
|
@name.setter
|
|
255
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
293
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
256
294
|
pulumi.set(self, "name", value)
|
|
257
295
|
|
|
258
|
-
@property
|
|
296
|
+
@_builtins.property
|
|
259
297
|
@pulumi.getter(name="scaleDescendantsShares")
|
|
260
|
-
def scale_descendants_shares(self) -> Optional[pulumi.Input[str]]:
|
|
298
|
+
def scale_descendants_shares(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
261
299
|
"""
|
|
262
|
-
Determines if the shares of all
|
|
263
|
-
pool are scaled up or down
|
|
300
|
+
Determines if the shares of all
|
|
301
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
302
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
303
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
264
304
|
"""
|
|
265
305
|
return pulumi.get(self, "scale_descendants_shares")
|
|
266
306
|
|
|
267
307
|
@scale_descendants_shares.setter
|
|
268
|
-
def scale_descendants_shares(self, value: Optional[pulumi.Input[str]]):
|
|
308
|
+
def scale_descendants_shares(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
269
309
|
pulumi.set(self, "scale_descendants_shares", value)
|
|
270
310
|
|
|
271
|
-
@property
|
|
311
|
+
@_builtins.property
|
|
272
312
|
@pulumi.getter
|
|
273
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
313
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
274
314
|
"""
|
|
275
|
-
|
|
315
|
+
The IDs of any tags to attach to this resource.
|
|
276
316
|
"""
|
|
277
317
|
return pulumi.get(self, "tags")
|
|
278
318
|
|
|
279
319
|
@tags.setter
|
|
280
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
320
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
281
321
|
pulumi.set(self, "tags", value)
|
|
282
322
|
|
|
283
323
|
|
|
284
324
|
@pulumi.input_type
|
|
285
325
|
class _ResourcePoolState:
|
|
286
326
|
def __init__(__self__, *,
|
|
287
|
-
cpu_expandable: Optional[pulumi.Input[bool]] = None,
|
|
288
|
-
cpu_limit: Optional[pulumi.Input[int]] = None,
|
|
289
|
-
cpu_reservation: Optional[pulumi.Input[int]] = None,
|
|
290
|
-
cpu_share_level: Optional[pulumi.Input[str]] = None,
|
|
291
|
-
cpu_shares: Optional[pulumi.Input[int]] = None,
|
|
292
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
293
|
-
memory_expandable: Optional[pulumi.Input[bool]] = None,
|
|
294
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
295
|
-
memory_reservation: Optional[pulumi.Input[int]] = None,
|
|
296
|
-
memory_share_level: Optional[pulumi.Input[str]] = None,
|
|
297
|
-
memory_shares: Optional[pulumi.Input[int]] = None,
|
|
298
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
299
|
-
parent_resource_pool_id: Optional[pulumi.Input[str]] = None,
|
|
300
|
-
scale_descendants_shares: Optional[pulumi.Input[str]] = None,
|
|
301
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
327
|
+
cpu_expandable: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
328
|
+
cpu_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
329
|
+
cpu_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
330
|
+
cpu_share_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
331
|
+
cpu_shares: Optional[pulumi.Input[_builtins.int]] = None,
|
|
332
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
333
|
+
memory_expandable: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
334
|
+
memory_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
335
|
+
memory_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
336
|
+
memory_share_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
337
|
+
memory_shares: Optional[pulumi.Input[_builtins.int]] = None,
|
|
338
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
339
|
+
parent_resource_pool_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
340
|
+
scale_descendants_shares: Optional[pulumi.Input[_builtins.str]] = None,
|
|
341
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
302
342
|
"""
|
|
303
343
|
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
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
:param pulumi.Input[
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
:param pulumi.Input[
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
:param pulumi.Input[
|
|
344
|
+
:param pulumi.Input[_builtins.bool] cpu_expandable: Determines if the reservation on a resource
|
|
345
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
346
|
+
unreserved resources. Default: `true`
|
|
347
|
+
:param pulumi.Input[_builtins.int] cpu_limit: The CPU utilization of a resource pool will not
|
|
348
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
349
|
+
unlimited. Default: `-1`
|
|
350
|
+
:param pulumi.Input[_builtins.int] cpu_reservation: Amount of CPU (MHz) that is guaranteed
|
|
351
|
+
available to the resource pool. Default: `0`
|
|
352
|
+
:param pulumi.Input[_builtins.str] cpu_share_level: The CPU allocation level. The level is a
|
|
353
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
354
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
355
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
356
|
+
ignored. Default: `normal`
|
|
357
|
+
:param pulumi.Input[_builtins.int] cpu_shares: The number of shares allocated for CPU. Used to
|
|
358
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
359
|
+
`cpu_share_level` must be `custom`.
|
|
360
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: A list of custom attributes to set on this resource.
|
|
361
|
+
:param pulumi.Input[_builtins.bool] memory_expandable: Determines if the reservation on a resource
|
|
362
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
363
|
+
unreserved resources. Default: `true`
|
|
364
|
+
:param pulumi.Input[_builtins.int] memory_limit: The CPU utilization of a resource pool will not
|
|
365
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
366
|
+
unlimited. Default: `-1`
|
|
367
|
+
:param pulumi.Input[_builtins.int] memory_reservation: Amount of CPU (MHz) that is guaranteed
|
|
368
|
+
available to the resource pool. Default: `0`
|
|
369
|
+
:param pulumi.Input[_builtins.str] memory_share_level: The CPU allocation level. The level is a
|
|
370
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
371
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
372
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
373
|
+
ignored. Default: `normal`
|
|
374
|
+
:param pulumi.Input[_builtins.int] memory_shares: The number of shares allocated for CPU. Used to
|
|
375
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
376
|
+
`memory_share_level` must be `custom`.
|
|
377
|
+
:param pulumi.Input[_builtins.str] name: The name of the resource pool.
|
|
378
|
+
:param pulumi.Input[_builtins.str] parent_resource_pool_id: The managed object ID
|
|
379
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
380
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
381
|
+
from one parent resource pool to another, both must share a common root
|
|
382
|
+
resource pool.
|
|
383
|
+
:param pulumi.Input[_builtins.str] scale_descendants_shares: Determines if the shares of all
|
|
384
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
385
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
386
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
387
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
328
388
|
"""
|
|
329
389
|
if cpu_expandable is not None:
|
|
330
390
|
pulumi.set(__self__, "cpu_expandable", cpu_expandable)
|
|
@@ -357,245 +417,379 @@ class _ResourcePoolState:
|
|
|
357
417
|
if tags is not None:
|
|
358
418
|
pulumi.set(__self__, "tags", tags)
|
|
359
419
|
|
|
360
|
-
@property
|
|
420
|
+
@_builtins.property
|
|
361
421
|
@pulumi.getter(name="cpuExpandable")
|
|
362
|
-
def cpu_expandable(self) -> Optional[pulumi.Input[bool]]:
|
|
422
|
+
def cpu_expandable(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
363
423
|
"""
|
|
364
|
-
Determines if the reservation on a resource
|
|
365
|
-
|
|
424
|
+
Determines if the reservation on a resource
|
|
425
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
426
|
+
unreserved resources. Default: `true`
|
|
366
427
|
"""
|
|
367
428
|
return pulumi.get(self, "cpu_expandable")
|
|
368
429
|
|
|
369
430
|
@cpu_expandable.setter
|
|
370
|
-
def cpu_expandable(self, value: Optional[pulumi.Input[bool]]):
|
|
431
|
+
def cpu_expandable(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
371
432
|
pulumi.set(self, "cpu_expandable", value)
|
|
372
433
|
|
|
373
|
-
@property
|
|
434
|
+
@_builtins.property
|
|
374
435
|
@pulumi.getter(name="cpuLimit")
|
|
375
|
-
def cpu_limit(self) -> Optional[pulumi.Input[int]]:
|
|
436
|
+
def cpu_limit(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
376
437
|
"""
|
|
377
|
-
The utilization of a resource pool will not
|
|
378
|
-
|
|
438
|
+
The CPU utilization of a resource pool will not
|
|
439
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
440
|
+
unlimited. Default: `-1`
|
|
379
441
|
"""
|
|
380
442
|
return pulumi.get(self, "cpu_limit")
|
|
381
443
|
|
|
382
444
|
@cpu_limit.setter
|
|
383
|
-
def cpu_limit(self, value: Optional[pulumi.Input[int]]):
|
|
445
|
+
def cpu_limit(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
384
446
|
pulumi.set(self, "cpu_limit", value)
|
|
385
447
|
|
|
386
|
-
@property
|
|
448
|
+
@_builtins.property
|
|
387
449
|
@pulumi.getter(name="cpuReservation")
|
|
388
|
-
def cpu_reservation(self) -> Optional[pulumi.Input[int]]:
|
|
450
|
+
def cpu_reservation(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
389
451
|
"""
|
|
390
|
-
Amount of CPU (MHz) that is guaranteed
|
|
452
|
+
Amount of CPU (MHz) that is guaranteed
|
|
453
|
+
available to the resource pool. Default: `0`
|
|
391
454
|
"""
|
|
392
455
|
return pulumi.get(self, "cpu_reservation")
|
|
393
456
|
|
|
394
457
|
@cpu_reservation.setter
|
|
395
|
-
def cpu_reservation(self, value: Optional[pulumi.Input[int]]):
|
|
458
|
+
def cpu_reservation(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
396
459
|
pulumi.set(self, "cpu_reservation", value)
|
|
397
460
|
|
|
398
|
-
@property
|
|
461
|
+
@_builtins.property
|
|
399
462
|
@pulumi.getter(name="cpuShareLevel")
|
|
400
|
-
def cpu_share_level(self) -> Optional[pulumi.Input[str]]:
|
|
463
|
+
def cpu_share_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
401
464
|
"""
|
|
402
|
-
The allocation level. The level is a
|
|
403
|
-
shares.
|
|
465
|
+
The CPU allocation level. The level is a
|
|
466
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
467
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
468
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
469
|
+
ignored. Default: `normal`
|
|
404
470
|
"""
|
|
405
471
|
return pulumi.get(self, "cpu_share_level")
|
|
406
472
|
|
|
407
473
|
@cpu_share_level.setter
|
|
408
|
-
def cpu_share_level(self, value: Optional[pulumi.Input[str]]):
|
|
474
|
+
def cpu_share_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
409
475
|
pulumi.set(self, "cpu_share_level", value)
|
|
410
476
|
|
|
411
|
-
@property
|
|
477
|
+
@_builtins.property
|
|
412
478
|
@pulumi.getter(name="cpuShares")
|
|
413
|
-
def cpu_shares(self) -> Optional[pulumi.Input[int]]:
|
|
479
|
+
def cpu_shares(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
414
480
|
"""
|
|
415
|
-
The number of shares allocated. Used to
|
|
416
|
-
|
|
481
|
+
The number of shares allocated for CPU. Used to
|
|
482
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
483
|
+
`cpu_share_level` must be `custom`.
|
|
417
484
|
"""
|
|
418
485
|
return pulumi.get(self, "cpu_shares")
|
|
419
486
|
|
|
420
487
|
@cpu_shares.setter
|
|
421
|
-
def cpu_shares(self, value: Optional[pulumi.Input[int]]):
|
|
488
|
+
def cpu_shares(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
422
489
|
pulumi.set(self, "cpu_shares", value)
|
|
423
490
|
|
|
424
|
-
@property
|
|
491
|
+
@_builtins.property
|
|
425
492
|
@pulumi.getter(name="customAttributes")
|
|
426
|
-
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
493
|
+
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
427
494
|
"""
|
|
428
495
|
A list of custom attributes to set on this resource.
|
|
429
496
|
"""
|
|
430
497
|
return pulumi.get(self, "custom_attributes")
|
|
431
498
|
|
|
432
499
|
@custom_attributes.setter
|
|
433
|
-
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
500
|
+
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
434
501
|
pulumi.set(self, "custom_attributes", value)
|
|
435
502
|
|
|
436
|
-
@property
|
|
503
|
+
@_builtins.property
|
|
437
504
|
@pulumi.getter(name="memoryExpandable")
|
|
438
|
-
def memory_expandable(self) -> Optional[pulumi.Input[bool]]:
|
|
505
|
+
def memory_expandable(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
439
506
|
"""
|
|
440
|
-
Determines if the reservation on a resource
|
|
441
|
-
|
|
507
|
+
Determines if the reservation on a resource
|
|
508
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
509
|
+
unreserved resources. Default: `true`
|
|
442
510
|
"""
|
|
443
511
|
return pulumi.get(self, "memory_expandable")
|
|
444
512
|
|
|
445
513
|
@memory_expandable.setter
|
|
446
|
-
def memory_expandable(self, value: Optional[pulumi.Input[bool]]):
|
|
514
|
+
def memory_expandable(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
447
515
|
pulumi.set(self, "memory_expandable", value)
|
|
448
516
|
|
|
449
|
-
@property
|
|
517
|
+
@_builtins.property
|
|
450
518
|
@pulumi.getter(name="memoryLimit")
|
|
451
|
-
def memory_limit(self) -> Optional[pulumi.Input[int]]:
|
|
519
|
+
def memory_limit(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
452
520
|
"""
|
|
453
|
-
The utilization of a resource pool will not
|
|
454
|
-
|
|
521
|
+
The CPU utilization of a resource pool will not
|
|
522
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
523
|
+
unlimited. Default: `-1`
|
|
455
524
|
"""
|
|
456
525
|
return pulumi.get(self, "memory_limit")
|
|
457
526
|
|
|
458
527
|
@memory_limit.setter
|
|
459
|
-
def memory_limit(self, value: Optional[pulumi.Input[int]]):
|
|
528
|
+
def memory_limit(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
460
529
|
pulumi.set(self, "memory_limit", value)
|
|
461
530
|
|
|
462
|
-
@property
|
|
531
|
+
@_builtins.property
|
|
463
532
|
@pulumi.getter(name="memoryReservation")
|
|
464
|
-
def memory_reservation(self) -> Optional[pulumi.Input[int]]:
|
|
533
|
+
def memory_reservation(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
465
534
|
"""
|
|
466
|
-
Amount of
|
|
535
|
+
Amount of CPU (MHz) that is guaranteed
|
|
536
|
+
available to the resource pool. Default: `0`
|
|
467
537
|
"""
|
|
468
538
|
return pulumi.get(self, "memory_reservation")
|
|
469
539
|
|
|
470
540
|
@memory_reservation.setter
|
|
471
|
-
def memory_reservation(self, value: Optional[pulumi.Input[int]]):
|
|
541
|
+
def memory_reservation(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
472
542
|
pulumi.set(self, "memory_reservation", value)
|
|
473
543
|
|
|
474
|
-
@property
|
|
544
|
+
@_builtins.property
|
|
475
545
|
@pulumi.getter(name="memoryShareLevel")
|
|
476
|
-
def memory_share_level(self) -> Optional[pulumi.Input[str]]:
|
|
546
|
+
def memory_share_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
477
547
|
"""
|
|
478
|
-
The allocation level. The level is a
|
|
479
|
-
shares.
|
|
548
|
+
The CPU allocation level. The level is a
|
|
549
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
550
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
551
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
552
|
+
ignored. Default: `normal`
|
|
480
553
|
"""
|
|
481
554
|
return pulumi.get(self, "memory_share_level")
|
|
482
555
|
|
|
483
556
|
@memory_share_level.setter
|
|
484
|
-
def memory_share_level(self, value: Optional[pulumi.Input[str]]):
|
|
557
|
+
def memory_share_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
485
558
|
pulumi.set(self, "memory_share_level", value)
|
|
486
559
|
|
|
487
|
-
@property
|
|
560
|
+
@_builtins.property
|
|
488
561
|
@pulumi.getter(name="memoryShares")
|
|
489
|
-
def memory_shares(self) -> Optional[pulumi.Input[int]]:
|
|
562
|
+
def memory_shares(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
490
563
|
"""
|
|
491
|
-
The number of shares allocated. Used to
|
|
492
|
-
|
|
564
|
+
The number of shares allocated for CPU. Used to
|
|
565
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
566
|
+
`memory_share_level` must be `custom`.
|
|
493
567
|
"""
|
|
494
568
|
return pulumi.get(self, "memory_shares")
|
|
495
569
|
|
|
496
570
|
@memory_shares.setter
|
|
497
|
-
def memory_shares(self, value: Optional[pulumi.Input[int]]):
|
|
571
|
+
def memory_shares(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
498
572
|
pulumi.set(self, "memory_shares", value)
|
|
499
573
|
|
|
500
|
-
@property
|
|
574
|
+
@_builtins.property
|
|
501
575
|
@pulumi.getter
|
|
502
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
576
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
503
577
|
"""
|
|
504
|
-
|
|
578
|
+
The name of the resource pool.
|
|
505
579
|
"""
|
|
506
580
|
return pulumi.get(self, "name")
|
|
507
581
|
|
|
508
582
|
@name.setter
|
|
509
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
583
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
510
584
|
pulumi.set(self, "name", value)
|
|
511
585
|
|
|
512
|
-
@property
|
|
586
|
+
@_builtins.property
|
|
513
587
|
@pulumi.getter(name="parentResourcePoolId")
|
|
514
|
-
def parent_resource_pool_id(self) -> Optional[pulumi.Input[str]]:
|
|
588
|
+
def parent_resource_pool_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
515
589
|
"""
|
|
516
|
-
The
|
|
590
|
+
The managed object ID
|
|
591
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
592
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
593
|
+
from one parent resource pool to another, both must share a common root
|
|
594
|
+
resource pool.
|
|
517
595
|
"""
|
|
518
596
|
return pulumi.get(self, "parent_resource_pool_id")
|
|
519
597
|
|
|
520
598
|
@parent_resource_pool_id.setter
|
|
521
|
-
def parent_resource_pool_id(self, value: Optional[pulumi.Input[str]]):
|
|
599
|
+
def parent_resource_pool_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
522
600
|
pulumi.set(self, "parent_resource_pool_id", value)
|
|
523
601
|
|
|
524
|
-
@property
|
|
602
|
+
@_builtins.property
|
|
525
603
|
@pulumi.getter(name="scaleDescendantsShares")
|
|
526
|
-
def scale_descendants_shares(self) -> Optional[pulumi.Input[str]]:
|
|
604
|
+
def scale_descendants_shares(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
527
605
|
"""
|
|
528
|
-
Determines if the shares of all
|
|
529
|
-
pool are scaled up or down
|
|
606
|
+
Determines if the shares of all
|
|
607
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
608
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
609
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
530
610
|
"""
|
|
531
611
|
return pulumi.get(self, "scale_descendants_shares")
|
|
532
612
|
|
|
533
613
|
@scale_descendants_shares.setter
|
|
534
|
-
def scale_descendants_shares(self, value: Optional[pulumi.Input[str]]):
|
|
614
|
+
def scale_descendants_shares(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
535
615
|
pulumi.set(self, "scale_descendants_shares", value)
|
|
536
616
|
|
|
537
|
-
@property
|
|
617
|
+
@_builtins.property
|
|
538
618
|
@pulumi.getter
|
|
539
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
619
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
540
620
|
"""
|
|
541
|
-
|
|
621
|
+
The IDs of any tags to attach to this resource.
|
|
542
622
|
"""
|
|
543
623
|
return pulumi.get(self, "tags")
|
|
544
624
|
|
|
545
625
|
@tags.setter
|
|
546
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
626
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
547
627
|
pulumi.set(self, "tags", value)
|
|
548
628
|
|
|
549
629
|
|
|
630
|
+
@pulumi.type_token("vsphere:index/resourcePool:ResourcePool")
|
|
550
631
|
class ResourcePool(pulumi.CustomResource):
|
|
551
632
|
@overload
|
|
552
633
|
def __init__(__self__,
|
|
553
634
|
resource_name: str,
|
|
554
635
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
555
|
-
cpu_expandable: Optional[pulumi.Input[bool]] = None,
|
|
556
|
-
cpu_limit: Optional[pulumi.Input[int]] = None,
|
|
557
|
-
cpu_reservation: Optional[pulumi.Input[int]] = None,
|
|
558
|
-
cpu_share_level: Optional[pulumi.Input[str]] = None,
|
|
559
|
-
cpu_shares: Optional[pulumi.Input[int]] = None,
|
|
560
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
561
|
-
memory_expandable: Optional[pulumi.Input[bool]] = None,
|
|
562
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
563
|
-
memory_reservation: Optional[pulumi.Input[int]] = None,
|
|
564
|
-
memory_share_level: Optional[pulumi.Input[str]] = None,
|
|
565
|
-
memory_shares: Optional[pulumi.Input[int]] = None,
|
|
566
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
567
|
-
parent_resource_pool_id: Optional[pulumi.Input[str]] = None,
|
|
568
|
-
scale_descendants_shares: Optional[pulumi.Input[str]] = None,
|
|
569
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
636
|
+
cpu_expandable: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
637
|
+
cpu_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
638
|
+
cpu_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
639
|
+
cpu_share_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
640
|
+
cpu_shares: Optional[pulumi.Input[_builtins.int]] = None,
|
|
641
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
642
|
+
memory_expandable: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
643
|
+
memory_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
644
|
+
memory_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
645
|
+
memory_share_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
646
|
+
memory_shares: Optional[pulumi.Input[_builtins.int]] = None,
|
|
647
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
648
|
+
parent_resource_pool_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
649
|
+
scale_descendants_shares: Optional[pulumi.Input[_builtins.str]] = None,
|
|
650
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
570
651
|
__props__=None):
|
|
571
652
|
"""
|
|
572
|
-
|
|
653
|
+
The `ResourcePool` resource can be used to create and manage
|
|
654
|
+
resource pools on DRS-enabled vSphere clusters or standalone ESXi hosts.
|
|
655
|
+
|
|
656
|
+
For more information on vSphere resource pools, please refer to the
|
|
657
|
+
[product documentation][ref-vsphere-resource_pools].
|
|
658
|
+
|
|
659
|
+
[ref-vsphere-resource_pools]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-resource-management-8-0/managing-resource-pools.html
|
|
660
|
+
|
|
661
|
+
## Example Usage
|
|
662
|
+
|
|
663
|
+
The following example sets up a resource pool in an existing compute cluster
|
|
664
|
+
with the default settings for CPU and memory reservations, shares, and limits.
|
|
665
|
+
|
|
666
|
+
```python
|
|
667
|
+
import pulumi
|
|
668
|
+
import pulumi_vsphere as vsphere
|
|
669
|
+
|
|
670
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
671
|
+
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
672
|
+
datacenter_id=datacenter.id)
|
|
673
|
+
resource_pool = vsphere.ResourcePool("resource_pool",
|
|
674
|
+
name="resource-pool-01",
|
|
675
|
+
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
676
|
+
```
|
|
677
|
+
|
|
678
|
+
A virtual machine resource could be targeted to use the default resource pool
|
|
679
|
+
of the cluster using the following:
|
|
680
|
+
|
|
681
|
+
```python
|
|
682
|
+
import pulumi
|
|
683
|
+
import pulumi_vsphere as vsphere
|
|
684
|
+
|
|
685
|
+
vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["resourcePoolId"])
|
|
686
|
+
```
|
|
687
|
+
|
|
688
|
+
The following example sets up a parent resource pool in an existing compute cluster
|
|
689
|
+
with a child resource pool nested below. Each resource pool is configured with
|
|
690
|
+
the default settings for CPU and memory reservations, shares, and limits.
|
|
691
|
+
|
|
692
|
+
```python
|
|
693
|
+
import pulumi
|
|
694
|
+
import pulumi_vsphere as vsphere
|
|
695
|
+
|
|
696
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
697
|
+
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
698
|
+
datacenter_id=datacenter.id)
|
|
699
|
+
resource_pool_parent = vsphere.ResourcePool("resource_pool_parent",
|
|
700
|
+
name="parent",
|
|
701
|
+
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
702
|
+
resource_pool_child = vsphere.ResourcePool("resource_pool_child",
|
|
703
|
+
name="child",
|
|
704
|
+
parent_resource_pool_id=resource_pool_parent.id)
|
|
705
|
+
```
|
|
706
|
+
|
|
707
|
+
The following example set up a parent resource pool on a standalone ESXi host with the default
|
|
708
|
+
settings for CPU and memory reservations, shares, and limits.
|
|
709
|
+
|
|
710
|
+
```python
|
|
711
|
+
import pulumi
|
|
712
|
+
import pulumi_vsphere as vsphere
|
|
713
|
+
|
|
714
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
715
|
+
thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com",
|
|
716
|
+
insecure=True)
|
|
717
|
+
esx_01 = vsphere.Host("esx-01",
|
|
718
|
+
hostname="esxi-01.example.com",
|
|
719
|
+
username="root",
|
|
720
|
+
password="password",
|
|
721
|
+
license="00000-00000-00000-00000-00000",
|
|
722
|
+
thumbprint=thumbprint.id,
|
|
723
|
+
datacenter=datacenter.id)
|
|
724
|
+
```
|
|
725
|
+
|
|
726
|
+
After the hosts are added to the datacenter, a resource pool can then be created on the host.
|
|
727
|
+
|
|
728
|
+
```python
|
|
729
|
+
import pulumi
|
|
730
|
+
import pulumi_vsphere as vsphere
|
|
731
|
+
|
|
732
|
+
host = vsphere.get_host(name="esxi-01.example.com",
|
|
733
|
+
datacenter_id=datacenter["id"])
|
|
734
|
+
resource_pool = vsphere.ResourcePool("resource_pool",
|
|
735
|
+
name="site1-resource-pool",
|
|
736
|
+
parent_resource_pool_id=host.resource_pool_id)
|
|
737
|
+
```
|
|
738
|
+
|
|
739
|
+
## Import
|
|
740
|
+
|
|
741
|
+
### Settings that Require vSphere 7.0 or higher
|
|
742
|
+
|
|
743
|
+
These settings require vSphere 7.0 or higher:
|
|
744
|
+
|
|
745
|
+
* [`scale_descendants_shares`](#scale_descendants_shares)
|
|
746
|
+
|
|
573
747
|
:param str resource_name: The name of the resource.
|
|
574
748
|
: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
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
:param pulumi.Input[
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
:param pulumi.Input[
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
:param pulumi.Input[
|
|
749
|
+
:param pulumi.Input[_builtins.bool] cpu_expandable: Determines if the reservation on a resource
|
|
750
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
751
|
+
unreserved resources. Default: `true`
|
|
752
|
+
:param pulumi.Input[_builtins.int] cpu_limit: The CPU utilization of a resource pool will not
|
|
753
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
754
|
+
unlimited. Default: `-1`
|
|
755
|
+
:param pulumi.Input[_builtins.int] cpu_reservation: Amount of CPU (MHz) that is guaranteed
|
|
756
|
+
available to the resource pool. Default: `0`
|
|
757
|
+
:param pulumi.Input[_builtins.str] cpu_share_level: The CPU allocation level. The level is a
|
|
758
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
759
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
760
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
761
|
+
ignored. Default: `normal`
|
|
762
|
+
:param pulumi.Input[_builtins.int] cpu_shares: The number of shares allocated for CPU. Used to
|
|
763
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
764
|
+
`cpu_share_level` must be `custom`.
|
|
765
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: A list of custom attributes to set on this resource.
|
|
766
|
+
:param pulumi.Input[_builtins.bool] memory_expandable: Determines if the reservation on a resource
|
|
767
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
768
|
+
unreserved resources. Default: `true`
|
|
769
|
+
:param pulumi.Input[_builtins.int] memory_limit: The CPU utilization of a resource pool will not
|
|
770
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
771
|
+
unlimited. Default: `-1`
|
|
772
|
+
:param pulumi.Input[_builtins.int] memory_reservation: Amount of CPU (MHz) that is guaranteed
|
|
773
|
+
available to the resource pool. Default: `0`
|
|
774
|
+
:param pulumi.Input[_builtins.str] memory_share_level: The CPU allocation level. The level is a
|
|
775
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
776
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
777
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
778
|
+
ignored. Default: `normal`
|
|
779
|
+
:param pulumi.Input[_builtins.int] memory_shares: The number of shares allocated for CPU. Used to
|
|
780
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
781
|
+
`memory_share_level` must be `custom`.
|
|
782
|
+
:param pulumi.Input[_builtins.str] name: The name of the resource pool.
|
|
783
|
+
:param pulumi.Input[_builtins.str] parent_resource_pool_id: The managed object ID
|
|
784
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
785
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
786
|
+
from one parent resource pool to another, both must share a common root
|
|
787
|
+
resource pool.
|
|
788
|
+
:param pulumi.Input[_builtins.str] scale_descendants_shares: Determines if the shares of all
|
|
789
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
790
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
791
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
792
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
599
793
|
"""
|
|
600
794
|
...
|
|
601
795
|
@overload
|
|
@@ -604,7 +798,100 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
604
798
|
args: ResourcePoolArgs,
|
|
605
799
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
606
800
|
"""
|
|
607
|
-
|
|
801
|
+
The `ResourcePool` resource can be used to create and manage
|
|
802
|
+
resource pools on DRS-enabled vSphere clusters or standalone ESXi hosts.
|
|
803
|
+
|
|
804
|
+
For more information on vSphere resource pools, please refer to the
|
|
805
|
+
[product documentation][ref-vsphere-resource_pools].
|
|
806
|
+
|
|
807
|
+
[ref-vsphere-resource_pools]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-resource-management-8-0/managing-resource-pools.html
|
|
808
|
+
|
|
809
|
+
## Example Usage
|
|
810
|
+
|
|
811
|
+
The following example sets up a resource pool in an existing compute cluster
|
|
812
|
+
with the default settings for CPU and memory reservations, shares, and limits.
|
|
813
|
+
|
|
814
|
+
```python
|
|
815
|
+
import pulumi
|
|
816
|
+
import pulumi_vsphere as vsphere
|
|
817
|
+
|
|
818
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
819
|
+
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
820
|
+
datacenter_id=datacenter.id)
|
|
821
|
+
resource_pool = vsphere.ResourcePool("resource_pool",
|
|
822
|
+
name="resource-pool-01",
|
|
823
|
+
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
824
|
+
```
|
|
825
|
+
|
|
826
|
+
A virtual machine resource could be targeted to use the default resource pool
|
|
827
|
+
of the cluster using the following:
|
|
828
|
+
|
|
829
|
+
```python
|
|
830
|
+
import pulumi
|
|
831
|
+
import pulumi_vsphere as vsphere
|
|
832
|
+
|
|
833
|
+
vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["resourcePoolId"])
|
|
834
|
+
```
|
|
835
|
+
|
|
836
|
+
The following example sets up a parent resource pool in an existing compute cluster
|
|
837
|
+
with a child resource pool nested below. Each resource pool is configured with
|
|
838
|
+
the default settings for CPU and memory reservations, shares, and limits.
|
|
839
|
+
|
|
840
|
+
```python
|
|
841
|
+
import pulumi
|
|
842
|
+
import pulumi_vsphere as vsphere
|
|
843
|
+
|
|
844
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
845
|
+
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
846
|
+
datacenter_id=datacenter.id)
|
|
847
|
+
resource_pool_parent = vsphere.ResourcePool("resource_pool_parent",
|
|
848
|
+
name="parent",
|
|
849
|
+
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
850
|
+
resource_pool_child = vsphere.ResourcePool("resource_pool_child",
|
|
851
|
+
name="child",
|
|
852
|
+
parent_resource_pool_id=resource_pool_parent.id)
|
|
853
|
+
```
|
|
854
|
+
|
|
855
|
+
The following example set up a parent resource pool on a standalone ESXi host with the default
|
|
856
|
+
settings for CPU and memory reservations, shares, and limits.
|
|
857
|
+
|
|
858
|
+
```python
|
|
859
|
+
import pulumi
|
|
860
|
+
import pulumi_vsphere as vsphere
|
|
861
|
+
|
|
862
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
863
|
+
thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com",
|
|
864
|
+
insecure=True)
|
|
865
|
+
esx_01 = vsphere.Host("esx-01",
|
|
866
|
+
hostname="esxi-01.example.com",
|
|
867
|
+
username="root",
|
|
868
|
+
password="password",
|
|
869
|
+
license="00000-00000-00000-00000-00000",
|
|
870
|
+
thumbprint=thumbprint.id,
|
|
871
|
+
datacenter=datacenter.id)
|
|
872
|
+
```
|
|
873
|
+
|
|
874
|
+
After the hosts are added to the datacenter, a resource pool can then be created on the host.
|
|
875
|
+
|
|
876
|
+
```python
|
|
877
|
+
import pulumi
|
|
878
|
+
import pulumi_vsphere as vsphere
|
|
879
|
+
|
|
880
|
+
host = vsphere.get_host(name="esxi-01.example.com",
|
|
881
|
+
datacenter_id=datacenter["id"])
|
|
882
|
+
resource_pool = vsphere.ResourcePool("resource_pool",
|
|
883
|
+
name="site1-resource-pool",
|
|
884
|
+
parent_resource_pool_id=host.resource_pool_id)
|
|
885
|
+
```
|
|
886
|
+
|
|
887
|
+
## Import
|
|
888
|
+
|
|
889
|
+
### Settings that Require vSphere 7.0 or higher
|
|
890
|
+
|
|
891
|
+
These settings require vSphere 7.0 or higher:
|
|
892
|
+
|
|
893
|
+
* [`scale_descendants_shares`](#scale_descendants_shares)
|
|
894
|
+
|
|
608
895
|
:param str resource_name: The name of the resource.
|
|
609
896
|
:param ResourcePoolArgs args: The arguments to use to populate this resource's properties.
|
|
610
897
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -620,21 +907,21 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
620
907
|
def _internal_init(__self__,
|
|
621
908
|
resource_name: str,
|
|
622
909
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
623
|
-
cpu_expandable: Optional[pulumi.Input[bool]] = None,
|
|
624
|
-
cpu_limit: Optional[pulumi.Input[int]] = None,
|
|
625
|
-
cpu_reservation: Optional[pulumi.Input[int]] = None,
|
|
626
|
-
cpu_share_level: Optional[pulumi.Input[str]] = None,
|
|
627
|
-
cpu_shares: Optional[pulumi.Input[int]] = None,
|
|
628
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
629
|
-
memory_expandable: Optional[pulumi.Input[bool]] = None,
|
|
630
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
631
|
-
memory_reservation: Optional[pulumi.Input[int]] = None,
|
|
632
|
-
memory_share_level: Optional[pulumi.Input[str]] = None,
|
|
633
|
-
memory_shares: Optional[pulumi.Input[int]] = None,
|
|
634
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
635
|
-
parent_resource_pool_id: Optional[pulumi.Input[str]] = None,
|
|
636
|
-
scale_descendants_shares: Optional[pulumi.Input[str]] = None,
|
|
637
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
910
|
+
cpu_expandable: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
911
|
+
cpu_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
912
|
+
cpu_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
913
|
+
cpu_share_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
914
|
+
cpu_shares: Optional[pulumi.Input[_builtins.int]] = None,
|
|
915
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
916
|
+
memory_expandable: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
917
|
+
memory_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
918
|
+
memory_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
919
|
+
memory_share_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
920
|
+
memory_shares: Optional[pulumi.Input[_builtins.int]] = None,
|
|
921
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
922
|
+
parent_resource_pool_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
923
|
+
scale_descendants_shares: Optional[pulumi.Input[_builtins.str]] = None,
|
|
924
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
638
925
|
__props__=None):
|
|
639
926
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
640
927
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -671,21 +958,21 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
671
958
|
def get(resource_name: str,
|
|
672
959
|
id: pulumi.Input[str],
|
|
673
960
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
674
|
-
cpu_expandable: Optional[pulumi.Input[bool]] = None,
|
|
675
|
-
cpu_limit: Optional[pulumi.Input[int]] = None,
|
|
676
|
-
cpu_reservation: Optional[pulumi.Input[int]] = None,
|
|
677
|
-
cpu_share_level: Optional[pulumi.Input[str]] = None,
|
|
678
|
-
cpu_shares: Optional[pulumi.Input[int]] = None,
|
|
679
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
680
|
-
memory_expandable: Optional[pulumi.Input[bool]] = None,
|
|
681
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
682
|
-
memory_reservation: Optional[pulumi.Input[int]] = None,
|
|
683
|
-
memory_share_level: Optional[pulumi.Input[str]] = None,
|
|
684
|
-
memory_shares: Optional[pulumi.Input[int]] = None,
|
|
685
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
686
|
-
parent_resource_pool_id: Optional[pulumi.Input[str]] = None,
|
|
687
|
-
scale_descendants_shares: Optional[pulumi.Input[str]] = None,
|
|
688
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'ResourcePool':
|
|
961
|
+
cpu_expandable: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
962
|
+
cpu_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
963
|
+
cpu_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
964
|
+
cpu_share_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
965
|
+
cpu_shares: Optional[pulumi.Input[_builtins.int]] = None,
|
|
966
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
967
|
+
memory_expandable: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
968
|
+
memory_limit: Optional[pulumi.Input[_builtins.int]] = None,
|
|
969
|
+
memory_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
970
|
+
memory_share_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
971
|
+
memory_shares: Optional[pulumi.Input[_builtins.int]] = None,
|
|
972
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
973
|
+
parent_resource_pool_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
974
|
+
scale_descendants_shares: Optional[pulumi.Input[_builtins.str]] = None,
|
|
975
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'ResourcePool':
|
|
689
976
|
"""
|
|
690
977
|
Get an existing ResourcePool resource's state with the given name, id, and optional extra
|
|
691
978
|
properties used to qualify the lookup.
|
|
@@ -693,30 +980,50 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
693
980
|
:param str resource_name: The unique name of the resulting resource.
|
|
694
981
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
695
982
|
: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
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
:param pulumi.Input[
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
:param pulumi.Input[
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
:param pulumi.Input[
|
|
983
|
+
:param pulumi.Input[_builtins.bool] cpu_expandable: Determines if the reservation on a resource
|
|
984
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
985
|
+
unreserved resources. Default: `true`
|
|
986
|
+
:param pulumi.Input[_builtins.int] cpu_limit: The CPU utilization of a resource pool will not
|
|
987
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
988
|
+
unlimited. Default: `-1`
|
|
989
|
+
:param pulumi.Input[_builtins.int] cpu_reservation: Amount of CPU (MHz) that is guaranteed
|
|
990
|
+
available to the resource pool. Default: `0`
|
|
991
|
+
:param pulumi.Input[_builtins.str] cpu_share_level: The CPU allocation level. The level is a
|
|
992
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
993
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
994
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
995
|
+
ignored. Default: `normal`
|
|
996
|
+
:param pulumi.Input[_builtins.int] cpu_shares: The number of shares allocated for CPU. Used to
|
|
997
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
998
|
+
`cpu_share_level` must be `custom`.
|
|
999
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: A list of custom attributes to set on this resource.
|
|
1000
|
+
:param pulumi.Input[_builtins.bool] memory_expandable: Determines if the reservation on a resource
|
|
1001
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
1002
|
+
unreserved resources. Default: `true`
|
|
1003
|
+
:param pulumi.Input[_builtins.int] memory_limit: The CPU utilization of a resource pool will not
|
|
1004
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
1005
|
+
unlimited. Default: `-1`
|
|
1006
|
+
:param pulumi.Input[_builtins.int] memory_reservation: Amount of CPU (MHz) that is guaranteed
|
|
1007
|
+
available to the resource pool. Default: `0`
|
|
1008
|
+
:param pulumi.Input[_builtins.str] memory_share_level: The CPU allocation level. The level is a
|
|
1009
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
1010
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
1011
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
1012
|
+
ignored. Default: `normal`
|
|
1013
|
+
:param pulumi.Input[_builtins.int] memory_shares: The number of shares allocated for CPU. Used to
|
|
1014
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
1015
|
+
`memory_share_level` must be `custom`.
|
|
1016
|
+
:param pulumi.Input[_builtins.str] name: The name of the resource pool.
|
|
1017
|
+
:param pulumi.Input[_builtins.str] parent_resource_pool_id: The managed object ID
|
|
1018
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
1019
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
1020
|
+
from one parent resource pool to another, both must share a common root
|
|
1021
|
+
resource pool.
|
|
1022
|
+
:param pulumi.Input[_builtins.str] scale_descendants_shares: Determines if the shares of all
|
|
1023
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
1024
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
1025
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
1026
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
720
1027
|
"""
|
|
721
1028
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
722
1029
|
|
|
@@ -739,132 +1046,152 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
739
1046
|
__props__.__dict__["tags"] = tags
|
|
740
1047
|
return ResourcePool(resource_name, opts=opts, __props__=__props__)
|
|
741
1048
|
|
|
742
|
-
@property
|
|
1049
|
+
@_builtins.property
|
|
743
1050
|
@pulumi.getter(name="cpuExpandable")
|
|
744
|
-
def cpu_expandable(self) -> pulumi.Output[Optional[bool]]:
|
|
1051
|
+
def cpu_expandable(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
745
1052
|
"""
|
|
746
|
-
Determines if the reservation on a resource
|
|
747
|
-
|
|
1053
|
+
Determines if the reservation on a resource
|
|
1054
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
1055
|
+
unreserved resources. Default: `true`
|
|
748
1056
|
"""
|
|
749
1057
|
return pulumi.get(self, "cpu_expandable")
|
|
750
1058
|
|
|
751
|
-
@property
|
|
1059
|
+
@_builtins.property
|
|
752
1060
|
@pulumi.getter(name="cpuLimit")
|
|
753
|
-
def cpu_limit(self) -> pulumi.Output[Optional[int]]:
|
|
1061
|
+
def cpu_limit(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
754
1062
|
"""
|
|
755
|
-
The utilization of a resource pool will not
|
|
756
|
-
|
|
1063
|
+
The CPU utilization of a resource pool will not
|
|
1064
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
1065
|
+
unlimited. Default: `-1`
|
|
757
1066
|
"""
|
|
758
1067
|
return pulumi.get(self, "cpu_limit")
|
|
759
1068
|
|
|
760
|
-
@property
|
|
1069
|
+
@_builtins.property
|
|
761
1070
|
@pulumi.getter(name="cpuReservation")
|
|
762
|
-
def cpu_reservation(self) -> pulumi.Output[Optional[int]]:
|
|
1071
|
+
def cpu_reservation(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
763
1072
|
"""
|
|
764
|
-
Amount of CPU (MHz) that is guaranteed
|
|
1073
|
+
Amount of CPU (MHz) that is guaranteed
|
|
1074
|
+
available to the resource pool. Default: `0`
|
|
765
1075
|
"""
|
|
766
1076
|
return pulumi.get(self, "cpu_reservation")
|
|
767
1077
|
|
|
768
|
-
@property
|
|
1078
|
+
@_builtins.property
|
|
769
1079
|
@pulumi.getter(name="cpuShareLevel")
|
|
770
|
-
def cpu_share_level(self) -> pulumi.Output[Optional[str]]:
|
|
1080
|
+
def cpu_share_level(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
771
1081
|
"""
|
|
772
|
-
The allocation level. The level is a
|
|
773
|
-
shares.
|
|
1082
|
+
The CPU allocation level. The level is a
|
|
1083
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
1084
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
1085
|
+
`low`, `normal`, or `high` are specified values in `cpu_shares` will be
|
|
1086
|
+
ignored. Default: `normal`
|
|
774
1087
|
"""
|
|
775
1088
|
return pulumi.get(self, "cpu_share_level")
|
|
776
1089
|
|
|
777
|
-
@property
|
|
1090
|
+
@_builtins.property
|
|
778
1091
|
@pulumi.getter(name="cpuShares")
|
|
779
|
-
def cpu_shares(self) -> pulumi.Output[int]:
|
|
1092
|
+
def cpu_shares(self) -> pulumi.Output[_builtins.int]:
|
|
780
1093
|
"""
|
|
781
|
-
The number of shares allocated. Used to
|
|
782
|
-
|
|
1094
|
+
The number of shares allocated for CPU. Used to
|
|
1095
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
1096
|
+
`cpu_share_level` must be `custom`.
|
|
783
1097
|
"""
|
|
784
1098
|
return pulumi.get(self, "cpu_shares")
|
|
785
1099
|
|
|
786
|
-
@property
|
|
1100
|
+
@_builtins.property
|
|
787
1101
|
@pulumi.getter(name="customAttributes")
|
|
788
|
-
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
1102
|
+
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
|
789
1103
|
"""
|
|
790
1104
|
A list of custom attributes to set on this resource.
|
|
791
1105
|
"""
|
|
792
1106
|
return pulumi.get(self, "custom_attributes")
|
|
793
1107
|
|
|
794
|
-
@property
|
|
1108
|
+
@_builtins.property
|
|
795
1109
|
@pulumi.getter(name="memoryExpandable")
|
|
796
|
-
def memory_expandable(self) -> pulumi.Output[Optional[bool]]:
|
|
1110
|
+
def memory_expandable(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
797
1111
|
"""
|
|
798
|
-
Determines if the reservation on a resource
|
|
799
|
-
|
|
1112
|
+
Determines if the reservation on a resource
|
|
1113
|
+
pool can grow beyond the specified value if the parent resource pool has
|
|
1114
|
+
unreserved resources. Default: `true`
|
|
800
1115
|
"""
|
|
801
1116
|
return pulumi.get(self, "memory_expandable")
|
|
802
1117
|
|
|
803
|
-
@property
|
|
1118
|
+
@_builtins.property
|
|
804
1119
|
@pulumi.getter(name="memoryLimit")
|
|
805
|
-
def memory_limit(self) -> pulumi.Output[Optional[int]]:
|
|
1120
|
+
def memory_limit(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
806
1121
|
"""
|
|
807
|
-
The utilization of a resource pool will not
|
|
808
|
-
|
|
1122
|
+
The CPU utilization of a resource pool will not
|
|
1123
|
+
exceed this limit, even if there are available resources. Set to `-1` for
|
|
1124
|
+
unlimited. Default: `-1`
|
|
809
1125
|
"""
|
|
810
1126
|
return pulumi.get(self, "memory_limit")
|
|
811
1127
|
|
|
812
|
-
@property
|
|
1128
|
+
@_builtins.property
|
|
813
1129
|
@pulumi.getter(name="memoryReservation")
|
|
814
|
-
def memory_reservation(self) -> pulumi.Output[Optional[int]]:
|
|
1130
|
+
def memory_reservation(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
815
1131
|
"""
|
|
816
|
-
Amount of
|
|
1132
|
+
Amount of CPU (MHz) that is guaranteed
|
|
1133
|
+
available to the resource pool. Default: `0`
|
|
817
1134
|
"""
|
|
818
1135
|
return pulumi.get(self, "memory_reservation")
|
|
819
1136
|
|
|
820
|
-
@property
|
|
1137
|
+
@_builtins.property
|
|
821
1138
|
@pulumi.getter(name="memoryShareLevel")
|
|
822
|
-
def memory_share_level(self) -> pulumi.Output[Optional[str]]:
|
|
1139
|
+
def memory_share_level(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
823
1140
|
"""
|
|
824
|
-
The allocation level. The level is a
|
|
825
|
-
shares.
|
|
1141
|
+
The CPU allocation level. The level is a
|
|
1142
|
+
simplified view of shares. Levels map to a pre-determined set of numeric
|
|
1143
|
+
values for shares. Can be one of `low`, `normal`, `high`, or `custom`. When
|
|
1144
|
+
`low`, `normal`, or `high` are specified values in `memory_shares` will be
|
|
1145
|
+
ignored. Default: `normal`
|
|
826
1146
|
"""
|
|
827
1147
|
return pulumi.get(self, "memory_share_level")
|
|
828
1148
|
|
|
829
|
-
@property
|
|
1149
|
+
@_builtins.property
|
|
830
1150
|
@pulumi.getter(name="memoryShares")
|
|
831
|
-
def memory_shares(self) -> pulumi.Output[int]:
|
|
1151
|
+
def memory_shares(self) -> pulumi.Output[_builtins.int]:
|
|
832
1152
|
"""
|
|
833
|
-
The number of shares allocated. Used to
|
|
834
|
-
|
|
1153
|
+
The number of shares allocated for CPU. Used to
|
|
1154
|
+
determine resource allocation in case of resource contention. If this is set,
|
|
1155
|
+
`memory_share_level` must be `custom`.
|
|
835
1156
|
"""
|
|
836
1157
|
return pulumi.get(self, "memory_shares")
|
|
837
1158
|
|
|
838
|
-
@property
|
|
1159
|
+
@_builtins.property
|
|
839
1160
|
@pulumi.getter
|
|
840
|
-
def name(self) -> pulumi.Output[str]:
|
|
1161
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
841
1162
|
"""
|
|
842
|
-
|
|
1163
|
+
The name of the resource pool.
|
|
843
1164
|
"""
|
|
844
1165
|
return pulumi.get(self, "name")
|
|
845
1166
|
|
|
846
|
-
@property
|
|
1167
|
+
@_builtins.property
|
|
847
1168
|
@pulumi.getter(name="parentResourcePoolId")
|
|
848
|
-
def parent_resource_pool_id(self) -> pulumi.Output[str]:
|
|
1169
|
+
def parent_resource_pool_id(self) -> pulumi.Output[_builtins.str]:
|
|
849
1170
|
"""
|
|
850
|
-
The
|
|
1171
|
+
The managed object ID
|
|
1172
|
+
of the parent resource pool. This can be the root resource pool for a cluster
|
|
1173
|
+
or standalone host, or a resource pool itself. When moving a resource pool
|
|
1174
|
+
from one parent resource pool to another, both must share a common root
|
|
1175
|
+
resource pool.
|
|
851
1176
|
"""
|
|
852
1177
|
return pulumi.get(self, "parent_resource_pool_id")
|
|
853
1178
|
|
|
854
|
-
@property
|
|
1179
|
+
@_builtins.property
|
|
855
1180
|
@pulumi.getter(name="scaleDescendantsShares")
|
|
856
|
-
def scale_descendants_shares(self) -> pulumi.Output[Optional[str]]:
|
|
1181
|
+
def scale_descendants_shares(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
857
1182
|
"""
|
|
858
|
-
Determines if the shares of all
|
|
859
|
-
pool are scaled up or down
|
|
1183
|
+
Determines if the shares of all
|
|
1184
|
+
descendants of the resource pool are scaled up or down when the shares
|
|
1185
|
+
of the resource pool are scaled up or down. Can be one of `disabled` or
|
|
1186
|
+
`scaleCpuAndMemoryShares`. Default: `disabled`.
|
|
860
1187
|
"""
|
|
861
1188
|
return pulumi.get(self, "scale_descendants_shares")
|
|
862
1189
|
|
|
863
|
-
@property
|
|
1190
|
+
@_builtins.property
|
|
864
1191
|
@pulumi.getter
|
|
865
|
-
def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1192
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
866
1193
|
"""
|
|
867
|
-
|
|
1194
|
+
The IDs of any tags to attach to this resource.
|
|
868
1195
|
"""
|
|
869
1196
|
return pulumi.get(self, "tags")
|
|
870
1197
|
|