pulumi-vsphere 4.11.0a1724998329__tar.gz → 4.11.1__tar.gz

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.

Files changed (91) hide show
  1. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/PKG-INFO +1 -1
  2. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/_inputs.py +80 -0
  3. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/host.py +51 -104
  4. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/outputs.py +81 -0
  5. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/pulumi-plugin.json +1 -1
  6. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere.egg-info/PKG-INFO +1 -1
  7. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pyproject.toml +1 -1
  8. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/README.md +0 -0
  9. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/__init__.py +0 -0
  10. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/_utilities.py +0 -0
  11. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/compute_cluster.py +0 -0
  12. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/compute_cluster_host_group.py +0 -0
  13. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/compute_cluster_vm_affinity_rule.py +0 -0
  14. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +0 -0
  15. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/compute_cluster_vm_dependency_rule.py +0 -0
  16. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/compute_cluster_vm_group.py +0 -0
  17. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/compute_cluster_vm_host_rule.py +0 -0
  18. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/config/__init__.py +0 -0
  19. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/config/__init__.pyi +0 -0
  20. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/config/vars.py +0 -0
  21. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/content_library.py +0 -0
  22. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/content_library_item.py +0 -0
  23. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/custom_attribute.py +0 -0
  24. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/datacenter.py +0 -0
  25. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/datastore_cluster.py +0 -0
  26. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +0 -0
  27. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/distributed_port_group.py +0 -0
  28. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/distributed_virtual_switch.py +0 -0
  29. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/dpm_host_override.py +0 -0
  30. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/drs_vm_override.py +0 -0
  31. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/entity_permissions.py +0 -0
  32. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/file.py +0 -0
  33. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/folder.py +0 -0
  34. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_compute_cluster.py +0 -0
  35. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_compute_cluster_host_group.py +0 -0
  36. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_content_library.py +0 -0
  37. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_content_library_item.py +0 -0
  38. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_custom_attribute.py +0 -0
  39. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_datacenter.py +0 -0
  40. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_datastore.py +0 -0
  41. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_datastore_cluster.py +0 -0
  42. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_datastore_stats.py +0 -0
  43. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_distributed_virtual_switch.py +0 -0
  44. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_dynamic.py +0 -0
  45. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_folder.py +0 -0
  46. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_guest_os_customization.py +0 -0
  47. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_host.py +0 -0
  48. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_host_base_images.py +0 -0
  49. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_host_pci_device.py +0 -0
  50. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_host_thumbprint.py +0 -0
  51. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_host_vgpu_profile.py +0 -0
  52. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_license.py +0 -0
  53. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_network.py +0 -0
  54. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_ovf_vm_template.py +0 -0
  55. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_policy.py +0 -0
  56. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_resource_pool.py +0 -0
  57. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_role.py +0 -0
  58. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_tag.py +0 -0
  59. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_tag_category.py +0 -0
  60. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_vapp_container.py +0 -0
  61. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_virtual_machine.py +0 -0
  62. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/get_vmfs_disks.py +0 -0
  63. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/guest_os_customization.py +0 -0
  64. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/ha_vm_override.py +0 -0
  65. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/host_port_group.py +0 -0
  66. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/host_virtual_switch.py +0 -0
  67. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/license.py +0 -0
  68. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/nas_datastore.py +0 -0
  69. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/offline_software_depot.py +0 -0
  70. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/provider.py +0 -0
  71. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/py.typed +0 -0
  72. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/resource_pool.py +0 -0
  73. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/role.py +0 -0
  74. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/storage_drs_vm_override.py +0 -0
  75. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/supervisor.py +0 -0
  76. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/tag.py +0 -0
  77. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/tag_category.py +0 -0
  78. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/vapp_container.py +0 -0
  79. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/vapp_entity.py +0 -0
  80. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/virtual_disk.py +0 -0
  81. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/virtual_machine.py +0 -0
  82. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/virtual_machine_class.py +0 -0
  83. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/virtual_machine_snapshot.py +0 -0
  84. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/vm_storage_policy.py +0 -0
  85. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/vmfs_datastore.py +0 -0
  86. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere/vnic.py +0 -0
  87. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere.egg-info/SOURCES.txt +0 -0
  88. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere.egg-info/dependency_links.txt +0 -0
  89. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere.egg-info/requires.txt +0 -0
  90. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/pulumi_vsphere.egg-info/top_level.txt +0 -0
  91. {pulumi_vsphere-4.11.0a1724998329 → pulumi_vsphere-4.11.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_vsphere
3
- Version: 4.11.0a1724998329
3
+ Version: 4.11.1
4
4
  Summary: A Pulumi package for creating vsphere resources
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -28,6 +28,8 @@ __all__ = [
28
28
  'GuestOsCustomizationSpecNetworkInterfaceArgs',
29
29
  'GuestOsCustomizationSpecWindowsOptionsArgs',
30
30
  'HostPortGroupPortArgs',
31
+ 'HostServiceArgs',
32
+ 'HostServiceNtpdArgs',
31
33
  'OfflineSoftwareDepotComponentArgs',
32
34
  'SupervisorEgressCidrArgs',
33
35
  'SupervisorIngressCidrArgs',
@@ -1348,6 +1350,84 @@ class HostPortGroupPortArgs:
1348
1350
  pulumi.set(self, "type", value)
1349
1351
 
1350
1352
 
1353
+ @pulumi.input_type
1354
+ class HostServiceArgs:
1355
+ def __init__(__self__, *,
1356
+ ntpd: Optional[pulumi.Input['HostServiceNtpdArgs']] = None):
1357
+ """
1358
+ :param pulumi.Input['HostServiceNtpdArgs'] ntpd: service has three settings, `enabled` sets service to running or not running, `policy` sets service based on setting of `on` which sets service to "Start and stop with host", `off` which sets service to "Start and stop manually", `automatic` which sets service to "Start and stop with port usage".
1359
+
1360
+ > **NOTE:** `services` only supports ntpd service today.
1361
+ """
1362
+ if ntpd is not None:
1363
+ pulumi.set(__self__, "ntpd", ntpd)
1364
+
1365
+ @property
1366
+ @pulumi.getter
1367
+ def ntpd(self) -> Optional[pulumi.Input['HostServiceNtpdArgs']]:
1368
+ """
1369
+ service has three settings, `enabled` sets service to running or not running, `policy` sets service based on setting of `on` which sets service to "Start and stop with host", `off` which sets service to "Start and stop manually", `automatic` which sets service to "Start and stop with port usage".
1370
+
1371
+ > **NOTE:** `services` only supports ntpd service today.
1372
+ """
1373
+ return pulumi.get(self, "ntpd")
1374
+
1375
+ @ntpd.setter
1376
+ def ntpd(self, value: Optional[pulumi.Input['HostServiceNtpdArgs']]):
1377
+ pulumi.set(self, "ntpd", value)
1378
+
1379
+
1380
+ @pulumi.input_type
1381
+ class HostServiceNtpdArgs:
1382
+ def __init__(__self__, *,
1383
+ enabled: Optional[pulumi.Input[bool]] = None,
1384
+ ntp_servers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1385
+ policy: Optional[pulumi.Input[str]] = None):
1386
+ """
1387
+ :param pulumi.Input[bool] enabled: Whether the NTP service is enabled. Default is false.
1388
+ :param pulumi.Input[str] policy: The policy for the NTP service. Valid values are 'Start and stop with host', 'Start and stop manually', 'Start and stop with port usage'.
1389
+ """
1390
+ if enabled is not None:
1391
+ pulumi.set(__self__, "enabled", enabled)
1392
+ if ntp_servers is not None:
1393
+ pulumi.set(__self__, "ntp_servers", ntp_servers)
1394
+ if policy is not None:
1395
+ pulumi.set(__self__, "policy", policy)
1396
+
1397
+ @property
1398
+ @pulumi.getter
1399
+ def enabled(self) -> Optional[pulumi.Input[bool]]:
1400
+ """
1401
+ Whether the NTP service is enabled. Default is false.
1402
+ """
1403
+ return pulumi.get(self, "enabled")
1404
+
1405
+ @enabled.setter
1406
+ def enabled(self, value: Optional[pulumi.Input[bool]]):
1407
+ pulumi.set(self, "enabled", value)
1408
+
1409
+ @property
1410
+ @pulumi.getter(name="ntpServers")
1411
+ def ntp_servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
1412
+ return pulumi.get(self, "ntp_servers")
1413
+
1414
+ @ntp_servers.setter
1415
+ def ntp_servers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
1416
+ pulumi.set(self, "ntp_servers", value)
1417
+
1418
+ @property
1419
+ @pulumi.getter
1420
+ def policy(self) -> Optional[pulumi.Input[str]]:
1421
+ """
1422
+ The policy for the NTP service. Valid values are 'Start and stop with host', 'Start and stop manually', 'Start and stop with port usage'.
1423
+ """
1424
+ return pulumi.get(self, "policy")
1425
+
1426
+ @policy.setter
1427
+ def policy(self, value: Optional[pulumi.Input[str]]):
1428
+ pulumi.set(self, "policy", value)
1429
+
1430
+
1351
1431
  @pulumi.input_type
1352
1432
  class OfflineSoftwareDepotComponentArgs:
1353
1433
  def __init__(__self__, *,
@@ -8,6 +8,8 @@ import pulumi
8
8
  import pulumi.runtime
9
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
10
10
  from . import _utilities
11
+ from . import outputs
12
+ from ._inputs import *
11
13
 
12
14
  __all__ = ['HostArgs', 'Host']
13
15
 
@@ -26,6 +28,7 @@ class HostArgs:
26
28
  license: Optional[pulumi.Input[str]] = None,
27
29
  lockdown: Optional[pulumi.Input[str]] = None,
28
30
  maintenance: Optional[pulumi.Input[bool]] = None,
31
+ services: Optional[pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]]] = None,
29
32
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
30
33
  thumbprint: Optional[pulumi.Input[str]] = None):
