pulumi-vsphere 4.10.0a1710160860__py3-none-any.whl → 4.13.0a1736836157__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 (85) hide show
  1. pulumi_vsphere/__init__.py +30 -0
  2. pulumi_vsphere/_inputs.py +1816 -277
  3. pulumi_vsphere/_utilities.py +41 -5
  4. pulumi_vsphere/compute_cluster.py +937 -1488
  5. pulumi_vsphere/compute_cluster_host_group.py +67 -2
  6. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +69 -34
  7. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +41 -2
  8. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +205 -2
  9. pulumi_vsphere/compute_cluster_vm_group.py +198 -2
  10. pulumi_vsphere/compute_cluster_vm_host_rule.py +73 -2
  11. pulumi_vsphere/config/__init__.pyi +5 -0
  12. pulumi_vsphere/config/vars.py +5 -0
  13. pulumi_vsphere/content_library.py +113 -12
  14. pulumi_vsphere/content_library_item.py +143 -2
  15. pulumi_vsphere/custom_attribute.py +77 -2
  16. pulumi_vsphere/datacenter.py +48 -40
  17. pulumi_vsphere/datastore_cluster.py +217 -366
  18. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +159 -2
  19. pulumi_vsphere/distributed_port_group.py +416 -189
  20. pulumi_vsphere/distributed_virtual_switch.py +571 -830
  21. pulumi_vsphere/dpm_host_override.py +63 -2
  22. pulumi_vsphere/drs_vm_override.py +67 -2
  23. pulumi_vsphere/entity_permissions.py +64 -38
  24. pulumi_vsphere/file.py +21 -24
  25. pulumi_vsphere/folder.py +148 -30
  26. pulumi_vsphere/get_compute_cluster.py +16 -9
  27. pulumi_vsphere/get_compute_cluster_host_group.py +36 -25
  28. pulumi_vsphere/get_content_library.py +23 -15
  29. pulumi_vsphere/get_content_library_item.py +29 -13
  30. pulumi_vsphere/get_custom_attribute.py +14 -9
  31. pulumi_vsphere/get_datacenter.py +30 -12
  32. pulumi_vsphere/get_datastore.py +44 -12
  33. pulumi_vsphere/get_datastore_cluster.py +31 -10
  34. pulumi_vsphere/get_datastore_stats.py +208 -0
  35. pulumi_vsphere/get_distributed_virtual_switch.py +18 -9
  36. pulumi_vsphere/get_dynamic.py +35 -25
  37. pulumi_vsphere/get_folder.py +23 -11
  38. pulumi_vsphere/get_guest_os_customization.py +26 -52
  39. pulumi_vsphere/get_host.py +16 -9
  40. pulumi_vsphere/get_host_base_images.py +104 -0
  41. pulumi_vsphere/get_host_pci_device.py +28 -19
  42. pulumi_vsphere/get_host_thumbprint.py +41 -25
  43. pulumi_vsphere/get_host_vgpu_profile.py +195 -0
  44. pulumi_vsphere/get_license.py +20 -10
  45. pulumi_vsphere/get_network.py +80 -24
  46. pulumi_vsphere/get_ovf_vm_template.py +56 -5
  47. pulumi_vsphere/get_policy.py +13 -9
  48. pulumi_vsphere/get_resource_pool.py +29 -23
  49. pulumi_vsphere/get_role.py +23 -13
  50. pulumi_vsphere/get_tag.py +16 -9
  51. pulumi_vsphere/get_tag_category.py +16 -9
  52. pulumi_vsphere/get_vapp_container.py +15 -9
  53. pulumi_vsphere/get_virtual_machine.py +233 -48
  54. pulumi_vsphere/get_vmfs_disks.py +18 -9
  55. pulumi_vsphere/guest_os_customization.py +60 -5
  56. pulumi_vsphere/ha_vm_override.py +352 -380
  57. pulumi_vsphere/host.py +244 -64
  58. pulumi_vsphere/host_port_group.py +27 -24
  59. pulumi_vsphere/host_virtual_switch.py +209 -289
  60. pulumi_vsphere/license.py +5 -32
  61. pulumi_vsphere/nas_datastore.py +74 -9
  62. pulumi_vsphere/offline_software_depot.py +185 -0
  63. pulumi_vsphere/outputs.py +774 -256
  64. pulumi_vsphere/provider.py +7 -6
  65. pulumi_vsphere/pulumi-plugin.json +2 -1
  66. pulumi_vsphere/resource_pool.py +168 -411
  67. pulumi_vsphere/role.py +33 -2
  68. pulumi_vsphere/storage_drs_vm_override.py +133 -2
  69. pulumi_vsphere/supervisor.py +967 -0
  70. pulumi_vsphere/tag.py +159 -2
  71. pulumi_vsphere/tag_category.py +83 -2
  72. pulumi_vsphere/vapp_container.py +163 -2
  73. pulumi_vsphere/vapp_entity.py +147 -2
  74. pulumi_vsphere/virtual_disk.py +123 -36
  75. pulumi_vsphere/virtual_machine.py +759 -829
  76. pulumi_vsphere/virtual_machine_class.py +447 -0
  77. pulumi_vsphere/virtual_machine_snapshot.py +13 -12
  78. pulumi_vsphere/vm_storage_policy.py +120 -127
  79. pulumi_vsphere/vmfs_datastore.py +271 -2
  80. pulumi_vsphere/vnic.py +104 -105
  81. {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.13.0a1736836157.dist-info}/METADATA +7 -6
  82. pulumi_vsphere-4.13.0a1736836157.dist-info/RECORD +86 -0
  83. {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.13.0a1736836157.dist-info}/WHEEL +1 -1
  84. pulumi_vsphere-4.10.0a1710160860.dist-info/RECORD +0 -80
  85. {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.13.0a1736836157.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -97,7 +102,6 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
97
102
  `DistributedPortGroup` resource that uses the first uplink as a
98
103
  primary uplink and the second uplink as a secondary.
99
104
 
100
- <!--Start PulumiCodeChooser -->
101
105
  ```python
102
106
  import pulumi
103
107
  import pulumi_vsphere as vsphere
@@ -106,11 +110,11 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
106
110
  vds = vsphere.get_distributed_virtual_switch(name="vds-01",
107
111
  datacenter_id=datacenter.id)
108
112
  dvpg = vsphere.DistributedPortGroup("dvpg",
113
+ name="dvpg-01",
109
114
  distributed_virtual_switch_uuid=vds.id,
110
115
  active_uplinks=[vds.uplinks[0]],
111
116
  standby_uplinks=[vds.uplinks[1]])
112
117
  ```
113
- <!--End PulumiCodeChooser -->
114
118
 
115
119
 
116
120
  :param str datacenter_id: The managed object reference ID
@@ -130,12 +134,9 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
130
134
  id=pulumi.get(__ret__, 'id'),
131
135
  name=pulumi.get(__ret__, 'name'),
132
136
  uplinks=pulumi.get(__ret__, 'uplinks'))
