pulumi-vsphere 4.10.0a1709368772__py3-none-any.whl → 4.10.0a1710245029__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 (48) hide show
  1. pulumi_vsphere/__init__.py +2 -0
  2. pulumi_vsphere/_inputs.py +4 -0
  3. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +8 -0
  4. pulumi_vsphere/datacenter.py +12 -0
  5. pulumi_vsphere/datastore_cluster.py +7 -7
  6. pulumi_vsphere/distributed_virtual_switch.py +28 -7
  7. pulumi_vsphere/file.py +12 -0
  8. pulumi_vsphere/get_compute_cluster.py +4 -0
  9. pulumi_vsphere/get_compute_cluster_host_group.py +4 -0
  10. pulumi_vsphere/get_content_library.py +4 -0
  11. pulumi_vsphere/get_custom_attribute.py +4 -0
  12. pulumi_vsphere/get_datacenter.py +4 -0
  13. pulumi_vsphere/get_datastore.py +31 -3
  14. pulumi_vsphere/get_datastore_cluster.py +4 -0
  15. pulumi_vsphere/get_datastore_stats.py +202 -0
  16. pulumi_vsphere/get_distributed_virtual_switch.py +4 -0
  17. pulumi_vsphere/get_dynamic.py +4 -0
  18. pulumi_vsphere/get_folder.py +4 -0
  19. pulumi_vsphere/get_guest_os_customization.py +4 -0
  20. pulumi_vsphere/get_host.py +4 -0
  21. pulumi_vsphere/get_host_pci_device.py +34 -0
  22. pulumi_vsphere/get_host_thumbprint.py +4 -0
  23. pulumi_vsphere/get_host_vgpu_profile.py +190 -0
  24. pulumi_vsphere/get_license.py +4 -0
  25. pulumi_vsphere/get_network.py +4 -0
  26. pulumi_vsphere/get_ovf_vm_template.py +0 -168
  27. pulumi_vsphere/get_policy.py +4 -0
  28. pulumi_vsphere/get_resource_pool.py +10 -0
  29. pulumi_vsphere/get_role.py +4 -0
  30. pulumi_vsphere/get_tag.py +4 -0
  31. pulumi_vsphere/get_tag_category.py +4 -0
  32. pulumi_vsphere/get_vapp_container.py +4 -0
  33. pulumi_vsphere/get_virtual_machine.py +37 -1
  34. pulumi_vsphere/get_vmfs_disks.py +4 -0
  35. pulumi_vsphere/host.py +18 -0
  36. pulumi_vsphere/host_port_group.py +14 -0
  37. pulumi_vsphere/license.py +4 -0
  38. pulumi_vsphere/outputs.py +75 -0
  39. pulumi_vsphere/resource_pool.py +12 -12
  40. pulumi_vsphere/virtual_machine.py +75 -14
  41. pulumi_vsphere/virtual_machine_snapshot.py +4 -0
  42. pulumi_vsphere/vm_storage_policy.py +12 -0
  43. pulumi_vsphere/vnic.py +18 -0
  44. {pulumi_vsphere-4.10.0a1709368772.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/METADATA +1 -1
  45. pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +82 -0
  46. {pulumi_vsphere-4.10.0a1709368772.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/WHEEL +1 -1
  47. pulumi_vsphere-4.10.0a1709368772.dist-info/RECORD +0 -80
  48. {pulumi_vsphere-4.10.0a1709368772.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/top_level.txt +0 -0
@@ -21,7 +21,7 @@ class GetDatastoreResult:
21
21
  """
22
22
  A collection of values returned by getDatastore.
23
23
  """
24
- def __init__(__self__, datacenter_id=None, id=None, name=None):
24
+ def __init__(__self__, datacenter_id=None, id=None, name=None, stats=None):
25
25
  if datacenter_id and not isinstance(datacenter_id, str):
26
26
  raise TypeError("Expected argument 'datacenter_id' to be a str")
27
27
  pulumi.set(__self__, "datacenter_id", datacenter_id)
@@ -31,6 +31,9 @@ class GetDatastoreResult:
31
31
  if name and not isinstance(name, str):
32
32
  raise TypeError("Expected argument 'name' to be a str")
33
33
  pulumi.set(__self__, "name", name)
34
+ if stats and not isinstance(stats, dict):
35
+ raise TypeError("Expected argument 'stats' to be a dict")
36
+ pulumi.set(__self__, "stats", stats)
34
37
 
35
38
  @property
36
39
  @pulumi.getter(name="datacenterId")
@@ -50,6 +53,16 @@ class GetDatastoreResult:
50
53
  def name(self) -> str:
51
54
  return pulumi.get(self, "name")
52
55
 
56
+ @property
57
+ @pulumi.getter
58
+ def stats(self) -> Optional[Mapping[str, Any]]:
59
+ """
60
+ The disk space usage statistics for the specific datastore. The total
61
+ datastore capacity is represented as `capacity` and the free remaining disk is
62
+ represented as `free`.
63
+ """
64
+ return pulumi.get(self, "stats")
65
+
53
66
 
54
67
  class AwaitableGetDatastoreResult(GetDatastoreResult):
55
68
  # pylint: disable=using-constant-test
@@ -59,11 +72,13 @@ class AwaitableGetDatastoreResult(GetDatastoreResult):
59
72
  return GetDatastoreResult(
60
73
  datacenter_id=self.datacenter_id,
61
74
  id=self.id,
62
- name=self.name)
75
+ name=self.name,
76
+ stats=self.stats)
63
77
 
64
78
 
65
79
  def get_datastore(datacenter_id: Optional[str] = None,
66
80
  name: Optional[str] = None,
81
+ stats: Optional[Mapping[str, Any]] = None,
67
82
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreResult:
68
83
  """
69
84
  The `get_datastore` data source can be used to discover the ID of a
@@ -73,6 +88,7 @@ def get_datastore(datacenter_id: Optional[str] = None,
73
88
 
74
89
  ## Example Usage
75
90
 
91
+ <!--Start PulumiCodeChooser -->
76
92
  ```python
77
93
  import pulumi
78
94
  import pulumi_vsphere as vsphere
@@ -81,6 +97,7 @@ def get_datastore(datacenter_id: Optional[str] = None,
81
97
  datastore = vsphere.get_datastore(name="datastore-01",
82
98
  datacenter_id=datacenter.id)
83
99
  ```
100
+ <!--End PulumiCodeChooser -->
84
101
 
85
102
 
86
103
  :param str datacenter_id: The managed object reference ID
@@ -88,22 +105,28 @@ def get_datastore(datacenter_id: Optional[str] = None,
88
105
  search path used in `name` is an absolute path. For default datacenters, use
89
106
  the `id` attribute from an empty `Datacenter` data source.
90
107
  :param str name: The name of the datastore. This can be a name or path.
108
+ :param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The total
109
+ datastore capacity is represented as `capacity` and the free remaining disk is
110
+ represented as `free`.
91
111
  """
92
112
  __args__ = dict()
93
113
  __args__['datacenterId'] = datacenter_id
94
114
  __args__['name'] = name
115
+ __args__['stats'] = stats
95
116
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
96
117
  __ret__ = pulumi.runtime.invoke('vsphere:index/getDatastore:getDatastore', __args__, opts=opts, typ=GetDatastoreResult).value
97
118
 
98
119
  return AwaitableGetDatastoreResult(
99
120
  datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
100
121
  id=pulumi.get(__ret__, 'id'),
101
- name=pulumi.get(__ret__, 'name'))
122
+ name=pulumi.get(__ret__, 'name'),
123
+ stats=pulumi.get(__ret__, 'stats'))
102
124
 
103
125
 
104
126
  @_utilities.lift_output_func(get_datastore)
105
127
  def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
106
128
  name: Optional[pulumi.Input[str]] = None,
129
+ stats: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
107
130
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreResult]:
108
131
  """
109
132
  The `get_datastore` data source can be used to discover the ID of a
@@ -113,6 +136,7 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
113
136
 
114
137
  ## Example Usage
115
138
 
139
+ <!--Start PulumiCodeChooser -->
116
140
  ```python
117
141
  import pulumi
118
142
  import pulumi_vsphere as vsphere
@@ -121,6 +145,7 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
121
145
  datastore = vsphere.get_datastore(name="datastore-01",
122
146
  datacenter_id=datacenter.id)
123
147
  ```
148
+ <!--End PulumiCodeChooser -->
124
149
 
125
150
 
126
151
  :param str datacenter_id: The managed object reference ID
@@ -128,5 +153,8 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
128
153
  search path used in `name` is an absolute path. For default datacenters, use
129
154
  the `id` attribute from an empty `Datacenter` data source.
130
155
  :param str name: The name of the datastore. This can be a name or path.
156
+ :param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The total
157
+ datastore capacity is represented as `capacity` and the free remaining disk is
158
+ represented as `free`.
131
159
  """
132
160
  ...
@@ -73,6 +73,7 @@ def get_datastore_cluster(datacenter_id: Optional[str] = None,
73
73
 
74
74
  ## Example Usage
75
75
 
76
+ <!--Start PulumiCodeChooser -->
76
77
  ```python
77
78
  import pulumi
78
79
  import pulumi_vsphere as vsphere
@@ -81,6 +82,7 @@ def get_datastore_cluster(datacenter_id: Optional[str] = None,
81
82
  datastore_cluster = vsphere.get_datastore_cluster(name="datastore-cluster-01",
82
83
  datacenter_id=datacenter.id)
83
84
  ```
85
+ <!--End PulumiCodeChooser -->
84
86
 
85
87
 
86
88
  :param str datacenter_id: The managed object reference
@@ -114,6 +116,7 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s
114
116
 
115
117
  ## Example Usage
116
118
 
119
+ <!--Start PulumiCodeChooser -->
117
120
  ```python
118
121
  import pulumi
119
122
  import pulumi_vsphere as vsphere
@@ -122,6 +125,7 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s
122
125
  datastore_cluster = vsphere.get_datastore_cluster(name="datastore-cluster-01",
123
126
  datacenter_id=datacenter.id)
124
127
  ```
128
+ <!--End PulumiCodeChooser -->
125
129
 
126
130
 
127
131
  :param str datacenter_id: The managed object reference
@@ -0,0 +1,202 @@
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 pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from . import _utilities
11
+
12
+ __all__ = [
13
+ 'GetDatastoreStatsResult',
14
+ 'AwaitableGetDatastoreStatsResult',
15
+ 'get_datastore_stats',
16
+ 'get_datastore_stats_output',
17
+ ]
18
+
19
+ @pulumi.output_type
20
+ class GetDatastoreStatsResult:
21
+ """
22
+ A collection of values returned by getDatastoreStats.
23
+ """
24
+ def __init__(__self__, capacity=None, datacenter_id=None, free_space=None, id=None):
25
+ if capacity and not isinstance(capacity, dict):
26
+ raise TypeError("Expected argument 'capacity' to be a dict")
27
+ pulumi.set(__self__, "capacity", capacity)
28
+ if datacenter_id and not isinstance(datacenter_id, str):
29
+ raise TypeError("Expected argument 'datacenter_id' to be a str")
30
+ pulumi.set(__self__, "datacenter_id", datacenter_id)
31
+ if free_space and not isinstance(free_space, dict):
32
+ raise TypeError("Expected argument 'free_space' to be a dict")
33
+ pulumi.set(__self__, "free_space", free_space)
34
+ if id and not isinstance(id, str):
35
+ raise TypeError("Expected argument 'id' to be a str")
36
+ pulumi.set(__self__, "id", id)
37
+
38
+ @property
39
+ @pulumi.getter
40
+ def capacity(self) -> Optional[Mapping[str, Any]]:
41
+ """
42
+ A mapping of the capacity for all datastore in the datacenter
43
+ , where the name of the datastore is used as key and the capacity as value.
44
+ """
45
+ return pulumi.get(self, "capacity")
46
+
47
+ @property
48
+ @pulumi.getter(name="datacenterId")
49
+ def datacenter_id(self) -> str:
50
+ """
51
+ The [managed object reference ID][docs-about-morefs]
52
+ of the datacenter the datastores are located in.
53
+ """
54
+ return pulumi.get(self, "datacenter_id")
55
+
56
+ @property
57
+ @pulumi.getter(name="freeSpace")
58
+ def free_space(self) -> Optional[Mapping[str, Any]]:
59
+ """
60
+ A mapping of the free space for each datastore in the
61
+ datacenter, where the name of the datastore is used as key and the free
62
+ space as value.
63
+ """
64
+ return pulumi.get(self, "free_space")
65
+
66
+ @property
67
+ @pulumi.getter
68
+ def id(self) -> str:
69
+ """
70
+ The provider-assigned unique ID for this managed resource.
71
+ """
72
+ return pulumi.get(self, "id")
73
+
74
+
75
+ class AwaitableGetDatastoreStatsResult(GetDatastoreStatsResult):
76
+ # pylint: disable=using-constant-test
77
+ def __await__(self):
78
+ if False:
79
+ yield self
80
+ return GetDatastoreStatsResult(
81
+ capacity=self.capacity,
82
+ datacenter_id=self.datacenter_id,
83
+ free_space=self.free_space,
84
+ id=self.id)
85
+
86
+
87
+ def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
88
+ datacenter_id: Optional[str] = None,
89
+ free_space: Optional[Mapping[str, Any]] = None,
90
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreStatsResult:
91
+ """
92
+ The `get_datastore_stats` data source can be used to retrieve the usage stats
93
+ of all vSphere datastore objects in a datacenter. This can then be used as a
94
+ standalone datasource to get information required as input to other data sources.
95
+
96
+ ## Example Usage
97
+
98
+ <!--Start PulumiCodeChooser -->
99
+ ```python
100
+ import pulumi
101
+ import pulumi_vsphere as vsphere
102
+
103
+ datacenter = vsphere.get_datacenter(name="dc-01")
104
+ datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
105
+ ```
106
+ <!--End PulumiCodeChooser -->
107
+
108
+ A usefull example of this datasource would be to determine the
109
+ datastore with the most free space. For example, in addition to
110
+ the above:
111
+
112
+ Create an `outputs.tf` like that:
113
+
114
+ <!--Start PulumiCodeChooser -->
115
+ ```python
116
+ import pulumi
117
+
118
+ pulumi.export("maxFreeSpaceName", local["max_free_space_name"])
119
+ pulumi.export("maxFreeSpace", local["max_free_space"])
120
+ ```
121
+ <!--End PulumiCodeChooser -->
122
+
123
+ and a `locals.tf` like that:
124
+
125
+
126
+ :param Mapping[str, Any] capacity: A mapping of the capacity for all datastore in the datacenter
127
+ , where the name of the datastore is used as key and the capacity as value.
128
+ :param str datacenter_id: The [managed object reference ID][docs-about-morefs]
129
+ of the datacenter the datastores are located in. For default datacenters, use
130
+ the `id` attribute from an empty `Datacenter` data source.
131
+
132
+ [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
133
+ :param Mapping[str, Any] free_space: A mapping of the free space for each datastore in the
134
+ datacenter, where the name of the datastore is used as key and the free
135
+ space as value.
136
+ """
137
+ __args__ = dict()
138
+ __args__['capacity'] = capacity
139
+ __args__['datacenterId'] = datacenter_id
140
+ __args__['freeSpace'] = free_space
141
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
142
+ __ret__ = pulumi.runtime.invoke('vsphere:index/getDatastoreStats:getDatastoreStats', __args__, opts=opts, typ=GetDatastoreStatsResult).value
143
+
144
+ return AwaitableGetDatastoreStatsResult(
145
+ capacity=pulumi.get(__ret__, 'capacity'),
146
+ datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
147
+ free_space=pulumi.get(__ret__, 'free_space'),
148
+ id=pulumi.get(__ret__, 'id'))
149
+
150
+
151
+ @_utilities.lift_output_func(get_datastore_stats)
152
+ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
153
+ datacenter_id: Optional[pulumi.Input[str]] = None,
154
+ free_space: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
155
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreStatsResult]:
156
+ """
157
+ The `get_datastore_stats` data source can be used to retrieve the usage stats
158
+ of all vSphere datastore objects in a datacenter. This can then be used as a
159
+ standalone datasource to get information required as input to other data sources.
160
+
161
+ ## Example Usage
162
+
163
+ <!--Start PulumiCodeChooser -->
164
+ ```python
165
+ import pulumi
166
+ import pulumi_vsphere as vsphere
167
+
168
+ datacenter = vsphere.get_datacenter(name="dc-01")
169
+ datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
170
+ ```
171
+ <!--End PulumiCodeChooser -->
172
+
173
+ A usefull example of this datasource would be to determine the
174
+ datastore with the most free space. For example, in addition to
175
+ the above:
176
+
177
+ Create an `outputs.tf` like that:
178
+
179
+ <!--Start PulumiCodeChooser -->
180
+ ```python
181
+ import pulumi
182
+
183
+ pulumi.export("maxFreeSpaceName", local["max_free_space_name"])
184
+ pulumi.export("maxFreeSpace", local["max_free_space"])
185
+ ```
186
+ <!--End PulumiCodeChooser -->
187
+
188
+ and a `locals.tf` like that:
189
+
190
+
191
+ :param Mapping[str, Any] capacity: A mapping of the capacity for all datastore in the datacenter
192
+ , where the name of the datastore is used as key and the capacity as value.
193
+ :param str datacenter_id: The [managed object reference ID][docs-about-morefs]
194
+ of the datacenter the datastores are located in. For default datacenters, use
195
+ the `id` attribute from an empty `Datacenter` data source.
196
+
197
+ [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
198
+ :param Mapping[str, Any] free_space: A mapping of the free space for each datastore in the
199
+ datacenter, where the name of the datastore is used as key and the free
200
+ space as value.
201
+ """
202
+ ...
@@ -97,6 +97,7 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
97
97
  `DistributedPortGroup` resource that uses the first uplink as a
98
98
  primary uplink and the second uplink as a secondary.
99
99
 
100
+ <!--Start PulumiCodeChooser -->
100
101
  ```python
101
102
  import pulumi
102
103
  import pulumi_vsphere as vsphere
@@ -109,6 +110,7 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
109
110
  active_uplinks=[vds.uplinks[0]],
110
111
  standby_uplinks=[vds.uplinks[1]])
111
112
  ```
113
+ <!--End PulumiCodeChooser -->
112
114
 
113
115
 
114
116
  :param str datacenter_id: The managed object reference ID
@@ -151,6 +153,7 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
151
153
  `DistributedPortGroup` resource that uses the first uplink as a
152
154
  primary uplink and the second uplink as a secondary.
153
155
 
156
+ <!--Start PulumiCodeChooser -->
154
157
  ```python
155
158
  import pulumi
156
159
  import pulumi_vsphere as vsphere
@@ -163,6 +166,7 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
163
166
  active_uplinks=[vds.uplinks[0]],
164
167
  standby_uplinks=[vds.uplinks[1]])
165
168
  ```
169
+ <!--End PulumiCodeChooser -->
166
170
 
167
171
 
168
172
  :param str datacenter_id: The managed object reference ID
@@ -84,6 +84,7 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
84
84
 
85
85
  ## Example Usage
86
86
 
87
+ <!--Start PulumiCodeChooser -->
87
88
  ```python
88
89
  import pulumi
89
90
  import pulumi_vsphere as vsphere
@@ -100,6 +101,7 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
100
101
  name_regex="ubuntu",
101
102
  type="Datacenter")
102
103
  ```
104
+ <!--End PulumiCodeChooser -->
103
105
 
104
106
 
105
107
  :param Sequence[str] filters: A list of tag IDs that must be present on an object to
@@ -138,6 +140,7 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
138
140
 
139
141
  ## Example Usage
140
142
 
143
+ <!--Start PulumiCodeChooser -->
141
144
  ```python
142
145
  import pulumi
143
146
  import pulumi_vsphere as vsphere
@@ -154,6 +157,7 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
154
157
  name_regex="ubuntu",
155
158
  type="Datacenter")
156
159
  ```
160
+ <!--End PulumiCodeChooser -->
157
161
 
158
162
 
159
163
  :param Sequence[str] filters: A list of tag IDs that must be present on an object to
@@ -61,12 +61,14 @@ def get_folder(path: Optional[str] = None,
61
61
 
62
62
  ## Example Usage
63
63
 
64
+ <!--Start PulumiCodeChooser -->
64
65
  ```python
65
66
  import pulumi
66
67
  import pulumi_vsphere as vsphere
67
68
 
68
69
  folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
69
70
  ```
71
+ <!--End PulumiCodeChooser -->
70
72
 
71
73
 
72
74
  :param str path: The absolute path of the folder. For example, given a
@@ -94,12 +96,14 @@ def get_folder_output(path: Optional[pulumi.Input[str]] = None,
94
96
 
95
97
  ## Example Usage
96
98
 
99
+ <!--Start PulumiCodeChooser -->
97
100
  ```python
98
101
  import pulumi
99
102
  import pulumi_vsphere as vsphere
100
103
 
101
104
  folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
102
105
  ```
106
+ <!--End PulumiCodeChooser -->
103
107
 
104
108
 
105
109
  :param str path: The absolute path of the folder. For example, given a
@@ -124,12 +124,14 @@ def get_guest_os_customization(name: Optional[str] = None,
124
124
 
125
125
  ## Example Usage
126
126
 
127
+ <!--Start PulumiCodeChooser -->
127
128
  ```python
128
129
  import pulumi
129
130
  import pulumi_vsphere as vsphere
130
131
 
131
132
  gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
132
133
  ```
134
+ <!--End PulumiCodeChooser -->
133
135
 
134
136
 
135
137
  :param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
@@ -160,12 +162,14 @@ def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
160
162
 
161
163
  ## Example Usage
162
164
 
165
+ <!--Start PulumiCodeChooser -->
163
166
  ```python
164
167
  import pulumi
165
168
  import pulumi_vsphere as vsphere
166
169
 
167
170
  gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
168
171
  ```
172
+ <!--End PulumiCodeChooser -->
169
173
 
170
174
 
171
175
  :param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
@@ -85,6 +85,7 @@ def get_host(datacenter_id: Optional[str] = None,
85
85
 
86
86
  ## Example Usage
87
87
 
88
+ <!--Start PulumiCodeChooser -->
88
89
  ```python
89
90
  import pulumi
90
91
  import pulumi_vsphere as vsphere
@@ -93,6 +94,7 @@ def get_host(datacenter_id: Optional[str] = None,
93
94
  host = vsphere.get_host(name="esxi-01.example.com",
94
95
  datacenter_id=datacenter.id)
95
96
  ```
97
+ <!--End PulumiCodeChooser -->
96
98
 
97
99
 
98
100
  :param str datacenter_id: The managed object reference ID
@@ -127,6 +129,7 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
127
129
 
128
130
  ## Example Usage
129
131
 
132
+ <!--Start PulumiCodeChooser -->
130
133
  ```python
131
134
  import pulumi
132
135
  import pulumi_vsphere as vsphere
@@ -135,6 +138,7 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
135
138
  host = vsphere.get_host(name="esxi-01.example.com",
136
139
  datacenter_id=datacenter.id)
137
140
  ```
141
+ <!--End PulumiCodeChooser -->
138
142
 
139
143
 
140
144
  :param str datacenter_id: The managed object reference ID
@@ -103,8 +103,10 @@ def get_host_pci_device(class_id: Optional[str] = None,
103
103
  `VirtualMachine`'s `pci_device_id`.
104
104
 
105
105
  ## Example Usage
106
+
106
107
  ### With Vendor ID And Class ID
107
108
 
109
+ <!--Start PulumiCodeChooser -->
108
110
  ```python
109
111
  import pulumi
110
112
  import pulumi_vsphere as vsphere
@@ -116,8 +118,23 @@ def get_host_pci_device(class_id: Optional[str] = None,
116
118
  class_id="123",
117
119
  vendor_id="456")
118
120
  ```
121
+ <!--End PulumiCodeChooser -->
122
+
119
123
  ### With Name Regular Expression
120
124
 
125
+ <!--Start PulumiCodeChooser -->
126
+ ```python
127
+ import pulumi
128
+ import pulumi_vsphere as vsphere
129
+
130
+ datacenter = vsphere.get_datacenter(name="dc-01")
131
+ host = vsphere.get_host(name="esxi-01.example.com",
132
+ datacenter_id=datacenter.id)
133
+ dev = vsphere.get_host_pci_device(host_id=host.id,
134
+ name_regex="MMC")
135
+ ```
136
+ <!--End PulumiCodeChooser -->
137
+
121
138
 
122
139
  :param str class_id: The hexadecimal PCI device class ID
123
140
 
@@ -158,8 +175,10 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
158
175
  `VirtualMachine`'s `pci_device_id`.
159
176
 
160
177
  ## Example Usage
178
+
161
179
  ### With Vendor ID And Class ID
162
180
 
181
+ <!--Start PulumiCodeChooser -->
163
182
  ```python
164
183
  import pulumi
165
184
  import pulumi_vsphere as vsphere
@@ -171,8 +190,23 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
171
190
  class_id="123",
172
191
  vendor_id="456")
173
192
  ```
193
+ <!--End PulumiCodeChooser -->
194
+
174
195
  ### With Name Regular Expression
175
196
 
197
+ <!--Start PulumiCodeChooser -->
198
+ ```python
199
+ import pulumi
200
+ import pulumi_vsphere as vsphere
201
+
202
+ datacenter = vsphere.get_datacenter(name="dc-01")
203
+ host = vsphere.get_host(name="esxi-01.example.com",
204
+ datacenter_id=datacenter.id)
205
+ dev = vsphere.get_host_pci_device(host_id=host.id,
206
+ name_regex="MMC")
207
+ ```
208
+ <!--End PulumiCodeChooser -->
209
+
176
210
 
177
211
  :param str class_id: The hexadecimal PCI device class ID
178
212
 
@@ -83,12 +83,14 @@ def get_host_thumbprint(address: Optional[str] = None,
83
83
 
84
84
  ## Example Usage
85
85
 
86
+ <!--Start PulumiCodeChooser -->
86
87
  ```python
87
88
  import pulumi
88
89
  import pulumi_vsphere as vsphere
89
90
 
90
91
  thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com")
91
92
  ```
93
+ <!--End PulumiCodeChooser -->
92
94
 
93
95
 
94
96
  :param str address: The address of the ESXi host to retrieve the
@@ -124,12 +126,14 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
124
126
 
125
127
  ## Example Usage
126
128
 
129
+ <!--Start PulumiCodeChooser -->
127
130
  ```python
128
131
  import pulumi
129
132
  import pulumi_vsphere as vsphere
130
133
 
131
134
  thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com")
132
135
  ```
136
+ <!--End PulumiCodeChooser -->
133
137
 
134
138
 
135
139
  :param str address: The address of the ESXi host to retrieve the