31
34
  """
@@ -63,6 +66,7 @@ class HostArgs:
63
66
  `disabled`, `normal`, and `strict`. Default is `disabled`.
64
67
  :param pulumi.Input[bool] maintenance: Set the management state of the host.
65
68
  Default is `false`.
69
+ :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.
66
70
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please
67
71
  refer to the `Tag` resource for more information on applying
68
72
  tags to resources.
@@ -95,6 +99,8 @@ class HostArgs:
95
99
  pulumi.set(__self__, "lockdown", lockdown)
96
100
  if maintenance is not None:
97
101
  pulumi.set(__self__, "maintenance", maintenance)
102
+ if services is not None:
103
+ pulumi.set(__self__, "services", services)
98
104
  if tags is not None:
99
105
  pulumi.set(__self__, "tags", tags)
100
106
  if thumbprint is not None:
@@ -265,6 +271,18 @@ class HostArgs:
265
271
  def maintenance(self, value: Optional[pulumi.Input[bool]]):
266
272
  pulumi.set(self, "maintenance", value)
267
273
 
274
+ @property
275
+ @pulumi.getter
276
+ def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]]]:
277
+ """
278
+ Set Services on host, the settings to be set are based on service being set as part of import.
279
+ """
280
+ return pulumi.get(self, "services")
281
+
282
+ @services.setter
283
+ def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]]]):
284
+ pulumi.set(self, "services", value)
285
+
268
286
  @property
269
287
  @pulumi.getter
270
288
  def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
@@ -312,6 +330,7 @@ class _HostState:
312
330
  lockdown: Optional[pulumi.Input[str]] = None,
313
331
  maintenance: Optional[pulumi.Input[bool]] = None,
314
332
  password: Optional[pulumi.Input[str]] = None,
333
+ services: Optional[pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]]] = None,
315
334
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
316
335
  thumbprint: Optional[pulumi.Input[str]] = None,
317
336
  username: Optional[pulumi.Input[str]] = None):
@@ -348,6 +367,7 @@ class _HostState:
348
367
  Default is `false`.
349
368
  :param pulumi.Input[str] password: Password that will be used by vSphere to authenticate
350
369
  to the host.
370
+ :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.
351
371
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please
352
372
  refer to the `Tag` resource for more information on applying
353
373
  tags to resources.
@@ -383,6 +403,8 @@ class _HostState:
383
403
  pulumi.set(__self__, "maintenance", maintenance)
384
404
  if password is not None:
385
405
  pulumi.set(__self__, "password", password)
406
+ if services is not None:
407
+ pulumi.set(__self__, "services", services)
386
408
  if tags is not None:
387
409
  pulumi.set(__self__, "tags", tags)
388
410
  if thumbprint is not None:
@@ -542,6 +564,18 @@ class _HostState:
542
564
  def password(self, value: Optional[pulumi.Input[str]]):
543
565
  pulumi.set(self, "password", value)
544
566
 
567
+ @property
568
+ @pulumi.getter
569
+ def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]]]:
570
+ """
571
+ Set Services on host, the settings to be set are based on service being set as part of import.
572
+ """
573
+ return pulumi.get(self, "services")
574
+
575
+ @services.setter
576
+ def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['HostServiceArgs']]]]):
577
+ pulumi.set(self, "services", value)
578
+
545
579
  @property
546
580
  @pulumi.getter
547
581
  def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
@@ -604,63 +638,13 @@ class Host(pulumi.CustomResource):
604
638
  lockdown: Optional[pulumi.Input[str]] = None,
605
639
  maintenance: Optional[pulumi.Input[bool]] = None,
606
640
  password: Optional[pulumi.Input[str]] = None,
641
+ services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HostServiceArgs', 'HostServiceArgsDict']]]]] = None,
607
642
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
608
643
  thumbprint: Optional[pulumi.Input[str]] = None,
609
644
  username: Optional[pulumi.Input[str]] = None,
610
645
  __props__=None):
611
646
  """