133
-
134
-
135
- @_utilities.lift_output_func(get_distributed_virtual_switch)
136
137
  def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
137
138
  name: Optional[pulumi.Input[str]] = None,
138
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDistributedVirtualSwitchResult]:
139
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDistributedVirtualSwitchResult]:
139
140
  """
140
141
  The `DistributedVirtualSwitch` data source can be used to discover
141
142
  the ID and uplink data of a of a vSphere distributed switch (VDS). This
@@ -153,7 +154,6 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
153
154
  `DistributedPortGroup` resource that uses the first uplink as a
154
155
  primary uplink and the second uplink as a secondary.
155
156
 
156
- <!--Start PulumiCodeChooser -->
157
157
  ```python
158
158
  import pulumi
159
159
  import pulumi_vsphere as vsphere
@@ -162,11 +162,11 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
162
162
  vds = vsphere.get_distributed_virtual_switch(name="vds-01",
163
163
  datacenter_id=datacenter.id)
164
164
  dvpg = vsphere.DistributedPortGroup("dvpg",
165
+ name="dvpg-01",
165
166
  distributed_virtual_switch_uuid=vds.id,
166
167
  active_uplinks=[vds.uplinks[0]],
167
168
  standby_uplinks=[vds.uplinks[1]])
168
169
  ```
169
- <!--End PulumiCodeChooser -->
170
170
 
171
171
 
172
172
  :param str datacenter_id: The managed object reference ID
@@ -175,4 +175,13 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
175
175
  attribute from an empty `Datacenter` data source.
176
176
  :param str name: The name of the VDS. This can be a name or path.
177
177
  """
