pulumi-vsphere 4.11.5__py3-none-any.whl → 4.12.0a1725603256__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.

Files changed (84) hide show
  1. pulumi_vsphere/_inputs.py +5 -1066
  2. pulumi_vsphere/_utilities.py +1 -1
  3. pulumi_vsphere/compute_cluster.py +2 -181
  4. pulumi_vsphere/compute_cluster_host_group.py +2 -67
  5. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +2 -29
  6. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +2 -41
  7. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +2 -205
  8. pulumi_vsphere/compute_cluster_vm_group.py +2 -198
  9. pulumi_vsphere/compute_cluster_vm_host_rule.py +2 -73
  10. pulumi_vsphere/config/__init__.pyi +0 -5
  11. pulumi_vsphere/config/vars.py +0 -5
  12. pulumi_vsphere/content_library.py +2 -103
  13. pulumi_vsphere/content_library_item.py +2 -143
  14. pulumi_vsphere/custom_attribute.py +2 -77
  15. pulumi_vsphere/datacenter.py +4 -19
  16. pulumi_vsphere/datastore_cluster.py +2 -63
  17. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +2 -159
  18. pulumi_vsphere/distributed_port_group.py +2 -285
  19. pulumi_vsphere/distributed_virtual_switch.py +2 -261
  20. pulumi_vsphere/dpm_host_override.py +2 -63
  21. pulumi_vsphere/drs_vm_override.py +2 -67
  22. pulumi_vsphere/entity_permissions.py +0 -5
  23. pulumi_vsphere/file.py +0 -5
  24. pulumi_vsphere/folder.py +2 -141
  25. pulumi_vsphere/get_compute_cluster.py +4 -15
  26. pulumi_vsphere/get_compute_cluster_host_group.py +6 -17
  27. pulumi_vsphere/get_content_library.py +4 -12
  28. pulumi_vsphere/get_content_library_item.py +4 -16
  29. pulumi_vsphere/get_custom_attribute.py +4 -13
  30. pulumi_vsphere/get_datacenter.py +4 -12
  31. pulumi_vsphere/get_datastore.py +4 -16
  32. pulumi_vsphere/get_datastore_cluster.py +4 -14
  33. pulumi_vsphere/get_datastore_stats.py +4 -16
  34. pulumi_vsphere/get_distributed_virtual_switch.py +4 -15
  35. pulumi_vsphere/get_dynamic.py +4 -16
  36. pulumi_vsphere/get_folder.py +4 -12
  37. pulumi_vsphere/get_guest_os_customization.py +4 -17
  38. pulumi_vsphere/get_host.py +4 -15
  39. pulumi_vsphere/get_host_base_images.py +4 -11
  40. pulumi_vsphere/get_host_pci_device.py +4 -19
  41. pulumi_vsphere/get_host_thumbprint.py +14 -34
  42. pulumi_vsphere/get_host_vgpu_profile.py +4 -15
  43. pulumi_vsphere/get_license.py +4 -17
  44. pulumi_vsphere/get_network.py +4 -17
  45. pulumi_vsphere/get_ovf_vm_template.py +4 -55
  46. pulumi_vsphere/get_policy.py +4 -12
  47. pulumi_vsphere/get_resource_pool.py +4 -14
  48. pulumi_vsphere/get_role.py +4 -18
  49. pulumi_vsphere/get_tag.py +4 -15
  50. pulumi_vsphere/get_tag_category.py +4 -15
  51. pulumi_vsphere/get_vapp_container.py +4 -14
  52. pulumi_vsphere/get_virtual_machine.py +4 -130
  53. pulumi_vsphere/get_vmfs_disks.py +4 -17
  54. pulumi_vsphere/guest_os_customization.py +0 -5
  55. pulumi_vsphere/ha_vm_override.py +2 -163
  56. pulumi_vsphere/host.py +12 -203
  57. pulumi_vsphere/host_port_group.py +2 -17
  58. pulumi_vsphere/host_virtual_switch.py +2 -69
  59. pulumi_vsphere/license.py +0 -5
  60. pulumi_vsphere/nas_datastore.py +2 -67
  61. pulumi_vsphere/offline_software_depot.py +0 -5
  62. pulumi_vsphere/outputs.py +0 -5
  63. pulumi_vsphere/provider.py +0 -5
  64. pulumi_vsphere/pulumi-plugin.json +1 -1
  65. pulumi_vsphere/resource_pool.py +437 -168
  66. pulumi_vsphere/role.py +2 -33
  67. pulumi_vsphere/storage_drs_vm_override.py +2 -133
  68. pulumi_vsphere/supervisor.py +0 -5
  69. pulumi_vsphere/tag.py +2 -159
  70. pulumi_vsphere/tag_category.py +2 -83
  71. pulumi_vsphere/vapp_container.py +2 -163
  72. pulumi_vsphere/vapp_entity.py +2 -147
  73. pulumi_vsphere/virtual_disk.py +2 -81
  74. pulumi_vsphere/virtual_machine.py +2 -53
  75. pulumi_vsphere/virtual_machine_class.py +0 -5
  76. pulumi_vsphere/virtual_machine_snapshot.py +0 -5
  77. pulumi_vsphere/vm_storage_policy.py +0 -5
  78. pulumi_vsphere/vmfs_datastore.py +2 -271
  79. pulumi_vsphere/vnic.py +4 -19
  80. {pulumi_vsphere-4.11.5.dist-info → pulumi_vsphere-4.12.0a1725603256.dist-info}/METADATA +2 -3
  81. pulumi_vsphere-4.12.0a1725603256.dist-info/RECORD +86 -0
  82. {pulumi_vsphere-4.11.5.dist-info → pulumi_vsphere-4.12.0a1725603256.dist-info}/WHEEL +1 -1
  83. pulumi_vsphere-4.11.5.dist-info/RECORD +0 -86
  84. {pulumi_vsphere-4.11.5.dist-info → pulumi_vsphere-4.12.0a1725603256.dist-info}/top_level.txt +0 -0
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -134,6 +129,9 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
134
129
  id=pulumi.get(__ret__, 'id'),