612
- Provides a VMware vSphere host resource. This represents an ESXi host that
613
- can be used either as a member of a cluster or as a standalone host.
614
-
615
- ## Example Usage
616
-
617
- ### Create a standalone host
618
-
619
- ```python
620
- import pulumi
621
- import pulumi_vsphere as vsphere
622
-
623
- datacenter = vsphere.get_datacenter(name="dc-01")
624
- thumbprint = vsphere.get_host_thumbprint(address="esx-01.example.com",
625
- insecure=True)
626
- esx_01 = vsphere.Host("esx-01",
627
- hostname="esx-01.example.com",
628
- username="root",
629
- password="password",
630
- license="00000-00000-00000-00000-00000",
631
- thumbprint=thumbprint.id,
632
- datacenter=datacenter.id)
633
- ```
634
-
635
- ### Create host in a compute cluster
636
-
637
- ```python
638
- import pulumi
639
- import pulumi_vsphere as vsphere
640
-
641
- datacenter = vsphere.get_datacenter(name="dc-01")
642
- cluster = vsphere.get_compute_cluster(name="cluster-01",
643
- datacenter_id=datacenter.id)
644
- thumbprint = vsphere.get_host_thumbprint(address="esx-01.example.com",
645
- insecure=True)
646
- esx_01 = vsphere.Host("esx-01",
647
- hostname="esx-01.example.com",
648
- username="root",
649
- password="password",
650
- license="00000-00000-00000-00000-00000",
651
- thumbprint=thumbprint.id,
652
- cluster=cluster.id)
653
- ```
654
-
655
- ## Importing
656
-
657
- An existing host can be [imported][docs-import] into this resource by supplying
658
- the host's ID. An example is below:
659
-
660
- [docs-import]: /docs/import/index.html
661
-
662
- The above would import the host with ID `host-123`.
663
-
647
+ Create a Host resource with the given unique name, props, and options.
664
648
  :param str resource_name: The name of the resource.