178
- ...
178
+ __args__ = dict()
179
+ __args__['datacenterId'] = datacenter_id
180
+ __args__['name'] = name
181
+ opts = pulumi.InvokeOutputOptions.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')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -78,22 +83,22 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
78
83
  """
79
84
  [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
80
85
 
81
- The `get_dynamic` data source can be used to get the [managed object reference ID][docs-about-morefs]
82
- of any tagged managed object in vCenter Server by providing a list of tag IDs
83
- and an optional regular expression to filter objects by name.
86
+ The `get_dynamic` data source can be used to get the
87
+ [managed object reference ID][docs-about-morefs] of any tagged managed object in
88
+ vCenter Server by providing a list of tag IDs and an optional regular expression
89
+ to filter objects by name.
84
90
 
85
91
  ## Example Usage
86
92
 
87
- <!--Start PulumiCodeChooser -->
88
93
  ```python
89
94
  import pulumi
90
95
  import pulumi_vsphere as vsphere
91
96
 
92
97
  category = vsphere.get_tag_category(name="SomeCategory")
93
98
  tag1 = vsphere.get_tag(name="FirstTag",
94
- category_id=data["vsphere_tag_category"]["cat"]["id"])
99
+ category_id=cat["id"])
95
100
  tag2 = vsphere.get_tag(name="SecondTag",
96
- category_id=data["vsphere_tag_category"]["cat"]["id"])
101
+ category_id=cat["id"])
97
102
  dyn = vsphere.get_dynamic(filters=[
98
103
  tag1.id,
99
104
  tag1.id,
@@ -101,16 +106,15 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
101
106
  name_regex="ubuntu",
102
107
  type="Datacenter")
103
108
  ```
104
- <!--End PulumiCodeChooser -->
105
109
 
106
110
 
107
111
  :param Sequence[str] filters: A list of tag IDs that must be present on an object to
108
112
  be a match.
109
- :param str name_regex: A regular expression that will be used to match
110
- the object's name.
113
+ :param str name_regex: A regular expression that will be used to match the
114
+ object's name.
111
115
  :param str type: The managed object type the returned object must match.
112
116
  The managed object types can be found in the managed object type section
113
- [here](https://developer.vmware.com/apis/968/vsphere).
117
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
114
118
  """
115
119
  __args__ = dict()
116
120
  __args__['filters'] = filters
@@ -124,32 +128,29 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
124
128
  id=pulumi.get(__ret__, 'id'),
125
129
  name_regex=pulumi.get(__ret__, 'name_regex'),
126
130
  type=pulumi.get(__ret__, 'type'))
127
-
128
-
129
- @_utilities.lift_output_func(get_dynamic)
130
131
  def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
131
132
  name_regex: Optional[pulumi.Input[Optional[str]]] = None,
132
133
  type: Optional[pulumi.Input[Optional[str]]] = None,
133
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDynamicResult]:
134
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDynamicResult]:
134
135
  """
135
136
  [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
136
137
 
137
- The `get_dynamic` data source can be used to get the [managed object reference ID][docs-about-morefs]
138
- of any tagged managed object in vCenter Server by providing a list of tag IDs
139
- and an optional regular expression to filter objects by name.
138
+ The `get_dynamic` data source can be used to get the
139
+ [managed object reference ID][docs-about-morefs] of any tagged managed object in
140
+ vCenter Server by providing a list of tag IDs and an optional regular expression
141
+ to filter objects by name.
140
142
 
141
143
  ## Example Usage
142
144
 
143
- <!--Start PulumiCodeChooser -->
144
145
  ```python
145
146
  import pulumi
146
147
  import pulumi_vsphere as vsphere
147
148
 
148
149
  category = vsphere.get_tag_category(name="SomeCategory")
149
150
  tag1 = vsphere.get_tag(name="FirstTag",
150
- category_id=data["vsphere_tag_category"]["cat"]["id"])
151
+ category_id=cat["id"])
151
152
  tag2 = vsphere.get_tag(name="SecondTag",
152
- category_id=data["vsphere_tag_category"]["cat"]["id"])
153
+ category_id=cat["id"])
153
154
  dyn = vsphere.get_dynamic(filters=[
154
155
  tag1.id,
155
156
  tag1.id,
@@ -157,15 +158,24 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
157
158
  name_regex="ubuntu",
158
159
  type="Datacenter")
159
160
  ```
160
- <!--End PulumiCodeChooser -->
161
161
 
162
162
 
163
163
  :param Sequence[str] filters: A list of tag IDs that must be present on an object to
164
164
  be a match.
165
- :param str name_regex: A regular expression that will be used to match
166
- the object's name.
165
+ :param str name_regex: A regular expression that will be used to match the
166
+ object's name.
167
167
  :param str type: The managed object type the returned object must match.
168
168
  The managed object types can be found in the managed object type section
169
- [here](https://developer.vmware.com/apis/968/vsphere).
169
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
170
170
  """