135
130
  name=pulumi.get(__ret__, 'name'),
136
131
  uplinks=pulumi.get(__ret__, 'uplinks'))
132
+
133
+
134
+ @_utilities.lift_output_func(get_distributed_virtual_switch)
137
135
  def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
138
136
  name: Optional[pulumi.Input[str]] = None,
139
137
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDistributedVirtualSwitchResult]:
@@ -175,13 +173,4 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
175
173
  attribute from an empty `Datacenter` data source.
176
174
  :param str name: The name of the VDS. This can be a name or path.
177
175
  """
178
- __args__ = dict()
179
- __args__['datacenterId'] = datacenter_id
180
- __args__['name'] = name
181
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
182
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getDistributedVirtualSwitch:getDistributedVirtualSwitch', __args__, opts=opts, typ=GetDistributedVirtualSwitchResult)
183
- return __ret__.apply(lambda __response__: GetDistributedVirtualSwitchResult(
184
- datacenter_id=pulumi.get(__response__, 'datacenter_id'),
185
- id=pulumi.get(__response__, 'id'),
186
- name=pulumi.get(__response__, 'name'),
187
- uplinks=pulumi.get(__response__, 'uplinks')))
176
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -128,6 +123,9 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
128
123
  id=pulumi.get(__ret__, 'id'),
129
124
  name_regex=pulumi.get(__ret__, 'name_regex'),
130
125
  type=pulumi.get(__ret__, 'type'))
126
+
127
+
128
+ @_utilities.lift_output_func(get_dynamic)
131
129
  def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
132
130
  name_regex: Optional[pulumi.Input[Optional[str]]] = None,
133
131
  type: Optional[pulumi.Input[Optional[str]]] = None,
@@ -168,14 +166,4 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
168
166
  The managed object types can be found in the managed object type section
169
167
  [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
170
168
  """