665
649
  :param pulumi.ResourceOptions opts: Options for the resource.
666
650
  :param pulumi.Input[str] cluster: The ID of the Compute Cluster this host should
@@ -694,6 +678,7 @@ class Host(pulumi.CustomResource):
694
678
  Default is `false`.
695
679
  :param pulumi.Input[str] password: Password that will be used by vSphere to authenticate
696
680
  to the host.
681
+ :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.
697
682
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please
698
683
  refer to the `Tag` resource for more information on applying
699
684
  tags to resources.
@@ -714,58 +699,7 @@ class Host(pulumi.CustomResource):
714
699
  args: HostArgs,
715
700
  opts: Optional[pulumi.ResourceOptions] = None):
716
701
  """
717
- Provides a VMware vSphere host resource. This represents an ESXi host that
718
- can be used either as a member of a cluster or as a standalone host.
719
-
720
- ## Example Usage
721
-
722
- ### Create a standalone host
723
-
724
- ```python
725
- import pulumi
726
- import pulumi_vsphere as vsphere
727
-
728
- datacenter = vsphere.get_datacenter(name="dc-01")
729
- thumbprint = vsphere.get_host_thumbprint(address="esx-01.example.com",
730
- insecure=True)
731
- esx_01 = vsphere.Host("esx-01",
732
- hostname="esx-01.example.com",
733
- username="root",
734
- password="password",
735
- license="00000-00000-00000-00000-00000",
736
- thumbprint=thumbprint.id,
737
- datacenter=datacenter.id)
738
- ```
739
-
740
- ### Create host in a compute cluster
741
-
742
- ```python
743
- import pulumi
744
- import pulumi_vsphere as vsphere
745
-
746
- datacenter = vsphere.get_datacenter(name="dc-01")
747
- cluster = vsphere.get_compute_cluster(name="cluster-01",
748
- datacenter_id=datacenter.id)
749
- thumbprint = vsphere.get_host_thumbprint(address="esx-01.example.com",
750
- insecure=True)
751
- esx_01 = vsphere.Host("esx-01",
752
- hostname="esx-01.example.com",
753
- username="root",
754
- password="password",
755
- license="00000-00000-00000-00000-00000",
756
- thumbprint=thumbprint.id,
757
- cluster=cluster.id)
758
- ```
759
-
760
- ## Importing
761
-
762
- An existing host can be [imported][docs-import] into this resource by supplying
763
- the host's ID. An example is below:
764
-
765
- [docs-import]: /docs/import/index.html
766
-
767
- The above would import the host with ID `host-123`.
768
-
702
+ Create a Host resource with the given unique name, props, and options.
769
703
  :param str resource_name: The name of the resource.
770
704
  :param HostArgs args: The arguments to use to populate this resource's properties.
771
705
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -792,6 +726,7 @@ class Host(pulumi.CustomResource):
792
726
  lockdown: Optional[pulumi.Input[str]] = None,
793
727
  maintenance: Optional[pulumi.Input[bool]] = None,
794
728
  password: Optional[pulumi.Input[str]] = None,
729
+ services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HostServiceArgs', 'HostServiceArgsDict']]]]] = None,
795
730
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
796
731
  thumbprint: Optional[pulumi.Input[str]] = None,
797
732
  username: Optional[pulumi.Input[str]] = None,
@@ -819,6 +754,7 @@ class Host(pulumi.CustomResource):
819
754
  if password is None and not opts.urn:
820
755
  raise TypeError("Missing required property 'password'")
821
756
  __props__.__dict__["password"] = None if password is None else pulumi.Output.secret(password)
757
+ __props__.__dict__["services"] = services
822
758
  __props__.__dict__["tags"] = tags
823
759
  __props__.__dict__["thumbprint"] = thumbprint
824
760
  if username is None and not opts.urn:
@@ -847,6 +783,7 @@ class Host(pulumi.CustomResource):
847
783
  lockdown: Optional[pulumi.Input[str]] = None,
848
784
  maintenance: Optional[pulumi.Input[bool]] = None,
849
785
  password: Optional[pulumi.Input[str]] = None,
786
+ services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HostServiceArgs', 'HostServiceArgsDict']]]]] = None,
850
787
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
851
788
  thumbprint: Optional[pulumi.Input[str]] = None,
852
789
  username: Optional[pulumi.Input[str]] = None) -> 'Host':
@@ -888,6 +825,7 @@ class Host(pulumi.CustomResource):
888
825
  Default is `false`.
889
826
  :param pulumi.Input[str] password: Password that will be used by vSphere to authenticate
890
827
  to the host.
828
+ :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.
891
829
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please
892
830
  refer to the `Tag` resource for more information on applying
893
831
  tags to resources.
@@ -916,6 +854,7 @@ class Host(pulumi.CustomResource):
916
854
  __props__.__dict__["lockdown"] = lockdown
917
855
  __props__.__dict__["maintenance"] = maintenance
918
856
  __props__.__dict__["password"] = password
857
+ __props__.__dict__["services"] = services
919
858
  __props__.__dict__["tags"] = tags
920
859
  __props__.__dict__["thumbprint"] = thumbprint
921
860
  __props__.__dict__["username"] = username
@@ -1029,6 +968,14 @@ class Host(pulumi.CustomResource):
1029
968
  """