171
- ...
171
+ __args__ = dict()
172
+ __args__['filters'] = filters
173
+ __args__['nameRegex'] = name_regex
174
+ __args__['type'] = type
175
+ opts = pulumi.InvokeOutputOptions.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')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -57,18 +62,20 @@ def get_folder(path: Optional[str] = None,
57
62
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetFolderResult:
58
63
  """
59
64
  The `Folder` data source can be used to get the general attributes of a
60
- vSphere inventory folder. Paths are absolute and must include the datacenter.
65
+ vSphere inventory folder. The data source supports creating folders of the 5
66
+ major types - datacenter folders, host and cluster folders, virtual machine
67
+ folders, storage folders, and network folders.
68
+
69
+ Paths are absolute and must include the datacenter.
61
70
 
62
71
  ## Example Usage
63
72
 
64
- <!--Start PulumiCodeChooser -->
65
73
  ```python
66
74
  import pulumi
67
75
  import pulumi_vsphere as vsphere
68
76
 
69
77
  folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
70
78
  ```
71
- <!--End PulumiCodeChooser -->
72
79
 
73
80
 
74
81
  :param str path: The absolute path of the folder. For example, given a
@@ -85,25 +92,24 @@ def get_folder(path: Optional[str] = None,
85
92
  return AwaitableGetFolderResult(
86
93
  id=pulumi.get(__ret__, 'id'),
87
94
  path=pulumi.get(__ret__, 'path'))
88
-
89
-
90
- @_utilities.lift_output_func(get_folder)
91
95
  def get_folder_output(path: Optional[pulumi.Input[str]] = None,
92
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFolderResult]:
96
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetFolderResult]:
93
97
  """
94
98
  The `Folder` data source can be used to get the general attributes of a
95
- vSphere inventory folder. Paths are absolute and must include the datacenter.
99
+ vSphere inventory folder. The data source supports creating folders of the 5
100
+ major types - datacenter folders, host and cluster folders, virtual machine
101
+ folders, storage folders, and network folders.
102
+
103
+ Paths are absolute and must include the datacenter.
96
104
 
97
105
  ## Example Usage
98
106
 
99
- <!--Start PulumiCodeChooser -->
100
107
  ```python
101
108
  import pulumi
102
109
  import pulumi_vsphere as vsphere
103
110
 
104
111
  folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
105
112
  ```
106
- <!--End PulumiCodeChooser -->
107
113
 
108
114
 
109
115
  :param str path: The absolute path of the folder. For example, given a
