pulumi-vsphere 4.11.0a1__py3-none-any.whl → 4.11.0a1710920591__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 +0 -28
- pulumi_vsphere/_inputs.py +230 -554
- pulumi_vsphere/compute_cluster.py +1477 -747
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +16 -28
- pulumi_vsphere/datacenter.py +12 -26
- pulumi_vsphere/datastore_cluster.py +350 -154
- pulumi_vsphere/distributed_port_group.py +175 -70
- pulumi_vsphere/distributed_virtual_switch.py +805 -308
- pulumi_vsphere/file.py +24 -16
- pulumi_vsphere/folder.py +7 -7
- pulumi_vsphere/get_compute_cluster.py +4 -0
- pulumi_vsphere/get_compute_cluster_host_group.py +10 -8
- pulumi_vsphere/get_content_library.py +4 -0
- pulumi_vsphere/get_custom_attribute.py +4 -0
- pulumi_vsphere/get_datacenter.py +4 -0
- pulumi_vsphere/get_datastore.py +4 -0
- pulumi_vsphere/get_datastore_cluster.py +4 -0
- pulumi_vsphere/get_datastore_stats.py +12 -4
- pulumi_vsphere/get_distributed_virtual_switch.py +4 -2
- pulumi_vsphere/get_dynamic.py +8 -4
- pulumi_vsphere/get_folder.py +6 -10
- pulumi_vsphere/get_guest_os_customization.py +4 -0
- pulumi_vsphere/get_host.py +4 -0
- pulumi_vsphere/get_host_pci_device.py +12 -4
- pulumi_vsphere/get_host_thumbprint.py +4 -0
- pulumi_vsphere/get_host_vgpu_profile.py +8 -0
- pulumi_vsphere/get_license.py +4 -0
- pulumi_vsphere/get_network.py +4 -0
- pulumi_vsphere/get_policy.py +4 -0
- pulumi_vsphere/get_resource_pool.py +10 -2
- pulumi_vsphere/get_role.py +4 -0
- pulumi_vsphere/get_tag.py +4 -0
- pulumi_vsphere/get_tag_category.py +4 -0
- pulumi_vsphere/get_vapp_container.py +4 -0
- pulumi_vsphere/get_virtual_machine.py +8 -0
- pulumi_vsphere/get_vmfs_disks.py +4 -0
- pulumi_vsphere/guest_os_customization.py +0 -50
- pulumi_vsphere/ha_vm_override.py +378 -189
- pulumi_vsphere/host.py +20 -0
- pulumi_vsphere/host_port_group.py +24 -12
- pulumi_vsphere/host_virtual_switch.py +287 -140
- pulumi_vsphere/license.py +32 -0
- pulumi_vsphere/outputs.py +230 -543
- pulumi_vsphere/pulumi-plugin.json +1 -2
- pulumi_vsphere/resource_pool.py +22 -48
- pulumi_vsphere/virtual_disk.py +10 -10
- pulumi_vsphere/virtual_machine.py +807 -578
- pulumi_vsphere/virtual_machine_snapshot.py +10 -6
- pulumi_vsphere/vm_storage_policy.py +84 -72
- pulumi_vsphere/vnic.py +20 -8
- {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.11.0a1710920591.dist-info/RECORD +82 -0
- pulumi_vsphere/get_host_base_images.py +0 -97
- pulumi_vsphere/offline_software_depot.py +0 -180
- pulumi_vsphere/supervisor.py +0 -858
- pulumi_vsphere/virtual_machine_class.py +0 -440
- pulumi_vsphere-4.11.0a1.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/WHEEL +0 -0
- {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/top_level.txt +0 -0
pulumi_vsphere/ha_vm_override.py
CHANGED
|
@@ -31,33 +31,60 @@ class HaVmOverrideArgs:
|
|
|
31
31
|
ha_vm_restart_timeout: Optional[pulumi.Input[int]] = None):
|
|
32
32
|
"""
|
|
33
33
|
The set of arguments for constructing a HaVmOverride resource.
|
|
34
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
:param pulumi.Input[
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
:param pulumi.Input[
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
:param pulumi.Input[int]
|
|
60
|
-
|
|
34
|
+
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
35
|
+
ID of the cluster to put the override in. Forces a new
|
|
36
|
+
resource if changed.
|
|
37
|
+
:param pulumi.Input[str] virtual_machine_id: The UUID of the virtual machine to create
|
|
38
|
+
the override for. Forces a new resource if changed.
|
|
39
|
+
:param pulumi.Input[str] ha_datastore_apd_recovery_action: Controls the action to take
|
|
40
|
+
on this virtual machine if an APD status on an affected datastore clears in
|
|
41
|
+
the middle of an APD event. Can be one of `useClusterDefault`, `none` or
|
|
42
|
+
`reset`. Default: `useClusterDefault`.
|
|
43
|
+
:param pulumi.Input[str] ha_datastore_apd_response: Controls the action to take on this
|
|
44
|
+
virtual machine when the cluster has detected loss to all paths to a relevant
|
|
45
|
+
datastore. Can be one of `clusterDefault`, `disabled`, `warning`,
|
|
46
|
+
`restartConservative`, or `restartAggressive`. Default: `clusterDefault`.
|
|
47
|
+
:param pulumi.Input[int] ha_datastore_apd_response_delay: Controls the delay in seconds
|
|
48
|
+
to wait after an APD timeout event to execute the response action defined in
|
|
49
|
+
`ha_datastore_apd_response`. Use `-1` to use
|
|
50
|
+
the cluster default. Default: `-1`.
|
|
51
|
+
:param pulumi.Input[str] ha_datastore_pdl_response: Controls the action to take on this
|
|
52
|
+
virtual machine when the cluster has detected a permanent device loss to a
|
|
53
|
+
relevant datastore. Can be one of `clusterDefault`, `disabled`, `warning`, or
|
|
54
|
+
`restartAggressive`. Default: `clusterDefault`.
|
|
55
|
+
:param pulumi.Input[str] ha_host_isolation_response: The action to take on this virtual
|
|
56
|
+
machine when a host has detected that it has been isolated from the rest of
|
|
57
|
+
the cluster. Can be one of `clusterIsolationResponse`, `none`, `powerOff`, or
|
|
58
|
+
`shutdown`. Default: `clusterIsolationResponse`.
|
|
59
|
+
:param pulumi.Input[int] ha_vm_failure_interval: If a heartbeat from this virtual
|
|
60
|
+
machine is not received within this configured interval, the virtual machine
|
|
61
|
+
is marked as failed. The value is in seconds. Default: `30`.
|
|
62
|
+
:param pulumi.Input[int] ha_vm_maximum_failure_window: The length of the reset window in
|
|
63
|
+
which `ha_vm_maximum_resets` can operate. When this
|
|
64
|
+
window expires, no more resets are attempted regardless of the setting
|
|
65
|
+
configured in `ha_vm_maximum_resets`. `-1` means no window, meaning an
|
|
66
|
+
unlimited reset time is allotted. The value is specified in seconds. Default:
|
|
67
|
+
`-1` (no window).
|
|
68
|
+
:param pulumi.Input[int] ha_vm_maximum_resets: The maximum number of resets that HA will
|
|
69
|
+
perform to this virtual machine when responding to a failure event. Default:
|
|
70
|
+
`3`
|
|
71
|
+
:param pulumi.Input[int] ha_vm_minimum_uptime: The time, in seconds, that HA waits after
|
|
72
|
+
powering on this virtual machine before monitoring for heartbeats. Default:
|
|
73
|
+
`120` (2 minutes).
|
|
74
|
+
:param pulumi.Input[str] ha_vm_monitoring: The type of virtual machine monitoring to use
|
|
75
|
+
when HA is enabled in the cluster. Can be one of `vmMonitoringDisabled`,
|
|
76
|
+
`vmMonitoringOnly`, or `vmAndAppMonitoring`. Default: `vmMonitoringDisabled`.
|
|
77
|
+
:param pulumi.Input[bool] ha_vm_monitoring_use_cluster_defaults: Determines whether or
|
|
78
|
+
not the cluster's default settings or the VM override settings specified in
|
|
79
|
+
this resource are used for virtual machine monitoring. The default is `true`
|
|
80
|
+
(use cluster defaults) - set to `false` to have overrides take effect.
|
|
81
|
+
:param pulumi.Input[str] ha_vm_restart_priority: The restart priority for the virtual
|
|
82
|
+
machine when vSphere detects a host failure. Can be one of
|
|
83
|
+
`clusterRestartPriority`, `lowest`, `low`, `medium`, `high`, `highest`, or `disabled`.
|
|
84
|
+
Default: `clusterRestartPriority`.
|
|
85
|
+
:param pulumi.Input[int] ha_vm_restart_timeout: The maximum time, in seconds, that
|
|
86
|
+
vSphere HA will wait for this virtual machine to be ready. Use `-1` to
|
|
87
|
+
specify the cluster default. Default: `-1`.
|
|
61
88
|
"""
|
|
62
89
|
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
|
|
63
90
|
pulumi.set(__self__, "virtual_machine_id", virtual_machine_id)
|
|
@@ -92,7 +119,9 @@ class HaVmOverrideArgs:
|
|
|
92
119
|
@pulumi.getter(name="computeClusterId")
|
|
93
120
|
def compute_cluster_id(self) -> pulumi.Input[str]:
|
|
94
121
|
"""
|
|
95
|
-
The managed object
|
|
122
|
+
The managed object reference
|
|
123
|
+
ID of the cluster to put the override in. Forces a new
|
|
124
|
+
resource if changed.
|
|
96
125
|
"""
|
|
97
126
|
return pulumi.get(self, "compute_cluster_id")
|
|
98
127
|
|
|
@@ -104,7 +133,8 @@ class HaVmOverrideArgs:
|
|
|
104
133
|
@pulumi.getter(name="virtualMachineId")
|
|
105
134
|
def virtual_machine_id(self) -> pulumi.Input[str]:
|
|
106
135
|
"""
|
|
107
|
-
The
|
|
136
|
+
The UUID of the virtual machine to create
|
|
137
|
+
the override for. Forces a new resource if changed.
|
|
108
138
|
"""
|
|
109
139
|
return pulumi.get(self, "virtual_machine_id")
|
|
110
140
|
|
|
@@ -116,8 +146,10 @@ class HaVmOverrideArgs:
|
|
|
116
146
|
@pulumi.getter(name="haDatastoreApdRecoveryAction")
|
|
117
147
|
def ha_datastore_apd_recovery_action(self) -> Optional[pulumi.Input[str]]:
|
|
118
148
|
"""
|
|
119
|
-
Controls the action to take
|
|
120
|
-
|
|
149
|
+
Controls the action to take
|
|
150
|
+
on this virtual machine if an APD status on an affected datastore clears in
|
|
151
|
+
the middle of an APD event. Can be one of `useClusterDefault`, `none` or
|
|
152
|
+
`reset`. Default: `useClusterDefault`.
|
|
121
153
|
"""
|
|
122
154
|
return pulumi.get(self, "ha_datastore_apd_recovery_action")
|
|
123
155
|
|
|
@@ -129,8 +161,10 @@ class HaVmOverrideArgs:
|
|
|
129
161
|
@pulumi.getter(name="haDatastoreApdResponse")
|
|
130
162
|
def ha_datastore_apd_response(self) -> Optional[pulumi.Input[str]]:
|
|
131
163
|
"""
|
|
132
|
-
Controls the action to take on this
|
|
133
|
-
|
|
164
|
+
Controls the action to take on this
|
|
165
|
+
virtual machine when the cluster has detected loss to all paths to a relevant
|
|
166
|
+
datastore. Can be one of `clusterDefault`, `disabled`, `warning`,
|
|
167
|
+
`restartConservative`, or `restartAggressive`. Default: `clusterDefault`.
|
|
134
168
|
"""
|
|
135
169
|
return pulumi.get(self, "ha_datastore_apd_response")
|
|
136
170
|
|
|
@@ -142,8 +176,10 @@ class HaVmOverrideArgs:
|
|
|
142
176
|
@pulumi.getter(name="haDatastoreApdResponseDelay")
|
|
143
177
|
def ha_datastore_apd_response_delay(self) -> Optional[pulumi.Input[int]]:
|
|
144
178
|
"""
|
|
145
|
-
Controls the delay in seconds
|
|
146
|
-
|
|
179
|
+
Controls the delay in seconds
|
|
180
|
+
to wait after an APD timeout event to execute the response action defined in
|
|
181
|
+
`ha_datastore_apd_response`. Use `-1` to use
|
|
182
|
+
the cluster default. Default: `-1`.
|
|
147
183
|
"""
|
|
148
184
|
return pulumi.get(self, "ha_datastore_apd_response_delay")
|
|
149
185
|
|
|
@@ -155,8 +191,10 @@ class HaVmOverrideArgs:
|
|
|
155
191
|
@pulumi.getter(name="haDatastorePdlResponse")
|
|
156
192
|
def ha_datastore_pdl_response(self) -> Optional[pulumi.Input[str]]:
|
|
157
193
|
"""
|
|
158
|
-
Controls the action to take on this
|
|
159
|
-
|
|
194
|
+
Controls the action to take on this
|
|
195
|
+
virtual machine when the cluster has detected a permanent device loss to a
|
|
196
|
+
relevant datastore. Can be one of `clusterDefault`, `disabled`, `warning`, or
|
|
197
|
+
`restartAggressive`. Default: `clusterDefault`.
|
|
160
198
|
"""
|
|
161
199
|
return pulumi.get(self, "ha_datastore_pdl_response")
|
|
162
200
|
|
|
@@ -168,8 +206,10 @@ class HaVmOverrideArgs:
|
|
|
168
206
|
@pulumi.getter(name="haHostIsolationResponse")
|
|
169
207
|
def ha_host_isolation_response(self) -> Optional[pulumi.Input[str]]:
|
|
170
208
|
"""
|
|
171
|
-
The action to take on this virtual
|
|
172
|
-
|
|
209
|
+
The action to take on this virtual
|
|
210
|
+
machine when a host has detected that it has been isolated from the rest of
|
|
211
|
+
the cluster. Can be one of `clusterIsolationResponse`, `none`, `powerOff`, or
|
|
212
|
+
`shutdown`. Default: `clusterIsolationResponse`.
|
|
173
213
|
"""
|
|
174
214
|
return pulumi.get(self, "ha_host_isolation_response")
|
|
175
215
|
|
|
@@ -181,8 +221,9 @@ class HaVmOverrideArgs:
|
|
|
181
221
|
@pulumi.getter(name="haVmFailureInterval")
|
|
182
222
|
def ha_vm_failure_interval(self) -> Optional[pulumi.Input[int]]:
|
|
183
223
|
"""
|
|
184
|
-
If a heartbeat from this virtual
|
|
185
|
-
|
|
224
|
+
If a heartbeat from this virtual
|
|
225
|
+
machine is not received within this configured interval, the virtual machine
|
|
226
|
+
is marked as failed. The value is in seconds. Default: `30`.
|
|
186
227
|
"""
|
|
187
228
|
return pulumi.get(self, "ha_vm_failure_interval")
|
|
188
229
|
|
|
@@ -194,9 +235,12 @@ class HaVmOverrideArgs:
|
|
|
194
235
|
@pulumi.getter(name="haVmMaximumFailureWindow")
|
|
195
236
|
def ha_vm_maximum_failure_window(self) -> Optional[pulumi.Input[int]]:
|
|
196
237
|
"""
|
|
197
|
-
The length of the reset window in
|
|
198
|
-
|
|
199
|
-
|
|
238
|
+
The length of the reset window in
|
|
239
|
+
which `ha_vm_maximum_resets` can operate. When this
|
|
240
|
+
window expires, no more resets are attempted regardless of the setting
|
|
241
|
+
configured in `ha_vm_maximum_resets`. `-1` means no window, meaning an
|
|
242
|
+
unlimited reset time is allotted. The value is specified in seconds. Default:
|
|
243
|
+
`-1` (no window).
|
|
200
244
|
"""
|
|
201
245
|
return pulumi.get(self, "ha_vm_maximum_failure_window")
|
|
202
246
|
|
|
@@ -208,7 +252,9 @@ class HaVmOverrideArgs:
|
|
|
208
252
|
@pulumi.getter(name="haVmMaximumResets")
|
|
209
253
|
def ha_vm_maximum_resets(self) -> Optional[pulumi.Input[int]]:
|
|
210
254
|
"""
|
|
211
|
-
The maximum number of resets that HA will
|
|
255
|
+
The maximum number of resets that HA will
|
|
256
|
+
perform to this virtual machine when responding to a failure event. Default:
|
|
257
|
+
`3`
|
|
212
258
|
"""
|
|
213
259
|
return pulumi.get(self, "ha_vm_maximum_resets")
|
|
214
260
|
|
|
@@ -220,7 +266,9 @@ class HaVmOverrideArgs:
|
|
|
220
266
|
@pulumi.getter(name="haVmMinimumUptime")
|
|
221
267
|
def ha_vm_minimum_uptime(self) -> Optional[pulumi.Input[int]]:
|
|
222
268
|
"""
|
|
223
|
-
The time, in seconds, that HA waits after
|
|
269
|
+
The time, in seconds, that HA waits after
|
|
270
|
+
powering on this virtual machine before monitoring for heartbeats. Default:
|
|
271
|
+
`120` (2 minutes).
|
|
224
272
|
"""
|
|
225
273
|
return pulumi.get(self, "ha_vm_minimum_uptime")
|
|
226
274
|
|
|
@@ -232,8 +280,9 @@ class HaVmOverrideArgs:
|
|
|
232
280
|
@pulumi.getter(name="haVmMonitoring")
|
|
233
281
|
def ha_vm_monitoring(self) -> Optional[pulumi.Input[str]]:
|
|
234
282
|
"""
|
|
235
|
-
The type of virtual machine monitoring to use
|
|
236
|
-
|
|
283
|
+
The type of virtual machine monitoring to use
|
|
284
|
+
when HA is enabled in the cluster. Can be one of `vmMonitoringDisabled`,
|
|
285
|
+
`vmMonitoringOnly`, or `vmAndAppMonitoring`. Default: `vmMonitoringDisabled`.
|
|
237
286
|
"""
|
|
238
287
|
return pulumi.get(self, "ha_vm_monitoring")
|
|
239
288
|
|
|
@@ -245,8 +294,10 @@ class HaVmOverrideArgs:
|
|
|
245
294
|
@pulumi.getter(name="haVmMonitoringUseClusterDefaults")
|
|
246
295
|
def ha_vm_monitoring_use_cluster_defaults(self) -> Optional[pulumi.Input[bool]]:
|
|
247
296
|
"""
|
|
248
|
-
Determines whether or
|
|
249
|
-
|
|
297
|
+
Determines whether or
|
|
298
|
+
not the cluster's default settings or the VM override settings specified in
|
|
299
|
+
this resource are used for virtual machine monitoring. The default is `true`
|
|
300
|
+
(use cluster defaults) - set to `false` to have overrides take effect.
|
|
250
301
|
"""
|
|
251
302
|
return pulumi.get(self, "ha_vm_monitoring_use_cluster_defaults")
|
|
252
303
|
|
|
@@ -258,8 +309,10 @@ class HaVmOverrideArgs:
|
|
|
258
309
|
@pulumi.getter(name="haVmRestartPriority")
|
|
259
310
|
def ha_vm_restart_priority(self) -> Optional[pulumi.Input[str]]:
|
|
260
311
|
"""
|
|
261
|
-
The restart priority for
|
|
262
|
-
|
|
312
|
+
The restart priority for the virtual
|
|
313
|
+
machine when vSphere detects a host failure. Can be one of
|
|
314
|
+
`clusterRestartPriority`, `lowest`, `low`, `medium`, `high`, `highest`, or `disabled`.
|
|
315
|
+
Default: `clusterRestartPriority`.
|
|
263
316
|
"""
|
|
264
317
|
return pulumi.get(self, "ha_vm_restart_priority")
|
|
265
318
|
|
|
@@ -271,8 +324,9 @@ class HaVmOverrideArgs:
|
|
|
271
324
|
@pulumi.getter(name="haVmRestartTimeout")
|
|
272
325
|
def ha_vm_restart_timeout(self) -> Optional[pulumi.Input[int]]:
|
|
273
326
|
"""
|
|
274
|
-
The maximum time, in seconds, that
|
|
275
|
-
|
|
327
|
+
The maximum time, in seconds, that
|
|
328
|
+
vSphere HA will wait for this virtual machine to be ready. Use `-1` to
|
|
329
|
+
specify the cluster default. Default: `-1`.
|
|
276
330
|
"""
|
|
277
331
|
return pulumi.get(self, "ha_vm_restart_timeout")
|
|
278
332
|
|
|
@@ -301,33 +355,60 @@ class _HaVmOverrideState:
|
|
|
301
355
|
virtual_machine_id: Optional[pulumi.Input[str]] = None):
|
|
302
356
|
"""
|
|
303
357
|
Input properties used for looking up and filtering HaVmOverride resources.
|
|
304
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
:param pulumi.Input[str]
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
:param pulumi.Input[str]
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
:param pulumi.Input[int]
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
:param pulumi.Input[
|
|
358
|
+
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
359
|
+
ID of the cluster to put the override in. Forces a new
|
|
360
|
+
resource if changed.
|
|
361
|
+
:param pulumi.Input[str] ha_datastore_apd_recovery_action: Controls the action to take
|
|
362
|
+
on this virtual machine if an APD status on an affected datastore clears in
|
|
363
|
+
the middle of an APD event. Can be one of `useClusterDefault`, `none` or
|
|
364
|
+
`reset`. Default: `useClusterDefault`.
|
|
365
|
+
:param pulumi.Input[str] ha_datastore_apd_response: Controls the action to take on this
|
|
366
|
+
virtual machine when the cluster has detected loss to all paths to a relevant
|
|
367
|
+
datastore. Can be one of `clusterDefault`, `disabled`, `warning`,
|
|
368
|
+
`restartConservative`, or `restartAggressive`. Default: `clusterDefault`.
|
|
369
|
+
:param pulumi.Input[int] ha_datastore_apd_response_delay: Controls the delay in seconds
|
|
370
|
+
to wait after an APD timeout event to execute the response action defined in
|
|
371
|
+
`ha_datastore_apd_response`. Use `-1` to use
|
|
372
|
+
the cluster default. Default: `-1`.
|
|
373
|
+
:param pulumi.Input[str] ha_datastore_pdl_response: Controls the action to take on this
|
|
374
|
+
virtual machine when the cluster has detected a permanent device loss to a
|
|
375
|
+
relevant datastore. Can be one of `clusterDefault`, `disabled`, `warning`, or
|
|
376
|
+
`restartAggressive`. Default: `clusterDefault`.
|
|
377
|
+
:param pulumi.Input[str] ha_host_isolation_response: The action to take on this virtual
|
|
378
|
+
machine when a host has detected that it has been isolated from the rest of
|
|
379
|
+
the cluster. Can be one of `clusterIsolationResponse`, `none`, `powerOff`, or
|
|
380
|
+
`shutdown`. Default: `clusterIsolationResponse`.
|
|
381
|
+
:param pulumi.Input[int] ha_vm_failure_interval: If a heartbeat from this virtual
|
|
382
|
+
machine is not received within this configured interval, the virtual machine
|
|
383
|
+
is marked as failed. The value is in seconds. Default: `30`.
|
|
384
|
+
:param pulumi.Input[int] ha_vm_maximum_failure_window: The length of the reset window in
|
|
385
|
+
which `ha_vm_maximum_resets` can operate. When this
|
|
386
|
+
window expires, no more resets are attempted regardless of the setting
|
|
387
|
+
configured in `ha_vm_maximum_resets`. `-1` means no window, meaning an
|
|
388
|
+
unlimited reset time is allotted. The value is specified in seconds. Default:
|
|
389
|
+
`-1` (no window).
|
|
390
|
+
:param pulumi.Input[int] ha_vm_maximum_resets: The maximum number of resets that HA will
|
|
391
|
+
perform to this virtual machine when responding to a failure event. Default:
|
|
392
|
+
`3`
|
|
393
|
+
:param pulumi.Input[int] ha_vm_minimum_uptime: The time, in seconds, that HA waits after
|
|
394
|
+
powering on this virtual machine before monitoring for heartbeats. Default:
|
|
395
|
+
`120` (2 minutes).
|
|
396
|
+
:param pulumi.Input[str] ha_vm_monitoring: The type of virtual machine monitoring to use
|
|
397
|
+
when HA is enabled in the cluster. Can be one of `vmMonitoringDisabled`,
|
|
398
|
+
`vmMonitoringOnly`, or `vmAndAppMonitoring`. Default: `vmMonitoringDisabled`.
|
|
399
|
+
:param pulumi.Input[bool] ha_vm_monitoring_use_cluster_defaults: Determines whether or
|
|
400
|
+
not the cluster's default settings or the VM override settings specified in
|
|
401
|
+
this resource are used for virtual machine monitoring. The default is `true`
|
|
402
|
+
(use cluster defaults) - set to `false` to have overrides take effect.
|
|
403
|
+
:param pulumi.Input[str] ha_vm_restart_priority: The restart priority for the virtual
|
|
404
|
+
machine when vSphere detects a host failure. Can be one of
|
|
405
|
+
`clusterRestartPriority`, `lowest`, `low`, `medium`, `high`, `highest`, or `disabled`.
|
|
406
|
+
Default: `clusterRestartPriority`.
|
|
407
|
+
:param pulumi.Input[int] ha_vm_restart_timeout: The maximum time, in seconds, that
|
|
408
|
+
vSphere HA will wait for this virtual machine to be ready. Use `-1` to
|
|
409
|
+
specify the cluster default. Default: `-1`.
|
|
410
|
+
:param pulumi.Input[str] virtual_machine_id: The UUID of the virtual machine to create
|
|
411
|
+
the override for. Forces a new resource if changed.
|
|
331
412
|
"""
|
|
332
413
|
if compute_cluster_id is not None:
|
|
333
414
|
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
|
|
@@ -364,7 +445,9 @@ class _HaVmOverrideState:
|
|
|
364
445
|
@pulumi.getter(name="computeClusterId")
|
|
365
446
|
def compute_cluster_id(self) -> Optional[pulumi.Input[str]]:
|
|
366
447
|
"""
|
|
367
|
-
The managed object
|
|
448
|
+
The managed object reference
|
|
449
|
+
ID of the cluster to put the override in. Forces a new
|
|
450
|
+
resource if changed.
|
|
368
451
|
"""
|
|
369
452
|
return pulumi.get(self, "compute_cluster_id")
|
|
370
453
|
|
|
@@ -376,8 +459,10 @@ class _HaVmOverrideState:
|
|
|
376
459
|
@pulumi.getter(name="haDatastoreApdRecoveryAction")
|
|
377
460
|
def ha_datastore_apd_recovery_action(self) -> Optional[pulumi.Input[str]]:
|
|
378
461
|
"""
|
|
379
|
-
Controls the action to take
|
|
380
|
-
|
|
462
|
+
Controls the action to take
|
|
463
|
+
on this virtual machine if an APD status on an affected datastore clears in
|
|
464
|
+
the middle of an APD event. Can be one of `useClusterDefault`, `none` or
|
|
465
|
+
`reset`. Default: `useClusterDefault`.
|
|
381
466
|
"""
|
|
382
467
|
return pulumi.get(self, "ha_datastore_apd_recovery_action")
|
|
383
468
|
|
|
@@ -389,8 +474,10 @@ class _HaVmOverrideState:
|
|
|
389
474
|
@pulumi.getter(name="haDatastoreApdResponse")
|
|
390
475
|
def ha_datastore_apd_response(self) -> Optional[pulumi.Input[str]]:
|
|
391
476
|
"""
|
|
392
|
-
Controls the action to take on this
|
|
393
|
-
|
|
477
|
+
Controls the action to take on this
|
|
478
|
+
virtual machine when the cluster has detected loss to all paths to a relevant
|
|
479
|
+
datastore. Can be one of `clusterDefault`, `disabled`, `warning`,
|
|
480
|
+
`restartConservative`, or `restartAggressive`. Default: `clusterDefault`.
|
|
394
481
|
"""
|
|
395
482
|
return pulumi.get(self, "ha_datastore_apd_response")
|
|
396
483
|
|
|
@@ -402,8 +489,10 @@ class _HaVmOverrideState:
|
|
|
402
489
|
@pulumi.getter(name="haDatastoreApdResponseDelay")
|
|
403
490
|
def ha_datastore_apd_response_delay(self) -> Optional[pulumi.Input[int]]:
|
|
404
491
|
"""
|
|
405
|
-
Controls the delay in seconds
|
|
406
|
-
|
|
492
|
+
Controls the delay in seconds
|
|
493
|
+
to wait after an APD timeout event to execute the response action defined in
|
|
494
|
+
`ha_datastore_apd_response`. Use `-1` to use
|
|
495
|
+
the cluster default. Default: `-1`.
|
|
407
496
|
"""
|
|
408
497
|
return pulumi.get(self, "ha_datastore_apd_response_delay")
|
|
409
498
|
|
|
@@ -415,8 +504,10 @@ class _HaVmOverrideState:
|
|
|
415
504
|
@pulumi.getter(name="haDatastorePdlResponse")
|
|
416
505
|
def ha_datastore_pdl_response(self) -> Optional[pulumi.Input[str]]:
|
|
417
506
|
"""
|
|
418
|
-
Controls the action to take on this
|
|
419
|
-
|
|
507
|
+
Controls the action to take on this
|
|
508
|
+
virtual machine when the cluster has detected a permanent device loss to a
|
|
509
|
+
relevant datastore. Can be one of `clusterDefault`, `disabled`, `warning`, or
|
|
510
|
+
`restartAggressive`. Default: `clusterDefault`.
|
|
420
511
|
"""
|
|
421
512
|
return pulumi.get(self, "ha_datastore_pdl_response")
|
|
422
513
|
|
|
@@ -428,8 +519,10 @@ class _HaVmOverrideState:
|
|
|
428
519
|
@pulumi.getter(name="haHostIsolationResponse")
|
|
429
520
|
def ha_host_isolation_response(self) -> Optional[pulumi.Input[str]]:
|
|
430
521
|
"""
|
|
431
|
-
The action to take on this virtual
|
|
432
|
-
|
|
522
|
+
The action to take on this virtual
|
|
523
|
+
machine when a host has detected that it has been isolated from the rest of
|
|
524
|
+
the cluster. Can be one of `clusterIsolationResponse`, `none`, `powerOff`, or
|
|
525
|
+
`shutdown`. Default: `clusterIsolationResponse`.
|
|
433
526
|
"""
|
|
434
527
|
return pulumi.get(self, "ha_host_isolation_response")
|
|
435
528
|
|
|
@@ -441,8 +534,9 @@ class _HaVmOverrideState:
|
|
|
441
534
|
@pulumi.getter(name="haVmFailureInterval")
|
|
442
535
|
def ha_vm_failure_interval(self) -> Optional[pulumi.Input[int]]:
|
|
443
536
|
"""
|
|
444
|
-
If a heartbeat from this virtual
|
|
445
|
-
|
|
537
|
+
If a heartbeat from this virtual
|
|
538
|
+
machine is not received within this configured interval, the virtual machine
|
|
539
|
+
is marked as failed. The value is in seconds. Default: `30`.
|
|
446
540
|
"""
|
|
447
541
|
return pulumi.get(self, "ha_vm_failure_interval")
|
|
448
542
|
|
|
@@ -454,9 +548,12 @@ class _HaVmOverrideState:
|
|
|
454
548
|
@pulumi.getter(name="haVmMaximumFailureWindow")
|
|
455
549
|
def ha_vm_maximum_failure_window(self) -> Optional[pulumi.Input[int]]:
|
|
456
550
|
"""
|
|
457
|
-
The length of the reset window in
|
|
458
|
-
|
|
459
|
-
|
|
551
|
+
The length of the reset window in
|
|
552
|
+
which `ha_vm_maximum_resets` can operate. When this
|
|
553
|
+
window expires, no more resets are attempted regardless of the setting
|
|
554
|
+
configured in `ha_vm_maximum_resets`. `-1` means no window, meaning an
|
|
555
|
+
unlimited reset time is allotted. The value is specified in seconds. Default:
|
|
556
|
+
`-1` (no window).
|
|
460
557
|
"""
|
|
461
558
|
return pulumi.get(self, "ha_vm_maximum_failure_window")
|
|
462
559
|
|
|
@@ -468,7 +565,9 @@ class _HaVmOverrideState:
|
|
|
468
565
|
@pulumi.getter(name="haVmMaximumResets")
|
|
469
566
|
def ha_vm_maximum_resets(self) -> Optional[pulumi.Input[int]]:
|
|
470
567
|
"""
|
|
471
|
-
The maximum number of resets that HA will
|
|
568
|
+
The maximum number of resets that HA will
|
|
569
|
+
perform to this virtual machine when responding to a failure event. Default:
|
|
570
|
+
`3`
|
|
472
571
|
"""
|
|
473
572
|
return pulumi.get(self, "ha_vm_maximum_resets")
|
|
474
573
|
|
|
@@ -480,7 +579,9 @@ class _HaVmOverrideState:
|
|
|
480
579
|
@pulumi.getter(name="haVmMinimumUptime")
|
|
481
580
|
def ha_vm_minimum_uptime(self) -> Optional[pulumi.Input[int]]:
|
|
482
581
|
"""
|
|
483
|
-
The time, in seconds, that HA waits after
|
|
582
|
+
The time, in seconds, that HA waits after
|
|
583
|
+
powering on this virtual machine before monitoring for heartbeats. Default:
|
|
584
|
+
`120` (2 minutes).
|
|
484
585
|
"""
|
|
485
586
|
return pulumi.get(self, "ha_vm_minimum_uptime")
|
|
486
587
|
|
|
@@ -492,8 +593,9 @@ class _HaVmOverrideState:
|
|
|
492
593
|
@pulumi.getter(name="haVmMonitoring")
|
|
493
594
|
def ha_vm_monitoring(self) -> Optional[pulumi.Input[str]]:
|
|
494
595
|
"""
|
|
495
|
-
The type of virtual machine monitoring to use
|
|
496
|
-
|
|
596
|
+
The type of virtual machine monitoring to use
|
|
597
|
+
when HA is enabled in the cluster. Can be one of `vmMonitoringDisabled`,
|
|
598
|
+
`vmMonitoringOnly`, or `vmAndAppMonitoring`. Default: `vmMonitoringDisabled`.
|
|
497
599
|
"""
|
|
498
600
|
return pulumi.get(self, "ha_vm_monitoring")
|
|
499
601
|
|
|
@@ -505,8 +607,10 @@ class _HaVmOverrideState:
|
|
|
505
607
|
@pulumi.getter(name="haVmMonitoringUseClusterDefaults")
|
|
506
608
|
def ha_vm_monitoring_use_cluster_defaults(self) -> Optional[pulumi.Input[bool]]:
|
|
507
609
|
"""
|
|
508
|
-
Determines whether or
|
|
509
|
-
|
|
610
|
+
Determines whether or
|
|
611
|
+
not the cluster's default settings or the VM override settings specified in
|
|
612
|
+
this resource are used for virtual machine monitoring. The default is `true`
|
|
613
|
+
(use cluster defaults) - set to `false` to have overrides take effect.
|
|
510
614
|
"""
|
|
511
615
|
return pulumi.get(self, "ha_vm_monitoring_use_cluster_defaults")
|
|
512
616
|
|
|
@@ -518,8 +622,10 @@ class _HaVmOverrideState:
|
|
|
518
622
|
@pulumi.getter(name="haVmRestartPriority")
|
|
519
623
|
def ha_vm_restart_priority(self) -> Optional[pulumi.Input[str]]:
|
|
520
624
|
"""
|
|
521
|
-
The restart priority for
|
|
522
|
-
|
|
625
|
+
The restart priority for the virtual
|
|
626
|
+
machine when vSphere detects a host failure. Can be one of
|
|
627
|
+
`clusterRestartPriority`, `lowest`, `low`, `medium`, `high`, `highest`, or `disabled`.
|
|
628
|
+
Default: `clusterRestartPriority`.
|
|
523
629
|
"""
|
|
524
630
|
return pulumi.get(self, "ha_vm_restart_priority")
|
|
525
631
|
|
|
@@ -531,8 +637,9 @@ class _HaVmOverrideState:
|
|
|
531
637
|
@pulumi.getter(name="haVmRestartTimeout")
|
|
532
638
|
def ha_vm_restart_timeout(self) -> Optional[pulumi.Input[int]]:
|
|
533
639
|
"""
|
|
534
|
-
The maximum time, in seconds, that
|
|
535
|
-
|
|
640
|
+
The maximum time, in seconds, that
|
|
641
|
+
vSphere HA will wait for this virtual machine to be ready. Use `-1` to
|
|
642
|
+
specify the cluster default. Default: `-1`.
|
|
536
643
|
"""
|
|
537
644
|
return pulumi.get(self, "ha_vm_restart_timeout")
|
|
538
645
|
|
|
@@ -544,7 +651,8 @@ class _HaVmOverrideState:
|
|
|
544
651
|
@pulumi.getter(name="virtualMachineId")
|
|
545
652
|
def virtual_machine_id(self) -> Optional[pulumi.Input[str]]:
|
|
546
653
|
"""
|
|
547
|
-
The
|
|
654
|
+
The UUID of the virtual machine to create
|
|
655
|
+
the override for. Forces a new resource if changed.
|
|
548
656
|
"""
|
|
549
657
|
return pulumi.get(self, "virtual_machine_id")
|
|
550
658
|
|
|
@@ -578,33 +686,60 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
578
686
|
Create a HaVmOverride resource with the given unique name, props, and options.
|
|
579
687
|
:param str resource_name: The name of the resource.
|
|
580
688
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
581
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
:param pulumi.Input[str]
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
:param pulumi.Input[str]
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
:param pulumi.Input[int]
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
:param pulumi.Input[
|
|
689
|
+
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
690
|
+
ID of the cluster to put the override in. Forces a new
|
|
691
|
+
resource if changed.
|
|
692
|
+
:param pulumi.Input[str] ha_datastore_apd_recovery_action: Controls the action to take
|
|
693
|
+
on this virtual machine if an APD status on an affected datastore clears in
|
|
694
|
+
the middle of an APD event. Can be one of `useClusterDefault`, `none` or
|
|
695
|
+
`reset`. Default: `useClusterDefault`.
|
|
696
|
+
:param pulumi.Input[str] ha_datastore_apd_response: Controls the action to take on this
|
|
697
|
+
virtual machine when the cluster has detected loss to all paths to a relevant
|
|
698
|
+
datastore. Can be one of `clusterDefault`, `disabled`, `warning`,
|
|
699
|
+
`restartConservative`, or `restartAggressive`. Default: `clusterDefault`.
|
|
700
|
+
:param pulumi.Input[int] ha_datastore_apd_response_delay: Controls the delay in seconds
|
|
701
|
+
to wait after an APD timeout event to execute the response action defined in
|
|
702
|
+
`ha_datastore_apd_response`. Use `-1` to use
|
|
703
|
+
the cluster default. Default: `-1`.
|
|
704
|
+
:param pulumi.Input[str] ha_datastore_pdl_response: Controls the action to take on this
|
|
705
|
+
virtual machine when the cluster has detected a permanent device loss to a
|
|
706
|
+
relevant datastore. Can be one of `clusterDefault`, `disabled`, `warning`, or
|
|
707
|
+
`restartAggressive`. Default: `clusterDefault`.
|
|
708
|
+
:param pulumi.Input[str] ha_host_isolation_response: The action to take on this virtual
|
|
709
|
+
machine when a host has detected that it has been isolated from the rest of
|
|
710
|
+
the cluster. Can be one of `clusterIsolationResponse`, `none`, `powerOff`, or
|
|
711
|
+
`shutdown`. Default: `clusterIsolationResponse`.
|
|
712
|
+
:param pulumi.Input[int] ha_vm_failure_interval: If a heartbeat from this virtual
|
|
713
|
+
machine is not received within this configured interval, the virtual machine
|
|
714
|
+
is marked as failed. The value is in seconds. Default: `30`.
|
|
715
|
+
:param pulumi.Input[int] ha_vm_maximum_failure_window: The length of the reset window in
|
|
716
|
+
which `ha_vm_maximum_resets` can operate. When this
|
|
717
|
+
window expires, no more resets are attempted regardless of the setting
|
|
718
|
+
configured in `ha_vm_maximum_resets`. `-1` means no window, meaning an
|
|
719
|
+
unlimited reset time is allotted. The value is specified in seconds. Default:
|
|
720
|
+
`-1` (no window).
|
|
721
|
+
:param pulumi.Input[int] ha_vm_maximum_resets: The maximum number of resets that HA will
|
|
722
|
+
perform to this virtual machine when responding to a failure event. Default:
|
|
723
|
+
`3`
|
|
724
|
+
:param pulumi.Input[int] ha_vm_minimum_uptime: The time, in seconds, that HA waits after
|
|
725
|
+
powering on this virtual machine before monitoring for heartbeats. Default:
|
|
726
|
+
`120` (2 minutes).
|
|
727
|
+
:param pulumi.Input[str] ha_vm_monitoring: The type of virtual machine monitoring to use
|
|
728
|
+
when HA is enabled in the cluster. Can be one of `vmMonitoringDisabled`,
|
|
729
|
+
`vmMonitoringOnly`, or `vmAndAppMonitoring`. Default: `vmMonitoringDisabled`.
|
|
730
|
+
:param pulumi.Input[bool] ha_vm_monitoring_use_cluster_defaults: Determines whether or
|
|
731
|
+
not the cluster's default settings or the VM override settings specified in
|
|
732
|
+
this resource are used for virtual machine monitoring. The default is `true`
|
|
733
|
+
(use cluster defaults) - set to `false` to have overrides take effect.
|
|
734
|
+
:param pulumi.Input[str] ha_vm_restart_priority: The restart priority for the virtual
|
|
735
|
+
machine when vSphere detects a host failure. Can be one of
|
|
736
|
+
`clusterRestartPriority`, `lowest`, `low`, `medium`, `high`, `highest`, or `disabled`.
|
|
737
|
+
Default: `clusterRestartPriority`.
|
|
738
|
+
:param pulumi.Input[int] ha_vm_restart_timeout: The maximum time, in seconds, that
|
|
739
|
+
vSphere HA will wait for this virtual machine to be ready. Use `-1` to
|
|
740
|
+
specify the cluster default. Default: `-1`.
|
|
741
|
+
:param pulumi.Input[str] virtual_machine_id: The UUID of the virtual machine to create
|
|
742
|
+
the override for. Forces a new resource if changed.
|
|
608
743
|
"""
|
|
609
744
|
...
|
|
610
745
|
@overload
|
|
@@ -704,33 +839,60 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
704
839
|
:param str resource_name: The unique name of the resulting resource.
|
|
705
840
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
706
841
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
707
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
:param pulumi.Input[str]
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
:param pulumi.Input[str]
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
:param pulumi.Input[int]
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
:param pulumi.Input[
|
|
842
|
+
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
843
|
+
ID of the cluster to put the override in. Forces a new
|
|
844
|
+
resource if changed.
|
|
845
|
+
:param pulumi.Input[str] ha_datastore_apd_recovery_action: Controls the action to take
|
|
846
|
+
on this virtual machine if an APD status on an affected datastore clears in
|
|
847
|
+
the middle of an APD event. Can be one of `useClusterDefault`, `none` or
|
|
848
|
+
`reset`. Default: `useClusterDefault`.
|
|
849
|
+
:param pulumi.Input[str] ha_datastore_apd_response: Controls the action to take on this
|
|
850
|
+
virtual machine when the cluster has detected loss to all paths to a relevant
|
|
851
|
+
datastore. Can be one of `clusterDefault`, `disabled`, `warning`,
|
|
852
|
+
`restartConservative`, or `restartAggressive`. Default: `clusterDefault`.
|
|
853
|
+
:param pulumi.Input[int] ha_datastore_apd_response_delay: Controls the delay in seconds
|
|
854
|
+
to wait after an APD timeout event to execute the response action defined in
|
|
855
|
+
`ha_datastore_apd_response`. Use `-1` to use
|
|
856
|
+
the cluster default. Default: `-1`.
|
|
857
|
+
:param pulumi.Input[str] ha_datastore_pdl_response: Controls the action to take on this
|
|
858
|
+
virtual machine when the cluster has detected a permanent device loss to a
|
|
859
|
+
relevant datastore. Can be one of `clusterDefault`, `disabled`, `warning`, or
|
|
860
|
+
`restartAggressive`. Default: `clusterDefault`.
|
|
861
|
+
:param pulumi.Input[str] ha_host_isolation_response: The action to take on this virtual
|
|
862
|
+
machine when a host has detected that it has been isolated from the rest of
|
|
863
|
+
the cluster. Can be one of `clusterIsolationResponse`, `none`, `powerOff`, or
|
|
864
|
+
`shutdown`. Default: `clusterIsolationResponse`.
|
|
865
|
+
:param pulumi.Input[int] ha_vm_failure_interval: If a heartbeat from this virtual
|
|
866
|
+
machine is not received within this configured interval, the virtual machine
|
|
867
|
+
is marked as failed. The value is in seconds. Default: `30`.
|
|
868
|
+
:param pulumi.Input[int] ha_vm_maximum_failure_window: The length of the reset window in
|
|
869
|
+
which `ha_vm_maximum_resets` can operate. When this
|
|
870
|
+
window expires, no more resets are attempted regardless of the setting
|
|
871
|
+
configured in `ha_vm_maximum_resets`. `-1` means no window, meaning an
|
|
872
|
+
unlimited reset time is allotted. The value is specified in seconds. Default:
|
|
873
|
+
`-1` (no window).
|
|
874
|
+
:param pulumi.Input[int] ha_vm_maximum_resets: The maximum number of resets that HA will
|
|
875
|
+
perform to this virtual machine when responding to a failure event. Default:
|
|
876
|
+
`3`
|
|
877
|
+
:param pulumi.Input[int] ha_vm_minimum_uptime: The time, in seconds, that HA waits after
|
|
878
|
+
powering on this virtual machine before monitoring for heartbeats. Default:
|
|
879
|
+
`120` (2 minutes).
|
|
880
|
+
:param pulumi.Input[str] ha_vm_monitoring: The type of virtual machine monitoring to use
|
|
881
|
+
when HA is enabled in the cluster. Can be one of `vmMonitoringDisabled`,
|
|
882
|
+
`vmMonitoringOnly`, or `vmAndAppMonitoring`. Default: `vmMonitoringDisabled`.
|
|
883
|
+
:param pulumi.Input[bool] ha_vm_monitoring_use_cluster_defaults: Determines whether or
|
|
884
|
+
not the cluster's default settings or the VM override settings specified in
|
|
885
|
+
this resource are used for virtual machine monitoring. The default is `true`
|
|
886
|
+
(use cluster defaults) - set to `false` to have overrides take effect.
|
|
887
|
+
:param pulumi.Input[str] ha_vm_restart_priority: The restart priority for the virtual
|
|
888
|
+
machine when vSphere detects a host failure. Can be one of
|
|
889
|
+
`clusterRestartPriority`, `lowest`, `low`, `medium`, `high`, `highest`, or `disabled`.
|
|
890
|
+
Default: `clusterRestartPriority`.
|
|
891
|
+
:param pulumi.Input[int] ha_vm_restart_timeout: The maximum time, in seconds, that
|
|
892
|
+
vSphere HA will wait for this virtual machine to be ready. Use `-1` to
|
|
893
|
+
specify the cluster default. Default: `-1`.
|
|
894
|
+
:param pulumi.Input[str] virtual_machine_id: The UUID of the virtual machine to create
|
|
895
|
+
the override for. Forces a new resource if changed.
|
|
734
896
|
"""
|
|
735
897
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
736
898
|
|
|
@@ -757,7 +919,9 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
757
919
|
@pulumi.getter(name="computeClusterId")
|
|
758
920
|
def compute_cluster_id(self) -> pulumi.Output[str]:
|
|
759
921
|
"""
|
|
760
|
-
The managed object
|
|
922
|
+
The managed object reference
|
|
923
|
+
ID of the cluster to put the override in. Forces a new
|
|
924
|
+
resource if changed.
|
|
761
925
|
"""
|
|
762
926
|
return pulumi.get(self, "compute_cluster_id")
|
|
763
927
|
|
|
@@ -765,8 +929,10 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
765
929
|
@pulumi.getter(name="haDatastoreApdRecoveryAction")
|
|
766
930
|
def ha_datastore_apd_recovery_action(self) -> pulumi.Output[Optional[str]]:
|
|
767
931
|
"""
|
|
768
|
-
Controls the action to take
|
|
769
|
-
|
|
932
|
+
Controls the action to take
|
|
933
|
+
on this virtual machine if an APD status on an affected datastore clears in
|
|
934
|
+
the middle of an APD event. Can be one of `useClusterDefault`, `none` or
|
|
935
|
+
`reset`. Default: `useClusterDefault`.
|
|
770
936
|
"""
|
|
771
937
|
return pulumi.get(self, "ha_datastore_apd_recovery_action")
|
|
772
938
|
|
|
@@ -774,8 +940,10 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
774
940
|
@pulumi.getter(name="haDatastoreApdResponse")
|
|
775
941
|
def ha_datastore_apd_response(self) -> pulumi.Output[Optional[str]]:
|
|
776
942
|
"""
|
|
777
|
-
Controls the action to take on this
|
|
778
|
-
|
|
943
|
+
Controls the action to take on this
|
|
944
|
+
virtual machine when the cluster has detected loss to all paths to a relevant
|
|
945
|
+
datastore. Can be one of `clusterDefault`, `disabled`, `warning`,
|
|
946
|
+
`restartConservative`, or `restartAggressive`. Default: `clusterDefault`.
|
|
779
947
|
"""
|
|
780
948
|
return pulumi.get(self, "ha_datastore_apd_response")
|
|
781
949
|
|
|
@@ -783,8 +951,10 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
783
951
|
@pulumi.getter(name="haDatastoreApdResponseDelay")
|
|
784
952
|
def ha_datastore_apd_response_delay(self) -> pulumi.Output[Optional[int]]:
|
|
785
953
|
"""
|
|
786
|
-
Controls the delay in seconds
|
|
787
|
-
|
|
954
|
+
Controls the delay in seconds
|
|
955
|
+
to wait after an APD timeout event to execute the response action defined in
|
|
956
|
+
`ha_datastore_apd_response`. Use `-1` to use
|
|
957
|
+
the cluster default. Default: `-1`.
|
|
788
958
|
"""
|
|
789
959
|
return pulumi.get(self, "ha_datastore_apd_response_delay")
|
|
790
960
|
|
|
@@ -792,8 +962,10 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
792
962
|
@pulumi.getter(name="haDatastorePdlResponse")
|
|
793
963
|
def ha_datastore_pdl_response(self) -> pulumi.Output[Optional[str]]:
|
|
794
964
|
"""
|
|
795
|
-
Controls the action to take on this
|
|
796
|
-
|
|
965
|
+
Controls the action to take on this
|
|
966
|
+
virtual machine when the cluster has detected a permanent device loss to a
|
|
967
|
+
relevant datastore. Can be one of `clusterDefault`, `disabled`, `warning`, or
|
|
968
|
+
`restartAggressive`. Default: `clusterDefault`.
|
|
797
969
|
"""
|
|
798
970
|
return pulumi.get(self, "ha_datastore_pdl_response")
|
|
799
971
|
|
|
@@ -801,8 +973,10 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
801
973
|
@pulumi.getter(name="haHostIsolationResponse")
|
|
802
974
|
def ha_host_isolation_response(self) -> pulumi.Output[Optional[str]]:
|
|
803
975
|
"""
|
|
804
|
-
The action to take on this virtual
|
|
805
|
-
|
|
976
|
+
The action to take on this virtual
|
|
977
|
+
machine when a host has detected that it has been isolated from the rest of
|
|
978
|
+
the cluster. Can be one of `clusterIsolationResponse`, `none`, `powerOff`, or
|
|
979
|
+
`shutdown`. Default: `clusterIsolationResponse`.
|
|
806
980
|
"""
|
|
807
981
|
return pulumi.get(self, "ha_host_isolation_response")
|
|
808
982
|
|
|
@@ -810,8 +984,9 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
810
984
|
@pulumi.getter(name="haVmFailureInterval")
|
|
811
985
|
def ha_vm_failure_interval(self) -> pulumi.Output[Optional[int]]:
|
|
812
986
|
"""
|
|
813
|
-
If a heartbeat from this virtual
|
|
814
|
-
|
|
987
|
+
If a heartbeat from this virtual
|
|
988
|
+
machine is not received within this configured interval, the virtual machine
|
|
989
|
+
is marked as failed. The value is in seconds. Default: `30`.
|
|
815
990
|
"""
|
|
816
991
|
return pulumi.get(self, "ha_vm_failure_interval")
|
|
817
992
|
|
|
@@ -819,9 +994,12 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
819
994
|
@pulumi.getter(name="haVmMaximumFailureWindow")
|
|
820
995
|
def ha_vm_maximum_failure_window(self) -> pulumi.Output[Optional[int]]:
|
|
821
996
|
"""
|
|
822
|
-
The length of the reset window in
|
|
823
|
-
|
|
824
|
-
|
|
997
|
+
The length of the reset window in
|
|
998
|
+
which `ha_vm_maximum_resets` can operate. When this
|
|
999
|
+
window expires, no more resets are attempted regardless of the setting
|
|
1000
|
+
configured in `ha_vm_maximum_resets`. `-1` means no window, meaning an
|
|
1001
|
+
unlimited reset time is allotted. The value is specified in seconds. Default:
|
|
1002
|
+
`-1` (no window).
|
|
825
1003
|
"""
|
|
826
1004
|
return pulumi.get(self, "ha_vm_maximum_failure_window")
|
|
827
1005
|
|
|
@@ -829,7 +1007,9 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
829
1007
|
@pulumi.getter(name="haVmMaximumResets")
|
|
830
1008
|
def ha_vm_maximum_resets(self) -> pulumi.Output[Optional[int]]:
|
|
831
1009
|
"""
|
|
832
|
-
The maximum number of resets that HA will
|
|
1010
|
+
The maximum number of resets that HA will
|
|
1011
|
+
perform to this virtual machine when responding to a failure event. Default:
|
|
1012
|
+
`3`
|
|
833
1013
|
"""
|
|
834
1014
|
return pulumi.get(self, "ha_vm_maximum_resets")
|
|
835
1015
|
|
|
@@ -837,7 +1017,9 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
837
1017
|
@pulumi.getter(name="haVmMinimumUptime")
|
|
838
1018
|
def ha_vm_minimum_uptime(self) -> pulumi.Output[Optional[int]]:
|
|
839
1019
|
"""
|
|
840
|
-
The time, in seconds, that HA waits after
|
|
1020
|
+
The time, in seconds, that HA waits after
|
|
1021
|
+
powering on this virtual machine before monitoring for heartbeats. Default:
|
|
1022
|
+
`120` (2 minutes).
|
|
841
1023
|
"""
|
|
842
1024
|
return pulumi.get(self, "ha_vm_minimum_uptime")
|
|
843
1025
|
|
|
@@ -845,8 +1027,9 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
845
1027
|
@pulumi.getter(name="haVmMonitoring")
|
|
846
1028
|
def ha_vm_monitoring(self) -> pulumi.Output[Optional[str]]:
|
|
847
1029
|
"""
|
|
848
|
-
The type of virtual machine monitoring to use
|
|
849
|
-
|
|
1030
|
+
The type of virtual machine monitoring to use
|
|
1031
|
+
when HA is enabled in the cluster. Can be one of `vmMonitoringDisabled`,
|
|
1032
|
+
`vmMonitoringOnly`, or `vmAndAppMonitoring`. Default: `vmMonitoringDisabled`.
|
|
850
1033
|
"""
|
|
851
1034
|
return pulumi.get(self, "ha_vm_monitoring")
|
|
852
1035
|
|
|
@@ -854,8 +1037,10 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
854
1037
|
@pulumi.getter(name="haVmMonitoringUseClusterDefaults")
|
|
855
1038
|
def ha_vm_monitoring_use_cluster_defaults(self) -> pulumi.Output[Optional[bool]]:
|
|
856
1039
|
"""
|
|
857
|
-
Determines whether or
|
|
858
|
-
|
|
1040
|
+
Determines whether or
|
|
1041
|
+
not the cluster's default settings or the VM override settings specified in
|
|
1042
|
+
this resource are used for virtual machine monitoring. The default is `true`
|
|
1043
|
+
(use cluster defaults) - set to `false` to have overrides take effect.
|
|
859
1044
|
"""
|
|
860
1045
|
return pulumi.get(self, "ha_vm_monitoring_use_cluster_defaults")
|
|
861
1046
|
|
|
@@ -863,8 +1048,10 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
863
1048
|
@pulumi.getter(name="haVmRestartPriority")
|
|
864
1049
|
def ha_vm_restart_priority(self) -> pulumi.Output[Optional[str]]:
|
|
865
1050
|
"""
|
|
866
|
-
The restart priority for
|
|
867
|
-
|
|
1051
|
+
The restart priority for the virtual
|
|
1052
|
+
machine when vSphere detects a host failure. Can be one of
|
|
1053
|
+
`clusterRestartPriority`, `lowest`, `low`, `medium`, `high`, `highest`, or `disabled`.
|
|
1054
|
+
Default: `clusterRestartPriority`.
|
|
868
1055
|
"""
|
|
869
1056
|
return pulumi.get(self, "ha_vm_restart_priority")
|
|
870
1057
|
|
|
@@ -872,8 +1059,9 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
872
1059
|
@pulumi.getter(name="haVmRestartTimeout")
|
|
873
1060
|
def ha_vm_restart_timeout(self) -> pulumi.Output[Optional[int]]:
|
|
874
1061
|
"""
|
|
875
|
-
The maximum time, in seconds, that
|
|
876
|
-
|
|
1062
|
+
The maximum time, in seconds, that
|
|
1063
|
+
vSphere HA will wait for this virtual machine to be ready. Use `-1` to
|
|
1064
|
+
specify the cluster default. Default: `-1`.
|
|
877
1065
|
"""
|
|
878
1066
|
return pulumi.get(self, "ha_vm_restart_timeout")
|
|
879
1067
|
|
|
@@ -881,7 +1069,8 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
881
1069
|
@pulumi.getter(name="virtualMachineId")
|
|
882
1070
|
def virtual_machine_id(self) -> pulumi.Output[str]:
|
|
883
1071
|
"""
|
|
884
|
-
The
|
|
1072
|
+
The UUID of the virtual machine to create
|
|
1073
|
+
the override for. Forces a new resource if changed.
|
|
885
1074
|
"""
|
|
886
1075
|
return pulumi.get(self, "virtual_machine_id")
|
|
887
1076
|
|