pulumi-vsphere 4.10.0a1710245029__py3-none-any.whl → 4.10.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-vsphere might be problematic. Click here for more details.
- pulumi_vsphere/__init__.py +28 -0
- pulumi_vsphere/_inputs.py +566 -236
- pulumi_vsphere/_utilities.py +35 -0
- pulumi_vsphere/compute_cluster.py +747 -1477
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +28 -20
- pulumi_vsphere/datacenter.py +33 -40
- pulumi_vsphere/datastore_cluster.py +154 -364
- pulumi_vsphere/distributed_port_group.py +126 -182
- pulumi_vsphere/distributed_virtual_switch.py +301 -819
- pulumi_vsphere/entity_permissions.py +56 -35
- pulumi_vsphere/file.py +16 -24
- pulumi_vsphere/folder.py +7 -28
- pulumi_vsphere/get_compute_cluster.py +0 -4
- pulumi_vsphere/get_compute_cluster_host_group.py +20 -20
- pulumi_vsphere/get_content_library.py +10 -10
- pulumi_vsphere/get_content_library_item.py +12 -8
- pulumi_vsphere/get_custom_attribute.py +0 -4
- pulumi_vsphere/get_datacenter.py +0 -4
- pulumi_vsphere/get_datastore.py +9 -13
- pulumi_vsphere/get_datastore_cluster.py +0 -4
- pulumi_vsphere/get_datastore_stats.py +38 -44
- pulumi_vsphere/get_distributed_virtual_switch.py +2 -4
- pulumi_vsphere/get_dynamic.py +18 -20
- pulumi_vsphere/get_folder.py +10 -6
- pulumi_vsphere/get_guest_os_customization.py +8 -47
- pulumi_vsphere/get_host.py +0 -4
- pulumi_vsphere/get_host_base_images.py +97 -0
- pulumi_vsphere/get_host_pci_device.py +8 -14
- pulumi_vsphere/get_host_thumbprint.py +12 -16
- pulumi_vsphere/get_host_vgpu_profile.py +4 -10
- pulumi_vsphere/get_license.py +2 -5
- pulumi_vsphere/get_network.py +14 -18
- pulumi_vsphere/get_policy.py +0 -4
- pulumi_vsphere/get_resource_pool.py +14 -18
- pulumi_vsphere/get_role.py +4 -8
- pulumi_vsphere/get_tag.py +0 -4
- pulumi_vsphere/get_tag_category.py +0 -4
- pulumi_vsphere/get_vapp_container.py +0 -4
- pulumi_vsphere/get_virtual_machine.py +58 -41
- pulumi_vsphere/get_vmfs_disks.py +0 -4
- pulumi_vsphere/guest_os_customization.py +50 -0
- pulumi_vsphere/ha_vm_override.py +189 -378
- pulumi_vsphere/host.py +0 -20
- pulumi_vsphere/host_port_group.py +12 -24
- pulumi_vsphere/host_virtual_switch.py +140 -287
- pulumi_vsphere/license.py +0 -32
- pulumi_vsphere/nas_datastore.py +7 -7
- pulumi_vsphere/offline_software_depot.py +180 -0
- pulumi_vsphere/outputs.py +591 -270
- pulumi_vsphere/provider.py +2 -6
- pulumi_vsphere/pulumi-plugin.json +2 -1
- pulumi_vsphere/resource_pool.py +50 -24
- pulumi_vsphere/supervisor.py +962 -0
- pulumi_vsphere/virtual_disk.py +14 -20
- pulumi_vsphere/virtual_machine.py +580 -809
- pulumi_vsphere/virtual_machine_class.py +442 -0
- pulumi_vsphere/virtual_machine_snapshot.py +8 -12
- pulumi_vsphere/vm_storage_policy.py +74 -86
- pulumi_vsphere/vnic.py +61 -77
- {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.10.2.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +0 -82
- {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
'GetHostBaseImagesResult',
|
|
14
|
+
'AwaitableGetHostBaseImagesResult',
|
|
15
|
+
'get_host_base_images',
|
|
16
|
+
'get_host_base_images_output',
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
@pulumi.output_type
|
|
20
|
+
class GetHostBaseImagesResult:
|
|
21
|
+
"""
|
|
22
|
+
A collection of values returned by getHostBaseImages.
|
|
23
|
+
"""
|
|
24
|
+
def __init__(__self__, id=None, versions=None):
|
|
25
|
+
if id and not isinstance(id, str):
|
|
26
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
27
|
+
pulumi.set(__self__, "id", id)
|
|
28
|
+
if versions and not isinstance(versions, list):
|
|
29
|
+
raise TypeError("Expected argument 'versions' to be a list")
|
|
30
|
+
pulumi.set(__self__, "versions", versions)
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
@pulumi.getter
|
|
34
|
+
def id(self) -> str:
|
|
35
|
+
"""
|
|
36
|
+
The provider-assigned unique ID for this managed resource.
|
|
37
|
+
"""
|
|
38
|
+
return pulumi.get(self, "id")
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
@pulumi.getter
|
|
42
|
+
def versions(self) -> Sequence[str]:
|
|
43
|
+
"""
|
|
44
|
+
The ESXi version identifier for the image
|
|
45
|
+
"""
|
|
46
|
+
return pulumi.get(self, "versions")
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class AwaitableGetHostBaseImagesResult(GetHostBaseImagesResult):
|
|
50
|
+
# pylint: disable=using-constant-test
|
|
51
|
+
def __await__(self):
|
|
52
|
+
if False:
|
|
53
|
+
yield self
|
|
54
|
+
return GetHostBaseImagesResult(
|
|
55
|
+
id=self.id,
|
|
56
|
+
versions=self.versions)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def get_host_base_images(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHostBaseImagesResult:
|
|
60
|
+
"""
|
|
61
|
+
The `get_host_base_images` data source can be used to get the list of ESXi
|
|
62
|
+
base images available for cluster software management.
|
|
63
|
+
|
|
64
|
+
## Example Usage
|
|
65
|
+
|
|
66
|
+
```python
|
|
67
|
+
import pulumi
|
|
68
|
+
import pulumi_vsphere as vsphere
|
|
69
|
+
|
|
70
|
+
base_images = vsphere.get_host_base_images()
|
|
71
|
+
```
|
|
72
|
+
"""
|
|
73
|
+
__args__ = dict()
|
|
74
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
75
|
+
__ret__ = pulumi.runtime.invoke('vsphere:index/getHostBaseImages:getHostBaseImages', __args__, opts=opts, typ=GetHostBaseImagesResult).value
|
|
76
|
+
|
|
77
|
+
return AwaitableGetHostBaseImagesResult(
|
|
78
|
+
id=pulumi.get(__ret__, 'id'),
|
|
79
|
+
versions=pulumi.get(__ret__, 'versions'))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
@_utilities.lift_output_func(get_host_base_images)
|
|
83
|
+
def get_host_base_images_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostBaseImagesResult]:
|
|
84
|
+
"""
|
|
85
|
+
The `get_host_base_images` data source can be used to get the list of ESXi
|
|
86
|
+
base images available for cluster software management.
|
|
87
|
+
|
|
88
|
+
## Example Usage
|
|
89
|
+
|
|
90
|
+
```python
|
|
91
|
+
import pulumi
|
|
92
|
+
import pulumi_vsphere as vsphere
|
|
93
|
+
|
|
94
|
+
base_images = vsphere.get_host_base_images()
|
|
95
|
+
```
|
|
96
|
+
"""
|
|
97
|
+
...
|
|
@@ -106,7 +106,6 @@ def get_host_pci_device(class_id: Optional[str] = None,
|
|
|
106
106
|
|
|
107
107
|
### With Vendor ID And Class ID
|
|
108
108
|
|
|
109
|
-
<!--Start PulumiCodeChooser -->
|
|
110
109
|
```python
|
|
111
110
|
import pulumi
|
|
112
111
|
import pulumi_vsphere as vsphere
|
|
@@ -118,22 +117,19 @@ def get_host_pci_device(class_id: Optional[str] = None,
|
|
|
118
117
|
class_id="123",
|
|
119
118
|
vendor_id="456")
|
|
120
119
|
```
|
|
121
|
-
<!--End PulumiCodeChooser -->
|
|
122
120
|
|
|
123
121
|
### With Name Regular Expression
|
|
124
122
|
|
|
125
|
-
<!--Start PulumiCodeChooser -->
|
|
126
123
|
```python
|
|
127
124
|
import pulumi
|
|
128
125
|
import pulumi_vsphere as vsphere
|
|
129
126
|
|
|
130
127
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
131
128
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
132
|
-
|
|
129
|
+
datacenter_id=datacenter.id)
|
|
133
130
|
dev = vsphere.get_host_pci_device(host_id=host.id,
|
|
134
|
-
|
|
131
|
+
name_regex="MMC")
|
|
135
132
|
```
|
|
136
|
-
<!--End PulumiCodeChooser -->
|
|
137
133
|
|
|
138
134
|
|
|
139
135
|
:param str class_id: The hexadecimal PCI device class ID
|
|
@@ -141,7 +137,8 @@ def get_host_pci_device(class_id: Optional[str] = None,
|
|
|
141
137
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
142
138
|
|
|
143
139
|
> **NOTE:** `name_regex`, `vendor_id`, and `class_id` can all be used together.
|
|
144
|
-
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
140
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
141
|
+
a host.
|
|
145
142
|
:param str name_regex: A regular expression that will be used to match the
|
|
146
143
|
host PCI device name.
|
|
147
144
|
:param str vendor_id: The hexadecimal PCI device vendor ID.
|
|
@@ -178,7 +175,6 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
178
175
|
|
|
179
176
|
### With Vendor ID And Class ID
|
|
180
177
|
|
|
181
|
-
<!--Start PulumiCodeChooser -->
|
|
182
178
|
```python
|
|
183
179
|
import pulumi
|
|
184
180
|
import pulumi_vsphere as vsphere
|
|
@@ -190,22 +186,19 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
190
186
|
class_id="123",
|
|
191
187
|
vendor_id="456")
|
|
192
188
|
```
|
|
193
|
-
<!--End PulumiCodeChooser -->
|
|
194
189
|
|
|
195
190
|
### With Name Regular Expression
|
|
196
191
|
|
|
197
|
-
<!--Start PulumiCodeChooser -->
|
|
198
192
|
```python
|
|
199
193
|
import pulumi
|
|
200
194
|
import pulumi_vsphere as vsphere
|
|
201
195
|
|
|
202
196
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
203
197
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
204
|
-
|
|
198
|
+
datacenter_id=datacenter.id)
|
|
205
199
|
dev = vsphere.get_host_pci_device(host_id=host.id,
|
|
206
|
-
|
|
200
|
+
name_regex="MMC")
|
|
207
201
|
```
|
|
208
|
-
<!--End PulumiCodeChooser -->
|
|
209
202
|
|
|
210
203
|
|
|
211
204
|
:param str class_id: The hexadecimal PCI device class ID
|
|
@@ -213,7 +206,8 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
213
206
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
214
207
|
|
|
215
208
|
> **NOTE:** `name_regex`, `vendor_id`, and `class_id` can all be used together.
|
|
216
|
-
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
209
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
210
|
+
a host.
|
|
217
211
|
:param str name_regex: A regular expression that will be used to match the
|
|
218
212
|
host PCI device name.
|
|
219
213
|
:param str vendor_id: The hexadecimal PCI device vendor ID.
|
|
@@ -76,25 +76,23 @@ def get_host_thumbprint(address: Optional[str] = None,
|
|
|
76
76
|
port: Optional[str] = None,
|
|
77
77
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHostThumbprintResult:
|
|
78
78
|
"""
|
|
79
|
-
The `vsphere_thumbprint` data source can be used to discover the host
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
The `vsphere_thumbprint` data source can be used to discover the host thumbprint
|
|
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.
|
|
83
83
|
|
|
84
84
|
## Example Usage
|
|
85
85
|
|
|
86
|
-
<!--Start PulumiCodeChooser -->
|
|
87
86
|
```python
|
|
88
87
|
import pulumi
|
|
89
88
|
import pulumi_vsphere as vsphere
|
|
90
89
|
|
|
91
90
|
thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com")
|
|
92
91
|
```
|
|
93
|
-
<!--End PulumiCodeChooser -->
|
|
94
92
|
|
|
95
93
|
|
|
96
|
-
:param str address: The address of the ESXi host to retrieve the
|
|
97
|
-
|
|
94
|
+
:param str address: The address of the ESXi host to retrieve the thumbprint
|
|
95
|
+
from.
|
|
98
96
|
:param bool insecure: Disables SSL certificate verification.
|
|
99
97
|
Default: `false`
|
|
100
98
|
:param str port: The port to use connecting to the ESXi host. Default: 443
|
|
@@ -119,25 +117,23 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
|
|
|
119
117
|
port: Optional[pulumi.Input[Optional[str]]] = None,
|
|
120
118
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostThumbprintResult]:
|
|
121
119
|
"""
|
|
122
|
-
The `vsphere_thumbprint` data source can be used to discover the host
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
120
|
+
The `vsphere_thumbprint` data source can be used to discover the host thumbprint
|
|
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.
|
|
126
124
|
|
|
127
125
|
## Example Usage
|
|
128
126
|
|
|
129
|
-
<!--Start PulumiCodeChooser -->
|
|
130
127
|
```python
|
|
131
128
|
import pulumi
|
|
132
129
|
import pulumi_vsphere as vsphere
|
|
133
130
|
|
|
134
131
|
thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com")
|
|
135
132
|
```
|
|
136
|
-
<!--End PulumiCodeChooser -->
|
|
137
133
|
|
|
138
134
|
|
|
139
|
-
:param str address: The address of the ESXi host to retrieve the
|
|
140
|
-
|
|
135
|
+
:param str address: The address of the ESXi host to retrieve the thumbprint
|
|
136
|
+
from.
|
|
141
137
|
:param bool insecure: Disables SSL certificate verification.
|
|
142
138
|
Default: `false`
|
|
143
139
|
:param str port: The port to use connecting to the ESXi host. Default: 443
|
|
@@ -94,7 +94,6 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
|
|
|
94
94
|
|
|
95
95
|
### To Return All VGPU Profiles
|
|
96
96
|
|
|
97
|
-
<!--Start PulumiCodeChooser -->
|
|
98
97
|
```python
|
|
99
98
|
import pulumi
|
|
100
99
|
import pulumi_vsphere as vsphere
|
|
@@ -104,11 +103,9 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
|
|
|
104
103
|
datacenter_id=datacenter.id)
|
|
105
104
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id)
|
|
106
105
|
```
|
|
107
|
-
<!--End PulumiCodeChooser -->
|
|
108
106
|
|
|
109
107
|
### With VGPU Profile Name_regex
|
|
110
108
|
|
|
111
|
-
<!--Start PulumiCodeChooser -->
|
|
112
109
|
```python
|
|
113
110
|
import pulumi
|
|
114
111
|
import pulumi_vsphere as vsphere
|
|
@@ -119,10 +116,10 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
|
|
|
119
116
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id,
|
|
120
117
|
name_regex="a100")
|
|
121
118
|
```
|
|
122
|
-
<!--End PulumiCodeChooser -->
|
|
123
119
|
|
|
124
120
|
|
|
125
|
-
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
121
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
122
|
+
a host.
|
|
126
123
|
:param str name_regex: A regular expression that will be used to match the
|
|
127
124
|
host vGPU profile name.
|
|
128
125
|
|
|
@@ -153,7 +150,6 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
|
153
150
|
|
|
154
151
|
### To Return All VGPU Profiles
|
|
155
152
|
|
|
156
|
-
<!--Start PulumiCodeChooser -->
|
|
157
153
|
```python
|
|
158
154
|
import pulumi
|
|
159
155
|
import pulumi_vsphere as vsphere
|
|
@@ -163,11 +159,9 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
|
163
159
|
datacenter_id=datacenter.id)
|
|
164
160
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id)
|
|
165
161
|
```
|
|
166
|
-
<!--End PulumiCodeChooser -->
|
|
167
162
|
|
|
168
163
|
### With VGPU Profile Name_regex
|
|
169
164
|
|
|
170
|
-
<!--Start PulumiCodeChooser -->
|
|
171
165
|
```python
|
|
172
166
|
import pulumi
|
|
173
167
|
import pulumi_vsphere as vsphere
|
|
@@ -178,10 +172,10 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
|
178
172
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id,
|
|
179
173
|
name_regex="a100")
|
|
180
174
|
```
|
|
181
|
-
<!--End PulumiCodeChooser -->
|
|
182
175
|
|
|
183
176
|
|
|
184
|
-
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
177
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
178
|
+
a host.
|
|
185
179
|
:param str name_regex: A regular expression that will be used to match the
|
|
186
180
|
host vGPU profile name.
|
|
187
181
|
|
pulumi_vsphere/get_license.py
CHANGED
|
@@ -61,7 +61,8 @@ class GetLicenseResult:
|
|
|
61
61
|
@pulumi.getter
|
|
62
62
|
def labels(self) -> Mapping[str, str]:
|
|
63
63
|
"""
|
|
64
|
-
A map of key/value pairs attached as labels (tags) to the license
|
|
64
|
+
A map of key/value pairs attached as labels (tags) to the license
|
|
65
|
+
key.
|
|
65
66
|
"""
|
|
66
67
|
return pulumi.get(self, "labels")
|
|
67
68
|
|
|
@@ -118,14 +119,12 @@ def get_license(license_key: Optional[str] = None,
|
|
|
118
119
|
|
|
119
120
|
## Example Usage
|
|
120
121
|
|
|
121
|
-
<!--Start PulumiCodeChooser -->
|
|
122
122
|
```python
|
|
123
123
|
import pulumi
|
|
124
124
|
import pulumi_vsphere as vsphere
|
|
125
125
|
|
|
126
126
|
license = vsphere.get_license(license_key="00000-00000-00000-00000-00000")
|
|
127
127
|
```
|
|
128
|
-
<!--End PulumiCodeChooser -->
|
|
129
128
|
|
|
130
129
|
|
|
131
130
|
:param str license_key: The license key.
|
|
@@ -154,14 +153,12 @@ def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
|
|
|
154
153
|
|
|
155
154
|
## Example Usage
|
|
156
155
|
|
|
157
|
-
<!--Start PulumiCodeChooser -->
|
|
158
156
|
```python
|
|
159
157
|
import pulumi
|
|
160
158
|
import pulumi_vsphere as vsphere
|
|
161
159
|
|
|
162
160
|
license = vsphere.get_license(license_key="00000-00000-00000-00000-00000")
|
|
163
161
|
```
|
|
164
|
-
<!--End PulumiCodeChooser -->
|
|
165
162
|
|
|
166
163
|
|
|
167
164
|
:param str license_key: The license key.
|
pulumi_vsphere/get_network.py
CHANGED
|
@@ -91,15 +91,14 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
91
91
|
name: Optional[str] = None,
|
|
92
92
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNetworkResult:
|
|
93
93
|
"""
|
|
94
|
-
The `get_network` data source can be used to discover the ID of a network
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
The `get_network` data source can be used to discover the ID of a network in
|
|
95
|
+
vSphere. This can be any network that can be used as the backing for a network
|
|
96
|
+
interface for `VirtualMachine` or any other vSphere resource that
|
|
97
|
+
requires a network. This includes standard (host-based) port groups, distributed
|
|
98
|
+
port groups, or opaque networks such as those managed by NSX.
|
|
99
99
|
|
|
100
100
|
## Example Usage
|
|
101
101
|
|
|
102
|
-
<!--Start PulumiCodeChooser -->
|
|
103
102
|
```python
|
|
104
103
|
import pulumi
|
|
105
104
|
import pulumi_vsphere as vsphere
|
|
@@ -108,7 +107,6 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
108
107
|
network = vsphere.get_network(name="VM Network",
|
|
109
108
|
datacenter_id=datacenter.id)
|
|
110
109
|
```
|
|
111
|
-
<!--End PulumiCodeChooser -->
|
|
112
110
|
|
|
113
111
|
|
|
114
112
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -117,8 +115,8 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
117
115
|
use the `id` attribute from an empty `Datacenter` data source.
|
|
118
116
|
:param str distributed_virtual_switch_uuid: For distributed port group type
|
|
119
117
|
network objects, the ID of the distributed virtual switch for which the port
|
|
120
|
-
group belongs. It is useful to differentiate port groups with same name
|
|
121
|
-
|
|
118
|
+
group belongs. It is useful to differentiate port groups with same name using
|
|
119
|
+
the distributed virtual switch ID.
|
|
122
120
|
:param str name: The name of the network. This can be a name or path.
|
|
123
121
|
"""
|
|
124
122
|
__args__ = dict()
|
|
@@ -142,15 +140,14 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
142
140
|
name: Optional[pulumi.Input[str]] = None,
|
|
143
141
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNetworkResult]:
|
|
144
142
|
"""
|
|
145
|
-
The `get_network` data source can be used to discover the ID of a network
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
143
|
+
The `get_network` data source can be used to discover the ID of a network in
|
|
144
|
+
vSphere. This can be any network that can be used as the backing for a network
|
|
145
|
+
interface for `VirtualMachine` or any other vSphere resource that
|
|
146
|
+
requires a network. This includes standard (host-based) port groups, distributed
|
|
147
|
+
port groups, or opaque networks such as those managed by NSX.
|
|
150
148
|
|
|
151
149
|
## Example Usage
|
|
152
150
|
|
|
153
|
-
<!--Start PulumiCodeChooser -->
|
|
154
151
|
```python
|
|
155
152
|
import pulumi
|
|
156
153
|
import pulumi_vsphere as vsphere
|
|
@@ -159,7 +156,6 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
159
156
|
network = vsphere.get_network(name="VM Network",
|
|
160
157
|
datacenter_id=datacenter.id)
|
|
161
158
|
```
|
|
162
|
-
<!--End PulumiCodeChooser -->
|
|
163
159
|
|
|
164
160
|
|
|
165
161
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -168,8 +164,8 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
168
164
|
use the `id` attribute from an empty `Datacenter` data source.
|
|
169
165
|
:param str distributed_virtual_switch_uuid: For distributed port group type
|
|
170
166
|
network objects, the ID of the distributed virtual switch for which the port
|
|
171
|
-
group belongs. It is useful to differentiate port groups with same name
|
|
172
|
-
|
|
167
|
+
group belongs. It is useful to differentiate port groups with same name using
|
|
168
|
+
the distributed virtual switch ID.
|
|
173
169
|
:param str name: The name of the network. This can be a name or path.
|
|
174
170
|
"""
|
|
175
171
|
...
|
pulumi_vsphere/get_policy.py
CHANGED
|
@@ -65,7 +65,6 @@ def get_policy(name: Optional[str] = None,
|
|
|
65
65
|
|
|
66
66
|
## Example Usage
|
|
67
67
|
|
|
68
|
-
<!--Start PulumiCodeChooser -->
|
|
69
68
|
```python
|
|
70
69
|
import pulumi
|
|
71
70
|
import pulumi_vsphere as vsphere
|
|
@@ -73,7 +72,6 @@ def get_policy(name: Optional[str] = None,
|
|
|
73
72
|
prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated")
|
|
74
73
|
dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated")
|
|
75
74
|
```
|
|
76
|
-
<!--End PulumiCodeChooser -->
|
|
77
75
|
|
|
78
76
|
|
|
79
77
|
:param str name: The name of the storage policy.
|
|
@@ -101,7 +99,6 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
101
99
|
|
|
102
100
|
## Example Usage
|
|
103
101
|
|
|
104
|
-
<!--Start PulumiCodeChooser -->
|
|
105
102
|
```python
|
|
106
103
|
import pulumi
|
|
107
104
|
import pulumi_vsphere as vsphere
|
|
@@ -109,7 +106,6 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
109
106
|
prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated")
|
|
110
107
|
dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated")
|
|
111
108
|
```
|
|
112
|
-
<!--End PulumiCodeChooser -->
|
|
113
109
|
|
|
114
110
|
|
|
115
111
|
:param str name: The name of the storage policy.
|
|
@@ -73,7 +73,6 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
|
|
|
73
73
|
|
|
74
74
|
## Example Usage
|
|
75
75
|
|
|
76
|
-
<!--Start PulumiCodeChooser -->
|
|
77
76
|
```python
|
|
78
77
|
import pulumi
|
|
79
78
|
import pulumi_vsphere as vsphere
|
|
@@ -82,7 +81,6 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
|
|
|
82
81
|
pool = vsphere.get_resource_pool(name="resource-pool-01",
|
|
83
82
|
datacenter_id=datacenter.id)
|
|
84
83
|
```
|
|
85
|
-
<!--End PulumiCodeChooser -->
|
|
86
84
|
|
|
87
85
|
### Specifying the Root Resource Pool for a Standalone ESXi Host
|
|
88
86
|
|
|
@@ -91,22 +89,22 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
|
|
|
91
89
|
data source.
|
|
92
90
|
|
|
93
91
|
All compute resources in vSphere have a resource pool, even if one has not been
|
|
94
|
-
explicitly created. This resource pool is referred to as the
|
|
95
|
-
|
|
92
|
+
explicitly created. This resource pool is referred to as the _root resource
|
|
93
|
+
pool_ and can be looked up by specifying the path.
|
|
96
94
|
|
|
97
|
-
<!--Start PulumiCodeChooser -->
|
|
98
95
|
```python
|
|
99
96
|
import pulumi
|
|
100
97
|
import pulumi_vsphere as vsphere
|
|
101
98
|
|
|
102
99
|
pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources",
|
|
103
|
-
datacenter_id=
|
|
100
|
+
datacenter_id=datacenter["id"])
|
|
104
101
|
```
|
|
105
|
-
<!--End PulumiCodeChooser -->
|
|
106
102
|
|
|
107
|
-
For more information on the root resource pool, see
|
|
103
|
+
For more information on the root resource pool, see
|
|
104
|
+
[Managing Resource Pools][vmware-docs-resource-pools] in the vSphere
|
|
105
|
+
documentation.
|
|
108
106
|
|
|
109
|
-
[vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/
|
|
107
|
+
[vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-60077B40-66FF-4625-934A-641703ED7601.html
|
|
110
108
|
|
|
111
109
|
|
|
112
110
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -145,7 +143,6 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
145
143
|
|
|
146
144
|
## Example Usage
|
|
147
145
|
|
|
148
|
-
<!--Start PulumiCodeChooser -->
|
|
149
146
|
```python
|
|
150
147
|
import pulumi
|
|
151
148
|
import pulumi_vsphere as vsphere
|
|
@@ -154,7 +151,6 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
154
151
|
pool = vsphere.get_resource_pool(name="resource-pool-01",
|
|
155
152
|
datacenter_id=datacenter.id)
|
|
156
153
|
```
|
|
157
|
-
<!--End PulumiCodeChooser -->
|
|
158
154
|
|
|
159
155
|
### Specifying the Root Resource Pool for a Standalone ESXi Host
|
|
160
156
|
|
|
@@ -163,22 +159,22 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
163
159
|
data source.
|
|
164
160
|
|
|
165
161
|
All compute resources in vSphere have a resource pool, even if one has not been
|
|
166
|
-
explicitly created. This resource pool is referred to as the
|
|
167
|
-
|
|
162
|
+
explicitly created. This resource pool is referred to as the _root resource
|
|
163
|
+
pool_ and can be looked up by specifying the path.
|
|
168
164
|
|
|
169
|
-
<!--Start PulumiCodeChooser -->
|
|
170
165
|
```python
|
|
171
166
|
import pulumi
|
|
172
167
|
import pulumi_vsphere as vsphere
|
|
173
168
|
|
|
174
169
|
pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources",
|
|
175
|
-
datacenter_id=
|
|
170
|
+
datacenter_id=datacenter["id"])
|
|
176
171
|
```
|
|
177
|
-
<!--End PulumiCodeChooser -->
|
|
178
172
|
|
|
179
|
-
For more information on the root resource pool, see
|
|
173
|
+
For more information on the root resource pool, see
|
|
174
|
+
[Managing Resource Pools][vmware-docs-resource-pools] in the vSphere
|
|
175
|
+
documentation.
|
|
180
176
|
|
|
181
|
-
[vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/
|
|
177
|
+
[vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-60077B40-66FF-4625-934A-641703ED7601.html
|
|
182
178
|
|
|
183
179
|
|
|
184
180
|
:param str datacenter_id: The managed object reference ID
|
pulumi_vsphere/get_role.py
CHANGED
|
@@ -95,19 +95,17 @@ def get_role(description: Optional[str] = None,
|
|
|
95
95
|
role_privileges: Optional[Sequence[str]] = None,
|
|
96
96
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRoleResult:
|
|
97
97
|
"""
|
|
98
|
-
The `Role` data source can be used to discover the `id` and privileges
|
|
99
|
-
with a role given its name or display label.
|
|
98
|
+
The `Role` data source can be used to discover the `id` and privileges
|
|
99
|
+
associated with a role given its name or display label.
|
|
100
100
|
|
|
101
101
|
## Example Usage
|
|
102
102
|
|
|
103
|
-
<!--Start PulumiCodeChooser -->
|
|
104
103
|
```python
|
|
105
104
|
import pulumi
|
|
106
105
|
import pulumi_vsphere as vsphere
|
|
107
106
|
|
|
108
107
|
terraform_role = vsphere.get_role(label="Terraform to vSphere Integration Role")
|
|
109
108
|
```
|
|
110
|
-
<!--End PulumiCodeChooser -->
|
|
111
109
|
|
|
112
110
|
|
|
113
111
|
:param str description: The description of the role.
|
|
@@ -137,19 +135,17 @@ def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
137
135
|
role_privileges: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
138
136
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRoleResult]:
|
|
139
137
|
"""
|
|
140
|
-
The `Role` data source can be used to discover the `id` and privileges
|
|
141
|
-
with a role given its name or display label.
|
|
138
|
+
The `Role` data source can be used to discover the `id` and privileges
|
|
139
|
+
associated with a role given its name or display label.
|
|
142
140
|
|
|
143
141
|
## Example Usage
|
|
144
142
|
|
|
145
|
-
<!--Start PulumiCodeChooser -->
|
|
146
143
|
```python
|
|
147
144
|
import pulumi
|
|
148
145
|
import pulumi_vsphere as vsphere
|
|
149
146
|
|
|
150
147
|
terraform_role = vsphere.get_role(label="Terraform to vSphere Integration Role")
|
|
151
148
|
```
|
|
152
|
-
<!--End PulumiCodeChooser -->
|
|
153
149
|
|
|
154
150
|
|
|
155
151
|
:param str description: The description of the role.
|
pulumi_vsphere/get_tag.py
CHANGED
|
@@ -86,7 +86,6 @@ def get_tag(category_id: Optional[str] = None,
|
|
|
86
86
|
|
|
87
87
|
## Example Usage
|
|
88
88
|
|
|
89
|
-
<!--Start PulumiCodeChooser -->
|
|
90
89
|
```python
|
|
91
90
|
import pulumi
|
|
92
91
|
import pulumi_vsphere as vsphere
|
|
@@ -95,7 +94,6 @@ def get_tag(category_id: Optional[str] = None,
|
|
|
95
94
|
tag = vsphere.get_tag(name="example-tag",
|
|
96
95
|
category_id=category.id)
|
|
97
96
|
```
|
|
98
|
-
<!--End PulumiCodeChooser -->
|
|
99
97
|
|
|
100
98
|
|
|
101
99
|
:param str category_id: The ID of the tag category in which the tag is
|
|
@@ -131,7 +129,6 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
|
|
|
131
129
|
|
|
132
130
|
## Example Usage
|
|
133
131
|
|
|
134
|
-
<!--Start PulumiCodeChooser -->
|
|
135
132
|
```python
|
|
136
133
|
import pulumi
|
|
137
134
|
import pulumi_vsphere as vsphere
|
|
@@ -140,7 +137,6 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
|
|
|
140
137
|
tag = vsphere.get_tag(name="example-tag",
|
|
141
138
|
category_id=category.id)
|
|
142
139
|
```
|
|
143
|
-
<!--End PulumiCodeChooser -->
|
|
144
140
|
|
|
145
141
|
|
|
146
142
|
:param str category_id: The ID of the tag category in which the tag is
|
|
@@ -94,14 +94,12 @@ def get_tag_category(name: Optional[str] = None,
|
|
|
94
94
|
|
|
95
95
|
## Example Usage
|
|
96
96
|
|
|
97
|
-
<!--Start PulumiCodeChooser -->
|
|
98
97
|
```python
|
|
99
98
|
import pulumi
|
|
100
99
|
import pulumi_vsphere as vsphere
|
|
101
100
|
|
|
102
101
|
category = vsphere.get_tag_category(name="example-category")
|
|
103
102
|
```
|
|
104
|
-
<!--End PulumiCodeChooser -->
|
|
105
103
|
|
|
106
104
|
|
|
107
105
|
:param str name: The name of the tag category.
|
|
@@ -134,14 +132,12 @@ def get_tag_category_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
134
132
|
|
|
135
133
|
## Example Usage
|
|
136
134
|
|
|
137
|
-
<!--Start PulumiCodeChooser -->
|
|
138
135
|
```python
|
|
139
136
|
import pulumi
|
|
140
137
|
import pulumi_vsphere as vsphere
|
|
141
138
|
|
|
142
139
|
category = vsphere.get_tag_category(name="example-category")
|
|
143
140
|
```
|
|
144
|
-
<!--End PulumiCodeChooser -->
|
|
145
141
|
|
|
146
142
|
|
|
147
143
|
:param str name: The name of the tag category.
|