@@ -112,4 +118,10 @@ def get_folder_output(path: Optional[pulumi.Input[str]] = None,
112
118
  `/default-dc/vm/test-folder`. The valid folder types to be used in
113
119
  the path are: `vm`, `host`, `datacenter`, `datastore`, or `network`.
114
120
  """
115
- ...
121
+ __args__ = dict()
122
+ __args__['path'] = path
123
+ opts = pulumi.InvokeOutputOptions.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')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
 
@@ -48,17 +53,11 @@ class GetGuestOsCustomizationResult:
48
53
  @property
49
54
  @pulumi.getter(name="changeVersion")
50
55
  def change_version(self) -> str:
51
- """
52
- The number of last changed version to the customization specification.
53
- """
54
56
  return pulumi.get(self, "change_version")
55
57
 
56
58
  @property
57
59
  @pulumi.getter
58
60
  def description(self) -> str:
59
- """
60
- The description for the customization specification.
61
- """
62
61
  return pulumi.get(self, "description")
63
62
 
64
63
  @property
@@ -72,9 +71,6 @@ class GetGuestOsCustomizationResult:
72
71
  @property
73
72
  @pulumi.getter(name="lastUpdateTime")
74
73
  def last_update_time(self) -> str:
75
- """
76
- The time of last modification to the customization specification.
77
- """
78
74
  return pulumi.get(self, "last_update_time")
79
75
 
80
76
  @property
@@ -85,17 +81,11 @@ class GetGuestOsCustomizationResult:
85
81
  @property
86
82
  @pulumi.getter
87
83
  def specs(self) -> Sequence['outputs.GetGuestOsCustomizationSpecResult']:
88
- """
89
- Container object for the guest operating system properties to be customized. See virtual machine customizations
90
- """
91
84
  return pulumi.get(self, "specs")
92
85
 
93
86
  @property
94
87
  @pulumi.getter
95
88
  def type(self) -> str:
96
- """
97
- The type of customization specification: One among: Windows, Linux.
98
- """
99
89
  return pulumi.get(self, "type")
100
90
 
101
91
 
@@ -117,24 +107,12 @@ class AwaitableGetGuestOsCustomizationResult(GetGuestOsCustomizationResult):
117
107
  def get_guest_os_customization(name: Optional[str] = None,
118
108
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGuestOsCustomizationResult:
119
109
  """
120
- The `GuestOsCustomization` data source can be used to discover the details about a customization specification for a guest operating system.
121
-
122
- Suggested change
123
- > **NOTE:** The name attribute is the unique identifier for the customization specification per vCenter Server instance.
110
+ The `GuestOsCustomization` data source can be used to discover the
111
+ details about a customization specification for a guest operating system.
124
112
 
125
- ## Example Usage
126
113
 
127
- <!--Start PulumiCodeChooser -->
128
- ```python
129
- import pulumi
130
- import pulumi_vsphere as vsphere
131
-
132
- gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
133
- ```
134
- <!--End PulumiCodeChooser -->
135
-
136
-
137
- :param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
114
+ :param str name: The name of the customization specification is the unique
115
+ identifier per vCenter Server instance. ## Attribute Reference
138
116
  """
139
117
  __args__ = dict()
140
118
  __args__['name'] = name
@@ -149,29 +127,25 @@ def get_guest_os_customization(name: Optional[str] = None,
149
127
  name=pulumi.get(__ret__, 'name'),
150
128
  specs=pulumi.get(__ret__, 'specs'),
151
129
  type=pulumi.get(__ret__, 'type'))
152
-
153
-
154
- @_utilities.lift_output_func(get_guest_os_customization)
155
130
  def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
156
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGuestOsCustomizationResult]:
131
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGuestOsCustomizationResult]:
157
132
  """
158
- The `GuestOsCustomization` data source can be used to discover the details about a customization specification for a guest operating system.
159
-
160
- Suggested change
161
- > **NOTE:** The name attribute is the unique identifier for the customization specification per vCenter Server instance.
133
+ The `GuestOsCustomization` data source can be used to discover the
134
+ details about a customization specification for a guest operating system.
162
135
 
163
- ## Example Usage
164
136
 
165
- <!--Start PulumiCodeChooser -->
166
- ```python
167
- import pulumi
168
- import pulumi_vsphere as vsphere
169
-
170
- gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
171
- ```
172
- <!--End PulumiCodeChooser -->
173
-
174
-
175
- :param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
137
+ :param str name: The name of the customization specification is the unique
138
+ identifier per vCenter Server instance. ## Attribute Reference
176
139
  """
177
- ...
140
+ __args__ = dict()
141
+ __args__['name'] = name
142
+ opts = pulumi.InvokeOutputOptions.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')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -85,7 +90,6 @@ def get_host(datacenter_id: Optional[str] = None,
85
90
 
86
91
  ## Example Usage
87
92
 
88
- <!--Start PulumiCodeChooser -->
89
93
  ```python
90
94
  import pulumi
91
95
  import pulumi_vsphere as vsphere
@@ -94,7 +98,6 @@ def get_host(datacenter_id: Optional[str] = None,
94
98
  host = vsphere.get_host(name="esxi-01.example.com",
95
99
  datacenter_id=datacenter.id)
96
100
  ```
97
- <!--End PulumiCodeChooser -->
98
101
 
99
102
 
100
103
  :param str datacenter_id: The managed object reference ID
@@ -116,12 +119,9 @@ def get_host(datacenter_id: Optional[str] = None,
116
119
  id=pulumi.get(__ret__, 'id'),
117
120
  name=pulumi.get(__ret__, 'name'),
118
121
  resource_pool_id=pulumi.get(__ret__, 'resource_pool_id'))
119
-
120
-
121
- @_utilities.lift_output_func(get_host)
122
122
  def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
123
123
  name: Optional[pulumi.Input[Optional[str]]] = None,
124
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostResult]:
124
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetHostResult]:
125
125
  """
126
126
  The `Host` data source can be used to discover the ID of an ESXi host.
127
127
  This can then be used with resources or data sources that require an ESX
@@ -129,7 +129,6 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
129
129
 
130
130
  ## Example Usage
131
131
 
132
- <!--Start PulumiCodeChooser -->
133
132
  ```python
134
133
  import pulumi
135
134
  import pulumi_vsphere as vsphere
@@ -138,7 +137,6 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
138
137
  host = vsphere.get_host(name="esxi-01.example.com",
139
138
  datacenter_id=datacenter.id)
140
139
  ```
141
- <!--End PulumiCodeChooser -->
142
140
 
143
141
 
144
142
  :param str datacenter_id: The managed object reference ID
@@ -149,4 +147,13 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
149
147
  > **NOTE:** When used against an ESXi host directly, this data source _always_
150
148
  returns the ESXi host's object ID, regardless of what is entered into `name`.
151
149
  """
152
- ...
150
+ __args__ = dict()
151
+ __args__['datacenterId'] = datacenter_id
152
+ __args__['name'] = name
153
+ opts = pulumi.InvokeOutputOptions.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')))
@@ -0,0 +1,104 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+
17
+ __all__ = [
18
+ 'GetHostBaseImagesResult',
19
+ 'AwaitableGetHostBaseImagesResult',
20
+ 'get_host_base_images',
21
+ 'get_host_base_images_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetHostBaseImagesResult:
26
+ """
27
+ A collection of values returned by getHostBaseImages.
28
+ """
29
+ def __init__(__self__, id=None, versions=None):
30
+ if id and not isinstance(id, str):
31
+ raise TypeError("Expected argument 'id' to be a str")
32
+ pulumi.set(__self__, "id", id)
33
+ if versions and not isinstance(versions, list):
34
+ raise TypeError("Expected argument 'versions' to be a list")
35
+ pulumi.set(__self__, "versions", versions)
36
+
37
+ @property
38
+ @pulumi.getter
39
+ def id(self) -> str:
40
+ """
41
+ The provider-assigned unique ID for this managed resource.
42
+ """
43
+ return pulumi.get(self, "id")
44
+
45
+ @property
46
+ @pulumi.getter
47
+ def versions(self) -> Sequence[str]:
48
+ """
49
+ The ESXi version identifier for the image
50
+ """
51
+ return pulumi.get(self, "versions")
52
+
53
+
54
+ class AwaitableGetHostBaseImagesResult(GetHostBaseImagesResult):
55
+ # pylint: disable=using-constant-test
56
+ def __await__(self):
57
+ if False:
58
+ yield self
59
+ return GetHostBaseImagesResult(
60
+ id=self.id,
61
+ versions=self.versions)
62
+
63
+
64
+ def get_host_base_images(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHostBaseImagesResult:
65
+ """
66
+ The `get_host_base_images` data source can be used to get the list of ESXi
67
+ base images available for cluster software management.
68
+
69
+ ## Example Usage
70
+
71
+ ```python
72
+ import pulumi
73
+ import pulumi_vsphere as vsphere
74
+
75
+ base_images = vsphere.get_host_base_images()
76
+ ```
77
+ """
78
+ __args__ = dict()
79
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
80
+ __ret__ = pulumi.runtime.invoke('vsphere:index/getHostBaseImages:getHostBaseImages', __args__, opts=opts, typ=GetHostBaseImagesResult).value
81
+
82
+ return AwaitableGetHostBaseImagesResult(
83
+ id=pulumi.get(__ret__, 'id'),
84
+ versions=pulumi.get(__ret__, 'versions'))
85
+ def get_host_base_images_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetHostBaseImagesResult]:
86
+ """
87
+ The `get_host_base_images` data source can be used to get the list of ESXi
88
+ base images available for cluster software management.
89
+
90
+ ## Example Usage
91
+
92
+ ```python
93
+ import pulumi
94
+ import pulumi_vsphere as vsphere
95
+
96
+ base_images = vsphere.get_host_base_images()
97
+ ```
98
+ """
99
+ __args__ = dict()
100
+ opts = pulumi.InvokeOutputOptions.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')))