pulumi-vsphere 4.10.0a1709017641__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 +51 -1
- pulumi_vsphere/_inputs.py +2568 -1025
- pulumi_vsphere/_utilities.py +50 -10
- pulumi_vsphere/compute_cluster.py +1564 -2373
- pulumi_vsphere/compute_cluster_host_group.py +191 -55
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +157 -113
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +133 -89
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +314 -106
- pulumi_vsphere/compute_cluster_vm_group.py +256 -55
- pulumi_vsphere/compute_cluster_vm_host_rule.py +323 -123
- pulumi_vsphere/config/__init__.py +2 -1
- pulumi_vsphere/config/__init__.pyi +7 -2
- pulumi_vsphere/config/vars.py +20 -15
- pulumi_vsphere/configuration_profile.py +286 -0
- pulumi_vsphere/content_library.py +177 -71
- pulumi_vsphere/content_library_item.py +252 -106
- pulumi_vsphere/custom_attribute.py +118 -38
- pulumi_vsphere/datacenter.py +128 -107
- pulumi_vsphere/datastore_cluster.py +636 -731
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +251 -89
- pulumi_vsphere/distributed_port_group.py +1129 -967
- pulumi_vsphere/distributed_virtual_switch.py +1971 -2239
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +294 -0
- pulumi_vsphere/dpm_host_override.py +222 -72
- pulumi_vsphere/drs_vm_override.py +236 -72
- pulumi_vsphere/entity_permissions.py +96 -69
- pulumi_vsphere/file.py +173 -178
- pulumi_vsphere/folder.py +236 -113
- pulumi_vsphere/get_compute_cluster.py +34 -23
- pulumi_vsphere/get_compute_cluster_host_group.py +52 -41
- pulumi_vsphere/get_configuration_profile.py +145 -0
- pulumi_vsphere/get_content_library.py +33 -21
- pulumi_vsphere/get_content_library_item.py +47 -31
- pulumi_vsphere/get_custom_attribute.py +26 -17
- pulumi_vsphere/get_datacenter.py +40 -18
- pulumi_vsphere/get_datastore.py +60 -24
- pulumi_vsphere/get_datastore_cluster.py +47 -22
- pulumi_vsphere/get_datastore_stats.py +204 -0
- pulumi_vsphere/get_distributed_virtual_switch.py +36 -23
- pulumi_vsphere/get_dynamic.py +55 -45
- pulumi_vsphere/get_folder.py +163 -25
- pulumi_vsphere/get_guest_os_customization.py +68 -37
- pulumi_vsphere/get_host.py +34 -23
- pulumi_vsphere/get_host_base_images.py +104 -0
- pulumi_vsphere/get_host_pci_device.py +78 -35
- pulumi_vsphere/get_host_thumbprint.py +58 -38
- pulumi_vsphere/get_host_vgpu_profile.py +195 -0
- pulumi_vsphere/get_license.py +44 -28
- pulumi_vsphere/get_network.py +157 -46
- pulumi_vsphere/get_ovf_vm_template.py +184 -301
- pulumi_vsphere/get_policy.py +23 -15
- pulumi_vsphere/get_resource_pool.py +107 -40
- pulumi_vsphere/get_role.py +49 -35
- pulumi_vsphere/get_tag.py +34 -23
- pulumi_vsphere/get_tag_category.py +32 -21
- pulumi_vsphere/get_vapp_container.py +31 -21
- pulumi_vsphere/get_virtual_machine.py +499 -287
- pulumi_vsphere/get_vmfs_disks.py +42 -29
- pulumi_vsphere/guest_os_customization.py +135 -79
- pulumi_vsphere/ha_vm_override.py +470 -577
- pulumi_vsphere/host.py +515 -262
- pulumi_vsphere/host_port_group.py +352 -355
- pulumi_vsphere/host_virtual_switch.py +580 -580
- pulumi_vsphere/license.py +110 -92
- pulumi_vsphere/nas_datastore.py +398 -270
- pulumi_vsphere/offline_software_depot.py +190 -0
- pulumi_vsphere/outputs.py +1582 -1027
- pulumi_vsphere/provider.py +172 -152
- pulumi_vsphere/pulumi-plugin.json +2 -1
- pulumi_vsphere/resource_pool.py +357 -273
- pulumi_vsphere/role.py +79 -47
- pulumi_vsphere/storage_drs_vm_override.py +225 -89
- pulumi_vsphere/supervisor.py +1064 -0
- pulumi_vsphere/tag.py +217 -55
- pulumi_vsphere/tag_category.py +158 -72
- pulumi_vsphere/vapp_container.py +425 -259
- pulumi_vsphere/vapp_entity.py +324 -174
- pulumi_vsphere/virtual_disk.py +245 -153
- pulumi_vsphere/virtual_machine.py +1696 -1836
- pulumi_vsphere/virtual_machine_class.py +448 -0
- pulumi_vsphere/virtual_machine_snapshot.py +137 -131
- pulumi_vsphere/vm_storage_policy.py +160 -154
- pulumi_vsphere/vmfs_datastore.py +460 -186
- pulumi_vsphere/vnic.py +249 -231
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +7 -6
- pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.0a1709017641.dist-info/RECORD +0 -80
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
pulumi_vsphere/ha_vm_override.py
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
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
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['HaVmOverrideArgs', 'HaVmOverride']
|
|
@@ -14,77 +19,38 @@ __all__ = ['HaVmOverrideArgs', 'HaVmOverride']
|
|
|
14
19
|
@pulumi.input_type
|
|
15
20
|
class HaVmOverrideArgs:
|
|
16
21
|
def __init__(__self__, *,
|
|
17
|
-
compute_cluster_id: pulumi.Input[str],
|
|
18
|
-
virtual_machine_id: pulumi.Input[str],
|
|
19
|
-
ha_datastore_apd_recovery_action: Optional[pulumi.Input[str]] = None,
|
|
20
|
-
ha_datastore_apd_response: Optional[pulumi.Input[str]] = None,
|
|
21
|
-
ha_datastore_apd_response_delay: Optional[pulumi.Input[int]] = None,
|
|
22
|
-
ha_datastore_pdl_response: Optional[pulumi.Input[str]] = None,
|
|
23
|
-
ha_host_isolation_response: Optional[pulumi.Input[str]] = None,
|
|
24
|
-
ha_vm_failure_interval: Optional[pulumi.Input[int]] = None,
|
|
25
|
-
ha_vm_maximum_failure_window: Optional[pulumi.Input[int]] = None,
|
|
26
|
-
ha_vm_maximum_resets: Optional[pulumi.Input[int]] = None,
|
|
27
|
-
ha_vm_minimum_uptime: Optional[pulumi.Input[int]] = None,
|
|
28
|
-
ha_vm_monitoring: Optional[pulumi.Input[str]] = None,
|
|
29
|
-
ha_vm_monitoring_use_cluster_defaults: Optional[pulumi.Input[bool]] = None,
|
|
30
|
-
ha_vm_restart_priority: Optional[pulumi.Input[str]] = None,
|
|
31
|
-
ha_vm_restart_timeout: Optional[pulumi.Input[int]] = None):
|
|
22
|
+
compute_cluster_id: pulumi.Input[_builtins.str],
|
|
23
|
+
virtual_machine_id: pulumi.Input[_builtins.str],
|
|
24
|
+
ha_datastore_apd_recovery_action: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
ha_datastore_apd_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
ha_datastore_apd_response_delay: Optional[pulumi.Input[_builtins.int]] = None,
|
|
27
|
+
ha_datastore_pdl_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
28
|
+
ha_host_isolation_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
|
+
ha_vm_failure_interval: Optional[pulumi.Input[_builtins.int]] = None,
|
|
30
|
+
ha_vm_maximum_failure_window: Optional[pulumi.Input[_builtins.int]] = None,
|
|
31
|
+
ha_vm_maximum_resets: Optional[pulumi.Input[_builtins.int]] = None,
|
|
32
|
+
ha_vm_minimum_uptime: Optional[pulumi.Input[_builtins.int]] = None,
|
|
33
|
+
ha_vm_monitoring: Optional[pulumi.Input[_builtins.str]] = None,
|
|
34
|
+
ha_vm_monitoring_use_cluster_defaults: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
35
|
+
ha_vm_restart_priority: Optional[pulumi.Input[_builtins.str]] = None,
|
|
36
|
+
ha_vm_restart_timeout: Optional[pulumi.Input[_builtins.int]] = None):
|
|
32
37
|
"""
|
|
33
38
|
The set of arguments for constructing a HaVmOverride resource.
|
|
34
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
:param pulumi.Input[str]
|
|
38
|
-
|
|
39
|
-
:param pulumi.Input[str]
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
:param pulumi.Input[
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
:param pulumi.Input[
|
|
48
|
-
|
|
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`.
|
|
39
|
+
:param pulumi.Input[_builtins.str] compute_cluster_id: The managed object ID of the cluster.
|
|
40
|
+
:param pulumi.Input[_builtins.str] virtual_machine_id: The managed object ID of the virtual machine.
|
|
41
|
+
:param pulumi.Input[_builtins.str] ha_datastore_apd_recovery_action: Controls the action to take on this virtual machine if an APD status on an affected datastore clears in the middle of an APD event. Can be one of useClusterDefault, none or reset.
|
|
42
|
+
:param pulumi.Input[_builtins.str] ha_datastore_apd_response: Controls the action to take on this virtual machine when the cluster has detected loss to all paths to a relevant datastore. Can be one of clusterDefault, disabled, warning, restartConservative, or restartAggressive.
|
|
43
|
+
:param pulumi.Input[_builtins.int] ha_datastore_apd_response_delay: Controls the delay in seconds to wait after an APD timeout event to execute the response action defined in ha_datastore_apd_response. Specify -1 to use the cluster setting.
|
|
44
|
+
:param pulumi.Input[_builtins.str] ha_datastore_pdl_response: Controls the action to take on this virtual machine when the cluster has detected a permanent device loss to a relevant datastore. Can be one of clusterDefault, disabled, warning, or restartAggressive.
|
|
45
|
+
:param pulumi.Input[_builtins.str] ha_host_isolation_response: The action to take on this virtual machine when a host is isolated from the rest of the cluster. Can be one of clusterIsolationResponse, none, powerOff, or shutdown.
|
|
46
|
+
:param pulumi.Input[_builtins.int] ha_vm_failure_interval: If a heartbeat from this virtual machine is not received within this configured interval, the virtual machine is marked as failed. The value is in seconds.
|
|
47
|
+
:param pulumi.Input[_builtins.int] ha_vm_maximum_failure_window: The length of the reset window in which ha_vm_maximum_resets can operate. When this window expires, no more resets are attempted regardless of the setting configured in ha_vm_maximum_resets. -1 means no window, meaning an unlimited reset time is allotted.
|
|
48
|
+
:param pulumi.Input[_builtins.int] ha_vm_maximum_resets: The maximum number of resets that HA will perform to this virtual machine when responding to a failure event.
|
|
49
|
+
:param pulumi.Input[_builtins.int] ha_vm_minimum_uptime: The time, in seconds, that HA waits after powering on this virtual machine before monitoring for heartbeats.
|
|
50
|
+
:param pulumi.Input[_builtins.str] ha_vm_monitoring: The type of virtual machine monitoring to use for this virtual machine. Can be one of vmMonitoringDisabled, vmMonitoringOnly, or vmAndAppMonitoring.
|
|
51
|
+
:param pulumi.Input[_builtins.bool] ha_vm_monitoring_use_cluster_defaults: Determines whether or not the cluster's default settings or the VM override settings specified in this resource are used for virtual machine monitoring. The default is true (use cluster defaults) - set to false to have overrides take effect.
|
|
52
|
+
:param pulumi.Input[_builtins.str] ha_vm_restart_priority: The restart priority for this virtual machine when vSphere detects a host failure. Can be one of clusterRestartPriority, lowest, low, medium, high, or highest.
|
|
53
|
+
:param pulumi.Input[_builtins.int] ha_vm_restart_timeout: The maximum time, in seconds, that vSphere HA will wait for the virtual machine to be ready. Use -1 to use the cluster default.
|
|
88
54
|
"""
|
|
89
55
|
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
|
|
90
56
|
pulumi.set(__self__, "virtual_machine_id", virtual_machine_id)
|
|
@@ -115,300 +81,222 @@ class HaVmOverrideArgs:
|
|
|
115
81
|
if ha_vm_restart_timeout is not None:
|
|
116
82
|
pulumi.set(__self__, "ha_vm_restart_timeout", ha_vm_restart_timeout)
|
|
117
83
|
|
|
118
|
-
@property
|
|
84
|
+
@_builtins.property
|
|
119
85
|
@pulumi.getter(name="computeClusterId")
|
|
120
|
-
def compute_cluster_id(self) -> pulumi.Input[str]:
|
|
86
|
+
def compute_cluster_id(self) -> pulumi.Input[_builtins.str]:
|
|
121
87
|
"""
|
|
122
|
-
The managed object
|
|
123
|
-
ID of the cluster to put the override in. Forces a new
|
|
124
|
-
resource if changed.
|
|
88
|
+
The managed object ID of the cluster.
|
|
125
89
|
"""
|
|
126
90
|
return pulumi.get(self, "compute_cluster_id")
|
|
127
91
|
|
|
128
92
|
@compute_cluster_id.setter
|
|
129
|
-
def compute_cluster_id(self, value: pulumi.Input[str]):
|
|
93
|
+
def compute_cluster_id(self, value: pulumi.Input[_builtins.str]):
|
|
130
94
|
pulumi.set(self, "compute_cluster_id", value)
|
|
131
95
|
|
|
132
|
-
@property
|
|
96
|
+
@_builtins.property
|
|
133
97
|
@pulumi.getter(name="virtualMachineId")
|
|
134
|
-
def virtual_machine_id(self) -> pulumi.Input[str]:
|
|
98
|
+
def virtual_machine_id(self) -> pulumi.Input[_builtins.str]:
|
|
135
99
|
"""
|
|
136
|
-
The
|
|
137
|
-
the override for. Forces a new resource if changed.
|
|
100
|
+
The managed object ID of the virtual machine.
|
|
138
101
|
"""
|
|
139
102
|
return pulumi.get(self, "virtual_machine_id")
|
|
140
103
|
|
|
141
104
|
@virtual_machine_id.setter
|
|
142
|
-
def virtual_machine_id(self, value: pulumi.Input[str]):
|
|
105
|
+
def virtual_machine_id(self, value: pulumi.Input[_builtins.str]):
|
|
143
106
|
pulumi.set(self, "virtual_machine_id", value)
|
|
144
107
|
|
|
145
|
-
@property
|
|
108
|
+
@_builtins.property
|
|
146
109
|
@pulumi.getter(name="haDatastoreApdRecoveryAction")
|
|
147
|
-
def ha_datastore_apd_recovery_action(self) -> Optional[pulumi.Input[str]]:
|
|
110
|
+
def ha_datastore_apd_recovery_action(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
148
111
|
"""
|
|
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`.
|
|
112
|
+
Controls the action to take on this virtual machine if an APD status on an affected datastore clears in the middle of an APD event. Can be one of useClusterDefault, none or reset.
|
|
153
113
|
"""
|
|
154
114
|
return pulumi.get(self, "ha_datastore_apd_recovery_action")
|
|
155
115
|
|
|
156
116
|
@ha_datastore_apd_recovery_action.setter
|
|
157
|
-
def ha_datastore_apd_recovery_action(self, value: Optional[pulumi.Input[str]]):
|
|
117
|
+
def ha_datastore_apd_recovery_action(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
158
118
|
pulumi.set(self, "ha_datastore_apd_recovery_action", value)
|
|
159
119
|
|
|
160
|
-
@property
|
|
120
|
+
@_builtins.property
|
|
161
121
|
@pulumi.getter(name="haDatastoreApdResponse")
|
|
162
|
-
def ha_datastore_apd_response(self) -> Optional[pulumi.Input[str]]:
|
|
122
|
+
def ha_datastore_apd_response(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
163
123
|
"""
|
|
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`.
|
|
124
|
+
Controls the action to take on this virtual machine when the cluster has detected loss to all paths to a relevant datastore. Can be one of clusterDefault, disabled, warning, restartConservative, or restartAggressive.
|
|
168
125
|
"""
|
|
169
126
|
return pulumi.get(self, "ha_datastore_apd_response")
|
|
170
127
|
|
|
171
128
|
@ha_datastore_apd_response.setter
|
|
172
|
-
def ha_datastore_apd_response(self, value: Optional[pulumi.Input[str]]):
|
|
129
|
+
def ha_datastore_apd_response(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
173
130
|
pulumi.set(self, "ha_datastore_apd_response", value)
|
|
174
131
|
|
|
175
|
-
@property
|
|
132
|
+
@_builtins.property
|
|
176
133
|
@pulumi.getter(name="haDatastoreApdResponseDelay")
|
|
177
|
-
def ha_datastore_apd_response_delay(self) -> Optional[pulumi.Input[int]]:
|
|
134
|
+
def ha_datastore_apd_response_delay(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
178
135
|
"""
|
|
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`.
|
|
136
|
+
Controls the delay in seconds to wait after an APD timeout event to execute the response action defined in ha_datastore_apd_response. Specify -1 to use the cluster setting.
|
|
183
137
|
"""
|
|
184
138
|
return pulumi.get(self, "ha_datastore_apd_response_delay")
|
|
185
139
|
|
|
186
140
|
@ha_datastore_apd_response_delay.setter
|
|
187
|
-
def ha_datastore_apd_response_delay(self, value: Optional[pulumi.Input[int]]):
|
|
141
|
+
def ha_datastore_apd_response_delay(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
188
142
|
pulumi.set(self, "ha_datastore_apd_response_delay", value)
|
|
189
143
|
|
|
190
|
-
@property
|
|
144
|
+
@_builtins.property
|
|
191
145
|
@pulumi.getter(name="haDatastorePdlResponse")
|
|
192
|
-
def ha_datastore_pdl_response(self) -> Optional[pulumi.Input[str]]:
|
|
146
|
+
def ha_datastore_pdl_response(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
193
147
|
"""
|
|
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`.
|
|
148
|
+
Controls the action to take on this virtual machine when the cluster has detected a permanent device loss to a relevant datastore. Can be one of clusterDefault, disabled, warning, or restartAggressive.
|
|
198
149
|
"""
|
|
199
150
|
return pulumi.get(self, "ha_datastore_pdl_response")
|
|
200
151
|
|
|
201
152
|
@ha_datastore_pdl_response.setter
|
|
202
|
-
def ha_datastore_pdl_response(self, value: Optional[pulumi.Input[str]]):
|
|
153
|
+
def ha_datastore_pdl_response(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
203
154
|
pulumi.set(self, "ha_datastore_pdl_response", value)
|
|
204
155
|
|
|
205
|
-
@property
|
|
156
|
+
@_builtins.property
|
|
206
157
|
@pulumi.getter(name="haHostIsolationResponse")
|
|
207
|
-
def ha_host_isolation_response(self) -> Optional[pulumi.Input[str]]:
|
|
158
|
+
def ha_host_isolation_response(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
208
159
|
"""
|
|
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`.
|
|
160
|
+
The action to take on this virtual machine when a host is isolated from the rest of the cluster. Can be one of clusterIsolationResponse, none, powerOff, or shutdown.
|
|
213
161
|
"""
|
|
214
162
|
return pulumi.get(self, "ha_host_isolation_response")
|
|
215
163
|
|
|
216
164
|
@ha_host_isolation_response.setter
|
|
217
|
-
def ha_host_isolation_response(self, value: Optional[pulumi.Input[str]]):
|
|
165
|
+
def ha_host_isolation_response(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
218
166
|
pulumi.set(self, "ha_host_isolation_response", value)
|
|
219
167
|
|
|
220
|
-
@property
|
|
168
|
+
@_builtins.property
|
|
221
169
|
@pulumi.getter(name="haVmFailureInterval")
|
|
222
|
-
def ha_vm_failure_interval(self) -> Optional[pulumi.Input[int]]:
|
|
170
|
+
def ha_vm_failure_interval(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
223
171
|
"""
|
|
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`.
|
|
172
|
+
If a heartbeat from this virtual machine is not received within this configured interval, the virtual machine is marked as failed. The value is in seconds.
|
|
227
173
|
"""
|
|
228
174
|
return pulumi.get(self, "ha_vm_failure_interval")
|
|
229
175
|
|
|
230
176
|
@ha_vm_failure_interval.setter
|
|
231
|
-
def ha_vm_failure_interval(self, value: Optional[pulumi.Input[int]]):
|
|
177
|
+
def ha_vm_failure_interval(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
232
178
|
pulumi.set(self, "ha_vm_failure_interval", value)
|
|
233
179
|
|
|
234
|
-
@property
|
|
180
|
+
@_builtins.property
|
|
235
181
|
@pulumi.getter(name="haVmMaximumFailureWindow")
|
|
236
|
-
def ha_vm_maximum_failure_window(self) -> Optional[pulumi.Input[int]]:
|
|
182
|
+
def ha_vm_maximum_failure_window(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
237
183
|
"""
|
|
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).
|
|
184
|
+
The length of the reset window in which ha_vm_maximum_resets can operate. When this window expires, no more resets are attempted regardless of the setting configured in ha_vm_maximum_resets. -1 means no window, meaning an unlimited reset time is allotted.
|
|
244
185
|
"""
|
|
245
186
|
return pulumi.get(self, "ha_vm_maximum_failure_window")
|
|
246
187
|
|
|
247
188
|
@ha_vm_maximum_failure_window.setter
|
|
248
|
-
def ha_vm_maximum_failure_window(self, value: Optional[pulumi.Input[int]]):
|
|
189
|
+
def ha_vm_maximum_failure_window(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
249
190
|
pulumi.set(self, "ha_vm_maximum_failure_window", value)
|
|
250
191
|
|
|
251
|
-
@property
|
|
192
|
+
@_builtins.property
|
|
252
193
|
@pulumi.getter(name="haVmMaximumResets")
|
|
253
|
-
def ha_vm_maximum_resets(self) -> Optional[pulumi.Input[int]]:
|
|
194
|
+
def ha_vm_maximum_resets(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
254
195
|
"""
|
|
255
|
-
The maximum number of resets that HA will
|
|
256
|
-
perform to this virtual machine when responding to a failure event. Default:
|
|
257
|
-
`3`
|
|
196
|
+
The maximum number of resets that HA will perform to this virtual machine when responding to a failure event.
|
|
258
197
|
"""
|
|
259
198
|
return pulumi.get(self, "ha_vm_maximum_resets")
|
|
260
199
|
|
|
261
200
|
@ha_vm_maximum_resets.setter
|
|
262
|
-
def ha_vm_maximum_resets(self, value: Optional[pulumi.Input[int]]):
|
|
201
|
+
def ha_vm_maximum_resets(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
263
202
|
pulumi.set(self, "ha_vm_maximum_resets", value)
|
|
264
203
|
|
|
265
|
-
@property
|
|
204
|
+
@_builtins.property
|
|
266
205
|
@pulumi.getter(name="haVmMinimumUptime")
|
|
267
|
-
def ha_vm_minimum_uptime(self) -> Optional[pulumi.Input[int]]:
|
|
206
|
+
def ha_vm_minimum_uptime(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
268
207
|
"""
|
|
269
|
-
The time, in seconds, that HA waits after
|
|
270
|
-
powering on this virtual machine before monitoring for heartbeats. Default:
|
|
271
|
-
`120` (2 minutes).
|
|
208
|
+
The time, in seconds, that HA waits after powering on this virtual machine before monitoring for heartbeats.
|
|
272
209
|
"""
|
|
273
210
|
return pulumi.get(self, "ha_vm_minimum_uptime")
|
|
274
211
|
|
|
275
212
|
@ha_vm_minimum_uptime.setter
|
|
276
|
-
def ha_vm_minimum_uptime(self, value: Optional[pulumi.Input[int]]):
|
|
213
|
+
def ha_vm_minimum_uptime(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
277
214
|
pulumi.set(self, "ha_vm_minimum_uptime", value)
|
|
278
215
|
|
|
279
|
-
@property
|
|
216
|
+
@_builtins.property
|
|
280
217
|
@pulumi.getter(name="haVmMonitoring")
|
|
281
|
-
def ha_vm_monitoring(self) -> Optional[pulumi.Input[str]]:
|
|
218
|
+
def ha_vm_monitoring(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
282
219
|
"""
|
|
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`.
|
|
220
|
+
The type of virtual machine monitoring to use for this virtual machine. Can be one of vmMonitoringDisabled, vmMonitoringOnly, or vmAndAppMonitoring.
|
|
286
221
|
"""
|
|
287
222
|
return pulumi.get(self, "ha_vm_monitoring")
|
|
288
223
|
|
|
289
224
|
@ha_vm_monitoring.setter
|
|
290
|
-
def ha_vm_monitoring(self, value: Optional[pulumi.Input[str]]):
|
|
225
|
+
def ha_vm_monitoring(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
291
226
|
pulumi.set(self, "ha_vm_monitoring", value)
|
|
292
227
|
|
|
293
|
-
@property
|
|
228
|
+
@_builtins.property
|
|
294
229
|
@pulumi.getter(name="haVmMonitoringUseClusterDefaults")
|
|
295
|
-
def ha_vm_monitoring_use_cluster_defaults(self) -> Optional[pulumi.Input[bool]]:
|
|
230
|
+
def ha_vm_monitoring_use_cluster_defaults(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
296
231
|
"""
|
|
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.
|
|
232
|
+
Determines whether or not the cluster's default settings or the VM override settings specified in this resource are used for virtual machine monitoring. The default is true (use cluster defaults) - set to false to have overrides take effect.
|
|
301
233
|
"""
|
|
302
234
|
return pulumi.get(self, "ha_vm_monitoring_use_cluster_defaults")
|
|
303
235
|
|
|
304
236
|
@ha_vm_monitoring_use_cluster_defaults.setter
|
|
305
|
-
def ha_vm_monitoring_use_cluster_defaults(self, value: Optional[pulumi.Input[bool]]):
|
|
237
|
+
def ha_vm_monitoring_use_cluster_defaults(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
306
238
|
pulumi.set(self, "ha_vm_monitoring_use_cluster_defaults", value)
|
|
307
239
|
|
|
308
|
-
@property
|
|
240
|
+
@_builtins.property
|
|
309
241
|
@pulumi.getter(name="haVmRestartPriority")
|
|
310
|
-
def ha_vm_restart_priority(self) -> Optional[pulumi.Input[str]]:
|
|
242
|
+
def ha_vm_restart_priority(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
311
243
|
"""
|
|
312
|
-
The restart priority for
|
|
313
|
-
machine when vSphere detects a host failure. Can be one of
|
|
314
|
-
`clusterRestartPriority`, `lowest`, `low`, `medium`, `high`, `highest`, or `disabled`.
|
|
315
|
-
Default: `clusterRestartPriority`.
|
|
244
|
+
The restart priority for this virtual machine when vSphere detects a host failure. Can be one of clusterRestartPriority, lowest, low, medium, high, or highest.
|
|
316
245
|
"""
|
|
317
246
|
return pulumi.get(self, "ha_vm_restart_priority")
|
|
318
247
|
|
|
319
248
|
@ha_vm_restart_priority.setter
|
|
320
|
-
def ha_vm_restart_priority(self, value: Optional[pulumi.Input[str]]):
|
|
249
|
+
def ha_vm_restart_priority(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
321
250
|
pulumi.set(self, "ha_vm_restart_priority", value)
|
|
322
251
|
|
|
323
|
-
@property
|
|
252
|
+
@_builtins.property
|
|
324
253
|
@pulumi.getter(name="haVmRestartTimeout")
|
|
325
|
-
def ha_vm_restart_timeout(self) -> Optional[pulumi.Input[int]]:
|
|
254
|
+
def ha_vm_restart_timeout(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
326
255
|
"""
|
|
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`.
|
|
256
|
+
The maximum time, in seconds, that vSphere HA will wait for the virtual machine to be ready. Use -1 to use the cluster default.
|
|
330
257
|
"""
|
|
331
258
|
return pulumi.get(self, "ha_vm_restart_timeout")
|
|
332
259
|
|
|
333
260
|
@ha_vm_restart_timeout.setter
|
|
334
|
-
def ha_vm_restart_timeout(self, value: Optional[pulumi.Input[int]]):
|
|
261
|
+
def ha_vm_restart_timeout(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
335
262
|
pulumi.set(self, "ha_vm_restart_timeout", value)
|
|
336
263
|
|
|
337
264
|
|
|
338
265
|
@pulumi.input_type
|
|
339
266
|
class _HaVmOverrideState:
|
|
340
267
|
def __init__(__self__, *,
|
|
341
|
-
compute_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
342
|
-
ha_datastore_apd_recovery_action: Optional[pulumi.Input[str]] = None,
|
|
343
|
-
ha_datastore_apd_response: Optional[pulumi.Input[str]] = None,
|
|
344
|
-
ha_datastore_apd_response_delay: Optional[pulumi.Input[int]] = None,
|
|
345
|
-
ha_datastore_pdl_response: Optional[pulumi.Input[str]] = None,
|
|
346
|
-
ha_host_isolation_response: Optional[pulumi.Input[str]] = None,
|
|
347
|
-
ha_vm_failure_interval: Optional[pulumi.Input[int]] = None,
|
|
348
|
-
ha_vm_maximum_failure_window: Optional[pulumi.Input[int]] = None,
|
|
349
|
-
ha_vm_maximum_resets: Optional[pulumi.Input[int]] = None,
|
|
350
|
-
ha_vm_minimum_uptime: Optional[pulumi.Input[int]] = None,
|
|
351
|
-
ha_vm_monitoring: Optional[pulumi.Input[str]] = None,
|
|
352
|
-
ha_vm_monitoring_use_cluster_defaults: Optional[pulumi.Input[bool]] = None,
|
|
353
|
-
ha_vm_restart_priority: Optional[pulumi.Input[str]] = None,
|
|
354
|
-
ha_vm_restart_timeout: Optional[pulumi.Input[int]] = None,
|
|
355
|
-
virtual_machine_id: Optional[pulumi.Input[str]] = None):
|
|
268
|
+
compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
269
|
+
ha_datastore_apd_recovery_action: Optional[pulumi.Input[_builtins.str]] = None,
|
|
270
|
+
ha_datastore_apd_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
271
|
+
ha_datastore_apd_response_delay: Optional[pulumi.Input[_builtins.int]] = None,
|
|
272
|
+
ha_datastore_pdl_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
273
|
+
ha_host_isolation_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
274
|
+
ha_vm_failure_interval: Optional[pulumi.Input[_builtins.int]] = None,
|
|
275
|
+
ha_vm_maximum_failure_window: Optional[pulumi.Input[_builtins.int]] = None,
|
|
276
|
+
ha_vm_maximum_resets: Optional[pulumi.Input[_builtins.int]] = None,
|
|
277
|
+
ha_vm_minimum_uptime: Optional[pulumi.Input[_builtins.int]] = None,
|
|
278
|
+
ha_vm_monitoring: Optional[pulumi.Input[_builtins.str]] = None,
|
|
279
|
+
ha_vm_monitoring_use_cluster_defaults: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
280
|
+
ha_vm_restart_priority: Optional[pulumi.Input[_builtins.str]] = None,
|
|
281
|
+
ha_vm_restart_timeout: Optional[pulumi.Input[_builtins.int]] = None,
|
|
282
|
+
virtual_machine_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
356
283
|
"""
|
|
357
284
|
Input properties used for looking up and filtering HaVmOverride resources.
|
|
358
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
:param pulumi.Input[
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
:param pulumi.Input[
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
:param pulumi.Input[
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
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.
|
|
285
|
+
:param pulumi.Input[_builtins.str] compute_cluster_id: The managed object ID of the cluster.
|
|
286
|
+
:param pulumi.Input[_builtins.str] ha_datastore_apd_recovery_action: Controls the action to take on this virtual machine if an APD status on an affected datastore clears in the middle of an APD event. Can be one of useClusterDefault, none or reset.
|
|
287
|
+
:param pulumi.Input[_builtins.str] ha_datastore_apd_response: Controls the action to take on this virtual machine when the cluster has detected loss to all paths to a relevant datastore. Can be one of clusterDefault, disabled, warning, restartConservative, or restartAggressive.
|
|
288
|
+
:param pulumi.Input[_builtins.int] ha_datastore_apd_response_delay: Controls the delay in seconds to wait after an APD timeout event to execute the response action defined in ha_datastore_apd_response. Specify -1 to use the cluster setting.
|
|
289
|
+
:param pulumi.Input[_builtins.str] ha_datastore_pdl_response: Controls the action to take on this virtual machine when the cluster has detected a permanent device loss to a relevant datastore. Can be one of clusterDefault, disabled, warning, or restartAggressive.
|
|
290
|
+
:param pulumi.Input[_builtins.str] ha_host_isolation_response: The action to take on this virtual machine when a host is isolated from the rest of the cluster. Can be one of clusterIsolationResponse, none, powerOff, or shutdown.
|
|
291
|
+
:param pulumi.Input[_builtins.int] ha_vm_failure_interval: If a heartbeat from this virtual machine is not received within this configured interval, the virtual machine is marked as failed. The value is in seconds.
|
|
292
|
+
:param pulumi.Input[_builtins.int] ha_vm_maximum_failure_window: The length of the reset window in which ha_vm_maximum_resets can operate. When this window expires, no more resets are attempted regardless of the setting configured in ha_vm_maximum_resets. -1 means no window, meaning an unlimited reset time is allotted.
|
|
293
|
+
:param pulumi.Input[_builtins.int] ha_vm_maximum_resets: The maximum number of resets that HA will perform to this virtual machine when responding to a failure event.
|
|
294
|
+
:param pulumi.Input[_builtins.int] ha_vm_minimum_uptime: The time, in seconds, that HA waits after powering on this virtual machine before monitoring for heartbeats.
|
|
295
|
+
:param pulumi.Input[_builtins.str] ha_vm_monitoring: The type of virtual machine monitoring to use for this virtual machine. Can be one of vmMonitoringDisabled, vmMonitoringOnly, or vmAndAppMonitoring.
|
|
296
|
+
:param pulumi.Input[_builtins.bool] ha_vm_monitoring_use_cluster_defaults: Determines whether or not the cluster's default settings or the VM override settings specified in this resource are used for virtual machine monitoring. The default is true (use cluster defaults) - set to false to have overrides take effect.
|
|
297
|
+
:param pulumi.Input[_builtins.str] ha_vm_restart_priority: The restart priority for this virtual machine when vSphere detects a host failure. Can be one of clusterRestartPriority, lowest, low, medium, high, or highest.
|
|
298
|
+
:param pulumi.Input[_builtins.int] ha_vm_restart_timeout: The maximum time, in seconds, that vSphere HA will wait for the virtual machine to be ready. Use -1 to use the cluster default.
|
|
299
|
+
:param pulumi.Input[_builtins.str] virtual_machine_id: The managed object ID of the virtual machine.
|
|
412
300
|
"""
|
|
413
301
|
if compute_cluster_id is not None:
|
|
414
302
|
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
|
|
@@ -441,305 +329,308 @@ class _HaVmOverrideState:
|
|
|
441
329
|
if virtual_machine_id is not None:
|
|
442
330
|
pulumi.set(__self__, "virtual_machine_id", virtual_machine_id)
|
|
443
331
|
|
|
444
|
-
@property
|
|
332
|
+
@_builtins.property
|
|
445
333
|
@pulumi.getter(name="computeClusterId")
|
|
446
|
-
def compute_cluster_id(self) -> Optional[pulumi.Input[str]]:
|
|
334
|
+
def compute_cluster_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
447
335
|
"""
|
|
448
|
-
The managed object
|
|
449
|
-
ID of the cluster to put the override in. Forces a new
|
|
450
|
-
resource if changed.
|
|
336
|
+
The managed object ID of the cluster.
|
|
451
337
|
"""
|
|
452
338
|
return pulumi.get(self, "compute_cluster_id")
|
|
453
339
|
|
|
454
340
|
@compute_cluster_id.setter
|
|
455
|
-
def compute_cluster_id(self, value: Optional[pulumi.Input[str]]):
|
|
341
|
+
def compute_cluster_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
456
342
|
pulumi.set(self, "compute_cluster_id", value)
|
|
457
343
|
|
|
458
|
-
@property
|
|
344
|
+
@_builtins.property
|
|
459
345
|
@pulumi.getter(name="haDatastoreApdRecoveryAction")
|
|
460
|
-
def ha_datastore_apd_recovery_action(self) -> Optional[pulumi.Input[str]]:
|
|
346
|
+
def ha_datastore_apd_recovery_action(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
461
347
|
"""
|
|
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`.
|
|
348
|
+
Controls the action to take on this virtual machine if an APD status on an affected datastore clears in the middle of an APD event. Can be one of useClusterDefault, none or reset.
|
|
466
349
|
"""
|
|
467
350
|
return pulumi.get(self, "ha_datastore_apd_recovery_action")
|
|
468
351
|
|
|
469
352
|
@ha_datastore_apd_recovery_action.setter
|
|
470
|
-
def ha_datastore_apd_recovery_action(self, value: Optional[pulumi.Input[str]]):
|
|
353
|
+
def ha_datastore_apd_recovery_action(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
471
354
|
pulumi.set(self, "ha_datastore_apd_recovery_action", value)
|
|
472
355
|
|
|
473
|
-
@property
|
|
356
|
+
@_builtins.property
|
|
474
357
|
@pulumi.getter(name="haDatastoreApdResponse")
|
|
475
|
-
def ha_datastore_apd_response(self) -> Optional[pulumi.Input[str]]:
|
|
358
|
+
def ha_datastore_apd_response(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
476
359
|
"""
|
|
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`.
|
|
360
|
+
Controls the action to take on this virtual machine when the cluster has detected loss to all paths to a relevant datastore. Can be one of clusterDefault, disabled, warning, restartConservative, or restartAggressive.
|
|
481
361
|
"""
|
|
482
362
|
return pulumi.get(self, "ha_datastore_apd_response")
|
|
483
363
|
|
|
484
364
|
@ha_datastore_apd_response.setter
|
|
485
|
-
def ha_datastore_apd_response(self, value: Optional[pulumi.Input[str]]):
|
|
365
|
+
def ha_datastore_apd_response(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
486
366
|
pulumi.set(self, "ha_datastore_apd_response", value)
|
|
487
367
|
|
|
488
|
-
@property
|
|
368
|
+
@_builtins.property
|
|
489
369
|
@pulumi.getter(name="haDatastoreApdResponseDelay")
|
|
490
|
-
def ha_datastore_apd_response_delay(self) -> Optional[pulumi.Input[int]]:
|
|
370
|
+
def ha_datastore_apd_response_delay(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
491
371
|
"""
|
|
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`.
|
|
372
|
+
Controls the delay in seconds to wait after an APD timeout event to execute the response action defined in ha_datastore_apd_response. Specify -1 to use the cluster setting.
|
|
496
373
|
"""
|
|
497
374
|
return pulumi.get(self, "ha_datastore_apd_response_delay")
|
|
498
375
|
|
|
499
376
|
@ha_datastore_apd_response_delay.setter
|
|
500
|
-
def ha_datastore_apd_response_delay(self, value: Optional[pulumi.Input[int]]):
|
|
377
|
+
def ha_datastore_apd_response_delay(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
501
378
|
pulumi.set(self, "ha_datastore_apd_response_delay", value)
|
|
502
379
|
|
|
503
|
-
@property
|
|
380
|
+
@_builtins.property
|
|
504
381
|
@pulumi.getter(name="haDatastorePdlResponse")
|
|
505
|
-
def ha_datastore_pdl_response(self) -> Optional[pulumi.Input[str]]:
|
|
382
|
+
def ha_datastore_pdl_response(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
506
383
|
"""
|
|
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`.
|
|
384
|
+
Controls the action to take on this virtual machine when the cluster has detected a permanent device loss to a relevant datastore. Can be one of clusterDefault, disabled, warning, or restartAggressive.
|
|
511
385
|
"""
|
|
512
386
|
return pulumi.get(self, "ha_datastore_pdl_response")
|
|
513
387
|
|
|
514
388
|
@ha_datastore_pdl_response.setter
|
|
515
|
-
def ha_datastore_pdl_response(self, value: Optional[pulumi.Input[str]]):
|
|
389
|
+
def ha_datastore_pdl_response(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
516
390
|
pulumi.set(self, "ha_datastore_pdl_response", value)
|
|
517
391
|
|
|
518
|
-
@property
|
|
392
|
+
@_builtins.property
|
|
519
393
|
@pulumi.getter(name="haHostIsolationResponse")
|
|
520
|
-
def ha_host_isolation_response(self) -> Optional[pulumi.Input[str]]:
|
|
394
|
+
def ha_host_isolation_response(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
521
395
|
"""
|
|
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`.
|
|
396
|
+
The action to take on this virtual machine when a host is isolated from the rest of the cluster. Can be one of clusterIsolationResponse, none, powerOff, or shutdown.
|
|
526
397
|
"""
|
|
527
398
|
return pulumi.get(self, "ha_host_isolation_response")
|
|
528
399
|
|
|
529
400
|
@ha_host_isolation_response.setter
|
|
530
|
-
def ha_host_isolation_response(self, value: Optional[pulumi.Input[str]]):
|
|
401
|
+
def ha_host_isolation_response(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
531
402
|
pulumi.set(self, "ha_host_isolation_response", value)
|
|
532
403
|
|
|
533
|
-
@property
|
|
404
|
+
@_builtins.property
|
|
534
405
|
@pulumi.getter(name="haVmFailureInterval")
|
|
535
|
-
def ha_vm_failure_interval(self) -> Optional[pulumi.Input[int]]:
|
|
406
|
+
def ha_vm_failure_interval(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
536
407
|
"""
|
|
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`.
|
|
408
|
+
If a heartbeat from this virtual machine is not received within this configured interval, the virtual machine is marked as failed. The value is in seconds.
|
|
540
409
|
"""
|
|
541
410
|
return pulumi.get(self, "ha_vm_failure_interval")
|
|
542
411
|
|
|
543
412
|
@ha_vm_failure_interval.setter
|
|
544
|
-
def ha_vm_failure_interval(self, value: Optional[pulumi.Input[int]]):
|
|
413
|
+
def ha_vm_failure_interval(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
545
414
|
pulumi.set(self, "ha_vm_failure_interval", value)
|
|
546
415
|
|
|
547
|
-
@property
|
|
416
|
+
@_builtins.property
|
|
548
417
|
@pulumi.getter(name="haVmMaximumFailureWindow")
|
|
549
|
-
def ha_vm_maximum_failure_window(self) -> Optional[pulumi.Input[int]]:
|
|
418
|
+
def ha_vm_maximum_failure_window(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
550
419
|
"""
|
|
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).
|
|
420
|
+
The length of the reset window in which ha_vm_maximum_resets can operate. When this window expires, no more resets are attempted regardless of the setting configured in ha_vm_maximum_resets. -1 means no window, meaning an unlimited reset time is allotted.
|
|
557
421
|
"""
|
|
558
422
|
return pulumi.get(self, "ha_vm_maximum_failure_window")
|
|
559
423
|
|
|
560
424
|
@ha_vm_maximum_failure_window.setter
|
|
561
|
-
def ha_vm_maximum_failure_window(self, value: Optional[pulumi.Input[int]]):
|
|
425
|
+
def ha_vm_maximum_failure_window(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
562
426
|
pulumi.set(self, "ha_vm_maximum_failure_window", value)
|
|
563
427
|
|
|
564
|
-
@property
|
|
428
|
+
@_builtins.property
|
|
565
429
|
@pulumi.getter(name="haVmMaximumResets")
|
|
566
|
-
def ha_vm_maximum_resets(self) -> Optional[pulumi.Input[int]]:
|
|
430
|
+
def ha_vm_maximum_resets(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
567
431
|
"""
|
|
568
|
-
The maximum number of resets that HA will
|
|
569
|
-
perform to this virtual machine when responding to a failure event. Default:
|
|
570
|
-
`3`
|
|
432
|
+
The maximum number of resets that HA will perform to this virtual machine when responding to a failure event.
|
|
571
433
|
"""
|
|
572
434
|
return pulumi.get(self, "ha_vm_maximum_resets")
|
|
573
435
|
|
|
574
436
|
@ha_vm_maximum_resets.setter
|
|
575
|
-
def ha_vm_maximum_resets(self, value: Optional[pulumi.Input[int]]):
|
|
437
|
+
def ha_vm_maximum_resets(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
576
438
|
pulumi.set(self, "ha_vm_maximum_resets", value)
|
|
577
439
|
|
|
578
|
-
@property
|
|
440
|
+
@_builtins.property
|
|
579
441
|
@pulumi.getter(name="haVmMinimumUptime")
|
|
580
|
-
def ha_vm_minimum_uptime(self) -> Optional[pulumi.Input[int]]:
|
|
442
|
+
def ha_vm_minimum_uptime(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
581
443
|
"""
|
|
582
|
-
The time, in seconds, that HA waits after
|
|
583
|
-
powering on this virtual machine before monitoring for heartbeats. Default:
|
|
584
|
-
`120` (2 minutes).
|
|
444
|
+
The time, in seconds, that HA waits after powering on this virtual machine before monitoring for heartbeats.
|
|
585
445
|
"""
|
|
586
446
|
return pulumi.get(self, "ha_vm_minimum_uptime")
|
|
587
447
|
|
|
588
448
|
@ha_vm_minimum_uptime.setter
|
|
589
|
-
def ha_vm_minimum_uptime(self, value: Optional[pulumi.Input[int]]):
|
|
449
|
+
def ha_vm_minimum_uptime(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
590
450
|
pulumi.set(self, "ha_vm_minimum_uptime", value)
|
|
591
451
|
|
|
592
|
-
@property
|
|
452
|
+
@_builtins.property
|
|
593
453
|
@pulumi.getter(name="haVmMonitoring")
|
|
594
|
-
def ha_vm_monitoring(self) -> Optional[pulumi.Input[str]]:
|
|
454
|
+
def ha_vm_monitoring(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
595
455
|
"""
|
|
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`.
|
|
456
|
+
The type of virtual machine monitoring to use for this virtual machine. Can be one of vmMonitoringDisabled, vmMonitoringOnly, or vmAndAppMonitoring.
|
|
599
457
|
"""
|
|
600
458
|
return pulumi.get(self, "ha_vm_monitoring")
|
|
601
459
|
|
|
602
460
|
@ha_vm_monitoring.setter
|
|
603
|
-
def ha_vm_monitoring(self, value: Optional[pulumi.Input[str]]):
|
|
461
|
+
def ha_vm_monitoring(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
604
462
|
pulumi.set(self, "ha_vm_monitoring", value)
|
|
605
463
|
|
|
606
|
-
@property
|
|
464
|
+
@_builtins.property
|
|
607
465
|
@pulumi.getter(name="haVmMonitoringUseClusterDefaults")
|
|
608
|
-
def ha_vm_monitoring_use_cluster_defaults(self) -> Optional[pulumi.Input[bool]]:
|
|
466
|
+
def ha_vm_monitoring_use_cluster_defaults(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
609
467
|
"""
|
|
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.
|
|
468
|
+
Determines whether or not the cluster's default settings or the VM override settings specified in this resource are used for virtual machine monitoring. The default is true (use cluster defaults) - set to false to have overrides take effect.
|
|
614
469
|
"""
|
|
615
470
|
return pulumi.get(self, "ha_vm_monitoring_use_cluster_defaults")
|
|
616
471
|
|
|
617
472
|
@ha_vm_monitoring_use_cluster_defaults.setter
|
|
618
|
-
def ha_vm_monitoring_use_cluster_defaults(self, value: Optional[pulumi.Input[bool]]):
|
|
473
|
+
def ha_vm_monitoring_use_cluster_defaults(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
619
474
|
pulumi.set(self, "ha_vm_monitoring_use_cluster_defaults", value)
|
|
620
475
|
|
|
621
|
-
@property
|
|
476
|
+
@_builtins.property
|
|
622
477
|
@pulumi.getter(name="haVmRestartPriority")
|
|
623
|
-
def ha_vm_restart_priority(self) -> Optional[pulumi.Input[str]]:
|
|
478
|
+
def ha_vm_restart_priority(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
624
479
|
"""
|
|
625
|
-
The restart priority for
|
|
626
|
-
machine when vSphere detects a host failure. Can be one of
|
|
627
|
-
`clusterRestartPriority`, `lowest`, `low`, `medium`, `high`, `highest`, or `disabled`.
|
|
628
|
-
Default: `clusterRestartPriority`.
|
|
480
|
+
The restart priority for this virtual machine when vSphere detects a host failure. Can be one of clusterRestartPriority, lowest, low, medium, high, or highest.
|
|
629
481
|
"""
|
|
630
482
|
return pulumi.get(self, "ha_vm_restart_priority")
|
|
631
483
|
|
|
632
484
|
@ha_vm_restart_priority.setter
|
|
633
|
-
def ha_vm_restart_priority(self, value: Optional[pulumi.Input[str]]):
|
|
485
|
+
def ha_vm_restart_priority(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
634
486
|
pulumi.set(self, "ha_vm_restart_priority", value)
|
|
635
487
|
|
|
636
|
-
@property
|
|
488
|
+
@_builtins.property
|
|
637
489
|
@pulumi.getter(name="haVmRestartTimeout")
|
|
638
|
-
def ha_vm_restart_timeout(self) -> Optional[pulumi.Input[int]]:
|
|
490
|
+
def ha_vm_restart_timeout(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
639
491
|
"""
|
|
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`.
|
|
492
|
+
The maximum time, in seconds, that vSphere HA will wait for the virtual machine to be ready. Use -1 to use the cluster default.
|
|
643
493
|
"""
|
|
644
494
|
return pulumi.get(self, "ha_vm_restart_timeout")
|
|
645
495
|
|
|
646
496
|
@ha_vm_restart_timeout.setter
|
|
647
|
-
def ha_vm_restart_timeout(self, value: Optional[pulumi.Input[int]]):
|
|
497
|
+
def ha_vm_restart_timeout(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
648
498
|
pulumi.set(self, "ha_vm_restart_timeout", value)
|
|
649
499
|
|
|
650
|
-
@property
|
|
500
|
+
@_builtins.property
|
|
651
501
|
@pulumi.getter(name="virtualMachineId")
|
|
652
|
-
def virtual_machine_id(self) -> Optional[pulumi.Input[str]]:
|
|
502
|
+
def virtual_machine_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
653
503
|
"""
|
|
654
|
-
The
|
|
655
|
-
the override for. Forces a new resource if changed.
|
|
504
|
+
The managed object ID of the virtual machine.
|
|
656
505
|
"""
|
|
657
506
|
return pulumi.get(self, "virtual_machine_id")
|
|
658
507
|
|
|
659
508
|
@virtual_machine_id.setter
|
|
660
|
-
def virtual_machine_id(self, value: Optional[pulumi.Input[str]]):
|
|
509
|
+
def virtual_machine_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
661
510
|
pulumi.set(self, "virtual_machine_id", value)
|
|
662
511
|
|
|
663
512
|
|
|
513
|
+
@pulumi.type_token("vsphere:index/haVmOverride:HaVmOverride")
|
|
664
514
|
class HaVmOverride(pulumi.CustomResource):
|
|
665
515
|
@overload
|
|
666
516
|
def __init__(__self__,
|
|
667
517
|
resource_name: str,
|
|
668
518
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
669
|
-
compute_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
670
|
-
ha_datastore_apd_recovery_action: Optional[pulumi.Input[str]] = None,
|
|
671
|
-
ha_datastore_apd_response: Optional[pulumi.Input[str]] = None,
|
|
672
|
-
ha_datastore_apd_response_delay: Optional[pulumi.Input[int]] = None,
|
|
673
|
-
ha_datastore_pdl_response: Optional[pulumi.Input[str]] = None,
|
|
674
|
-
ha_host_isolation_response: Optional[pulumi.Input[str]] = None,
|
|
675
|
-
ha_vm_failure_interval: Optional[pulumi.Input[int]] = None,
|
|
676
|
-
ha_vm_maximum_failure_window: Optional[pulumi.Input[int]] = None,
|
|
677
|
-
ha_vm_maximum_resets: Optional[pulumi.Input[int]] = None,
|
|
678
|
-
ha_vm_minimum_uptime: Optional[pulumi.Input[int]] = None,
|
|
679
|
-
ha_vm_monitoring: Optional[pulumi.Input[str]] = None,
|
|
680
|
-
ha_vm_monitoring_use_cluster_defaults: Optional[pulumi.Input[bool]] = None,
|
|
681
|
-
ha_vm_restart_priority: Optional[pulumi.Input[str]] = None,
|
|
682
|
-
ha_vm_restart_timeout: Optional[pulumi.Input[int]] = None,
|
|
683
|
-
virtual_machine_id: Optional[pulumi.Input[str]] = None,
|
|
519
|
+
compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
520
|
+
ha_datastore_apd_recovery_action: Optional[pulumi.Input[_builtins.str]] = None,
|
|
521
|
+
ha_datastore_apd_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
522
|
+
ha_datastore_apd_response_delay: Optional[pulumi.Input[_builtins.int]] = None,
|
|
523
|
+
ha_datastore_pdl_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
524
|
+
ha_host_isolation_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
525
|
+
ha_vm_failure_interval: Optional[pulumi.Input[_builtins.int]] = None,
|
|
526
|
+
ha_vm_maximum_failure_window: Optional[pulumi.Input[_builtins.int]] = None,
|
|
527
|
+
ha_vm_maximum_resets: Optional[pulumi.Input[_builtins.int]] = None,
|
|
528
|
+
ha_vm_minimum_uptime: Optional[pulumi.Input[_builtins.int]] = None,
|
|
529
|
+
ha_vm_monitoring: Optional[pulumi.Input[_builtins.str]] = None,
|
|
530
|
+
ha_vm_monitoring_use_cluster_defaults: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
531
|
+
ha_vm_restart_priority: Optional[pulumi.Input[_builtins.str]] = None,
|
|
532
|
+
ha_vm_restart_timeout: Optional[pulumi.Input[_builtins.int]] = None,
|
|
533
|
+
virtual_machine_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
684
534
|
__props__=None):
|
|
685
535
|
"""
|
|
686
|
-
|
|
536
|
+
The `HaVmOverride` resource can be used to add an override for
|
|
537
|
+
vSphere HA settings on a cluster for a specific virtual machine. With this
|
|
538
|
+
resource, one can control specific HA settings so that they are different than
|
|
539
|
+
the cluster default, accommodating the needs of that specific virtual machine,
|
|
540
|
+
while not affecting the rest of the cluster.
|
|
541
|
+
|
|
542
|
+
For more information on vSphere HA, see [this page][ref-vsphere-ha-clusters].
|
|
543
|
+
|
|
544
|
+
[ref-vsphere-ha-clusters]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-availability.html
|
|
545
|
+
|
|
546
|
+
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
547
|
+
connections.
|
|
548
|
+
|
|
549
|
+
## Example Usage
|
|
550
|
+
|
|
551
|
+
The example below creates a virtual machine in a cluster using the
|
|
552
|
+
`VirtualMachine` resource, creating the
|
|
553
|
+
virtual machine in the cluster looked up by the
|
|
554
|
+
`ComputeCluster` data source.
|
|
555
|
+
|
|
556
|
+
Considering a scenario where this virtual machine is of high value to the
|
|
557
|
+
application or organization for which it does its work, it's been determined in
|
|
558
|
+
the event of a host failure, that this should be one of the first virtual
|
|
559
|
+
machines to be started by vSphere HA during recovery. Hence, it
|
|
560
|
+
`ha_vm_restart_priority` has been set to `highest`,
|
|
561
|
+
which, assuming that the default restart priority is `medium` and no other
|
|
562
|
+
virtual machine has been assigned the `highest` priority, will mean that this
|
|
563
|
+
VM will be started before any other virtual machine in the event of host
|
|
564
|
+
failure.
|
|
565
|
+
|
|
566
|
+
```python
|
|
567
|
+
import pulumi
|
|
568
|
+
import pulumi_vsphere as vsphere
|
|
569
|
+
|
|
570
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
571
|
+
datastore = vsphere.get_datastore(name="datastore1",
|
|
572
|
+
datacenter_id=datacenter.id)
|
|
573
|
+
cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
574
|
+
datacenter_id=datacenter.id)
|
|
575
|
+
network = vsphere.get_network(name="network1",
|
|
576
|
+
datacenter_id=datacenter.id)
|
|
577
|
+
vm = vsphere.VirtualMachine("vm",
|
|
578
|
+
name="test",
|
|
579
|
+
resource_pool_id=cluster.resource_pool_id,
|
|
580
|
+
datastore_id=datastore.id,
|
|
581
|
+
num_cpus=2,
|
|
582
|
+
memory=2048,
|
|
583
|
+
guest_id="otherLinux64Guest",
|
|
584
|
+
network_interfaces=[{
|
|
585
|
+
"network_id": network.id,
|
|
586
|
+
}],
|
|
587
|
+
disks=[{
|
|
588
|
+
"label": "disk0",
|
|
589
|
+
"size": 20,
|
|
590
|
+
}])
|
|
591
|
+
ha_vm_override = vsphere.HaVmOverride("ha_vm_override",
|
|
592
|
+
compute_cluster_id=cluster.id,
|
|
593
|
+
virtual_machine_id=vm.id,
|
|
594
|
+
ha_vm_restart_priority="highest")
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
## Import
|
|
598
|
+
|
|
599
|
+
An existing override can be imported into this resource by
|
|
600
|
+
|
|
601
|
+
supplying both the path to the cluster, and the path to the virtual machine, to
|
|
602
|
+
|
|
603
|
+
`pulumi import`. If no override exists, an error will be given. An example
|
|
604
|
+
|
|
605
|
+
is below:
|
|
606
|
+
|
|
607
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
608
|
+
|
|
609
|
+
```sh
|
|
610
|
+
$ pulumi import vsphere:index/haVmOverride:HaVmOverride ha_vm_override \\
|
|
611
|
+
```
|
|
612
|
+
|
|
613
|
+
'{"compute_cluster_path": "/dc1/host/cluster1", \\
|
|
614
|
+
|
|
615
|
+
"virtual_machine_path": "/dc1/vm/srv1"}'
|
|
616
|
+
|
|
687
617
|
:param str resource_name: The name of the resource.
|
|
688
618
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
689
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
:param pulumi.Input[
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
:param pulumi.Input[
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
:param pulumi.Input[
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
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.
|
|
619
|
+
:param pulumi.Input[_builtins.str] compute_cluster_id: The managed object ID of the cluster.
|
|
620
|
+
:param pulumi.Input[_builtins.str] ha_datastore_apd_recovery_action: Controls the action to take on this virtual machine if an APD status on an affected datastore clears in the middle of an APD event. Can be one of useClusterDefault, none or reset.
|
|
621
|
+
:param pulumi.Input[_builtins.str] ha_datastore_apd_response: Controls the action to take on this virtual machine when the cluster has detected loss to all paths to a relevant datastore. Can be one of clusterDefault, disabled, warning, restartConservative, or restartAggressive.
|
|
622
|
+
:param pulumi.Input[_builtins.int] ha_datastore_apd_response_delay: Controls the delay in seconds to wait after an APD timeout event to execute the response action defined in ha_datastore_apd_response. Specify -1 to use the cluster setting.
|
|
623
|
+
:param pulumi.Input[_builtins.str] ha_datastore_pdl_response: Controls the action to take on this virtual machine when the cluster has detected a permanent device loss to a relevant datastore. Can be one of clusterDefault, disabled, warning, or restartAggressive.
|
|
624
|
+
:param pulumi.Input[_builtins.str] ha_host_isolation_response: The action to take on this virtual machine when a host is isolated from the rest of the cluster. Can be one of clusterIsolationResponse, none, powerOff, or shutdown.
|
|
625
|
+
:param pulumi.Input[_builtins.int] ha_vm_failure_interval: If a heartbeat from this virtual machine is not received within this configured interval, the virtual machine is marked as failed. The value is in seconds.
|
|
626
|
+
:param pulumi.Input[_builtins.int] ha_vm_maximum_failure_window: The length of the reset window in which ha_vm_maximum_resets can operate. When this window expires, no more resets are attempted regardless of the setting configured in ha_vm_maximum_resets. -1 means no window, meaning an unlimited reset time is allotted.
|
|
627
|
+
:param pulumi.Input[_builtins.int] ha_vm_maximum_resets: The maximum number of resets that HA will perform to this virtual machine when responding to a failure event.
|
|
628
|
+
:param pulumi.Input[_builtins.int] ha_vm_minimum_uptime: The time, in seconds, that HA waits after powering on this virtual machine before monitoring for heartbeats.
|
|
629
|
+
:param pulumi.Input[_builtins.str] ha_vm_monitoring: The type of virtual machine monitoring to use for this virtual machine. Can be one of vmMonitoringDisabled, vmMonitoringOnly, or vmAndAppMonitoring.
|
|
630
|
+
:param pulumi.Input[_builtins.bool] ha_vm_monitoring_use_cluster_defaults: Determines whether or not the cluster's default settings or the VM override settings specified in this resource are used for virtual machine monitoring. The default is true (use cluster defaults) - set to false to have overrides take effect.
|
|
631
|
+
:param pulumi.Input[_builtins.str] ha_vm_restart_priority: The restart priority for this virtual machine when vSphere detects a host failure. Can be one of clusterRestartPriority, lowest, low, medium, high, or highest.
|
|
632
|
+
:param pulumi.Input[_builtins.int] ha_vm_restart_timeout: The maximum time, in seconds, that vSphere HA will wait for the virtual machine to be ready. Use -1 to use the cluster default.
|
|
633
|
+
:param pulumi.Input[_builtins.str] virtual_machine_id: The managed object ID of the virtual machine.
|
|
743
634
|
"""
|
|
744
635
|
...
|
|
745
636
|
@overload
|
|
@@ -748,7 +639,87 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
748
639
|
args: HaVmOverrideArgs,
|
|
749
640
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
750
641
|
"""
|
|
751
|
-
|
|
642
|
+
The `HaVmOverride` resource can be used to add an override for
|
|
643
|
+
vSphere HA settings on a cluster for a specific virtual machine. With this
|
|
644
|
+
resource, one can control specific HA settings so that they are different than
|
|
645
|
+
the cluster default, accommodating the needs of that specific virtual machine,
|
|
646
|
+
while not affecting the rest of the cluster.
|
|
647
|
+
|
|
648
|
+
For more information on vSphere HA, see [this page][ref-vsphere-ha-clusters].
|
|
649
|
+
|
|
650
|
+
[ref-vsphere-ha-clusters]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-availability.html
|
|
651
|
+
|
|
652
|
+
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
653
|
+
connections.
|
|
654
|
+
|
|
655
|
+
## Example Usage
|
|
656
|
+
|
|
657
|
+
The example below creates a virtual machine in a cluster using the
|
|
658
|
+
`VirtualMachine` resource, creating the
|
|
659
|
+
virtual machine in the cluster looked up by the
|
|
660
|
+
`ComputeCluster` data source.
|
|
661
|
+
|
|
662
|
+
Considering a scenario where this virtual machine is of high value to the
|
|
663
|
+
application or organization for which it does its work, it's been determined in
|
|
664
|
+
the event of a host failure, that this should be one of the first virtual
|
|
665
|
+
machines to be started by vSphere HA during recovery. Hence, it
|
|
666
|
+
`ha_vm_restart_priority` has been set to `highest`,
|
|
667
|
+
which, assuming that the default restart priority is `medium` and no other
|
|
668
|
+
virtual machine has been assigned the `highest` priority, will mean that this
|
|
669
|
+
VM will be started before any other virtual machine in the event of host
|
|
670
|
+
failure.
|
|
671
|
+
|
|
672
|
+
```python
|
|
673
|
+
import pulumi
|
|
674
|
+
import pulumi_vsphere as vsphere
|
|
675
|
+
|
|
676
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
677
|
+
datastore = vsphere.get_datastore(name="datastore1",
|
|
678
|
+
datacenter_id=datacenter.id)
|
|
679
|
+
cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
680
|
+
datacenter_id=datacenter.id)
|
|
681
|
+
network = vsphere.get_network(name="network1",
|
|
682
|
+
datacenter_id=datacenter.id)
|
|
683
|
+
vm = vsphere.VirtualMachine("vm",
|
|
684
|
+
name="test",
|
|
685
|
+
resource_pool_id=cluster.resource_pool_id,
|
|
686
|
+
datastore_id=datastore.id,
|
|
687
|
+
num_cpus=2,
|
|
688
|
+
memory=2048,
|
|
689
|
+
guest_id="otherLinux64Guest",
|
|
690
|
+
network_interfaces=[{
|
|
691
|
+
"network_id": network.id,
|
|
692
|
+
}],
|
|
693
|
+
disks=[{
|
|
694
|
+
"label": "disk0",
|
|
695
|
+
"size": 20,
|
|
696
|
+
}])
|
|
697
|
+
ha_vm_override = vsphere.HaVmOverride("ha_vm_override",
|
|
698
|
+
compute_cluster_id=cluster.id,
|
|
699
|
+
virtual_machine_id=vm.id,
|
|
700
|
+
ha_vm_restart_priority="highest")
|
|
701
|
+
```
|
|
702
|
+
|
|
703
|
+
## Import
|
|
704
|
+
|
|
705
|
+
An existing override can be imported into this resource by
|
|
706
|
+
|
|
707
|
+
supplying both the path to the cluster, and the path to the virtual machine, to
|
|
708
|
+
|
|
709
|
+
`pulumi import`. If no override exists, an error will be given. An example
|
|
710
|
+
|
|
711
|
+
is below:
|
|
712
|
+
|
|
713
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
714
|
+
|
|
715
|
+
```sh
|
|
716
|
+
$ pulumi import vsphere:index/haVmOverride:HaVmOverride ha_vm_override \\
|
|
717
|
+
```
|
|
718
|
+
|
|
719
|
+
'{"compute_cluster_path": "/dc1/host/cluster1", \\
|
|
720
|
+
|
|
721
|
+
"virtual_machine_path": "/dc1/vm/srv1"}'
|
|
722
|
+
|
|
752
723
|
:param str resource_name: The name of the resource.
|
|
753
724
|
:param HaVmOverrideArgs args: The arguments to use to populate this resource's properties.
|
|
754
725
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -764,21 +735,21 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
764
735
|
def _internal_init(__self__,
|
|
765
736
|
resource_name: str,
|
|
766
737
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
767
|
-
compute_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
768
|
-
ha_datastore_apd_recovery_action: Optional[pulumi.Input[str]] = None,
|
|
769
|
-
ha_datastore_apd_response: Optional[pulumi.Input[str]] = None,
|
|
770
|
-
ha_datastore_apd_response_delay: Optional[pulumi.Input[int]] = None,
|
|
771
|
-
ha_datastore_pdl_response: Optional[pulumi.Input[str]] = None,
|
|
772
|
-
ha_host_isolation_response: Optional[pulumi.Input[str]] = None,
|
|
773
|
-
ha_vm_failure_interval: Optional[pulumi.Input[int]] = None,
|
|
774
|
-
ha_vm_maximum_failure_window: Optional[pulumi.Input[int]] = None,
|
|
775
|
-
ha_vm_maximum_resets: Optional[pulumi.Input[int]] = None,
|
|
776
|
-
ha_vm_minimum_uptime: Optional[pulumi.Input[int]] = None,
|
|
777
|
-
ha_vm_monitoring: Optional[pulumi.Input[str]] = None,
|
|
778
|
-
ha_vm_monitoring_use_cluster_defaults: Optional[pulumi.Input[bool]] = None,
|
|
779
|
-
ha_vm_restart_priority: Optional[pulumi.Input[str]] = None,
|
|
780
|
-
ha_vm_restart_timeout: Optional[pulumi.Input[int]] = None,
|
|
781
|
-
virtual_machine_id: Optional[pulumi.Input[str]] = None,
|
|
738
|
+
compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
739
|
+
ha_datastore_apd_recovery_action: Optional[pulumi.Input[_builtins.str]] = None,
|
|
740
|
+
ha_datastore_apd_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
741
|
+
ha_datastore_apd_response_delay: Optional[pulumi.Input[_builtins.int]] = None,
|
|
742
|
+
ha_datastore_pdl_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
743
|
+
ha_host_isolation_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
744
|
+
ha_vm_failure_interval: Optional[pulumi.Input[_builtins.int]] = None,
|
|
745
|
+
ha_vm_maximum_failure_window: Optional[pulumi.Input[_builtins.int]] = None,
|
|
746
|
+
ha_vm_maximum_resets: Optional[pulumi.Input[_builtins.int]] = None,
|
|
747
|
+
ha_vm_minimum_uptime: Optional[pulumi.Input[_builtins.int]] = None,
|
|
748
|
+
ha_vm_monitoring: Optional[pulumi.Input[_builtins.str]] = None,
|
|
749
|
+
ha_vm_monitoring_use_cluster_defaults: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
750
|
+
ha_vm_restart_priority: Optional[pulumi.Input[_builtins.str]] = None,
|
|
751
|
+
ha_vm_restart_timeout: Optional[pulumi.Input[_builtins.int]] = None,
|
|
752
|
+
virtual_machine_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
782
753
|
__props__=None):
|
|
783
754
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
784
755
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -817,21 +788,21 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
817
788
|
def get(resource_name: str,
|
|
818
789
|
id: pulumi.Input[str],
|
|
819
790
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
820
|
-
compute_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
821
|
-
ha_datastore_apd_recovery_action: Optional[pulumi.Input[str]] = None,
|
|
822
|
-
ha_datastore_apd_response: Optional[pulumi.Input[str]] = None,
|
|
823
|
-
ha_datastore_apd_response_delay: Optional[pulumi.Input[int]] = None,
|
|
824
|
-
ha_datastore_pdl_response: Optional[pulumi.Input[str]] = None,
|
|
825
|
-
ha_host_isolation_response: Optional[pulumi.Input[str]] = None,
|
|
826
|
-
ha_vm_failure_interval: Optional[pulumi.Input[int]] = None,
|
|
827
|
-
ha_vm_maximum_failure_window: Optional[pulumi.Input[int]] = None,
|
|
828
|
-
ha_vm_maximum_resets: Optional[pulumi.Input[int]] = None,
|
|
829
|
-
ha_vm_minimum_uptime: Optional[pulumi.Input[int]] = None,
|
|
830
|
-
ha_vm_monitoring: Optional[pulumi.Input[str]] = None,
|
|
831
|
-
ha_vm_monitoring_use_cluster_defaults: Optional[pulumi.Input[bool]] = None,
|
|
832
|
-
ha_vm_restart_priority: Optional[pulumi.Input[str]] = None,
|
|
833
|
-
ha_vm_restart_timeout: Optional[pulumi.Input[int]] = None,
|
|
834
|
-
virtual_machine_id: Optional[pulumi.Input[str]] = None) -> 'HaVmOverride':
|
|
791
|
+
compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
792
|
+
ha_datastore_apd_recovery_action: Optional[pulumi.Input[_builtins.str]] = None,
|
|
793
|
+
ha_datastore_apd_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
794
|
+
ha_datastore_apd_response_delay: Optional[pulumi.Input[_builtins.int]] = None,
|
|
795
|
+
ha_datastore_pdl_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
796
|
+
ha_host_isolation_response: Optional[pulumi.Input[_builtins.str]] = None,
|
|
797
|
+
ha_vm_failure_interval: Optional[pulumi.Input[_builtins.int]] = None,
|
|
798
|
+
ha_vm_maximum_failure_window: Optional[pulumi.Input[_builtins.int]] = None,
|
|
799
|
+
ha_vm_maximum_resets: Optional[pulumi.Input[_builtins.int]] = None,
|
|
800
|
+
ha_vm_minimum_uptime: Optional[pulumi.Input[_builtins.int]] = None,
|
|
801
|
+
ha_vm_monitoring: Optional[pulumi.Input[_builtins.str]] = None,
|
|
802
|
+
ha_vm_monitoring_use_cluster_defaults: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
803
|
+
ha_vm_restart_priority: Optional[pulumi.Input[_builtins.str]] = None,
|
|
804
|
+
ha_vm_restart_timeout: Optional[pulumi.Input[_builtins.int]] = None,
|
|
805
|
+
virtual_machine_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'HaVmOverride':
|
|
835
806
|
"""
|
|
836
807
|
Get an existing HaVmOverride resource's state with the given name, id, and optional extra
|
|
837
808
|
properties used to qualify the lookup.
|
|
@@ -839,60 +810,21 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
839
810
|
:param str resource_name: The unique name of the resulting resource.
|
|
840
811
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
841
812
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
842
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
:param pulumi.Input[
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
:param pulumi.Input[
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
:param pulumi.Input[
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
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.
|
|
813
|
+
:param pulumi.Input[_builtins.str] compute_cluster_id: The managed object ID of the cluster.
|
|
814
|
+
:param pulumi.Input[_builtins.str] ha_datastore_apd_recovery_action: Controls the action to take on this virtual machine if an APD status on an affected datastore clears in the middle of an APD event. Can be one of useClusterDefault, none or reset.
|
|
815
|
+
:param pulumi.Input[_builtins.str] ha_datastore_apd_response: Controls the action to take on this virtual machine when the cluster has detected loss to all paths to a relevant datastore. Can be one of clusterDefault, disabled, warning, restartConservative, or restartAggressive.
|
|
816
|
+
:param pulumi.Input[_builtins.int] ha_datastore_apd_response_delay: Controls the delay in seconds to wait after an APD timeout event to execute the response action defined in ha_datastore_apd_response. Specify -1 to use the cluster setting.
|
|
817
|
+
:param pulumi.Input[_builtins.str] ha_datastore_pdl_response: Controls the action to take on this virtual machine when the cluster has detected a permanent device loss to a relevant datastore. Can be one of clusterDefault, disabled, warning, or restartAggressive.
|
|
818
|
+
:param pulumi.Input[_builtins.str] ha_host_isolation_response: The action to take on this virtual machine when a host is isolated from the rest of the cluster. Can be one of clusterIsolationResponse, none, powerOff, or shutdown.
|
|
819
|
+
:param pulumi.Input[_builtins.int] ha_vm_failure_interval: If a heartbeat from this virtual machine is not received within this configured interval, the virtual machine is marked as failed. The value is in seconds.
|
|
820
|
+
:param pulumi.Input[_builtins.int] ha_vm_maximum_failure_window: The length of the reset window in which ha_vm_maximum_resets can operate. When this window expires, no more resets are attempted regardless of the setting configured in ha_vm_maximum_resets. -1 means no window, meaning an unlimited reset time is allotted.
|
|
821
|
+
:param pulumi.Input[_builtins.int] ha_vm_maximum_resets: The maximum number of resets that HA will perform to this virtual machine when responding to a failure event.
|
|
822
|
+
:param pulumi.Input[_builtins.int] ha_vm_minimum_uptime: The time, in seconds, that HA waits after powering on this virtual machine before monitoring for heartbeats.
|
|
823
|
+
:param pulumi.Input[_builtins.str] ha_vm_monitoring: The type of virtual machine monitoring to use for this virtual machine. Can be one of vmMonitoringDisabled, vmMonitoringOnly, or vmAndAppMonitoring.
|
|
824
|
+
:param pulumi.Input[_builtins.bool] ha_vm_monitoring_use_cluster_defaults: Determines whether or not the cluster's default settings or the VM override settings specified in this resource are used for virtual machine monitoring. The default is true (use cluster defaults) - set to false to have overrides take effect.
|
|
825
|
+
:param pulumi.Input[_builtins.str] ha_vm_restart_priority: The restart priority for this virtual machine when vSphere detects a host failure. Can be one of clusterRestartPriority, lowest, low, medium, high, or highest.
|
|
826
|
+
:param pulumi.Input[_builtins.int] ha_vm_restart_timeout: The maximum time, in seconds, that vSphere HA will wait for the virtual machine to be ready. Use -1 to use the cluster default.
|
|
827
|
+
:param pulumi.Input[_builtins.str] virtual_machine_id: The managed object ID of the virtual machine.
|
|
896
828
|
"""
|
|
897
829
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
898
830
|
|
|
@@ -915,162 +847,123 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
915
847
|
__props__.__dict__["virtual_machine_id"] = virtual_machine_id
|
|
916
848
|
return HaVmOverride(resource_name, opts=opts, __props__=__props__)
|
|
917
849
|
|
|
918
|
-
@property
|
|
850
|
+
@_builtins.property
|
|
919
851
|
@pulumi.getter(name="computeClusterId")
|
|
920
|
-
def compute_cluster_id(self) -> pulumi.Output[str]:
|
|
852
|
+
def compute_cluster_id(self) -> pulumi.Output[_builtins.str]:
|
|
921
853
|
"""
|
|
922
|
-
The managed object
|
|
923
|
-
ID of the cluster to put the override in. Forces a new
|
|
924
|
-
resource if changed.
|
|
854
|
+
The managed object ID of the cluster.
|
|
925
855
|
"""
|
|
926
856
|
return pulumi.get(self, "compute_cluster_id")
|
|
927
857
|
|
|
928
|
-
@property
|
|
858
|
+
@_builtins.property
|
|
929
859
|
@pulumi.getter(name="haDatastoreApdRecoveryAction")
|
|
930
|
-
def ha_datastore_apd_recovery_action(self) -> pulumi.Output[Optional[str]]:
|
|
860
|
+
def ha_datastore_apd_recovery_action(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
931
861
|
"""
|
|
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`.
|
|
862
|
+
Controls the action to take on this virtual machine if an APD status on an affected datastore clears in the middle of an APD event. Can be one of useClusterDefault, none or reset.
|
|
936
863
|
"""
|
|
937
864
|
return pulumi.get(self, "ha_datastore_apd_recovery_action")
|
|
938
865
|
|
|
939
|
-
@property
|
|
866
|
+
@_builtins.property
|
|
940
867
|
@pulumi.getter(name="haDatastoreApdResponse")
|
|
941
|
-
def ha_datastore_apd_response(self) -> pulumi.Output[Optional[str]]:
|
|
868
|
+
def ha_datastore_apd_response(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
942
869
|
"""
|
|
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`.
|
|
870
|
+
Controls the action to take on this virtual machine when the cluster has detected loss to all paths to a relevant datastore. Can be one of clusterDefault, disabled, warning, restartConservative, or restartAggressive.
|
|
947
871
|
"""
|
|
948
872
|
return pulumi.get(self, "ha_datastore_apd_response")
|
|
949
873
|
|
|
950
|
-
@property
|
|
874
|
+
@_builtins.property
|
|
951
875
|
@pulumi.getter(name="haDatastoreApdResponseDelay")
|
|
952
|
-
def ha_datastore_apd_response_delay(self) -> pulumi.Output[Optional[int]]:
|
|
876
|
+
def ha_datastore_apd_response_delay(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
953
877
|
"""
|
|
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`.
|
|
878
|
+
Controls the delay in seconds to wait after an APD timeout event to execute the response action defined in ha_datastore_apd_response. Specify -1 to use the cluster setting.
|
|
958
879
|
"""
|
|
959
880
|
return pulumi.get(self, "ha_datastore_apd_response_delay")
|
|
960
881
|
|
|
961
|
-
@property
|
|
882
|
+
@_builtins.property
|
|
962
883
|
@pulumi.getter(name="haDatastorePdlResponse")
|
|
963
|
-
def ha_datastore_pdl_response(self) -> pulumi.Output[Optional[str]]:
|
|
884
|
+
def ha_datastore_pdl_response(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
964
885
|
"""
|
|
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`.
|
|
886
|
+
Controls the action to take on this virtual machine when the cluster has detected a permanent device loss to a relevant datastore. Can be one of clusterDefault, disabled, warning, or restartAggressive.
|
|
969
887
|
"""
|
|
970
888
|
return pulumi.get(self, "ha_datastore_pdl_response")
|
|
971
889
|
|
|
972
|
-
@property
|
|
890
|
+
@_builtins.property
|
|
973
891
|
@pulumi.getter(name="haHostIsolationResponse")
|
|
974
|
-
def ha_host_isolation_response(self) -> pulumi.Output[Optional[str]]:
|
|
892
|
+
def ha_host_isolation_response(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
975
893
|
"""
|
|
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`.
|
|
894
|
+
The action to take on this virtual machine when a host is isolated from the rest of the cluster. Can be one of clusterIsolationResponse, none, powerOff, or shutdown.
|
|
980
895
|
"""
|
|
981
896
|
return pulumi.get(self, "ha_host_isolation_response")
|
|
982
897
|
|
|
983
|
-
@property
|
|
898
|
+
@_builtins.property
|
|
984
899
|
@pulumi.getter(name="haVmFailureInterval")
|
|
985
|
-
def ha_vm_failure_interval(self) -> pulumi.Output[Optional[int]]:
|
|
900
|
+
def ha_vm_failure_interval(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
986
901
|
"""
|
|
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`.
|
|
902
|
+
If a heartbeat from this virtual machine is not received within this configured interval, the virtual machine is marked as failed. The value is in seconds.
|
|
990
903
|
"""
|
|
991
904
|
return pulumi.get(self, "ha_vm_failure_interval")
|
|
992
905
|
|
|
993
|
-
@property
|
|
906
|
+
@_builtins.property
|
|
994
907
|
@pulumi.getter(name="haVmMaximumFailureWindow")
|
|
995
|
-
def ha_vm_maximum_failure_window(self) -> pulumi.Output[Optional[int]]:
|
|
908
|
+
def ha_vm_maximum_failure_window(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
996
909
|
"""
|
|
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).
|
|
910
|
+
The length of the reset window in which ha_vm_maximum_resets can operate. When this window expires, no more resets are attempted regardless of the setting configured in ha_vm_maximum_resets. -1 means no window, meaning an unlimited reset time is allotted.
|
|
1003
911
|
"""
|
|
1004
912
|
return pulumi.get(self, "ha_vm_maximum_failure_window")
|
|
1005
913
|
|
|
1006
|
-
@property
|
|
914
|
+
@_builtins.property
|
|
1007
915
|
@pulumi.getter(name="haVmMaximumResets")
|
|
1008
|
-
def ha_vm_maximum_resets(self) -> pulumi.Output[Optional[int]]:
|
|
916
|
+
def ha_vm_maximum_resets(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1009
917
|
"""
|
|
1010
|
-
The maximum number of resets that HA will
|
|
1011
|
-
perform to this virtual machine when responding to a failure event. Default:
|
|
1012
|
-
`3`
|
|
918
|
+
The maximum number of resets that HA will perform to this virtual machine when responding to a failure event.
|
|
1013
919
|
"""
|
|
1014
920
|
return pulumi.get(self, "ha_vm_maximum_resets")
|
|
1015
921
|
|
|
1016
|
-
@property
|
|
922
|
+
@_builtins.property
|
|
1017
923
|
@pulumi.getter(name="haVmMinimumUptime")
|
|
1018
|
-
def ha_vm_minimum_uptime(self) -> pulumi.Output[Optional[int]]:
|
|
924
|
+
def ha_vm_minimum_uptime(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1019
925
|
"""
|
|
1020
|
-
The time, in seconds, that HA waits after
|
|
1021
|
-
powering on this virtual machine before monitoring for heartbeats. Default:
|
|
1022
|
-
`120` (2 minutes).
|
|
926
|
+
The time, in seconds, that HA waits after powering on this virtual machine before monitoring for heartbeats.
|
|
1023
927
|
"""
|
|
1024
928
|
return pulumi.get(self, "ha_vm_minimum_uptime")
|
|
1025
929
|
|
|
1026
|
-
@property
|
|
930
|
+
@_builtins.property
|
|
1027
931
|
@pulumi.getter(name="haVmMonitoring")
|
|
1028
|
-
def ha_vm_monitoring(self) -> pulumi.Output[Optional[str]]:
|
|
932
|
+
def ha_vm_monitoring(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1029
933
|
"""
|
|
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`.
|
|
934
|
+
The type of virtual machine monitoring to use for this virtual machine. Can be one of vmMonitoringDisabled, vmMonitoringOnly, or vmAndAppMonitoring.
|
|
1033
935
|
"""
|
|
1034
936
|
return pulumi.get(self, "ha_vm_monitoring")
|
|
1035
937
|
|
|
1036
|
-
@property
|
|
938
|
+
@_builtins.property
|
|
1037
939
|
@pulumi.getter(name="haVmMonitoringUseClusterDefaults")
|
|
1038
|
-
def ha_vm_monitoring_use_cluster_defaults(self) -> pulumi.Output[Optional[bool]]:
|
|
940
|
+
def ha_vm_monitoring_use_cluster_defaults(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1039
941
|
"""
|
|
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.
|
|
942
|
+
Determines whether or not the cluster's default settings or the VM override settings specified in this resource are used for virtual machine monitoring. The default is true (use cluster defaults) - set to false to have overrides take effect.
|
|
1044
943
|
"""
|
|
1045
944
|
return pulumi.get(self, "ha_vm_monitoring_use_cluster_defaults")
|
|
1046
945
|
|
|
1047
|
-
@property
|
|
946
|
+
@_builtins.property
|
|
1048
947
|
@pulumi.getter(name="haVmRestartPriority")
|
|
1049
|
-
def ha_vm_restart_priority(self) -> pulumi.Output[Optional[str]]:
|
|
948
|
+
def ha_vm_restart_priority(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1050
949
|
"""
|
|
1051
|
-
The restart priority for
|
|
1052
|
-
machine when vSphere detects a host failure. Can be one of
|
|
1053
|
-
`clusterRestartPriority`, `lowest`, `low`, `medium`, `high`, `highest`, or `disabled`.
|
|
1054
|
-
Default: `clusterRestartPriority`.
|
|
950
|
+
The restart priority for this virtual machine when vSphere detects a host failure. Can be one of clusterRestartPriority, lowest, low, medium, high, or highest.
|
|
1055
951
|
"""
|
|
1056
952
|
return pulumi.get(self, "ha_vm_restart_priority")
|
|
1057
953
|
|
|
1058
|
-
@property
|
|
954
|
+
@_builtins.property
|
|
1059
955
|
@pulumi.getter(name="haVmRestartTimeout")
|
|
1060
|
-
def ha_vm_restart_timeout(self) -> pulumi.Output[Optional[int]]:
|
|
956
|
+
def ha_vm_restart_timeout(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1061
957
|
"""
|
|
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`.
|
|
958
|
+
The maximum time, in seconds, that vSphere HA will wait for the virtual machine to be ready. Use -1 to use the cluster default.
|
|
1065
959
|
"""
|
|
1066
960
|
return pulumi.get(self, "ha_vm_restart_timeout")
|
|
1067
961
|
|
|
1068
|
-
@property
|
|
962
|
+
@_builtins.property
|
|
1069
963
|
@pulumi.getter(name="virtualMachineId")
|
|
1070
|
-
def virtual_machine_id(self) -> pulumi.Output[str]:
|
|
964
|
+
def virtual_machine_id(self) -> pulumi.Output[_builtins.str]:
|
|
1071
965
|
"""
|
|
1072
|
-
The
|
|
1073
|
-
the override for. Forces a new resource if changed.
|
|
966
|
+
The managed object ID of the virtual machine.
|
|
1074
967
|
"""
|
|
1075
968
|
return pulumi.get(self, "virtual_machine_id")
|
|
1076
969
|
|