171
- __args__ = dict()
172
- __args__['filters'] = filters
173
- __args__['nameRegex'] = name_regex
174
- __args__['type'] = type
175
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
176
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getDynamic:getDynamic', __args__, opts=opts, typ=GetDynamicResult)
177
- return __ret__.apply(lambda __response__: GetDynamicResult(
178
- filters=pulumi.get(__response__, 'filters'),
179
- id=pulumi.get(__response__, 'id'),
180
- name_regex=pulumi.get(__response__, 'name_regex'),
181
- type=pulumi.get(__response__, 'type')))
169
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -92,6 +87,9 @@ def get_folder(path: Optional[str] = None,
92
87
  return AwaitableGetFolderResult(
93
88
  id=pulumi.get(__ret__, 'id'),
94
89
  path=pulumi.get(__ret__, 'path'))
90
+
91
+
92
+ @_utilities.lift_output_func(get_folder)
95
93
  def get_folder_output(path: Optional[pulumi.Input[str]] = None,
96
94
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFolderResult]:
97
95
  """
@@ -118,10 +116,4 @@ def get_folder_output(path: Optional[pulumi.Input[str]] = None,
118
116
  `/default-dc/vm/test-folder`. The valid folder types to be used in
119
117
  the path are: `vm`, `host`, `datacenter`, `datastore`, or `network`.
120
118
  """
121
- __args__ = dict()
122
- __args__['path'] = path
123
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
124
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getFolder:getFolder', __args__, opts=opts, typ=GetFolderResult)
125
- return __ret__.apply(lambda __response__: GetFolderResult(
126
- id=pulumi.get(__response__, 'id'),
127
- path=pulumi.get(__response__, 'path')))
119
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
  from . import outputs
17
12
 
@@ -127,6 +122,9 @@ def get_guest_os_customization(name: Optional[str] = None,
127
122
  name=pulumi.get(__ret__, 'name'),
128
123
  specs=pulumi.get(__ret__, 'specs'),
129
124
  type=pulumi.get(__ret__, 'type'))
125
+
126
+
127
+ @_utilities.lift_output_func(get_guest_os_customization)
130
128
  def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
131
129
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGuestOsCustomizationResult]:
132
130
  """
@@ -137,15 +135,4 @@ def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
137
135
  :param str name: The name of the customization specification is the unique
138
136
  identifier per vCenter Server instance. ## Attribute Reference
139
137
  """
140
- __args__ = dict()
141
- __args__['name'] = name
142
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
143
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getGuestOsCustomization:getGuestOsCustomization', __args__, opts=opts, typ=GetGuestOsCustomizationResult)
144
- return __ret__.apply(lambda __response__: GetGuestOsCustomizationResult(
145
- change_version=pulumi.get(__response__, 'change_version'),
146
- description=pulumi.get(__response__, 'description'),
147
- id=pulumi.get(__response__, 'id'),
148
- last_update_time=pulumi.get(__response__, 'last_update_time'),
149
- name=pulumi.get(__response__, 'name'),
150
- specs=pulumi.get(__response__, 'specs'),
151
- type=pulumi.get(__response__, 'type')))
138
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -119,6 +114,9 @@ def get_host(datacenter_id: Optional[str] = None,
119
114
  id=pulumi.get(__ret__, 'id'),
120
115
  name=pulumi.get(__ret__, 'name'),
121
116
  resource_pool_id=pulumi.get(__ret__, 'resource_pool_id'))
117
+
118
+
119
+ @_utilities.lift_output_func(get_host)
122
120
  def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
123
121
  name: Optional[pulumi.Input[Optional[str]]] = None,
124
122
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostResult]:
@@ -147,13 +145,4 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
147
145
  > **NOTE:** When used against an ESXi host directly, this data source _always_
148
146
  returns the ESXi host's object ID, regardless of what is entered into `name`.
149
147
  """
150
- __args__ = dict()
151
- __args__['datacenterId'] = datacenter_id
152
- __args__['name'] = name
153
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
154
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getHost:getHost', __args__, opts=opts, typ=GetHostResult)
155
- return __ret__.apply(lambda __response__: GetHostResult(
156
- datacenter_id=pulumi.get(__response__, 'datacenter_id'),
157
- id=pulumi.get(__response__, 'id'),
158
- name=pulumi.get(__response__, 'name'),
159
- resource_pool_id=pulumi.get(__response__, 'resource_pool_id')))
148
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -82,6 +77,9 @@ def get_host_base_images(opts: Optional[pulumi.InvokeOptions] = None) -> Awaitab
82
77
  return AwaitableGetHostBaseImagesResult(
83
78
  id=pulumi.get(__ret__, 'id'),
84
79
  versions=pulumi.get(__ret__, 'versions'))
80
+
81
+
82
+ @_utilities.lift_output_func(get_host_base_images)
85
83
  def get_host_base_images_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostBaseImagesResult]:
86
84
  """
