pulumi-vsphere 4.10.3a1723624830__py3-none-any.whl → 4.11.0__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/_inputs.py CHANGED
@@ -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__, *,
@@ -55,7 +55,7 @@ class GetDatastoreResult:
55
55
 
56
56
  @property
57
57
  @pulumi.getter
58
- def stats(self) -> Optional[Mapping[str, Any]]:
58
+ def stats(self) -> Optional[Mapping[str, str]]:
59
59
  """
60
60
  The disk space usage statistics for the specific datastore. The
61
61
  total datastore capacity is represented as `capacity` and the free remaining
@@ -78,7 +78,7 @@ class AwaitableGetDatastoreResult(GetDatastoreResult):
78
78
 
79
79
  def get_datastore(datacenter_id: Optional[str] = None,
80
80
  name: Optional[str] = None,
81
- stats: Optional[Mapping[str, Any]] = None,
81
+ stats: Optional[Mapping[str, str]] = None,
82
82
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreResult:
83
83
  """
84
84
  The `get_datastore` data source can be used to discover the ID of a
@@ -103,7 +103,7 @@ def get_datastore(datacenter_id: Optional[str] = None,
103
103
  search path used in `name` is an absolute path. For default datacenters, use
104
104
  the `id` attribute from an empty `Datacenter` data source.
105
105
  :param str name: The name of the datastore. This can be a name or path.
106
- :param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The
106
+ :param Mapping[str, str] stats: The disk space usage statistics for the specific datastore. The
107
107
  total datastore capacity is represented as `capacity` and the free remaining
108
108
  disk is represented as `free`.
109
109
  """
@@ -124,7 +124,7 @@ def get_datastore(datacenter_id: Optional[str] = None,
124
124
  @_utilities.lift_output_func(get_datastore)
125
125
  def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
126
126
  name: Optional[pulumi.Input[str]] = None,
127
- stats: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
127
+ stats: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
128
128
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreResult]:
129
129
  """
130
130
  The `get_datastore` data source can be used to discover the ID of a
@@ -149,7 +149,7 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
149
149
  search path used in `name` is an absolute path. For default datacenters, use
150
150
  the `id` attribute from an empty `Datacenter` data source.
151
151
  :param str name: The name of the datastore. This can be a name or path.
152
- :param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The
152
+ :param Mapping[str, str] stats: The disk space usage statistics for the specific datastore. The
153
153
  total datastore capacity is represented as `capacity` and the free remaining
154
154
  disk is represented as `free`.
155
155
  """
@@ -37,7 +37,7 @@ class GetDatastoreStatsResult:
37
37
 
38
38
  @property
39
39
  @pulumi.getter
40
- def capacity(self) -> Optional[Mapping[str, Any]]:
40
+ def capacity(self) -> Optional[Mapping[str, str]]:
41
41
  """
42
42
  A mapping of the capacity for all datastore in the datacenter,
43
43
  where the name of the datastore is used as key and the capacity as value.
@@ -55,7 +55,7 @@ class GetDatastoreStatsResult:
55
55
 
56
56
  @property
57
57
  @pulumi.getter(name="freeSpace")
58
- def free_space(self) -> Optional[Mapping[str, Any]]:
58
+ def free_space(self) -> Optional[Mapping[str, str]]:
59
59
  """
60
60
  A mapping of the free space for each datastore in the
61
61
  datacenter, where the name of the datastore is used as key and the free space
@@ -84,9 +84,9 @@ class AwaitableGetDatastoreStatsResult(GetDatastoreStatsResult):
84
84
  id=self.id)
85
85
 
86
86
 
87
- def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
87
+ def get_datastore_stats(capacity: Optional[Mapping[str, str]] = None,
88
88
  datacenter_id: Optional[str] = None,
89
- free_space: Optional[Mapping[str, Any]] = None,
89
+ free_space: Optional[Mapping[str, str]] = None,
90
90
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreStatsResult:
91
91
  """
92
92
  The `get_datastore_stats` data source can be used to retrieve the usage
@@ -119,7 +119,7 @@ def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
119
119
  and a `locals.tf` like that:
120
120
 
121
121
 
122
- :param Mapping[str, Any] capacity: A mapping of the capacity for all datastore in the datacenter,
122
+ :param Mapping[str, str] capacity: A mapping of the capacity for all datastore in the datacenter,
123
123
  where the name of the datastore is used as key and the capacity as value.
124
124
  :param str datacenter_id: The
125
125
  [managed object reference ID][docs-about-morefs] of the datacenter the
@@ -127,7 +127,7 @@ def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
127
127
  from an empty `Datacenter` data source.
128
128
 
129
129
  [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
130
- :param Mapping[str, Any] free_space: A mapping of the free space for each datastore in the
130
+ :param Mapping[str, str] free_space: A mapping of the free space for each datastore in the
131
131
  datacenter, where the name of the datastore is used as key and the free space
132
132
  as value.
133
133
  """
@@ -146,9 +146,9 @@ def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
146
146
 
147
147
 
148
148
  @_utilities.lift_output_func(get_datastore_stats)
149
- def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
149
+ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
150
150
  datacenter_id: Optional[pulumi.Input[str]] = None,
151
- free_space: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
151
+ free_space: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
152
152
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreStatsResult]:
153
153
  """
154
154
  The `get_datastore_stats` data source can be used to retrieve the usage
@@ -181,7 +181,7 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
181
181
  and a `locals.tf` like that:
182
182
 
183
183
 
184
- :param Mapping[str, Any] capacity: A mapping of the capacity for all datastore in the datacenter,
184
+ :param Mapping[str, str] capacity: A mapping of the capacity for all datastore in the datacenter,
185
185
  where the name of the datastore is used as key and the capacity as value.
186
186
  :param str datacenter_id: The
187
187
  [managed object reference ID][docs-about-morefs] of the datacenter the
@@ -189,7 +189,7 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
189
189
  from an empty `Datacenter` data source.
190
190
 
191
191
  [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
192
- :param Mapping[str, Any] free_space: A mapping of the free space for each datastore in the
192
+ :param Mapping[str, str] free_space: A mapping of the free space for each datastore in the
193
193
  datacenter, where the name of the datastore is used as key and the free space
194
194
  as value.
195
195
  """
pulumi_vsphere/host.py CHANGED
@@ -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,6 +638,7 @@ 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,
@@ -632,26 +667,6 @@ class Host(pulumi.CustomResource):
632
667
  datacenter=datacenter.id)
633
668
  ```
634
669
 
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
670
  ## Importing
656
671
 
657
672
  An existing host can be [imported][docs-import] into this resource by supplying
@@ -694,6 +709,7 @@ class Host(pulumi.CustomResource):
694
709
  Default is `false`.
695
710
  :param pulumi.Input[str] password: Password that will be used by vSphere to authenticate
696
711
  to the host.
712
+ :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
713
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please
698
714
  refer to the `Tag` resource for more information on applying
699
715
  tags to resources.
@@ -737,26 +753,6 @@ class Host(pulumi.CustomResource):
737
753
  datacenter=datacenter.id)
738
754
  ```
739
755
 
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
756
  ## Importing
761
757
 
762
758
  An existing host can be [imported][docs-import] into this resource by supplying
@@ -792,6 +788,7 @@ class Host(pulumi.CustomResource):
792
788
  lockdown: Optional[pulumi.Input[str]] = None,
793
789
  maintenance: Optional[pulumi.Input[bool]] = None,
794
790
  password: Optional[pulumi.Input[str]] = None,
791
+ services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HostServiceArgs', 'HostServiceArgsDict']]]]] = None,
795
792
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
796
793
  thumbprint: Optional[pulumi.Input[str]] = None,
797
794
  username: Optional[pulumi.Input[str]] = None,
@@ -819,6 +816,7 @@ class Host(pulumi.CustomResource):
819
816
  if password is None and not opts.urn:
820
817
  raise TypeError("Missing required property 'password'")
821
818
  __props__.__dict__["password"] = None if password is None else pulumi.Output.secret(password)
819
+ __props__.__dict__["services"] = services
822
820
  __props__.__dict__["tags"] = tags
823
821
  __props__.__dict__["thumbprint"] = thumbprint
824
822
  if username is None and not opts.urn:
@@ -847,6 +845,7 @@ class Host(pulumi.CustomResource):
847
845
  lockdown: Optional[pulumi.Input[str]] = None,
848
846
  maintenance: Optional[pulumi.Input[bool]] = None,
849
847
  password: Optional[pulumi.Input[str]] = None,
848
+ services: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HostServiceArgs', 'HostServiceArgsDict']]]]] = None,
850
849
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
851
850
  thumbprint: Optional[pulumi.Input[str]] = None,
852
851
  username: Optional[pulumi.Input[str]] = None) -> 'Host':
@@ -888,6 +887,7 @@ class Host(pulumi.CustomResource):
888
887
  Default is `false`.
889
888
  :param pulumi.Input[str] password: Password that will be used by vSphere to authenticate
890
889
  to the host.
890
+ :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
891
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource. Please
892
892
  refer to the `Tag` resource for more information on applying
893
893
  tags to resources.
@@ -916,6 +916,7 @@ class Host(pulumi.CustomResource):
916
916
  __props__.__dict__["lockdown"] = lockdown
917
917
  __props__.__dict__["maintenance"] = maintenance
918
918
  __props__.__dict__["password"] = password
919
+ __props__.__dict__["services"] = services
919
920
  __props__.__dict__["tags"] = tags
920
921
  __props__.__dict__["thumbprint"] = thumbprint
921
922
  __props__.__dict__["username"] = username
@@ -1029,6 +1030,14 @@ class Host(pulumi.CustomResource):
1029
1030
  """
1030
1031
  return pulumi.get(self, "password")
1031
1032
 
1033
+ @property
1034
+ @pulumi.getter
1035
+ def services(self) -> pulumi.Output[Optional[Sequence['outputs.HostService']]]:
1036
+ """
1037
+ Set Services on host, the settings to be set are based on service being set as part of import.
1038
+ """
1039
+ return pulumi.get(self, "services")
1040
+
1032
1041
  @property
1033
1042
  @pulumi.getter
1034
1043
  def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
pulumi_vsphere/outputs.py CHANGED
@@ -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.10.3-alpha.1723624830"
4
+ "version": "4.11.0"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_vsphere
3
- Version: 4.10.3a1723624830
3
+ Version: 4.11.0
4
4
  Summary: A Pulumi package for creating vsphere resources
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -1,5 +1,5 @@
1
1
  pulumi_vsphere/__init__.py,sha256=7zI4b3F2NEW8hz7TIVEWb1MZI_HqHV4GUM2o9lJKez0,10798
2
- pulumi_vsphere/_inputs.py,sha256=lN6ecF2j2oZ9jyWFXjEM20hr_2pcv5fVx_7-NpRwPLo,140319
2
+ pulumi_vsphere/_inputs.py,sha256=47uwlKCjl3fK0iCTYTup7EGLjtaR_TToxdHcMb4o2ew,143694
3
3
  pulumi_vsphere/_utilities.py,sha256=aNnnaO6zRha3FhNHonuabR4fJLWGXANtK5dlh1Mz95k,10506
4
4
  pulumi_vsphere/compute_cluster.py,sha256=Q40JsBcIcPjrE40Xv4FbHyxNqIzXXZ_PR0t4t8bUwDE,226996
5
5
  pulumi_vsphere/compute_cluster_host_group.py,sha256=QUCBKwC2RaJI6ZuC_qBDZJl5gey-rs3iVsbPrFFK-1g,13437
@@ -27,9 +27,9 @@ pulumi_vsphere/get_content_library.py,sha256=OvtzMI4plfMyPnHrTV39BFJ4OQDmkQRif7v
27
27
  pulumi_vsphere/get_content_library_item.py,sha256=pxYlJl6sTUulRxDL21CmFrWs3PfItrkooQF1aKHDykw,4526
28
28
  pulumi_vsphere/get_custom_attribute.py,sha256=skM0hjQmPyYCQdEgXjbofu9Ulez4ylw9jQKb9g3Zz2I,4354
29
29
  pulumi_vsphere/get_datacenter.py,sha256=sfXiHyHNnm9S-bUpcbaGw1ei7ZMNJ1-s_lV6Z7B0UH4,4083
30
- pulumi_vsphere/get_datastore.py,sha256=2y6wC5RYP6agawoiaXW2qc0sm82PM2GkeMlOWnhV7bE,5979
30
+ pulumi_vsphere/get_datastore.py,sha256=1Y7S8iTxJSEwcVXvS-vpjQLWC2aT22H0GfX8kTvur9c,5979
31
31
  pulumi_vsphere/get_datastore_cluster.py,sha256=4nkwUsNLdqWIoxYhiFzkFoYjr4zyOf-5UToK_0vbELg,5157
32
- pulumi_vsphere/get_datastore_stats.py,sha256=-KFEHIKK1EStNWxjgNXOL-O6Wy8-yS3TCz5NMhnrifY,7646
32
+ pulumi_vsphere/get_datastore_stats.py,sha256=GmG8O3j-wXzS4iveHFdF2E3SiMY7g8zFHcoBQDD5DH0,7646
33
33
  pulumi_vsphere/get_distributed_virtual_switch.py,sha256=icwEpCtIYmPBXvT_3M_dHV0fjwPzbR7cQWQtN-75F0c,6922
34
34
  pulumi_vsphere/get_dynamic.py,sha256=CdhKrE8AwkRIgWwlvtcfCKy9awzC-zr1LqU7WdQogu4,6030
35
35
  pulumi_vsphere/get_folder.py,sha256=rkdRDdJGuZpbcuA1PIVYr90vSTZIk26L-FCSql1H7rE,3999
@@ -52,15 +52,15 @@ pulumi_vsphere/get_virtual_machine.py,sha256=7cbdpbCgsLtWSkzmPdzOhlnILjAN5_cOb0U
52
52
  pulumi_vsphere/get_vmfs_disks.py,sha256=KotPjKN7ncgdWzl6qSU1DuuxIxu8BoQ5CLDH1JAgShg,6717
53
53
  pulumi_vsphere/guest_os_customization.py,sha256=McMmuw-0x6IDTkxshaESAMf9_MMuQ4n930zcrT4Nmfs,16953
54
54
  pulumi_vsphere/ha_vm_override.py,sha256=Z2p_A1fowtS4_UGq-SHP_dfw2ruZuYVMTo5DizkeOEQ,52698
55
- pulumi_vsphere/host.py,sha256=iLAODc_Ez09iYoOZ_opB3xfINe17ZohHnN_ZTq98owc,45815
55
+ pulumi_vsphere/host.py,sha256=ixWV6MJmOWGIbSI_mkCGbzqCaH1Z0_Zckr3AdGeo3oU,47349
56
56
  pulumi_vsphere/host_port_group.py,sha256=b7VTsHfYZNw_6Fjdr7SJL6JKKtK7sU9Nc6DHRxsoKF0,56976
57
57
  pulumi_vsphere/host_virtual_switch.py,sha256=WTZtqM4GDzLIcmviM_fQ47SHNXQrEHVqV0q3wEB0sFA,57317
58
58
  pulumi_vsphere/license.py,sha256=4IhaSHnAjOFSlSKu4AYGcbraULzzTRASs29wB7nw7aU,12022
59
59
  pulumi_vsphere/nas_datastore.py,sha256=aPmG1bbVD909T_v-xPDVLOTkh_HBuwStemqCLHNyFBc,48132
60
60
  pulumi_vsphere/offline_software_depot.py,sha256=9NvticI3dlQeZZ-Z_TwT7Jo-qa2GwhfZG4reQM3Xl3U,7379
61
- pulumi_vsphere/outputs.py,sha256=DFXPG2Hn5HlMkLvBPAomimeGkR7BtjeHVvhWsB6su1w,153365
61
+ pulumi_vsphere/outputs.py,sha256=tMsheiyMRU8KoTIz05uauvgdEJYmRxTownfIq6UsvCY,156594
62
62
  pulumi_vsphere/provider.py,sha256=8H6ulcRQh7CAH67BvSthuiqAV0nAVjssl3aFk2xb2ME,20263
63
- pulumi_vsphere/pulumi-plugin.json,sha256=hknxxOWvzKmrM-ETBQ84m0i1mTTVgjRFUrZjr91ATEs,84
63
+ pulumi_vsphere/pulumi-plugin.json,sha256=OlXm55epxDqGUqIfHDZNohBu9_DwX5VGNpb0N2KudnY,67
64
64
  pulumi_vsphere/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
65
65
  pulumi_vsphere/resource_pool.py,sha256=7ew08gNozV_P-oS0sh2cWIbmU1T8jHbsFPLJnUrxk5Q,54809
66
66
  pulumi_vsphere/role.py,sha256=kO9DfdLWHq5bfwD0EBAsZuWQxrcX7amJBVUrfREHf3c,8528
@@ -80,7 +80,7 @@ pulumi_vsphere/vnic.py,sha256=tFuxn8kk9H3an7jgkUvNNCnY0xuGB8-y2twMlur6PfQ,30563
80
80
  pulumi_vsphere/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
81
81
  pulumi_vsphere/config/__init__.pyi,sha256=ZO6ktIIpO1bKQNe2__l8JqDti_ZKgnRvHTcXcRWzb0M,1351
82
82
  pulumi_vsphere/config/vars.py,sha256=fcurb1Hwqp3evWnRD4s2t--MUjqR9R11nIm04F1UMW0,3210
83
- pulumi_vsphere-4.10.3a1723624830.dist-info/METADATA,sha256=uGcHWatfIXJDwIS0toq74ms3X_d6ZhHzL0uotzIfhiI,4958
84
- pulumi_vsphere-4.10.3a1723624830.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
85
- pulumi_vsphere-4.10.3a1723624830.dist-info/top_level.txt,sha256=00BIE8zaYtdsw0_tBfXR8E5sTs3lRnwlcZ6lUdu4loI,15
86
- pulumi_vsphere-4.10.3a1723624830.dist-info/RECORD,,
83
+ pulumi_vsphere-4.11.0.dist-info/METADATA,sha256=G7OGr0hqlUByVMJz-AQx2TrLUiwXiepudeyazRy3EgM,4947
84
+ pulumi_vsphere-4.11.0.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
85
+ pulumi_vsphere-4.11.0.dist-info/top_level.txt,sha256=00BIE8zaYtdsw0_tBfXR8E5sTs3lRnwlcZ6lUdu4loI,15
86
+ pulumi_vsphere-4.11.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.2.0)
2
+ Generator: setuptools (74.1.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5