pulumi-vsphere 4.14.0a1739946909__py3-none-any.whl → 4.17.0a1763710194__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-vsphere might be problematic. Click here for more details.
- pulumi_vsphere/__init__.py +12 -1
- pulumi_vsphere/_inputs.py +1172 -1172
- pulumi_vsphere/_utilities.py +1 -1
- pulumi_vsphere/compute_cluster.py +1226 -1484
- pulumi_vsphere/compute_cluster_host_group.py +124 -53
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +88 -87
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +92 -87
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +109 -104
- pulumi_vsphere/compute_cluster_vm_group.py +58 -53
- pulumi_vsphere/compute_cluster_vm_host_rule.py +126 -121
- pulumi_vsphere/config/__init__.py +2 -1
- pulumi_vsphere/config/__init__.pyi +2 -2
- pulumi_vsphere/config/vars.py +15 -15
- pulumi_vsphere/configuration_profile.py +286 -0
- pulumi_vsphere/content_library.py +64 -59
- pulumi_vsphere/content_library_item.py +109 -104
- pulumi_vsphere/custom_attribute.py +41 -36
- pulumi_vsphere/datacenter.py +80 -79
- pulumi_vsphere/datastore_cluster.py +531 -477
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +92 -87
- pulumi_vsphere/distributed_port_group.py +802 -818
- pulumi_vsphere/distributed_virtual_switch.py +1590 -1620
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +71 -70
- pulumi_vsphere/dpm_host_override.py +159 -70
- pulumi_vsphere/drs_vm_override.py +75 -70
- pulumi_vsphere/entity_permissions.py +40 -39
- pulumi_vsphere/file.py +148 -162
- pulumi_vsphere/folder.py +104 -99
- pulumi_vsphere/get_compute_cluster.py +18 -18
- pulumi_vsphere/get_compute_cluster_host_group.py +18 -22
- pulumi_vsphere/get_configuration_profile.py +145 -0
- pulumi_vsphere/get_content_library.py +10 -10
- pulumi_vsphere/get_content_library_item.py +22 -22
- pulumi_vsphere/get_custom_attribute.py +12 -12
- pulumi_vsphere/get_datacenter.py +12 -12
- pulumi_vsphere/get_datastore.py +22 -22
- pulumi_vsphere/get_datastore_cluster.py +19 -19
- pulumi_vsphere/get_datastore_stats.py +22 -26
- pulumi_vsphere/get_distributed_virtual_switch.py +18 -18
- pulumi_vsphere/get_dynamic.py +22 -26
- pulumi_vsphere/get_folder.py +140 -18
- pulumi_vsphere/get_guest_os_customization.py +74 -21
- pulumi_vsphere/get_host.py +18 -18
- pulumi_vsphere/get_host_base_images.py +6 -6
- pulumi_vsphere/get_host_pci_device.py +30 -30
- pulumi_vsphere/get_host_thumbprint.py +22 -22
- pulumi_vsphere/get_host_vgpu_profile.py +17 -17
- pulumi_vsphere/get_license.py +26 -24
- pulumi_vsphere/get_network.py +80 -29
- pulumi_vsphere/get_ovf_vm_template.py +126 -126
- pulumi_vsphere/get_policy.py +10 -10
- pulumi_vsphere/get_resource_pool.py +77 -26
- pulumi_vsphere/get_role.py +26 -26
- pulumi_vsphere/get_tag.py +18 -18
- pulumi_vsphere/get_tag_category.py +16 -16
- pulumi_vsphere/get_vapp_container.py +16 -16
- pulumi_vsphere/get_virtual_machine.py +273 -273
- pulumi_vsphere/get_vmfs_disks.py +24 -24
- pulumi_vsphere/guest_os_customization.py +75 -74
- pulumi_vsphere/ha_vm_override.py +295 -374
- pulumi_vsphere/host.py +304 -249
- pulumi_vsphere/host_port_group.py +321 -341
- pulumi_vsphere/host_virtual_switch.py +373 -389
- pulumi_vsphere/license.py +125 -84
- pulumi_vsphere/nas_datastore.py +324 -261
- pulumi_vsphere/offline_software_depot.py +26 -21
- pulumi_vsphere/outputs.py +1003 -970
- pulumi_vsphere/provider.py +165 -146
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +691 -364
- pulumi_vsphere/role.py +46 -45
- pulumi_vsphere/storage_drs_vm_override.py +92 -87
- pulumi_vsphere/supervisor.py +210 -209
- pulumi_vsphere/tag.py +58 -53
- pulumi_vsphere/tag_category.py +75 -70
- pulumi_vsphere/vapp_container.py +262 -257
- pulumi_vsphere/vapp_entity.py +177 -172
- pulumi_vsphere/virtual_disk.py +130 -125
- pulumi_vsphere/virtual_machine.py +1339 -1443
- pulumi_vsphere/virtual_machine_class.py +109 -108
- pulumi_vsphere/virtual_machine_snapshot.py +122 -121
- pulumi_vsphere/vm_storage_policy.py +40 -39
- pulumi_vsphere/vmfs_datastore.py +189 -184
- pulumi_vsphere/vnic.py +145 -144
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +4 -4
- pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.14.0a1739946909.dist-info/RECORD +0 -87
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
pulumi_vsphere/host.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -21,37 +21,37 @@ __all__ = ['HostArgs', 'Host']
|
|
|
21
21
|
@pulumi.input_type
|
|
22
22
|
class HostArgs:
|
|
23
23
|
def __init__(__self__, *,
|
|
24
|
-
hostname: pulumi.Input[str],
|
|
25
|
-
password: pulumi.Input[str],
|
|
26
|
-
username: pulumi.Input[str],
|
|
27
|
-
cluster: Optional[pulumi.Input[str]] = None,
|
|
28
|
-
cluster_managed: Optional[pulumi.Input[bool]] = None,
|
|
29
|
-
connected: Optional[pulumi.Input[bool]] = None,
|
|
30
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
31
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
32
|
-
force: Optional[pulumi.Input[bool]] = None,
|
|
33
|
-
license: Optional[pulumi.Input[str]] = None,
|
|
34
|
-
lockdown: Optional[pulumi.Input[str]] = None,
|
|
35
|
-
maintenance: Optional[pulumi.Input[bool]] = None,
|
|
24
|
+
hostname: pulumi.Input[_builtins.str],
|
|
25
|
+
password: pulumi.Input[_builtins.str],
|
|
26
|
+
username: pulumi.Input[_builtins.str],
|
|
27
|
+
cluster: Optional[pulumi.Input[_builtins.str]] = None,
|
|
28
|
+
cluster_managed: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
29
|
+
connected: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
30
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
31
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
32
|
+
force: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
33
|
+
license: Optional[pulumi.Input[_builtins.str]] = None,
|
|
34
|
+
lockdown: Optional[pulumi.Input[_builtins.str]] = None,
|
|
35
|
+
maintenance: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
36
36
|
services: Optional[pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]]] = None,
|
|
37
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
38
|
-
thumbprint: Optional[pulumi.Input[str]] = None):
|
|
37
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
38
|
+
thumbprint: Optional[pulumi.Input[_builtins.str]] = None):
|
|
39
39
|
"""
|
|
40
40
|
The set of arguments for constructing a Host resource.
|
|
41
|
-
:param pulumi.Input[str] hostname: FQDN or IP address of the host to be added.
|
|
42
|
-
:param pulumi.Input[str] password: Password that will be used by vSphere to authenticate
|
|
41
|
+
:param pulumi.Input[_builtins.str] hostname: FQDN or IP address of the host to be added.
|
|
42
|
+
:param pulumi.Input[_builtins.str] password: Password that will be used by vSphere to authenticate
|
|
43
43
|
to the host.
|
|
44
|
-
:param pulumi.Input[str] username: Username that will be used by vSphere to authenticate
|
|
44
|
+
:param pulumi.Input[_builtins.str] username: Username that will be used by vSphere to authenticate
|
|
45
45
|
to the host.
|
|
46
|
-
:param pulumi.Input[str] cluster: The ID of the Compute Cluster this host should
|
|
46
|
+
:param pulumi.Input[_builtins.str] cluster: The ID of the Compute Cluster this host should
|
|
47
47
|
be added to. This should not be set if `datacenter` is set. Conflicts with:
|
|
48
48
|
`cluster_managed`.
|
|
49
|
-
:param pulumi.Input[bool] cluster_managed: Can be set to `true` if compute cluster
|
|
49
|
+
:param pulumi.Input[_builtins.bool] cluster_managed: Can be set to `true` if compute cluster
|
|
50
50
|
membership will be managed through the `compute_cluster` resource rather
|
|
51
51
|
than the`host` resource. Conflicts with: `cluster`.
|
|
52
|
-
:param pulumi.Input[bool] connected: If set to false then the host will be disconnected.
|
|
52
|
+
:param pulumi.Input[_builtins.bool] connected: If set to false then the host will be disconnected.
|
|
53
53
|
Default is `false`.
|
|
54
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: A map of custom attribute IDs and string
|
|
54
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: A map of custom attribute IDs and string
|
|
55
55
|
values to apply to the resource. Please refer to the
|
|
56
56
|
`vsphere_custom_attributes` resource for more information on applying
|
|
57
57
|
tags to resources.
|
|
@@ -60,25 +60,25 @@ class HostArgs:
|
|
|
60
60
|
connections and require vCenter Server.
|
|
61
61
|
|
|
62
62
|
[docs-host-thumbprint-data-source]: /docs/providers/vsphere/d/host_thumbprint.html
|
|
63
|
-
:param pulumi.Input[str] datacenter: The ID of the datacenter this host should
|
|
63
|
+
:param pulumi.Input[_builtins.str] datacenter: The ID of the datacenter this host should
|
|
64
64
|
be added to. This should not be set if `cluster` is set.
|
|
65
|
-
:param pulumi.Input[bool] force: If set to `true` then it will force the host to be added,
|
|
65
|
+
:param pulumi.Input[_builtins.bool] force: If set to `true` then it will force the host to be added,
|
|
66
66
|
even if the host is already connected to a different vCenter Server instance.
|
|
67
67
|
Default is `false`.
|
|
68
|
-
:param pulumi.Input[str] license: The license key that will be applied to the host.
|
|
68
|
+
:param pulumi.Input[_builtins.str] license: The license key that will be applied to the host.
|
|
69
69
|
The license key is expected to be present in vSphere.
|
|
70
|
-
:param pulumi.Input[str] lockdown: Set the lockdown state of the host. Valid options are
|
|
70
|
+
:param pulumi.Input[_builtins.str] lockdown: Set the lockdown state of the host. Valid options are
|
|
71
71
|
`disabled`, `normal`, and `strict`. Default is `disabled`.
|
|
72
|
-
:param pulumi.Input[bool] maintenance: Set the management state of the host.
|
|
72
|
+
:param pulumi.Input[_builtins.bool] maintenance: Set the management state of the host.
|
|
73
73
|
Default is `false`.
|
|
74
74
|
:param pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]] services: Set Services on host, the settings to be set are based on service being set as part of import.
|
|
75
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please
|
|
75
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource. Please
|
|
76
76
|
refer to the `Tag` resource for more information on applying
|
|
77
77
|
tags to resources.
|
|
78
78
|
|
|
79
79
|
> **NOTE:** Tagging support is not supported on direct ESXi host
|
|
80
80
|
connections and require vCenter Server.
|
|
81
|
-
:param pulumi.Input[str] thumbprint: Host's certificate SHA-1 thumbprint. If not set the
|
|
81
|
+
:param pulumi.Input[_builtins.str] thumbprint: Host's certificate SHA-1 thumbprint. If not set the
|
|
82
82
|
CA that signed the host's certificate should be trusted. If the CA is not
|
|
83
83
|
trusted and no thumbprint is set then the operation will fail. See data source
|
|
84
84
|
[`get_host_thumbprint`][docs-host-thumbprint-data-source].
|
|
@@ -111,21 +111,21 @@ class HostArgs:
|
|
|
111
111
|
if thumbprint is not None:
|
|
112
112
|
pulumi.set(__self__, "thumbprint", thumbprint)
|
|
113
113
|
|
|
114
|
-
@property
|
|
114
|
+
@_builtins.property
|
|
115
115
|
@pulumi.getter
|
|
116
|
-
def hostname(self) -> pulumi.Input[str]:
|
|
116
|
+
def hostname(self) -> pulumi.Input[_builtins.str]:
|
|
117
117
|
"""
|
|
118
118
|
FQDN or IP address of the host to be added.
|
|
119
119
|
"""
|
|
120
120
|
return pulumi.get(self, "hostname")
|
|
121
121
|
|
|
122
122
|
@hostname.setter
|
|
123
|
-
def hostname(self, value: pulumi.Input[str]):
|
|
123
|
+
def hostname(self, value: pulumi.Input[_builtins.str]):
|
|
124
124
|
pulumi.set(self, "hostname", value)
|
|
125
125
|
|
|
126
|
-
@property
|
|
126
|
+
@_builtins.property
|
|
127
127
|
@pulumi.getter
|
|
128
|
-
def password(self) -> pulumi.Input[str]:
|
|
128
|
+
def password(self) -> pulumi.Input[_builtins.str]:
|
|
129
129
|
"""
|
|
130
130
|
Password that will be used by vSphere to authenticate
|
|
131
131
|
to the host.
|
|
@@ -133,12 +133,12 @@ class HostArgs:
|
|
|
133
133
|
return pulumi.get(self, "password")
|
|
134
134
|
|
|
135
135
|
@password.setter
|
|
136
|
-
def password(self, value: pulumi.Input[str]):
|
|
136
|
+
def password(self, value: pulumi.Input[_builtins.str]):
|
|
137
137
|
pulumi.set(self, "password", value)
|
|
138
138
|
|
|
139
|
-
@property
|
|
139
|
+
@_builtins.property
|
|
140
140
|
@pulumi.getter
|
|
141
|
-
def username(self) -> pulumi.Input[str]:
|
|
141
|
+
def username(self) -> pulumi.Input[_builtins.str]:
|
|
142
142
|
"""
|
|
143
143
|
Username that will be used by vSphere to authenticate
|
|
144
144
|
to the host.
|
|
@@ -146,12 +146,12 @@ class HostArgs:
|
|
|
146
146
|
return pulumi.get(self, "username")
|
|
147
147
|
|
|
148
148
|
@username.setter
|
|
149
|
-
def username(self, value: pulumi.Input[str]):
|
|
149
|
+
def username(self, value: pulumi.Input[_builtins.str]):
|
|
150
150
|
pulumi.set(self, "username", value)
|
|
151
151
|
|
|
152
|
-
@property
|
|
152
|
+
@_builtins.property
|
|
153
153
|
@pulumi.getter
|
|
154
|
-
def cluster(self) -> Optional[pulumi.Input[str]]:
|
|
154
|
+
def cluster(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
155
155
|
"""
|
|
156
156
|
The ID of the Compute Cluster this host should
|
|
157
157
|
be added to. This should not be set if `datacenter` is set. Conflicts with:
|
|
@@ -160,12 +160,12 @@ class HostArgs:
|
|
|
160
160
|
return pulumi.get(self, "cluster")
|
|
161
161
|
|
|
162
162
|
@cluster.setter
|
|
163
|
-
def cluster(self, value: Optional[pulumi.Input[str]]):
|
|
163
|
+
def cluster(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
164
164
|
pulumi.set(self, "cluster", value)
|
|
165
165
|
|
|
166
|
-
@property
|
|
166
|
+
@_builtins.property
|
|
167
167
|
@pulumi.getter(name="clusterManaged")
|
|
168
|
-
def cluster_managed(self) -> Optional[pulumi.Input[bool]]:
|
|
168
|
+
def cluster_managed(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
169
169
|
"""
|
|
170
170
|
Can be set to `true` if compute cluster
|
|
171
171
|
membership will be managed through the `compute_cluster` resource rather
|
|
@@ -174,12 +174,12 @@ class HostArgs:
|
|
|
174
174
|
return pulumi.get(self, "cluster_managed")
|
|
175
175
|
|
|
176
176
|
@cluster_managed.setter
|
|
177
|
-
def cluster_managed(self, value: Optional[pulumi.Input[bool]]):
|
|
177
|
+
def cluster_managed(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
178
178
|
pulumi.set(self, "cluster_managed", value)
|
|
179
179
|
|
|
180
|
-
@property
|
|
180
|
+
@_builtins.property
|
|
181
181
|
@pulumi.getter
|
|
182
|
-
def connected(self) -> Optional[pulumi.Input[bool]]:
|
|
182
|
+
def connected(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
183
183
|
"""
|
|
184
184
|
If set to false then the host will be disconnected.
|
|
185
185
|
Default is `false`.
|
|
@@ -187,12 +187,12 @@ class HostArgs:
|
|
|
187
187
|
return pulumi.get(self, "connected")
|
|
188
188
|
|
|
189
189
|
@connected.setter
|
|
190
|
-
def connected(self, value: Optional[pulumi.Input[bool]]):
|
|
190
|
+
def connected(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
191
191
|
pulumi.set(self, "connected", value)
|
|
192
192
|
|
|
193
|
-
@property
|
|
193
|
+
@_builtins.property
|
|
194
194
|
@pulumi.getter(name="customAttributes")
|
|
195
|
-
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
195
|
+
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
196
196
|
"""
|
|
197
197
|
A map of custom attribute IDs and string
|
|
198
198
|
values to apply to the resource. Please refer to the
|
|
@@ -207,12 +207,12 @@ class HostArgs:
|
|
|
207
207
|
return pulumi.get(self, "custom_attributes")
|
|
208
208
|
|
|
209
209
|
@custom_attributes.setter
|
|
210
|
-
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
210
|
+
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
211
211
|
pulumi.set(self, "custom_attributes", value)
|
|
212
212
|
|
|
213
|
-
@property
|
|
213
|
+
@_builtins.property
|
|
214
214
|
@pulumi.getter
|
|
215
|
-
def datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
215
|
+
def datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
216
216
|
"""
|
|
217
217
|
The ID of the datacenter this host should
|
|
218
218
|
be added to. This should not be set if `cluster` is set.
|
|
@@ -220,12 +220,12 @@ class HostArgs:
|
|
|
220
220
|
return pulumi.get(self, "datacenter")
|
|
221
221
|
|
|
222
222
|
@datacenter.setter
|
|
223
|
-
def datacenter(self, value: Optional[pulumi.Input[str]]):
|
|
223
|
+
def datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
224
224
|
pulumi.set(self, "datacenter", value)
|
|
225
225
|
|
|
226
|
-
@property
|
|
226
|
+
@_builtins.property
|
|
227
227
|
@pulumi.getter
|
|
228
|
-
def force(self) -> Optional[pulumi.Input[bool]]:
|
|
228
|
+
def force(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
229
229
|
"""
|
|
230
230
|
If set to `true` then it will force the host to be added,
|
|
231
231
|
even if the host is already connected to a different vCenter Server instance.
|
|
@@ -234,12 +234,12 @@ class HostArgs:
|
|
|
234
234
|
return pulumi.get(self, "force")
|
|
235
235
|
|
|
236
236
|
@force.setter
|
|
237
|
-
def force(self, value: Optional[pulumi.Input[bool]]):
|
|
237
|
+
def force(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
238
238
|
pulumi.set(self, "force", value)
|
|
239
239
|
|
|
240
|
-
@property
|
|
240
|
+
@_builtins.property
|
|
241
241
|
@pulumi.getter
|
|
242
|
-
def license(self) -> Optional[pulumi.Input[str]]:
|
|
242
|
+
def license(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
243
243
|
"""
|
|
244
244
|
The license key that will be applied to the host.
|
|
245
245
|
The license key is expected to be present in vSphere.
|
|
@@ -247,12 +247,12 @@ class HostArgs:
|
|
|
247
247
|
return pulumi.get(self, "license")
|
|
248
248
|
|
|
249
249
|
@license.setter
|
|
250
|
-
def license(self, value: Optional[pulumi.Input[str]]):
|
|
250
|
+
def license(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
251
251
|
pulumi.set(self, "license", value)
|
|
252
252
|
|
|
253
|
-
@property
|
|
253
|
+
@_builtins.property
|
|
254
254
|
@pulumi.getter
|
|
255
|
-
def lockdown(self) -> Optional[pulumi.Input[str]]:
|
|
255
|
+
def lockdown(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
256
256
|
"""
|
|
257
257
|
Set the lockdown state of the host. Valid options are
|
|
258
258
|
`disabled`, `normal`, and `strict`. Default is `disabled`.
|
|
@@ -260,12 +260,12 @@ class HostArgs:
|
|
|
260
260
|
return pulumi.get(self, "lockdown")
|
|
261
261
|
|
|
262
262
|
@lockdown.setter
|
|
263
|
-
def lockdown(self, value: Optional[pulumi.Input[str]]):
|
|
263
|
+
def lockdown(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
264
264
|
pulumi.set(self, "lockdown", value)
|
|
265
265
|
|
|
266
|
-
@property
|
|
266
|
+
@_builtins.property
|
|
267
267
|
@pulumi.getter
|
|
268
|
-
def maintenance(self) -> Optional[pulumi.Input[bool]]:
|
|
268
|
+
def maintenance(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
269
269
|
"""
|
|
270
270
|
Set the management state of the host.
|
|
271
271
|
Default is `false`.
|
|
@@ -273,10 +273,10 @@ class HostArgs:
|
|
|
273
273
|
return pulumi.get(self, "maintenance")
|
|
274
274
|
|
|
275
275
|
@maintenance.setter
|
|
276
|
-
def maintenance(self, value: Optional[pulumi.Input[bool]]):
|
|
276
|
+
def maintenance(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
277
277
|
pulumi.set(self, "maintenance", value)
|
|
278
278
|
|
|
279
|
-
@property
|
|
279
|
+
@_builtins.property
|
|
280
280
|
@pulumi.getter
|
|
281
281
|
def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]]]:
|
|
282
282
|
"""
|
|
@@ -288,9 +288,9 @@ class HostArgs:
|
|
|
288
288
|
def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]]]):
|
|
289
289
|
pulumi.set(self, "services", value)
|
|
290
290
|
|
|
291
|
-
@property
|
|
291
|
+
@_builtins.property
|
|
292
292
|
@pulumi.getter
|
|
293
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
293
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
294
294
|
"""
|
|
295
295
|
The IDs of any tags to attach to this resource. Please
|
|
296
296
|
refer to the `Tag` resource for more information on applying
|
|
@@ -302,12 +302,12 @@ class HostArgs:
|
|
|
302
302
|
return pulumi.get(self, "tags")
|
|
303
303
|
|
|
304
304
|
@tags.setter
|
|
305
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
305
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
306
306
|
pulumi.set(self, "tags", value)
|
|
307
307
|
|
|
308
|
-
@property
|
|
308
|
+
@_builtins.property
|
|
309
309
|
@pulumi.getter
|
|
310
|
-
def thumbprint(self) -> Optional[pulumi.Input[str]]:
|
|
310
|
+
def thumbprint(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
311
311
|
"""
|
|
312
312
|
Host's certificate SHA-1 thumbprint. If not set the
|
|
313
313
|
CA that signed the host's certificate should be trusted. If the CA is not
|
|
@@ -317,39 +317,39 @@ class HostArgs:
|
|
|
317
317
|
return pulumi.get(self, "thumbprint")
|
|
318
318
|
|
|
319
319
|
@thumbprint.setter
|
|
320
|
-
def thumbprint(self, value: Optional[pulumi.Input[str]]):
|
|
320
|
+
def thumbprint(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
321
321
|
pulumi.set(self, "thumbprint", value)
|
|
322
322
|
|
|
323
323
|
|
|
324
324
|
@pulumi.input_type
|
|
325
325
|
class _HostState:
|
|
326
326
|
def __init__(__self__, *,
|
|
327
|
-
cluster: Optional[pulumi.Input[str]] = None,
|
|
328
|
-
cluster_managed: Optional[pulumi.Input[bool]] = None,
|
|
329
|
-
connected: Optional[pulumi.Input[bool]] = None,
|
|
330
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
331
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
332
|
-
force: Optional[pulumi.Input[bool]] = None,
|
|
333
|
-
hostname: Optional[pulumi.Input[str]] = None,
|
|
334
|
-
license: Optional[pulumi.Input[str]] = None,
|
|
335
|
-
lockdown: Optional[pulumi.Input[str]] = None,
|
|
336
|
-
maintenance: Optional[pulumi.Input[bool]] = None,
|
|
337
|
-
password: Optional[pulumi.Input[str]] = None,
|
|
327
|
+
cluster: Optional[pulumi.Input[_builtins.str]] = None,
|
|
328
|
+
cluster_managed: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
329
|
+
connected: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
330
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
331
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
332
|
+
force: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
333
|
+
hostname: Optional[pulumi.Input[_builtins.str]] = None,
|
|
334
|
+
license: Optional[pulumi.Input[_builtins.str]] = None,
|
|
335
|
+
lockdown: Optional[pulumi.Input[_builtins.str]] = None,
|
|
336
|
+
maintenance: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
337
|
+
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
338
338
|
services: Optional[pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]]] = None,
|
|
339
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
340
|
-
thumbprint: Optional[pulumi.Input[str]] = None,
|
|
341
|
-
username: Optional[pulumi.Input[str]] = None):
|
|
339
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
340
|
+
thumbprint: Optional[pulumi.Input[_builtins.str]] = None,
|
|
341
|
+
username: Optional[pulumi.Input[_builtins.str]] = None):
|
|
342
342
|
"""
|
|
343
343
|
Input properties used for looking up and filtering Host resources.
|
|
344
|
-
:param pulumi.Input[str] cluster: The ID of the Compute Cluster this host should
|
|
344
|
+
:param pulumi.Input[_builtins.str] cluster: The ID of the Compute Cluster this host should
|
|
345
345
|
be added to. This should not be set if `datacenter` is set. Conflicts with:
|
|
346
346
|
`cluster_managed`.
|
|
347
|
-
:param pulumi.Input[bool] cluster_managed: Can be set to `true` if compute cluster
|
|
347
|
+
:param pulumi.Input[_builtins.bool] cluster_managed: Can be set to `true` if compute cluster
|
|
348
348
|
membership will be managed through the `compute_cluster` resource rather
|
|
349
349
|
than the`host` resource. Conflicts with: `cluster`.
|
|
350
|
-
:param pulumi.Input[bool] connected: If set to false then the host will be disconnected.
|
|
350
|
+
:param pulumi.Input[_builtins.bool] connected: If set to false then the host will be disconnected.
|
|
351
351
|
Default is `false`.
|
|
352
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: A map of custom attribute IDs and string
|
|
352
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: A map of custom attribute IDs and string
|
|
353
353
|
values to apply to the resource. Please refer to the
|
|
354
354
|
`vsphere_custom_attributes` resource for more information on applying
|
|
355
355
|
tags to resources.
|
|
@@ -358,32 +358,32 @@ class _HostState:
|
|
|
358
358
|
connections and require vCenter Server.
|
|
359
359
|
|
|
360
360
|
[docs-host-thumbprint-data-source]: /docs/providers/vsphere/d/host_thumbprint.html
|
|
361
|
-
:param pulumi.Input[str] datacenter: The ID of the datacenter this host should
|
|
361
|
+
:param pulumi.Input[_builtins.str] datacenter: The ID of the datacenter this host should
|
|
362
362
|
be added to. This should not be set if `cluster` is set.
|
|
363
|
-
:param pulumi.Input[bool] force: If set to `true` then it will force the host to be added,
|
|
363
|
+
:param pulumi.Input[_builtins.bool] force: If set to `true` then it will force the host to be added,
|
|
364
364
|
even if the host is already connected to a different vCenter Server instance.
|
|
365
365
|
Default is `false`.
|
|
366
|
-
:param pulumi.Input[str] hostname: FQDN or IP address of the host to be added.
|
|
367
|
-
:param pulumi.Input[str] license: The license key that will be applied to the host.
|
|
366
|
+
:param pulumi.Input[_builtins.str] hostname: FQDN or IP address of the host to be added.
|
|
367
|
+
:param pulumi.Input[_builtins.str] license: The license key that will be applied to the host.
|
|
368
368
|
The license key is expected to be present in vSphere.
|
|
369
|
-
:param pulumi.Input[str] lockdown: Set the lockdown state of the host. Valid options are
|
|
369
|
+
:param pulumi.Input[_builtins.str] lockdown: Set the lockdown state of the host. Valid options are
|
|
370
370
|
`disabled`, `normal`, and `strict`. Default is `disabled`.
|
|
371
|
-
:param pulumi.Input[bool] maintenance: Set the management state of the host.
|
|
371
|
+
:param pulumi.Input[_builtins.bool] maintenance: Set the management state of the host.
|
|
372
372
|
Default is `false`.
|
|
373
|
-
:param pulumi.Input[str] password: Password that will be used by vSphere to authenticate
|
|
373
|
+
:param pulumi.Input[_builtins.str] password: Password that will be used by vSphere to authenticate
|
|
374
374
|
to the host.
|
|
375
375
|
:param pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]] services: Set Services on host, the settings to be set are based on service being set as part of import.
|
|
376
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please
|
|
376
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource. Please
|
|
377
377
|
refer to the `Tag` resource for more information on applying
|
|
378
378
|
tags to resources.
|
|
379
379
|
|
|
380
380
|
> **NOTE:** Tagging support is not supported on direct ESXi host
|
|
381
381
|
connections and require vCenter Server.
|
|
382
|
-
:param pulumi.Input[str] thumbprint: Host's certificate SHA-1 thumbprint. If not set the
|
|
382
|
+
:param pulumi.Input[_builtins.str] thumbprint: Host's certificate SHA-1 thumbprint. If not set the
|
|
383
383
|
CA that signed the host's certificate should be trusted. If the CA is not
|
|
384
384
|
trusted and no thumbprint is set then the operation will fail. See data source
|
|
385
385
|
[`get_host_thumbprint`][docs-host-thumbprint-data-source].
|
|
386
|
-
:param pulumi.Input[str] username: Username that will be used by vSphere to authenticate
|
|
386
|
+
:param pulumi.Input[_builtins.str] username: Username that will be used by vSphere to authenticate
|
|
387
387
|
to the host.
|
|
388
388
|
"""
|
|
389
389
|
if cluster is not None:
|
|
@@ -417,9 +417,9 @@ class _HostState:
|
|
|
417
417
|
if username is not None:
|
|
418
418
|
pulumi.set(__self__, "username", username)
|
|
419
419
|
|
|
420
|
-
@property
|
|
420
|
+
@_builtins.property
|
|
421
421
|
@pulumi.getter
|
|
422
|
-
def cluster(self) -> Optional[pulumi.Input[str]]:
|
|
422
|
+
def cluster(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
423
423
|
"""
|
|
424
424
|
The ID of the Compute Cluster this host should
|
|
425
425
|
be added to. This should not be set if `datacenter` is set. Conflicts with:
|
|
@@ -428,12 +428,12 @@ class _HostState:
|
|
|
428
428
|
return pulumi.get(self, "cluster")
|
|
429
429
|
|
|
430
430
|
@cluster.setter
|
|
431
|
-
def cluster(self, value: Optional[pulumi.Input[str]]):
|
|
431
|
+
def cluster(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
432
432
|
pulumi.set(self, "cluster", value)
|
|
433
433
|
|
|
434
|
-
@property
|
|
434
|
+
@_builtins.property
|
|
435
435
|
@pulumi.getter(name="clusterManaged")
|
|
436
|
-
def cluster_managed(self) -> Optional[pulumi.Input[bool]]:
|
|
436
|
+
def cluster_managed(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
437
437
|
"""
|
|
438
438
|
Can be set to `true` if compute cluster
|
|
439
439
|
membership will be managed through the `compute_cluster` resource rather
|
|
@@ -442,12 +442,12 @@ class _HostState:
|
|
|
442
442
|
return pulumi.get(self, "cluster_managed")
|
|
443
443
|
|
|
444
444
|
@cluster_managed.setter
|
|
445
|
-
def cluster_managed(self, value: Optional[pulumi.Input[bool]]):
|
|
445
|
+
def cluster_managed(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
446
446
|
pulumi.set(self, "cluster_managed", value)
|
|
447
447
|
|
|
448
|
-
@property
|
|
448
|
+
@_builtins.property
|
|
449
449
|
@pulumi.getter
|
|
450
|
-
def connected(self) -> Optional[pulumi.Input[bool]]:
|
|
450
|
+
def connected(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
451
451
|
"""
|
|
452
452
|
If set to false then the host will be disconnected.
|
|
453
453
|
Default is `false`.
|
|
@@ -455,12 +455,12 @@ class _HostState:
|
|
|
455
455
|
return pulumi.get(self, "connected")
|
|
456
456
|
|
|
457
457
|
@connected.setter
|
|
458
|
-
def connected(self, value: Optional[pulumi.Input[bool]]):
|
|
458
|
+
def connected(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
459
459
|
pulumi.set(self, "connected", value)
|
|
460
460
|
|
|
461
|
-
@property
|
|
461
|
+
@_builtins.property
|
|
462
462
|
@pulumi.getter(name="customAttributes")
|
|
463
|
-
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
463
|
+
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
464
464
|
"""
|
|
465
465
|
A map of custom attribute IDs and string
|
|
466
466
|
values to apply to the resource. Please refer to the
|
|
@@ -475,12 +475,12 @@ class _HostState:
|
|
|
475
475
|
return pulumi.get(self, "custom_attributes")
|
|
476
476
|
|
|
477
477
|
@custom_attributes.setter
|
|
478
|
-
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
478
|
+
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
479
479
|
pulumi.set(self, "custom_attributes", value)
|
|
480
480
|
|
|
481
|
-
@property
|
|
481
|
+
@_builtins.property
|
|
482
482
|
@pulumi.getter
|
|
483
|
-
def datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
483
|
+
def datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
484
484
|
"""
|
|
485
485
|
The ID of the datacenter this host should
|
|
486
486
|
be added to. This should not be set if `cluster` is set.
|
|
@@ -488,12 +488,12 @@ class _HostState:
|
|
|
488
488
|
return pulumi.get(self, "datacenter")
|
|
489
489
|
|
|
490
490
|
@datacenter.setter
|
|
491
|
-
def datacenter(self, value: Optional[pulumi.Input[str]]):
|
|
491
|
+
def datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
492
492
|
pulumi.set(self, "datacenter", value)
|
|
493
493
|
|
|
494
|
-
@property
|
|
494
|
+
@_builtins.property
|
|
495
495
|
@pulumi.getter
|
|
496
|
-
def force(self) -> Optional[pulumi.Input[bool]]:
|
|
496
|
+
def force(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
497
497
|
"""
|
|
498
498
|
If set to `true` then it will force the host to be added,
|
|
499
499
|
even if the host is already connected to a different vCenter Server instance.
|
|
@@ -502,24 +502,24 @@ class _HostState:
|
|
|
502
502
|
return pulumi.get(self, "force")
|
|
503
503
|
|
|
504
504
|
@force.setter
|
|
505
|
-
def force(self, value: Optional[pulumi.Input[bool]]):
|
|
505
|
+
def force(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
506
506
|
pulumi.set(self, "force", value)
|
|
507
507
|
|
|
508
|
-
@property
|
|
508
|
+
@_builtins.property
|
|
509
509
|
@pulumi.getter
|
|
510
|
-
def hostname(self) -> Optional[pulumi.Input[str]]:
|
|
510
|
+
def hostname(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
511
511
|
"""
|
|
512
512
|
FQDN or IP address of the host to be added.
|
|
513
513
|
"""
|
|
514
514
|
return pulumi.get(self, "hostname")
|
|
515
515
|
|
|
516
516
|
@hostname.setter
|
|
517
|
-
def hostname(self, value: Optional[pulumi.Input[str]]):
|
|
517
|
+
def hostname(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
518
518
|
pulumi.set(self, "hostname", value)
|
|
519
519
|
|
|
520
|
-
@property
|
|
520
|
+
@_builtins.property
|
|
521
521
|
@pulumi.getter
|
|
522
|
-
def license(self) -> Optional[pulumi.Input[str]]:
|
|
522
|
+
def license(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
523
523
|
"""
|
|
524
524
|
The license key that will be applied to the host.
|
|
525
525
|
The license key is expected to be present in vSphere.
|
|
@@ -527,12 +527,12 @@ class _HostState:
|
|
|
527
527
|
return pulumi.get(self, "license")
|
|
528
528
|
|
|
529
529
|
@license.setter
|
|
530
|
-
def license(self, value: Optional[pulumi.Input[str]]):
|
|
530
|
+
def license(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
531
531
|
pulumi.set(self, "license", value)
|
|
532
532
|
|
|
533
|
-
@property
|
|
533
|
+
@_builtins.property
|
|
534
534
|
@pulumi.getter
|
|
535
|
-
def lockdown(self) -> Optional[pulumi.Input[str]]:
|
|
535
|
+
def lockdown(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
536
536
|
"""
|
|
537
537
|
Set the lockdown state of the host. Valid options are
|
|
538
538
|
`disabled`, `normal`, and `strict`. Default is `disabled`.
|
|
@@ -540,12 +540,12 @@ class _HostState:
|
|
|
540
540
|
return pulumi.get(self, "lockdown")
|
|
541
541
|
|
|
542
542
|
@lockdown.setter
|
|
543
|
-
def lockdown(self, value: Optional[pulumi.Input[str]]):
|
|
543
|
+
def lockdown(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
544
544
|
pulumi.set(self, "lockdown", value)
|
|
545
545
|
|
|
546
|
-
@property
|
|
546
|
+
@_builtins.property
|
|
547
547
|
@pulumi.getter
|
|
548
|
-
def maintenance(self) -> Optional[pulumi.Input[bool]]:
|
|
548
|
+
def maintenance(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
549
549
|
"""
|
|
550
550
|
Set the management state of the host.
|
|
551
551
|
Default is `false`.
|
|
@@ -553,12 +553,12 @@ class _HostState:
|
|
|
553
553
|
return pulumi.get(self, "maintenance")
|
|
554
554
|
|
|
555
555
|
@maintenance.setter
|
|
556
|
-
def maintenance(self, value: Optional[pulumi.Input[bool]]):
|
|
556
|
+
def maintenance(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
557
557
|
pulumi.set(self, "maintenance", value)
|
|
558
558
|
|
|
559
|
-
@property
|
|
559
|
+
@_builtins.property
|
|
560
560
|
@pulumi.getter
|
|
561
|
-
def password(self) -> Optional[pulumi.Input[str]]:
|
|
561
|
+
def password(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
562
562
|
"""
|
|
563
563
|
Password that will be used by vSphere to authenticate
|
|
564
564
|
to the host.
|
|
@@ -566,10 +566,10 @@ class _HostState:
|
|
|
566
566
|
return pulumi.get(self, "password")
|
|
567
567
|
|
|
568
568
|
@password.setter
|
|
569
|
-
def password(self, value: Optional[pulumi.Input[str]]):
|
|
569
|
+
def password(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
570
570
|
pulumi.set(self, "password", value)
|
|
571
571
|
|
|
572
|
-
@property
|
|
572
|
+
@_builtins.property
|
|
573
573
|
@pulumi.getter
|
|
574
574
|
def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]]]:
|
|
575
575
|
"""
|
|
@@ -581,9 +581,9 @@ class _HostState:
|
|
|
581
581
|
def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]]]):
|
|
582
582
|
pulumi.set(self, "services", value)
|
|
583
583
|
|
|
584
|
-
@property
|
|
584
|
+
@_builtins.property
|
|
585
585
|
@pulumi.getter
|
|
586
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
586
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
587
587
|
"""
|
|
588
588
|
The IDs of any tags to attach to this resource. Please
|
|
589
589
|
refer to the `Tag` resource for more information on applying
|
|
@@ -595,12 +595,12 @@ class _HostState:
|
|
|
595
595
|
return pulumi.get(self, "tags")
|
|
596
596
|
|
|
597
597
|
@tags.setter
|
|
598
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
598
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
599
599
|
pulumi.set(self, "tags", value)
|
|
600
600
|
|
|
601
|
-
@property
|
|
601
|
+
@_builtins.property
|
|
602
602
|
@pulumi.getter
|
|
603
|
-
def thumbprint(self) -> Optional[pulumi.Input[str]]:
|
|
603
|
+
def thumbprint(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
604
604
|
"""
|
|
605
605
|
Host's certificate SHA-1 thumbprint. If not set the
|
|
606
606
|
CA that signed the host's certificate should be trusted. If the CA is not
|
|
@@ -610,12 +610,12 @@ class _HostState:
|
|
|
610
610
|
return pulumi.get(self, "thumbprint")
|
|
611
611
|
|
|
612
612
|
@thumbprint.setter
|
|
613
|
-
def thumbprint(self, value: Optional[pulumi.Input[str]]):
|
|
613
|
+
def thumbprint(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
614
614
|
pulumi.set(self, "thumbprint", value)
|
|
615
615
|
|
|
616
|
-
@property
|
|
616
|
+
@_builtins.property
|
|
617
617
|
@pulumi.getter
|
|
618
|
-
def username(self) -> Optional[pulumi.Input[str]]:
|
|
618
|
+
def username(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
619
619
|
"""
|
|
620
620
|
Username that will be used by vSphere to authenticate
|
|
621
621
|
to the host.
|
|
@@ -623,30 +623,31 @@ class _HostState:
|
|
|
623
623
|
return pulumi.get(self, "username")
|
|
624
624
|
|
|
625
625
|
@username.setter
|
|
626
|
-
def username(self, value: Optional[pulumi.Input[str]]):
|
|
626
|
+
def username(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
627
627
|
pulumi.set(self, "username", value)
|
|
628
628
|
|
|
629
629
|
|
|
630
|
+
@pulumi.type_token("vsphere:index/host:Host")
|
|
630
631
|
class Host(pulumi.CustomResource):
|
|
631
632
|
@overload
|
|
632
633
|
def __init__(__self__,
|
|
633
634
|
resource_name: str,
|
|
634
635
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
635
|
-
cluster: Optional[pulumi.Input[str]] = None,
|
|
636
|
-
cluster_managed: Optional[pulumi.Input[bool]] = None,
|
|
637
|
-
connected: Optional[pulumi.Input[bool]] = None,
|
|
638
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
639
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
640
|
-
force: Optional[pulumi.Input[bool]] = None,
|
|
641
|
-
hostname: Optional[pulumi.Input[str]] = None,
|
|
642
|
-
license: Optional[pulumi.Input[str]] = None,
|
|
643
|
-
lockdown: Optional[pulumi.Input[str]] = None,
|
|
644
|
-
maintenance: Optional[pulumi.Input[bool]] = None,
|
|
645
|
-
password: Optional[pulumi.Input[str]] = None,
|
|
636
|
+
cluster: Optional[pulumi.Input[_builtins.str]] = None,
|
|
637
|
+
cluster_managed: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
638
|
+
connected: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
639
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
640
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
641
|
+
force: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
642
|
+
hostname: Optional[pulumi.Input[_builtins.str]] = None,
|
|
643
|
+
license: Optional[pulumi.Input[_builtins.str]] = None,
|
|
644
|
+
lockdown: Optional[pulumi.Input[_builtins.str]] = None,
|
|
645
|
+
maintenance: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
646
|
+
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
646
647
|
services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HostServiceArgs', 'HostServiceArgsDict']]]]] = None,
|
|
647
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
648
|
-
thumbprint: Optional[pulumi.Input[str]] = None,
|
|
649
|
-
username: Optional[pulumi.Input[str]] = None,
|
|
648
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
649
|
+
thumbprint: Optional[pulumi.Input[_builtins.str]] = None,
|
|
650
|
+
username: Optional[pulumi.Input[_builtins.str]] = None,
|
|
650
651
|
__props__=None):
|
|
651
652
|
"""
|
|
652
653
|
Provides a VMware vSphere host resource. This represents an ESXi host that
|
|
@@ -672,6 +673,33 @@ class Host(pulumi.CustomResource):
|
|
|
672
673
|
datacenter=datacenter.id)
|
|
673
674
|
```
|
|
674
675
|
|
|
676
|
+
### Create host in a compute cluster
|
|
677
|
+
|
|
678
|
+
```python
|
|
679
|
+
import pulumi
|
|
680
|
+
import pulumi_vsphere as vsphere
|
|
681
|
+
|
|
682
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
683
|
+
cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
684
|
+
datacenter_id=datacenter.id)
|
|
685
|
+
thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com",
|
|
686
|
+
insecure=True)
|
|
687
|
+
esx_01 = vsphere.Host("esx-01",
|
|
688
|
+
hostname="esxi-01.example.com",
|
|
689
|
+
username="root",
|
|
690
|
+
password="password",
|
|
691
|
+
license="00000-00000-00000-00000-00000",
|
|
692
|
+
thumbprint=thumbprint.id,
|
|
693
|
+
cluster=cluster.id,
|
|
694
|
+
services=[{
|
|
695
|
+
"ntpd": {
|
|
696
|
+
"enabled": True,
|
|
697
|
+
"policy": "on",
|
|
698
|
+
"ntp_servers": ["pool.ntp.org"],
|
|
699
|
+
},
|
|
700
|
+
}])
|
|
701
|
+
```
|
|
702
|
+
|
|
675
703
|
## Import
|
|
676
704
|
|
|
677
705
|
An existing host can be imported into this resource by supplying
|
|
@@ -716,7 +744,7 @@ class Host(pulumi.CustomResource):
|
|
|
716
744
|
|
|
717
745
|
data "vsphere_host_thumbprint" "thumbprint" {
|
|
718
746
|
|
|
719
|
-
address
|
|
747
|
+
address = "esxi-01.example.com"
|
|
720
748
|
|
|
721
749
|
insecure = true
|
|
722
750
|
|
|
@@ -764,9 +792,9 @@ class Host(pulumi.CustomResource):
|
|
|
764
792
|
|
|
765
793
|
}
|
|
766
794
|
|
|
767
|
-
|
|
795
|
+
}
|
|
768
796
|
|
|
769
|
-
|
|
797
|
+
}
|
|
770
798
|
|
|
771
799
|
```sh
|
|
772
800
|
$ pulumi import vsphere:index/host:Host esx-01 host-123
|
|
@@ -776,15 +804,15 @@ class Host(pulumi.CustomResource):
|
|
|
776
804
|
|
|
777
805
|
:param str resource_name: The name of the resource.
|
|
778
806
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
779
|
-
:param pulumi.Input[str] cluster: The ID of the Compute Cluster this host should
|
|
807
|
+
:param pulumi.Input[_builtins.str] cluster: The ID of the Compute Cluster this host should
|
|
780
808
|
be added to. This should not be set if `datacenter` is set. Conflicts with:
|
|
781
809
|
`cluster_managed`.
|
|
782
|
-
:param pulumi.Input[bool] cluster_managed: Can be set to `true` if compute cluster
|
|
810
|
+
:param pulumi.Input[_builtins.bool] cluster_managed: Can be set to `true` if compute cluster
|
|
783
811
|
membership will be managed through the `compute_cluster` resource rather
|
|
784
812
|
than the`host` resource. Conflicts with: `cluster`.
|
|
785
|
-
:param pulumi.Input[bool] connected: If set to false then the host will be disconnected.
|
|
813
|
+
:param pulumi.Input[_builtins.bool] connected: If set to false then the host will be disconnected.
|
|
786
814
|
Default is `false`.
|
|
787
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: A map of custom attribute IDs and string
|
|
815
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: A map of custom attribute IDs and string
|
|
788
816
|
values to apply to the resource. Please refer to the
|
|
789
817
|
`vsphere_custom_attributes` resource for more information on applying
|
|
790
818
|
tags to resources.
|
|
@@ -793,32 +821,32 @@ class Host(pulumi.CustomResource):
|
|
|
793
821
|
connections and require vCenter Server.
|
|
794
822
|
|
|
795
823
|
[docs-host-thumbprint-data-source]: /docs/providers/vsphere/d/host_thumbprint.html
|
|
796
|
-
:param pulumi.Input[str] datacenter: The ID of the datacenter this host should
|
|
824
|
+
:param pulumi.Input[_builtins.str] datacenter: The ID of the datacenter this host should
|
|
797
825
|
be added to. This should not be set if `cluster` is set.
|
|
798
|
-
:param pulumi.Input[bool] force: If set to `true` then it will force the host to be added,
|
|
826
|
+
:param pulumi.Input[_builtins.bool] force: If set to `true` then it will force the host to be added,
|
|
799
827
|
even if the host is already connected to a different vCenter Server instance.
|
|
800
828
|
Default is `false`.
|
|
801
|
-
:param pulumi.Input[str] hostname: FQDN or IP address of the host to be added.
|
|
802
|
-
:param pulumi.Input[str] license: The license key that will be applied to the host.
|
|
829
|
+
:param pulumi.Input[_builtins.str] hostname: FQDN or IP address of the host to be added.
|
|
830
|
+
:param pulumi.Input[_builtins.str] license: The license key that will be applied to the host.
|
|
803
831
|
The license key is expected to be present in vSphere.
|
|
804
|
-
:param pulumi.Input[str] lockdown: Set the lockdown state of the host. Valid options are
|
|
832
|
+
:param pulumi.Input[_builtins.str] lockdown: Set the lockdown state of the host. Valid options are
|
|
805
833
|
`disabled`, `normal`, and `strict`. Default is `disabled`.
|
|
806
|
-
:param pulumi.Input[bool] maintenance: Set the management state of the host.
|
|
834
|
+
:param pulumi.Input[_builtins.bool] maintenance: Set the management state of the host.
|
|
807
835
|
Default is `false`.
|
|
808
|
-
:param pulumi.Input[str] password: Password that will be used by vSphere to authenticate
|
|
836
|
+
:param pulumi.Input[_builtins.str] password: Password that will be used by vSphere to authenticate
|
|
809
837
|
to the host.
|
|
810
838
|
:param pulumi.Input[Sequence[pulumi.Input[Union['HostServiceArgs', 'HostServiceArgsDict']]]] services: Set Services on host, the settings to be set are based on service being set as part of import.
|
|
811
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please
|
|
839
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource. Please
|
|
812
840
|
refer to the `Tag` resource for more information on applying
|
|
813
841
|
tags to resources.
|
|
814
842
|
|
|
815
843
|
> **NOTE:** Tagging support is not supported on direct ESXi host
|
|
816
844
|
connections and require vCenter Server.
|
|
817
|
-
:param pulumi.Input[str] thumbprint: Host's certificate SHA-1 thumbprint. If not set the
|
|
845
|
+
:param pulumi.Input[_builtins.str] thumbprint: Host's certificate SHA-1 thumbprint. If not set the
|
|
818
846
|
CA that signed the host's certificate should be trusted. If the CA is not
|
|
819
847
|
trusted and no thumbprint is set then the operation will fail. See data source
|
|
820
848
|
[`get_host_thumbprint`][docs-host-thumbprint-data-source].
|
|
821
|
-
:param pulumi.Input[str] username: Username that will be used by vSphere to authenticate
|
|
849
|
+
:param pulumi.Input[_builtins.str] username: Username that will be used by vSphere to authenticate
|
|
822
850
|
to the host.
|
|
823
851
|
"""
|
|
824
852
|
...
|
|
@@ -851,6 +879,33 @@ class Host(pulumi.CustomResource):
|
|
|
851
879
|
datacenter=datacenter.id)
|
|
852
880
|
```
|
|
853
881
|
|
|
882
|
+
### Create host in a compute cluster
|
|
883
|
+
|
|
884
|
+
```python
|
|
885
|
+
import pulumi
|
|
886
|
+
import pulumi_vsphere as vsphere
|
|
887
|
+
|
|
888
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
889
|
+
cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
890
|
+
datacenter_id=datacenter.id)
|
|
891
|
+
thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com",
|
|
892
|
+
insecure=True)
|
|
893
|
+
esx_01 = vsphere.Host("esx-01",
|
|
894
|
+
hostname="esxi-01.example.com",
|
|
895
|
+
username="root",
|
|
896
|
+
password="password",
|
|
897
|
+
license="00000-00000-00000-00000-00000",
|
|
898
|
+
thumbprint=thumbprint.id,
|
|
899
|
+
cluster=cluster.id,
|
|
900
|
+
services=[{
|
|
901
|
+
"ntpd": {
|
|
902
|
+
"enabled": True,
|
|
903
|
+
"policy": "on",
|
|
904
|
+
"ntp_servers": ["pool.ntp.org"],
|
|
905
|
+
},
|
|
906
|
+
}])
|
|
907
|
+
```
|
|
908
|
+
|
|
854
909
|
## Import
|
|
855
910
|
|
|
856
911
|
An existing host can be imported into this resource by supplying
|
|
@@ -895,7 +950,7 @@ class Host(pulumi.CustomResource):
|
|
|
895
950
|
|
|
896
951
|
data "vsphere_host_thumbprint" "thumbprint" {
|
|
897
952
|
|
|
898
|
-
address
|
|
953
|
+
address = "esxi-01.example.com"
|
|
899
954
|
|
|
900
955
|
insecure = true
|
|
901
956
|
|
|
@@ -943,9 +998,9 @@ class Host(pulumi.CustomResource):
|
|
|
943
998
|
|
|
944
999
|
}
|
|
945
1000
|
|
|
946
|
-
|
|
1001
|
+
}
|
|
947
1002
|
|
|
948
|
-
|
|
1003
|
+
}
|
|
949
1004
|
|
|
950
1005
|
```sh
|
|
951
1006
|
$ pulumi import vsphere:index/host:Host esx-01 host-123
|
|
@@ -968,21 +1023,21 @@ class Host(pulumi.CustomResource):
|
|
|
968
1023
|
def _internal_init(__self__,
|
|
969
1024
|
resource_name: str,
|
|
970
1025
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
971
|
-
cluster: Optional[pulumi.Input[str]] = None,
|
|
972
|
-
cluster_managed: Optional[pulumi.Input[bool]] = None,
|
|
973
|
-
connected: Optional[pulumi.Input[bool]] = None,
|
|
974
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
975
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
976
|
-
force: Optional[pulumi.Input[bool]] = None,
|
|
977
|
-
hostname: Optional[pulumi.Input[str]] = None,
|
|
978
|
-
license: Optional[pulumi.Input[str]] = None,
|
|
979
|
-
lockdown: Optional[pulumi.Input[str]] = None,
|
|
980
|
-
maintenance: Optional[pulumi.Input[bool]] = None,
|
|
981
|
-
password: Optional[pulumi.Input[str]] = None,
|
|
1026
|
+
cluster: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1027
|
+
cluster_managed: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1028
|
+
connected: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1029
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
1030
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1031
|
+
force: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1032
|
+
hostname: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1033
|
+
license: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1034
|
+
lockdown: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1035
|
+
maintenance: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1036
|
+
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
982
1037
|
services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HostServiceArgs', 'HostServiceArgsDict']]]]] = None,
|
|
983
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
984
|
-
thumbprint: Optional[pulumi.Input[str]] = None,
|
|
985
|
-
username: Optional[pulumi.Input[str]] = None,
|
|
1038
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1039
|
+
thumbprint: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1040
|
+
username: Optional[pulumi.Input[_builtins.str]] = None,
|
|
986
1041
|
__props__=None):
|
|
987
1042
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
988
1043
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -1025,21 +1080,21 @@ class Host(pulumi.CustomResource):
|
|
|
1025
1080
|
def get(resource_name: str,
|
|
1026
1081
|
id: pulumi.Input[str],
|
|
1027
1082
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1028
|
-
cluster: Optional[pulumi.Input[str]] = None,
|
|
1029
|
-
cluster_managed: Optional[pulumi.Input[bool]] = None,
|
|
1030
|
-
connected: Optional[pulumi.Input[bool]] = None,
|
|
1031
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1032
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
1033
|
-
force: Optional[pulumi.Input[bool]] = None,
|
|
1034
|
-
hostname: Optional[pulumi.Input[str]] = None,
|
|
1035
|
-
license: Optional[pulumi.Input[str]] = None,
|
|
1036
|
-
lockdown: Optional[pulumi.Input[str]] = None,
|
|
1037
|
-
maintenance: Optional[pulumi.Input[bool]] = None,
|
|
1038
|
-
password: Optional[pulumi.Input[str]] = None,
|
|
1083
|
+
cluster: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1084
|
+
cluster_managed: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1085
|
+
connected: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1086
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
1087
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1088
|
+
force: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1089
|
+
hostname: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1090
|
+
license: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1091
|
+
lockdown: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1092
|
+
maintenance: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1093
|
+
password: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1039
1094
|
services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HostServiceArgs', 'HostServiceArgsDict']]]]] = None,
|
|
1040
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1041
|
-
thumbprint: Optional[pulumi.Input[str]] = None,
|
|
1042
|
-
username: Optional[pulumi.Input[str]] = None) -> 'Host':
|
|
1095
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1096
|
+
thumbprint: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1097
|
+
username: Optional[pulumi.Input[_builtins.str]] = None) -> 'Host':
|
|
1043
1098
|
"""
|
|
1044
1099
|
Get an existing Host resource's state with the given name, id, and optional extra
|
|
1045
1100
|
properties used to qualify the lookup.
|
|
@@ -1047,15 +1102,15 @@ class Host(pulumi.CustomResource):
|
|
|
1047
1102
|
:param str resource_name: The unique name of the resulting resource.
|
|
1048
1103
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1049
1104
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1050
|
-
:param pulumi.Input[str] cluster: The ID of the Compute Cluster this host should
|
|
1105
|
+
:param pulumi.Input[_builtins.str] cluster: The ID of the Compute Cluster this host should
|
|
1051
1106
|
be added to. This should not be set if `datacenter` is set. Conflicts with:
|
|
1052
1107
|
`cluster_managed`.
|
|
1053
|
-
:param pulumi.Input[bool] cluster_managed: Can be set to `true` if compute cluster
|
|
1108
|
+
:param pulumi.Input[_builtins.bool] cluster_managed: Can be set to `true` if compute cluster
|
|
1054
1109
|
membership will be managed through the `compute_cluster` resource rather
|
|
1055
1110
|
than the`host` resource. Conflicts with: `cluster`.
|
|
1056
|
-
:param pulumi.Input[bool] connected: If set to false then the host will be disconnected.
|
|
1111
|
+
:param pulumi.Input[_builtins.bool] connected: If set to false then the host will be disconnected.
|
|
1057
1112
|
Default is `false`.
|
|
1058
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: A map of custom attribute IDs and string
|
|
1113
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: A map of custom attribute IDs and string
|
|
1059
1114
|
values to apply to the resource. Please refer to the
|
|
1060
1115
|
`vsphere_custom_attributes` resource for more information on applying
|
|
1061
1116
|
tags to resources.
|
|
@@ -1064,32 +1119,32 @@ class Host(pulumi.CustomResource):
|
|
|
1064
1119
|
connections and require vCenter Server.
|
|
1065
1120
|
|
|
1066
1121
|
[docs-host-thumbprint-data-source]: /docs/providers/vsphere/d/host_thumbprint.html
|
|
1067
|
-
:param pulumi.Input[str] datacenter: The ID of the datacenter this host should
|
|
1122
|
+
:param pulumi.Input[_builtins.str] datacenter: The ID of the datacenter this host should
|
|
1068
1123
|
be added to. This should not be set if `cluster` is set.
|
|
1069
|
-
:param pulumi.Input[bool] force: If set to `true` then it will force the host to be added,
|
|
1124
|
+
:param pulumi.Input[_builtins.bool] force: If set to `true` then it will force the host to be added,
|
|
1070
1125
|
even if the host is already connected to a different vCenter Server instance.
|
|
1071
1126
|
Default is `false`.
|
|
1072
|
-
:param pulumi.Input[str] hostname: FQDN or IP address of the host to be added.
|
|
1073
|
-
:param pulumi.Input[str] license: The license key that will be applied to the host.
|
|
1127
|
+
:param pulumi.Input[_builtins.str] hostname: FQDN or IP address of the host to be added.
|
|
1128
|
+
:param pulumi.Input[_builtins.str] license: The license key that will be applied to the host.
|
|
1074
1129
|
The license key is expected to be present in vSphere.
|
|
1075
|
-
:param pulumi.Input[str] lockdown: Set the lockdown state of the host. Valid options are
|
|
1130
|
+
:param pulumi.Input[_builtins.str] lockdown: Set the lockdown state of the host. Valid options are
|
|
1076
1131
|
`disabled`, `normal`, and `strict`. Default is `disabled`.
|
|
1077
|
-
:param pulumi.Input[bool] maintenance: Set the management state of the host.
|
|
1132
|
+
:param pulumi.Input[_builtins.bool] maintenance: Set the management state of the host.
|
|
1078
1133
|
Default is `false`.
|
|
1079
|
-
:param pulumi.Input[str] password: Password that will be used by vSphere to authenticate
|
|
1134
|
+
:param pulumi.Input[_builtins.str] password: Password that will be used by vSphere to authenticate
|
|
1080
1135
|
to the host.
|
|
1081
1136
|
:param pulumi.Input[Sequence[pulumi.Input[Union['HostServiceArgs', 'HostServiceArgsDict']]]] services: Set Services on host, the settings to be set are based on service being set as part of import.
|
|
1082
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please
|
|
1137
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource. Please
|
|
1083
1138
|
refer to the `Tag` resource for more information on applying
|
|
1084
1139
|
tags to resources.
|
|
1085
1140
|
|
|
1086
1141
|
> **NOTE:** Tagging support is not supported on direct ESXi host
|
|
1087
1142
|
connections and require vCenter Server.
|
|
1088
|
-
:param pulumi.Input[str] thumbprint: Host's certificate SHA-1 thumbprint. If not set the
|
|
1143
|
+
:param pulumi.Input[_builtins.str] thumbprint: Host's certificate SHA-1 thumbprint. If not set the
|
|
1089
1144
|
CA that signed the host's certificate should be trusted. If the CA is not
|
|
1090
1145
|
trusted and no thumbprint is set then the operation will fail. See data source
|
|
1091
1146
|
[`get_host_thumbprint`][docs-host-thumbprint-data-source].
|
|
1092
|
-
:param pulumi.Input[str] username: Username that will be used by vSphere to authenticate
|
|
1147
|
+
:param pulumi.Input[_builtins.str] username: Username that will be used by vSphere to authenticate
|
|
1093
1148
|
to the host.
|
|
1094
1149
|
"""
|
|
1095
1150
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -1113,9 +1168,9 @@ class Host(pulumi.CustomResource):
|
|
|
1113
1168
|
__props__.__dict__["username"] = username
|
|
1114
1169
|
return Host(resource_name, opts=opts, __props__=__props__)
|
|
1115
1170
|
|
|
1116
|
-
@property
|
|
1171
|
+
@_builtins.property
|
|
1117
1172
|
@pulumi.getter
|
|
1118
|
-
def cluster(self) -> pulumi.Output[Optional[str]]:
|
|
1173
|
+
def cluster(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1119
1174
|
"""
|
|
1120
1175
|
The ID of the Compute Cluster this host should
|
|
1121
1176
|
be added to. This should not be set if `datacenter` is set. Conflicts with:
|
|
@@ -1123,9 +1178,9 @@ class Host(pulumi.CustomResource):
|
|
|
1123
1178
|
"""
|
|
1124
1179
|
return pulumi.get(self, "cluster")
|
|
1125
1180
|
|
|
1126
|
-
@property
|
|
1181
|
+
@_builtins.property
|
|
1127
1182
|
@pulumi.getter(name="clusterManaged")
|
|
1128
|
-
def cluster_managed(self) -> pulumi.Output[Optional[bool]]:
|
|
1183
|
+
def cluster_managed(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1129
1184
|
"""
|
|
1130
1185
|
Can be set to `true` if compute cluster
|
|
1131
1186
|
membership will be managed through the `compute_cluster` resource rather
|
|
@@ -1133,18 +1188,18 @@ class Host(pulumi.CustomResource):
|
|
|
1133
1188
|
"""
|
|
1134
1189
|
return pulumi.get(self, "cluster_managed")
|
|
1135
1190
|
|
|
1136
|
-
@property
|
|
1191
|
+
@_builtins.property
|
|
1137
1192
|
@pulumi.getter
|
|
1138
|
-
def connected(self) -> pulumi.Output[Optional[bool]]:
|
|
1193
|
+
def connected(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1139
1194
|
"""
|
|
1140
1195
|
If set to false then the host will be disconnected.
|
|
1141
1196
|
Default is `false`.
|
|
1142
1197
|
"""
|
|
1143
1198
|
return pulumi.get(self, "connected")
|
|
1144
1199
|
|
|
1145
|
-
@property
|
|
1200
|
+
@_builtins.property
|
|
1146
1201
|
@pulumi.getter(name="customAttributes")
|
|
1147
|
-
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
1202
|
+
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
|
1148
1203
|
"""
|
|
1149
1204
|
A map of custom attribute IDs and string
|
|
1150
1205
|
values to apply to the resource. Please refer to the
|
|
@@ -1158,18 +1213,18 @@ class Host(pulumi.CustomResource):
|
|
|
1158
1213
|
"""
|
|
1159
1214
|
return pulumi.get(self, "custom_attributes")
|
|
1160
1215
|
|
|
1161
|
-
@property
|
|
1216
|
+
@_builtins.property
|
|
1162
1217
|
@pulumi.getter
|
|
1163
|
-
def datacenter(self) -> pulumi.Output[Optional[str]]:
|
|
1218
|
+
def datacenter(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1164
1219
|
"""
|
|
1165
1220
|
The ID of the datacenter this host should
|
|
1166
1221
|
be added to. This should not be set if `cluster` is set.
|
|
1167
1222
|
"""
|
|
1168
1223
|
return pulumi.get(self, "datacenter")
|
|
1169
1224
|
|
|
1170
|
-
@property
|
|
1225
|
+
@_builtins.property
|
|
1171
1226
|
@pulumi.getter
|
|
1172
|
-
def force(self) -> pulumi.Output[Optional[bool]]:
|
|
1227
|
+
def force(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1173
1228
|
"""
|
|
1174
1229
|
If set to `true` then it will force the host to be added,
|
|
1175
1230
|
even if the host is already connected to a different vCenter Server instance.
|
|
@@ -1177,51 +1232,51 @@ class Host(pulumi.CustomResource):
|
|
|
1177
1232
|
"""
|
|
1178
1233
|
return pulumi.get(self, "force")
|
|
1179
1234
|
|
|
1180
|
-
@property
|
|
1235
|
+
@_builtins.property
|
|
1181
1236
|
@pulumi.getter
|
|
1182
|
-
def hostname(self) -> pulumi.Output[str]:
|
|
1237
|
+
def hostname(self) -> pulumi.Output[_builtins.str]:
|
|
1183
1238
|
"""
|
|
1184
1239
|
FQDN or IP address of the host to be added.
|
|
1185
1240
|
"""
|
|
1186
1241
|
return pulumi.get(self, "hostname")
|
|
1187
1242
|
|
|
1188
|
-
@property
|
|
1243
|
+
@_builtins.property
|
|
1189
1244
|
@pulumi.getter
|
|
1190
|
-
def license(self) -> pulumi.Output[Optional[str]]:
|
|
1245
|
+
def license(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1191
1246
|
"""
|
|
1192
1247
|
The license key that will be applied to the host.
|
|
1193
1248
|
The license key is expected to be present in vSphere.
|
|
1194
1249
|
"""
|
|
1195
1250
|
return pulumi.get(self, "license")
|
|
1196
1251
|
|
|
1197
|
-
@property
|
|
1252
|
+
@_builtins.property
|
|
1198
1253
|
@pulumi.getter
|
|
1199
|
-
def lockdown(self) -> pulumi.Output[Optional[str]]:
|
|
1254
|
+
def lockdown(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1200
1255
|
"""
|
|
1201
1256
|
Set the lockdown state of the host. Valid options are
|
|
1202
1257
|
`disabled`, `normal`, and `strict`. Default is `disabled`.
|
|
1203
1258
|
"""
|
|
1204
1259
|
return pulumi.get(self, "lockdown")
|
|
1205
1260
|
|
|
1206
|
-
@property
|
|
1261
|
+
@_builtins.property
|
|
1207
1262
|
@pulumi.getter
|
|
1208
|
-
def maintenance(self) -> pulumi.Output[Optional[bool]]:
|
|
1263
|
+
def maintenance(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1209
1264
|
"""
|
|
1210
1265
|
Set the management state of the host.
|
|
1211
1266
|
Default is `false`.
|
|
1212
1267
|
"""
|
|
1213
1268
|
return pulumi.get(self, "maintenance")
|
|
1214
1269
|
|
|
1215
|
-
@property
|
|
1270
|
+
@_builtins.property
|
|
1216
1271
|
@pulumi.getter
|
|
1217
|
-
def password(self) -> pulumi.Output[str]:
|
|
1272
|
+
def password(self) -> pulumi.Output[_builtins.str]:
|
|
1218
1273
|
"""
|
|
1219
1274
|
Password that will be used by vSphere to authenticate
|
|
1220
1275
|
to the host.
|
|
1221
1276
|
"""
|
|
1222
1277
|
return pulumi.get(self, "password")
|
|
1223
1278
|
|
|
1224
|
-
@property
|
|
1279
|
+
@_builtins.property
|
|
1225
1280
|
@pulumi.getter
|
|
1226
1281
|
def services(self) -> pulumi.Output[Optional[Sequence['outputs.HostService']]]:
|
|
1227
1282
|
"""
|
|
@@ -1229,9 +1284,9 @@ class Host(pulumi.CustomResource):
|
|
|
1229
1284
|
"""
|
|
1230
1285
|
return pulumi.get(self, "services")
|
|
1231
1286
|
|
|
1232
|
-
@property
|
|
1287
|
+
@_builtins.property
|
|
1233
1288
|
@pulumi.getter
|
|
1234
|
-
def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1289
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1235
1290
|
"""
|
|
1236
1291
|
The IDs of any tags to attach to this resource. Please
|
|
1237
1292
|
refer to the `Tag` resource for more information on applying
|
|
@@ -1242,9 +1297,9 @@ class Host(pulumi.CustomResource):
|
|
|
1242
1297
|
"""
|
|
1243
1298
|
return pulumi.get(self, "tags")
|
|
1244
1299
|
|
|
1245
|
-
@property
|
|
1300
|
+
@_builtins.property
|
|
1246
1301
|
@pulumi.getter
|
|
1247
|
-
def thumbprint(self) -> pulumi.Output[Optional[str]]:
|
|
1302
|
+
def thumbprint(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1248
1303
|
"""
|
|
1249
1304
|
Host's certificate SHA-1 thumbprint. If not set the
|
|
1250
1305
|
CA that signed the host's certificate should be trusted. If the CA is not
|
|
@@ -1253,9 +1308,9 @@ class Host(pulumi.CustomResource):
|
|
|
1253
1308
|
"""
|
|
1254
1309
|
return pulumi.get(self, "thumbprint")
|
|
1255
1310
|
|
|
1256
|
-
@property
|
|
1311
|
+
@_builtins.property
|
|
1257
1312
|
@pulumi.getter
|
|
1258
|
-
def username(self) -> pulumi.Output[str]:
|
|
1313
|
+
def username(self) -> pulumi.Output[_builtins.str]:
|
|
1259
1314
|
"""
|
|
1260
1315
|
Username that will be used by vSphere to authenticate
|
|
1261
1316
|
to the host.
|