1030
969
  return pulumi.get(self, "password")
1031
970
 
971
+ @property
972
+ @pulumi.getter
973
+ def services(self) -> pulumi.Output[Optional[Sequence['outputs.HostService']]]:
974
+ """
975
+ Set Services on host, the settings to be set are based on service being set as part of import.
976
+ """
977
+ return pulumi.get(self, "services")
978
+
1032
979
  @property
1033
980
  @pulumi.getter
1034
981
  def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
@@ -29,6 +29,8 @@ __all__ = [
29
29
  'GuestOsCustomizationSpecNetworkInterface',
30
30
  'GuestOsCustomizationSpecWindowsOptions',
31
31
  'HostPortGroupPort',
32
+ 'HostService',
33
+ 'HostServiceNtpd',
32
34
  'OfflineSoftwareDepotComponent',
33
35
  'SupervisorEgressCidr',
34
36
  'SupervisorIngressCidr',
@@ -1414,6 +1416,85 @@ class HostPortGroupPort(dict):
1414
1416
  return pulumi.get(self, "type")
1415
1417
 
1416
1418
 
1419
+ @pulumi.output_type
1420
+ class HostService(dict):
1421
+ def __init__(__self__, *,
1422
+ ntpd: Optional['outputs.HostServiceNtpd'] = None):
1423
+ """
1424
+ :param 'HostServiceNtpdArgs' ntpd: service has three settings, `enabled` sets service to running or not running, `policy` sets service based on setting of `on` which sets service to "Start and stop with host", `off` which sets service to "Start and stop manually", `automatic` which sets service to "Start and stop with port usage".
1425
+
1426
+ > **NOTE:** `services` only supports ntpd service today.
1427
+ """
1428
+ if ntpd is not None:
1429
+ pulumi.set(__self__, "ntpd", ntpd)
1430
+
1431
+ @property
1432
+ @pulumi.getter
1433
+ def ntpd(self) -> Optional['outputs.HostServiceNtpd']:
1434
+ """
1435
+ service has three settings, `enabled` sets service to running or not running, `policy` sets service based on setting of `on` which sets service to "Start and stop with host", `off` which sets service to "Start and stop manually", `automatic` which sets service to "Start and stop with port usage".
1436
+
1437
+ > **NOTE:** `services` only supports ntpd service today.
1438
+ """
1439
+ return pulumi.get(self, "ntpd")
1440
+
1441
+
1442
+ @pulumi.output_type
1443
+ class HostServiceNtpd(dict):
1444
+ @staticmethod
1445
+ def __key_warning(key: str):
1446
+ suggest = None
1447
+ if key == "ntpServers":
1448
+ suggest = "ntp_servers"
1449
+
1450
+ if suggest:
1451
+ pulumi.log.warn(f"Key '{key}' not found in HostServiceNtpd. Access the value via the '{suggest}' property getter instead.")
1452
+
1453
+ def __getitem__(self, key: str) -> Any:
1454
+ HostServiceNtpd.__key_warning(key)
1455
+ return super().__getitem__(key)
1456
+
1457
+ def get(self, key: str, default = None) -> Any:
1458
+ HostServiceNtpd.__key_warning(key)
1459
+ return super().get(key, default)
1460
+
1461
+ def __init__(__self__, *,
1462
+ enabled: Optional[bool] = None,
1463
+ ntp_servers: Optional[Sequence[str]] = None,
1464
+ policy: Optional[str] = None):
1465
+ """
1466
+ :param bool enabled: Whether the NTP service is enabled. Default is false.
1467
+ :param str policy: The policy for the NTP service. Valid values are 'Start and stop with host', 'Start and stop manually', 'Start and stop with port usage'.
1468
+ """
1469
+ if enabled is not None:
1470
+ pulumi.set(__self__, "enabled", enabled)
1471
+ if ntp_servers is not None:
1472
+ pulumi.set(__self__, "ntp_servers", ntp_servers)
1473
+ if policy is not None:
1474
+ pulumi.set(__self__, "policy", policy)
1475
+
1476
+ @property
1477
+ @pulumi.getter
1478
+ def enabled(self) -> Optional[bool]:
1479
+ """
1480
+ Whether the NTP service is enabled. Default is false.
1481
+ """
1482
+ return pulumi.get(self, "enabled")
1483
+
1484
+ @property
1485
+ @pulumi.getter(name="ntpServers")
1486
+ def ntp_servers(self) -> Optional[Sequence[str]]:
1487
+ return pulumi.get(self, "ntp_servers")
1488
+
1489
+ @property
1490
+ @pulumi.getter
1491
+ def policy(self) -> Optional[str]:
1492
+ """
1493
+ The policy for the NTP service. Valid values are 'Start and stop with host', 'Start and stop manually', 'Start and stop with port usage'.
1494
+ """
1495
+ return pulumi.get(self, "policy")
1496
+
1497
+
1417
1498
  @pulumi.output_type
1418
1499
  class OfflineSoftwareDepotComponent(dict):
1419
1500
  @staticmethod
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "vsphere",
4
- "version": "4.11.0-alpha.1724998329"
4
+ "version": "4.11.1"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_vsphere
3
- Version: 4.11.0a1724998329
3
+ Version: 4.11.1
4
4
  Summary: A Pulumi package for creating vsphere resources
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -5,7 +5,7 @@
5
5
  keywords = ["pulumi", "vsphere"]
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.8"
8
- version = "4.11.0a1724998329"
8
+ version = "4.11.1"
9
9
  [project.license]
10
10
  text = "Apache-2.0"
11
11
  [project.urls]