87
85
  The `get_host_base_images` data source can be used to get the list of ESXi
@@ -96,9 +94,4 @@ def get_host_base_images_output(opts: Optional[pulumi.InvokeOptions] = None) ->
96
94
  base_images = vsphere.get_host_base_images()
97
95
  ```
98
96
  """
99
- __args__ = dict()
100
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
101
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getHostBaseImages:getHostBaseImages', __args__, opts=opts, typ=GetHostBaseImagesResult)
102
- return __ret__.apply(lambda __response__: GetHostBaseImagesResult(
103
- id=pulumi.get(__response__, 'id'),
104
- versions=pulumi.get(__response__, 'versions')))
97
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -163,6 +158,9 @@ def get_host_pci_device(class_id: Optional[str] = None,
163
158
  name=pulumi.get(__ret__, 'name'),
164
159
  name_regex=pulumi.get(__ret__, 'name_regex'),
165
160
  vendor_id=pulumi.get(__ret__, 'vendor_id'))
161
+
162
+
163
+ @_utilities.lift_output_func(get_host_pci_device)
166
164
  def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] = None,
167
165
  host_id: Optional[pulumi.Input[str]] = None,
168
166
  name_regex: Optional[pulumi.Input[Optional[str]]] = None,
@@ -214,17 +212,4 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
214
212
  host PCI device name.
215
213
  :param str vendor_id: The hexadecimal PCI device vendor ID.
216
214
  """
217
- __args__ = dict()
218
- __args__['classId'] = class_id
219
- __args__['hostId'] = host_id
220
- __args__['nameRegex'] = name_regex
221
- __args__['vendorId'] = vendor_id
222
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
223
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getHostPciDevice:getHostPciDevice', __args__, opts=opts, typ=GetHostPciDeviceResult)
224
- return __ret__.apply(lambda __response__: GetHostPciDeviceResult(
225
- class_id=pulumi.get(__response__, 'class_id'),
226
- host_id=pulumi.get(__response__, 'host_id'),
227
- id=pulumi.get(__response__, 'id'),
228
- name=pulumi.get(__response__, 'name'),
229
- name_regex=pulumi.get(__response__, 'name_regex'),
230
- vendor_id=pulumi.get(__response__, 'vendor_id')))
215
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -82,14 +77,9 @@ def get_host_thumbprint(address: Optional[str] = None,
82
77
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHostThumbprintResult:
83
78
  """
84
79
  The `vsphere_thumbprint` data source can be used to discover the host thumbprint
85
- of an ESXi host. This can be used when adding the `Host` resource to a
86
- cluster or a vCenter Server instance.
87
-
88
- * If the ESXi host is using a certificate chain, the first one returned will be
89
- used to generate the thumbprint.
90
-
91
- * If the ESXi host has a certificate issued by a certificate authority, ensure
92
- that the the certificate authority is trusted on the system running the plan.
80
+ of an ESXi host. This can be used when adding the `Host` resource. If
81
+ the ESXi host is using a certificate chain, the first one returned will be used
82
+ to generate the thumbprint.
93
83
 
94
84
  ## Example Usage
95
85
 
@@ -103,7 +93,8 @@ def get_host_thumbprint(address: Optional[str] = None,
103
93
 
104
94
  :param str address: The address of the ESXi host to retrieve the thumbprint
105
95
  from.
106
- :param bool insecure: Disables SSL certificate verification. Default: `false`
96
+ :param bool insecure: Disables SSL certificate verification.
97
+ Default: `false`
107
98
  :param str port: The port to use connecting to the ESXi host. Default: 443
108
99
  """
109
100
  __args__ = dict()
@@ -118,20 +109,18 @@ def get_host_thumbprint(address: Optional[str] = None,
118
109
  id=pulumi.get(__ret__, 'id'),
119
110
  insecure=pulumi.get(__ret__, 'insecure'),
120
111
  port=pulumi.get(__ret__, 'port'))
112
+
113
+
114
+ @_utilities.lift_output_func(get_host_thumbprint)
121
115
  def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
122
116
  insecure: Optional[pulumi.Input[Optional[bool]]] = None,
123
117
  port: Optional[pulumi.Input[Optional[str]]] = None,
124
118
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostThumbprintResult]:
125
119
  """
126
120
  The `vsphere_thumbprint` data source can be used to discover the host thumbprint
127
- of an ESXi host. This can be used when adding the `Host` resource to a
128
- cluster or a vCenter Server instance.
129
-
130
- * If the ESXi host is using a certificate chain, the first one returned will be
131
- used to generate the thumbprint.
132
-
133
- * If the ESXi host has a certificate issued by a certificate authority, ensure
134
- that the the certificate authority is trusted on the system running the plan.
121
+ of an ESXi host. This can be used when adding the `Host` resource. If
122
+ the ESXi host is using a certificate chain, the first one returned will be used
123
+ to generate the thumbprint.
135
124
 
136
125
  ## Example Usage
137
126
 
@@ -145,17 +134,8 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
145
134
 
146
135
  :param str address: The address of the ESXi host to retrieve the thumbprint
147
136
  from.
148
- :param bool insecure: Disables SSL certificate verification. Default: `false`
137
+ :param bool insecure: Disables SSL certificate verification.
138
+ Default: `false`
149
139
  :param str port: The port to use connecting to the ESXi host. Default: 443
150
140
  """
151
- __args__ = dict()
152
- __args__['address'] = address
153
- __args__['insecure'] = insecure
154
- __args__['port'] = port
155
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
156
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getHostThumbprint:getHostThumbprint', __args__, opts=opts, typ=GetHostThumbprintResult)
157
- return __ret__.apply(lambda __response__: GetHostThumbprintResult(
158
- address=pulumi.get(__response__, 'address'),
159
- id=pulumi.get(__response__, 'id'),
160
- insecure=pulumi.get(__response__, 'insecure'),
161
- port=pulumi.get(__response__, 'port')))
141
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
  from . import outputs
17
12
 
@@ -141,6 +136,9 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
141
136
  id=pulumi.get(__ret__, 'id'),
142
137
  name_regex=pulumi.get(__ret__, 'name_regex'),
143
138
  vgpu_profiles=pulumi.get(__ret__, 'vgpu_profiles'))
139
+
140
+
141
+ @_utilities.lift_output_func(get_host_vgpu_profile)
144
142
  def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
145
143
  name_regex: Optional[pulumi.Input[Optional[str]]] = None,
146
144
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostVgpuProfileResult]:
@@ -183,13 +181,4 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
183
181
 
184
182
  [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
185
183
  """
186
- __args__ = dict()
187
- __args__['hostId'] = host_id
188
- __args__['nameRegex'] = name_regex
189
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
190
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getHostVgpuProfile:getHostVgpuProfile', __args__, opts=opts, typ=GetHostVgpuProfileResult)
191
- return __ret__.apply(lambda __response__: GetHostVgpuProfileResult(
192
- host_id=pulumi.get(__response__, 'host_id'),
193
- id=pulumi.get(__response__, 'id'),
194
- name_regex=pulumi.get(__response__, 'name_regex'),
195
- vgpu_profiles=pulumi.get(__response__, 'vgpu_profiles')))
184
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -147,6 +142,9 @@ def get_license(license_key: Optional[str] = None,
147
142
  name=pulumi.get(__ret__, 'name'),
148
143
  total=pulumi.get(__ret__, 'total'),
149
144
  used=pulumi.get(__ret__, 'used'))
145
+
146
+
147
+ @_utilities.lift_output_func(get_license)
150
148
  def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
151
149
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetLicenseResult]:
152
150
  """
@@ -165,15 +163,4 @@ def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
165
163
 
166
164
  :param str license_key: The license key.
167
165
  """
168
- __args__ = dict()
169
- __args__['licenseKey'] = license_key
170
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
171
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getLicense:getLicense', __args__, opts=opts, typ=GetLicenseResult)
172
- return __ret__.apply(lambda __response__: GetLicenseResult(
173
- edition_key=pulumi.get(__response__, 'edition_key'),
174
- id=pulumi.get(__response__, 'id'),
175
- labels=pulumi.get(__response__, 'labels'),
176
- license_key=pulumi.get(__response__, 'license_key'),
177
- name=pulumi.get(__response__, 'name'),
178
- total=pulumi.get(__response__, 'total'),
179
- used=pulumi.get(__response__, 'used')))
166
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -137,6 +132,9 @@ def get_network(datacenter_id: Optional[str] = None,
137
132
  id=pulumi.get(__ret__, 'id'),
138
133
  name=pulumi.get(__ret__, 'name'),
139
134
  type=pulumi.get(__ret__, 'type'))
135
+
136
+
137
+ @_utilities.lift_output_func(get_network)
140
138
  def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
141
139
  distributed_virtual_switch_uuid: Optional[pulumi.Input[Optional[str]]] = None,
142
140
  name: Optional[pulumi.Input[str]] = None,
@@ -170,15 +168,4 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
170
168
  the distributed virtual switch ID.
171
169
  :param str name: The name of the network. This can be a name or path.
172
170
  """
173
- __args__ = dict()
174
- __args__['datacenterId'] = datacenter_id
175
- __args__['distributedVirtualSwitchUuid'] = distributed_virtual_switch_uuid
176
- __args__['name'] = name
177
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
178
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getNetwork:getNetwork', __args__, opts=opts, typ=GetNetworkResult)
179
- return __ret__.apply(lambda __response__: GetNetworkResult(
180
- datacenter_id=pulumi.get(__response__, 'datacenter_id'),
181
- distributed_virtual_switch_uuid=pulumi.get(__response__, 'distributed_virtual_switch_uuid'),
182
- id=pulumi.get(__response__, 'id'),
183
- name=pulumi.get(__response__, 'name'),
184
- type=pulumi.get(__response__, 'type')))
171
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -473,6 +468,9 @@ def get_ovf_vm_template(allow_unverified_ssl_cert: Optional[bool] = None,
473
468
  scsi_controller_count=pulumi.get(__ret__, 'scsi_controller_count'),
474
469
  scsi_type=pulumi.get(__ret__, 'scsi_type'),
475
470
  swap_placement_policy=pulumi.get(__ret__, 'swap_placement_policy'))
471
+
472
+
473
+ @_utilities.lift_output_func(get_ovf_vm_template)
476
474
  def get_ovf_vm_template_output(allow_unverified_ssl_cert: Optional[pulumi.Input[Optional[bool]]] = None,
477
475
  datastore_id: Optional[pulumi.Input[Optional[str]]] = None,
478
476
  deployment_option: Optional[pulumi.Input[Optional[str]]] = None,
@@ -525,53 +523,4 @@ def get_ovf_vm_template_output(allow_unverified_ssl_cert: Optional[pulumi.Input[
525
523
  :param str resource_pool_id: The ID of a resource pool in which to place
526
524
  the virtual machine.
527
525
  """
528
- __args__ = dict()
529
- __args__['allowUnverifiedSslCert'] = allow_unverified_ssl_cert
530
- __args__['datastoreId'] = datastore_id
531
- __args__['deploymentOption'] = deployment_option
532
- __args__['diskProvisioning'] = disk_provisioning
533
- __args__['enableHiddenProperties'] = enable_hidden_properties
534
- __args__['folder'] = folder
535
- __args__['hostSystemId'] = host_system_id
536
- __args__['ipAllocationPolicy'] = ip_allocation_policy
537
- __args__['ipProtocol'] = ip_protocol
538
- __args__['localOvfPath'] = local_ovf_path
539
- __args__['name'] = name
540
- __args__['ovfNetworkMap'] = ovf_network_map
541
- __args__['remoteOvfUrl'] = remote_ovf_url
542
- __args__['resourcePoolId'] = resource_pool_id
543
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
544
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getOvfVmTemplate:getOvfVmTemplate', __args__, opts=opts, typ=GetOvfVmTemplateResult)
545
- return __ret__.apply(lambda __response__: GetOvfVmTemplateResult(
546
- allow_unverified_ssl_cert=pulumi.get(__response__, 'allow_unverified_ssl_cert'),
547
- alternate_guest_name=pulumi.get(__response__, 'alternate_guest_name'),
548
- annotation=pulumi.get(__response__, 'annotation'),
549
- cpu_hot_add_enabled=pulumi.get(__response__, 'cpu_hot_add_enabled'),
550
- cpu_hot_remove_enabled=pulumi.get(__response__, 'cpu_hot_remove_enabled'),
551
- cpu_performance_counters_enabled=pulumi.get(__response__, 'cpu_performance_counters_enabled'),
552
- datastore_id=pulumi.get(__response__, 'datastore_id'),
553
- deployment_option=pulumi.get(__response__, 'deployment_option'),
554
- disk_provisioning=pulumi.get(__response__, 'disk_provisioning'),
555
- enable_hidden_properties=pulumi.get(__response__, 'enable_hidden_properties'),
556
- firmware=pulumi.get(__response__, 'firmware'),
557
- folder=pulumi.get(__response__, 'folder'),
558
- guest_id=pulumi.get(__response__, 'guest_id'),
559
- host_system_id=pulumi.get(__response__, 'host_system_id'),
560
- id=pulumi.get(__response__, 'id'),
561
- ide_controller_count=pulumi.get(__response__, 'ide_controller_count'),
562
- ip_allocation_policy=pulumi.get(__response__, 'ip_allocation_policy'),
563
- ip_protocol=pulumi.get(__response__, 'ip_protocol'),
564
- local_ovf_path=pulumi.get(__response__, 'local_ovf_path'),
565
- memory=pulumi.get(__response__, 'memory'),
566
- memory_hot_add_enabled=pulumi.get(__response__, 'memory_hot_add_enabled'),
567
- name=pulumi.get(__response__, 'name'),
568
- nested_hv_enabled=pulumi.get(__response__, 'nested_hv_enabled'),
569
- num_cores_per_socket=pulumi.get(__response__, 'num_cores_per_socket'),
570
- num_cpus=pulumi.get(__response__, 'num_cpus'),
571
- ovf_network_map=pulumi.get(__response__, 'ovf_network_map'),
572
- remote_ovf_url=pulumi.get(__response__, 'remote_ovf_url'),
573
- resource_pool_id=pulumi.get(__response__, 'resource_pool_id'),
574
- sata_controller_count=pulumi.get(__response__, 'sata_controller_count'),
575
- scsi_controller_count=pulumi.get(__response__, 'scsi_controller_count'),
576
- scsi_type=pulumi.get(__response__, 'scsi_type'),
577
- swap_placement_policy=pulumi.get(__response__, 'swap_placement_policy')))
526
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -89,6 +84,9 @@ def get_policy(name: Optional[str] = None,
89
84
  return AwaitableGetPolicyResult(
90
85
  id=pulumi.get(__ret__, 'id'),
91
86
  name=pulumi.get(__ret__, 'name'))
87
+
88
+
89
+ @_utilities.lift_output_func(get_policy)
92
90
  def get_policy_output(name: Optional[pulumi.Input[str]] = None,
93
91
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPolicyResult]:
94
92
  """
@@ -112,10 +110,4 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None,
112
110
 
113
111
  :param str name: The name of the storage policy.
114
112
  """
115
- __args__ = dict()
116
- __args__['name'] = name
117
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
118
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getPolicy:getPolicy', __args__, opts=opts, typ=GetPolicyResult)
119
- return __ret__.apply(lambda __response__: GetPolicyResult(
120
- id=pulumi.get(__response__, 'id'),
121
- name=pulumi.get(__response__, 'name')))
113
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -134,6 +129,9 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
134
129
  datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
135
130
  id=pulumi.get(__ret__, 'id'),
136
131
  name=pulumi.get(__ret__, 'name'))
132
+
133
+
134
+ @_utilities.lift_output_func(get_resource_pool)
137
135
  def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
138
136
  name: Optional[pulumi.Input[Optional[str]]] = None,
139
137
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetResourcePoolResult]:
@@ -191,12 +189,4 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
191
189
  :param str name: The name of the resource pool. This can be a name or
192
190
  path. This is required when using vCenter.
193
191
  """
194
- __args__ = dict()
195
- __args__['datacenterId'] = datacenter_id
196
- __args__['name'] = name
197
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
198
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getResourcePool:getResourcePool', __args__, opts=opts, typ=GetResourcePoolResult)
199
- return __ret__.apply(lambda __response__: GetResourcePoolResult(
200
- datacenter_id=pulumi.get(__response__, 'datacenter_id'),
201
- id=pulumi.get(__response__, 'id'),
202
- name=pulumi.get(__response__, 'name')))
192
+ ...