pulumi-vsphere 4.11.0__py3-none-any.whl → 4.11.0a1710920591__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 +0 -28
- pulumi_vsphere/_inputs.py +236 -646
- pulumi_vsphere/_utilities.py +4 -40
- pulumi_vsphere/compute_cluster.py +1486 -756
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +34 -42
- pulumi_vsphere/content_library.py +10 -10
- pulumi_vsphere/datacenter.py +40 -33
- pulumi_vsphere/datastore_cluster.py +364 -154
- pulumi_vsphere/distributed_port_group.py +187 -131
- pulumi_vsphere/distributed_virtual_switch.py +828 -310
- pulumi_vsphere/entity_permissions.py +38 -59
- pulumi_vsphere/file.py +24 -16
- pulumi_vsphere/folder.py +28 -7
- pulumi_vsphere/get_compute_cluster.py +4 -0
- 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 +8 -12
- pulumi_vsphere/get_custom_attribute.py +4 -0
- pulumi_vsphere/get_datacenter.py +4 -0
- pulumi_vsphere/get_datastore.py +16 -12
- pulumi_vsphere/get_datastore_cluster.py +4 -0
- pulumi_vsphere/get_datastore_stats.py +52 -46
- pulumi_vsphere/get_distributed_virtual_switch.py +4 -2
- pulumi_vsphere/get_dynamic.py +20 -18
- pulumi_vsphere/get_folder.py +6 -10
- pulumi_vsphere/get_guest_os_customization.py +47 -8
- pulumi_vsphere/get_host.py +4 -0
- pulumi_vsphere/get_host_pci_device.py +14 -8
- pulumi_vsphere/get_host_thumbprint.py +16 -12
- pulumi_vsphere/get_host_vgpu_profile.py +10 -4
- pulumi_vsphere/get_license.py +5 -2
- pulumi_vsphere/get_network.py +18 -14
- pulumi_vsphere/get_policy.py +4 -0
- pulumi_vsphere/get_resource_pool.py +18 -14
- pulumi_vsphere/get_role.py +8 -4
- pulumi_vsphere/get_tag.py +4 -0
- pulumi_vsphere/get_tag_category.py +4 -0
- pulumi_vsphere/get_vapp_container.py +4 -0
- pulumi_vsphere/get_virtual_machine.py +43 -60
- pulumi_vsphere/get_vmfs_disks.py +4 -0
- pulumi_vsphere/guest_os_customization.py +5 -55
- pulumi_vsphere/ha_vm_override.py +378 -189
- pulumi_vsphere/host.py +60 -49
- pulumi_vsphere/host_port_group.py +26 -14
- pulumi_vsphere/host_virtual_switch.py +287 -140
- pulumi_vsphere/license.py +32 -0
- pulumi_vsphere/nas_datastore.py +7 -7
- pulumi_vsphere/outputs.py +270 -672
- pulumi_vsphere/provider.py +6 -2
- pulumi_vsphere/pulumi-plugin.json +1 -2
- pulumi_vsphere/resource_pool.py +24 -50
- pulumi_vsphere/virtual_disk.py +34 -42
- pulumi_vsphere/virtual_machine.py +827 -598
- pulumi_vsphere/virtual_machine_snapshot.py +12 -8
- pulumi_vsphere/vm_storage_policy.py +127 -115
- pulumi_vsphere/vnic.py +105 -89
- {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.11.0a1710920591.dist-info/RECORD +82 -0
- {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/WHEEL +1 -1
- pulumi_vsphere/get_host_base_images.py +0 -97
- pulumi_vsphere/offline_software_depot.py +0 -180
- pulumi_vsphere/supervisor.py +0 -962
- pulumi_vsphere/virtual_machine_class.py +0 -442
- pulumi_vsphere-4.11.0.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/top_level.txt +0 -0
|
@@ -106,6 +106,7 @@ 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 -->
|
|
109
110
|
```python
|
|
110
111
|
import pulumi
|
|
111
112
|
import pulumi_vsphere as vsphere
|
|
@@ -117,19 +118,22 @@ def get_host_pci_device(class_id: Optional[str] = None,
|
|
|
117
118
|
class_id="123",
|
|
118
119
|
vendor_id="456")
|
|
119
120
|
```
|
|
121
|
+
<!--End PulumiCodeChooser -->
|
|
120
122
|
|
|
121
123
|
### With Name Regular Expression
|
|
122
124
|
|
|
125
|
+
<!--Start PulumiCodeChooser -->
|
|
123
126
|
```python
|
|
124
127
|
import pulumi
|
|
125
128
|
import pulumi_vsphere as vsphere
|
|
126
129
|
|
|
127
130
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
128
131
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
129
|
-
|
|
132
|
+
datacenter_id=datacenter.id)
|
|
130
133
|
dev = vsphere.get_host_pci_device(host_id=host.id,
|
|
131
|
-
|
|
134
|
+
name_regex="MMC")
|
|
132
135
|
```
|
|
136
|
+
<!--End PulumiCodeChooser -->
|
|
133
137
|
|
|
134
138
|
|
|
135
139
|
:param str class_id: The hexadecimal PCI device class ID
|
|
@@ -137,8 +141,7 @@ def get_host_pci_device(class_id: Optional[str] = None,
|
|
|
137
141
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
138
142
|
|
|
139
143
|
> **NOTE:** `name_regex`, `vendor_id`, and `class_id` can all be used together.
|
|
140
|
-
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
141
|
-
a host.
|
|
144
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
142
145
|
:param str name_regex: A regular expression that will be used to match the
|
|
143
146
|
host PCI device name.
|
|
144
147
|
:param str vendor_id: The hexadecimal PCI device vendor ID.
|
|
@@ -175,6 +178,7 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
175
178
|
|
|
176
179
|
### With Vendor ID And Class ID
|
|
177
180
|
|
|
181
|
+
<!--Start PulumiCodeChooser -->
|
|
178
182
|
```python
|
|
179
183
|
import pulumi
|
|
180
184
|
import pulumi_vsphere as vsphere
|
|
@@ -186,19 +190,22 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
186
190
|
class_id="123",
|
|
187
191
|
vendor_id="456")
|
|
188
192
|
```
|
|
193
|
+
<!--End PulumiCodeChooser -->
|
|
189
194
|
|
|
190
195
|
### With Name Regular Expression
|
|
191
196
|
|
|
197
|
+
<!--Start PulumiCodeChooser -->
|
|
192
198
|
```python
|
|
193
199
|
import pulumi
|
|
194
200
|
import pulumi_vsphere as vsphere
|
|
195
201
|
|
|
196
202
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
197
203
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
198
|
-
|
|
204
|
+
datacenter_id=datacenter.id)
|
|
199
205
|
dev = vsphere.get_host_pci_device(host_id=host.id,
|
|
200
|
-
|
|
206
|
+
name_regex="MMC")
|
|
201
207
|
```
|
|
208
|
+
<!--End PulumiCodeChooser -->
|
|
202
209
|
|
|
203
210
|
|
|
204
211
|
:param str class_id: The hexadecimal PCI device class ID
|
|
@@ -206,8 +213,7 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
206
213
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
207
214
|
|
|
208
215
|
> **NOTE:** `name_regex`, `vendor_id`, and `class_id` can all be used together.
|
|
209
|
-
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
210
|
-
a host.
|
|
216
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
211
217
|
:param str name_regex: A regular expression that will be used to match the
|
|
212
218
|
host PCI device name.
|
|
213
219
|
:param str vendor_id: The hexadecimal PCI device vendor ID.
|
|
@@ -76,23 +76,25 @@ 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
|
-
of an ESXi host. This can be used when adding the `Host`
|
|
81
|
-
the ESXi host is using a certificate chain, the first one returned
|
|
82
|
-
to generate the thumbprint.
|
|
79
|
+
The `vsphere_thumbprint` data source can be used to discover the host
|
|
80
|
+
thumbprint of an ESXi host. This can be used when adding the `Host`
|
|
81
|
+
resource. If the ESXi host is using a certificate chain, the first one returned
|
|
82
|
+
will be used to generate the thumbprint.
|
|
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
|
-
:param str address: The address of the ESXi host to retrieve the
|
|
95
|
-
from.
|
|
96
|
+
:param str address: The address of the ESXi host to retrieve the
|
|
97
|
+
thumbprint from.
|
|
96
98
|
:param bool insecure: Disables SSL certificate verification.
|
|
97
99
|
Default: `false`
|
|
98
100
|
:param str port: The port to use connecting to the ESXi host. Default: 443
|
|
@@ -117,23 +119,25 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
|
|
|
117
119
|
port: Optional[pulumi.Input[Optional[str]]] = None,
|
|
118
120
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostThumbprintResult]:
|
|
119
121
|
"""
|
|
120
|
-
The `vsphere_thumbprint` data source can be used to discover the host
|
|
121
|
-
of an ESXi host. This can be used when adding the `Host`
|
|
122
|
-
the ESXi host is using a certificate chain, the first one returned
|
|
123
|
-
to generate the thumbprint.
|
|
122
|
+
The `vsphere_thumbprint` data source can be used to discover the host
|
|
123
|
+
thumbprint of an ESXi host. This can be used when adding the `Host`
|
|
124
|
+
resource. If the ESXi host is using a certificate chain, the first one returned
|
|
125
|
+
will be used to generate the thumbprint.
|
|
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
|
-
:param str address: The address of the ESXi host to retrieve the
|
|
136
|
-
from.
|
|
139
|
+
:param str address: The address of the ESXi host to retrieve the
|
|
140
|
+
thumbprint from.
|
|
137
141
|
:param bool insecure: Disables SSL certificate verification.
|
|
138
142
|
Default: `false`
|
|
139
143
|
:param str port: The port to use connecting to the ESXi host. Default: 443
|
|
@@ -94,6 +94,7 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
|
|
|
94
94
|
|
|
95
95
|
### To Return All VGPU Profiles
|
|
96
96
|
|
|
97
|
+
<!--Start PulumiCodeChooser -->
|
|
97
98
|
```python
|
|
98
99
|
import pulumi
|
|
99
100
|
import pulumi_vsphere as vsphere
|
|
@@ -103,9 +104,11 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
|
|
|
103
104
|
datacenter_id=datacenter.id)
|
|
104
105
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id)
|
|
105
106
|
```
|
|
107
|
+
<!--End PulumiCodeChooser -->
|
|
106
108
|
|
|
107
109
|
### With VGPU Profile Name_regex
|
|
108
110
|
|
|
111
|
+
<!--Start PulumiCodeChooser -->
|
|
109
112
|
```python
|
|
110
113
|
import pulumi
|
|
111
114
|
import pulumi_vsphere as vsphere
|
|
@@ -116,10 +119,10 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
|
|
|
116
119
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id,
|
|
117
120
|
name_regex="a100")
|
|
118
121
|
```
|
|
122
|
+
<!--End PulumiCodeChooser -->
|
|
119
123
|
|
|
120
124
|
|
|
121
|
-
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
122
|
-
a host.
|
|
125
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
123
126
|
:param str name_regex: A regular expression that will be used to match the
|
|
124
127
|
host vGPU profile name.
|
|
125
128
|
|
|
@@ -150,6 +153,7 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
|
150
153
|
|
|
151
154
|
### To Return All VGPU Profiles
|
|
152
155
|
|
|
156
|
+
<!--Start PulumiCodeChooser -->
|
|
153
157
|
```python
|
|
154
158
|
import pulumi
|
|
155
159
|
import pulumi_vsphere as vsphere
|
|
@@ -159,9 +163,11 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
|
159
163
|
datacenter_id=datacenter.id)
|
|
160
164
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id)
|
|
161
165
|
```
|
|
166
|
+
<!--End PulumiCodeChooser -->
|
|
162
167
|
|
|
163
168
|
### With VGPU Profile Name_regex
|
|
164
169
|
|
|
170
|
+
<!--Start PulumiCodeChooser -->
|
|
165
171
|
```python
|
|
166
172
|
import pulumi
|
|
167
173
|
import pulumi_vsphere as vsphere
|
|
@@ -172,10 +178,10 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
|
172
178
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id,
|
|
173
179
|
name_regex="a100")
|
|
174
180
|
```
|
|
181
|
+
<!--End PulumiCodeChooser -->
|
|
175
182
|
|
|
176
183
|
|
|
177
|
-
:param str host_id: The [managed object reference ID][docs-about-morefs] of
|
|
178
|
-
a host.
|
|
184
|
+
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
179
185
|
:param str name_regex: A regular expression that will be used to match the
|
|
180
186
|
host vGPU profile name.
|
|
181
187
|
|
pulumi_vsphere/get_license.py
CHANGED
|
@@ -61,8 +61,7 @@ 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
|
|
65
|
-
key.
|
|
64
|
+
A map of key/value pairs attached as labels (tags) to the license key.
|
|
66
65
|
"""
|
|
67
66
|
return pulumi.get(self, "labels")
|
|
68
67
|
|
|
@@ -119,12 +118,14 @@ def get_license(license_key: Optional[str] = None,
|
|
|
119
118
|
|
|
120
119
|
## Example Usage
|
|
121
120
|
|
|
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 -->
|
|
128
129
|
|
|
129
130
|
|
|
130
131
|
:param str license_key: The license key.
|
|
@@ -153,12 +154,14 @@ def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
|
|
|
153
154
|
|
|
154
155
|
## Example Usage
|
|
155
156
|
|
|
157
|
+
<!--Start PulumiCodeChooser -->
|
|
156
158
|
```python
|
|
157
159
|
import pulumi
|
|
158
160
|
import pulumi_vsphere as vsphere
|
|
159
161
|
|
|
160
162
|
license = vsphere.get_license(license_key="00000-00000-00000-00000-00000")
|
|
161
163
|
```
|
|
164
|
+
<!--End PulumiCodeChooser -->
|
|
162
165
|
|
|
163
166
|
|
|
164
167
|
:param str license_key: The license key.
|
pulumi_vsphere/get_network.py
CHANGED
|
@@ -91,14 +91,15 @@ 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
|
-
vSphere. This can be any network that can be used as the backing for a
|
|
96
|
-
interface for `VirtualMachine` or any other vSphere resource
|
|
97
|
-
requires a network. This includes standard (host-based) port groups,
|
|
98
|
-
port groups, or opaque networks such as those managed by NSX.
|
|
94
|
+
The `get_network` data source can be used to discover the ID of a network
|
|
95
|
+
in vSphere. This can be any network that can be used as the backing for a
|
|
96
|
+
network interface for `VirtualMachine` or any other vSphere resource
|
|
97
|
+
that requires a network. This includes standard (host-based) port groups,
|
|
98
|
+
distributed port groups, or opaque networks such as those managed by NSX.
|
|
99
99
|
|
|
100
100
|
## Example Usage
|
|
101
101
|
|
|
102
|
+
<!--Start PulumiCodeChooser -->
|
|
102
103
|
```python
|
|
103
104
|
import pulumi
|
|
104
105
|
import pulumi_vsphere as vsphere
|
|
@@ -107,6 +108,7 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
107
108
|
network = vsphere.get_network(name="VM Network",
|
|
108
109
|
datacenter_id=datacenter.id)
|
|
109
110
|
```
|
|
111
|
+
<!--End PulumiCodeChooser -->
|
|
110
112
|
|
|
111
113
|
|
|
112
114
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -115,8 +117,8 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
115
117
|
use the `id` attribute from an empty `Datacenter` data source.
|
|
116
118
|
:param str distributed_virtual_switch_uuid: For distributed port group type
|
|
117
119
|
network objects, the ID of the distributed virtual switch for which the port
|
|
118
|
-
group belongs. It is useful to differentiate port groups with same name
|
|
119
|
-
the distributed virtual switch ID.
|
|
120
|
+
group belongs. It is useful to differentiate port groups with same name
|
|
121
|
+
using the distributed virtual switch ID.
|
|
120
122
|
:param str name: The name of the network. This can be a name or path.
|
|
121
123
|
"""
|
|
122
124
|
__args__ = dict()
|
|
@@ -140,14 +142,15 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
140
142
|
name: Optional[pulumi.Input[str]] = None,
|
|
141
143
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNetworkResult]:
|
|
142
144
|
"""
|
|
143
|
-
The `get_network` data source can be used to discover the ID of a network
|
|
144
|
-
vSphere. This can be any network that can be used as the backing for a
|
|
145
|
-
interface for `VirtualMachine` or any other vSphere resource
|
|
146
|
-
requires a network. This includes standard (host-based) port groups,
|
|
147
|
-
port groups, or opaque networks such as those managed by NSX.
|
|
145
|
+
The `get_network` data source can be used to discover the ID of a network
|
|
146
|
+
in vSphere. This can be any network that can be used as the backing for a
|
|
147
|
+
network interface for `VirtualMachine` or any other vSphere resource
|
|
148
|
+
that requires a network. This includes standard (host-based) port groups,
|
|
149
|
+
distributed port groups, or opaque networks such as those managed by NSX.
|
|
148
150
|
|
|
149
151
|
## Example Usage
|
|
150
152
|
|
|
153
|
+
<!--Start PulumiCodeChooser -->
|
|
151
154
|
```python
|
|
152
155
|
import pulumi
|
|
153
156
|
import pulumi_vsphere as vsphere
|
|
@@ -156,6 +159,7 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
156
159
|
network = vsphere.get_network(name="VM Network",
|
|
157
160
|
datacenter_id=datacenter.id)
|
|
158
161
|
```
|
|
162
|
+
<!--End PulumiCodeChooser -->
|
|
159
163
|
|
|
160
164
|
|
|
161
165
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -164,8 +168,8 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
164
168
|
use the `id` attribute from an empty `Datacenter` data source.
|
|
165
169
|
:param str distributed_virtual_switch_uuid: For distributed port group type
|
|
166
170
|
network objects, the ID of the distributed virtual switch for which the port
|
|
167
|
-
group belongs. It is useful to differentiate port groups with same name
|
|
168
|
-
the distributed virtual switch ID.
|
|
171
|
+
group belongs. It is useful to differentiate port groups with same name
|
|
172
|
+
using the distributed virtual switch ID.
|
|
169
173
|
:param str name: The name of the network. This can be a name or path.
|
|
170
174
|
"""
|
|
171
175
|
...
|
pulumi_vsphere/get_policy.py
CHANGED
|
@@ -65,6 +65,7 @@ def get_policy(name: Optional[str] = None,
|
|
|
65
65
|
|
|
66
66
|
## Example Usage
|
|
67
67
|
|
|
68
|
+
<!--Start PulumiCodeChooser -->
|
|
68
69
|
```python
|
|
69
70
|
import pulumi
|
|
70
71
|
import pulumi_vsphere as vsphere
|
|
@@ -72,6 +73,7 @@ def get_policy(name: Optional[str] = None,
|
|
|
72
73
|
prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated")
|
|
73
74
|
dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated")
|
|
74
75
|
```
|
|
76
|
+
<!--End PulumiCodeChooser -->
|
|
75
77
|
|
|
76
78
|
|
|
77
79
|
:param str name: The name of the storage policy.
|
|
@@ -99,6 +101,7 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
99
101
|
|
|
100
102
|
## Example Usage
|
|
101
103
|
|
|
104
|
+
<!--Start PulumiCodeChooser -->
|
|
102
105
|
```python
|
|
103
106
|
import pulumi
|
|
104
107
|
import pulumi_vsphere as vsphere
|
|
@@ -106,6 +109,7 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
106
109
|
prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated")
|
|
107
110
|
dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated")
|
|
108
111
|
```
|
|
112
|
+
<!--End PulumiCodeChooser -->
|
|
109
113
|
|
|
110
114
|
|
|
111
115
|
:param str name: The name of the storage policy.
|
|
@@ -73,6 +73,7 @@ def get_resource_pool(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_resource_pool(datacenter_id: Optional[str] = None,
|
|
|
81
82
|
pool = vsphere.get_resource_pool(name="resource-pool-01",
|
|
82
83
|
datacenter_id=datacenter.id)
|
|
83
84
|
```
|
|
85
|
+
<!--End PulumiCodeChooser -->
|
|
84
86
|
|
|
85
87
|
### Specifying the Root Resource Pool for a Standalone ESXi Host
|
|
86
88
|
|
|
@@ -89,22 +91,22 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
|
|
|
89
91
|
data source.
|
|
90
92
|
|
|
91
93
|
All compute resources in vSphere have a resource pool, even if one has not been
|
|
92
|
-
explicitly created. This resource pool is referred to as the
|
|
93
|
-
pool_ and can be looked up by specifying the path.
|
|
94
|
+
explicitly created. This resource pool is referred to as the
|
|
95
|
+
_root resource pool_ and can be looked up by specifying the path.
|
|
94
96
|
|
|
97
|
+
<!--Start PulumiCodeChooser -->
|
|
95
98
|
```python
|
|
96
99
|
import pulumi
|
|
97
100
|
import pulumi_vsphere as vsphere
|
|
98
101
|
|
|
99
102
|
pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources",
|
|
100
|
-
datacenter_id=datacenter["id"])
|
|
103
|
+
datacenter_id=data["vsphere_datacenter"]["datacenter"]["id"])
|
|
101
104
|
```
|
|
105
|
+
<!--End PulumiCodeChooser -->
|
|
102
106
|
|
|
103
|
-
For more information on the root resource pool, see
|
|
104
|
-
[Managing Resource Pools][vmware-docs-resource-pools] in the vSphere
|
|
105
|
-
documentation.
|
|
107
|
+
For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
|
|
106
108
|
|
|
107
|
-
[vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/
|
|
109
|
+
[vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html
|
|
108
110
|
|
|
109
111
|
|
|
110
112
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -143,6 +145,7 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
143
145
|
|
|
144
146
|
## Example Usage
|
|
145
147
|
|
|
148
|
+
<!--Start PulumiCodeChooser -->
|
|
146
149
|
```python
|
|
147
150
|
import pulumi
|
|
148
151
|
import pulumi_vsphere as vsphere
|
|
@@ -151,6 +154,7 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
151
154
|
pool = vsphere.get_resource_pool(name="resource-pool-01",
|
|
152
155
|
datacenter_id=datacenter.id)
|
|
153
156
|
```
|
|
157
|
+
<!--End PulumiCodeChooser -->
|
|
154
158
|
|
|
155
159
|
### Specifying the Root Resource Pool for a Standalone ESXi Host
|
|
156
160
|
|
|
@@ -159,22 +163,22 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
159
163
|
data source.
|
|
160
164
|
|
|
161
165
|
All compute resources in vSphere have a resource pool, even if one has not been
|
|
162
|
-
explicitly created. This resource pool is referred to as the
|
|
163
|
-
pool_ and can be looked up by specifying the path.
|
|
166
|
+
explicitly created. This resource pool is referred to as the
|
|
167
|
+
_root resource pool_ and can be looked up by specifying the path.
|
|
164
168
|
|
|
169
|
+
<!--Start PulumiCodeChooser -->
|
|
165
170
|
```python
|
|
166
171
|
import pulumi
|
|
167
172
|
import pulumi_vsphere as vsphere
|
|
168
173
|
|
|
169
174
|
pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources",
|
|
170
|
-
datacenter_id=datacenter["id"])
|
|
175
|
+
datacenter_id=data["vsphere_datacenter"]["datacenter"]["id"])
|
|
171
176
|
```
|
|
177
|
+
<!--End PulumiCodeChooser -->
|
|
172
178
|
|
|
173
|
-
For more information on the root resource pool, see
|
|
174
|
-
[Managing Resource Pools][vmware-docs-resource-pools] in the vSphere
|
|
175
|
-
documentation.
|
|
179
|
+
For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation.
|
|
176
180
|
|
|
177
|
-
[vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/
|
|
181
|
+
[vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html
|
|
178
182
|
|
|
179
183
|
|
|
180
184
|
:param str datacenter_id: The managed object reference ID
|
pulumi_vsphere/get_role.py
CHANGED
|
@@ -95,17 +95,19 @@ 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
|
-
|
|
98
|
+
The `Role` data source can be used to discover the `id` and privileges associated
|
|
99
|
+
with a role given its name or display label.
|
|
100
100
|
|
|
101
101
|
## Example Usage
|
|
102
102
|
|
|
103
|
+
<!--Start PulumiCodeChooser -->
|
|
103
104
|
```python
|
|
104
105
|
import pulumi
|
|
105
106
|
import pulumi_vsphere as vsphere
|
|
106
107
|
|
|
107
108
|
terraform_role = vsphere.get_role(label="Terraform to vSphere Integration Role")
|
|
108
109
|
```
|
|
110
|
+
<!--End PulumiCodeChooser -->
|
|
109
111
|
|
|
110
112
|
|
|
111
113
|
:param str description: The description of the role.
|
|
@@ -135,17 +137,19 @@ def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
135
137
|
role_privileges: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
136
138
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRoleResult]:
|
|
137
139
|
"""
|
|
138
|
-
The `Role` data source can be used to discover the `id` and privileges
|
|
139
|
-
|
|
140
|
+
The `Role` data source can be used to discover the `id` and privileges associated
|
|
141
|
+
with a role given its name or display label.
|
|
140
142
|
|
|
141
143
|
## Example Usage
|
|
142
144
|
|
|
145
|
+
<!--Start PulumiCodeChooser -->
|
|
143
146
|
```python
|
|
144
147
|
import pulumi
|
|
145
148
|
import pulumi_vsphere as vsphere
|
|
146
149
|
|
|
147
150
|
terraform_role = vsphere.get_role(label="Terraform to vSphere Integration Role")
|
|
148
151
|
```
|
|
152
|
+
<!--End PulumiCodeChooser -->
|
|
149
153
|
|
|
150
154
|
|
|
151
155
|
:param str description: The description of the role.
|
pulumi_vsphere/get_tag.py
CHANGED
|
@@ -86,6 +86,7 @@ def get_tag(category_id: Optional[str] = None,
|
|
|
86
86
|
|
|
87
87
|
## Example Usage
|
|
88
88
|
|
|
89
|
+
<!--Start PulumiCodeChooser -->
|
|
89
90
|
```python
|
|
90
91
|
import pulumi
|
|
91
92
|
import pulumi_vsphere as vsphere
|
|
@@ -94,6 +95,7 @@ def get_tag(category_id: Optional[str] = None,
|
|
|
94
95
|
tag = vsphere.get_tag(name="example-tag",
|
|
95
96
|
category_id=category.id)
|
|
96
97
|
```
|
|
98
|
+
<!--End PulumiCodeChooser -->
|
|
97
99
|
|
|
98
100
|
|
|
99
101
|
:param str category_id: The ID of the tag category in which the tag is
|
|
@@ -129,6 +131,7 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
|
|
|
129
131
|
|
|
130
132
|
## Example Usage
|
|
131
133
|
|
|
134
|
+
<!--Start PulumiCodeChooser -->
|
|
132
135
|
```python
|
|
133
136
|
import pulumi
|
|
134
137
|
import pulumi_vsphere as vsphere
|
|
@@ -137,6 +140,7 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
|
|
|
137
140
|
tag = vsphere.get_tag(name="example-tag",
|
|
138
141
|
category_id=category.id)
|
|
139
142
|
```
|
|
143
|
+
<!--End PulumiCodeChooser -->
|
|
140
144
|
|
|
141
145
|
|
|
142
146
|
:param str category_id: The ID of the tag category in which the tag is
|
|
@@ -94,12 +94,14 @@ def get_tag_category(name: Optional[str] = None,
|
|
|
94
94
|
|
|
95
95
|
## Example Usage
|
|
96
96
|
|
|
97
|
+
<!--Start PulumiCodeChooser -->
|
|
97
98
|
```python
|
|
98
99
|
import pulumi
|
|
99
100
|
import pulumi_vsphere as vsphere
|
|
100
101
|
|
|
101
102
|
category = vsphere.get_tag_category(name="example-category")
|
|
102
103
|
```
|
|
104
|
+
<!--End PulumiCodeChooser -->
|
|
103
105
|
|
|
104
106
|
|
|
105
107
|
:param str name: The name of the tag category.
|
|
@@ -132,12 +134,14 @@ def get_tag_category_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
132
134
|
|
|
133
135
|
## Example Usage
|
|
134
136
|
|
|
137
|
+
<!--Start PulumiCodeChooser -->
|
|
135
138
|
```python
|
|
136
139
|
import pulumi
|
|
137
140
|
import pulumi_vsphere as vsphere
|
|
138
141
|
|
|
139
142
|
category = vsphere.get_tag_category(name="example-category")
|
|
140
143
|
```
|
|
144
|
+
<!--End PulumiCodeChooser -->
|
|
141
145
|
|
|
142
146
|
|
|
143
147
|
:param str name: The name of the tag category.
|
|
@@ -73,6 +73,7 @@ def get_vapp_container(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_vapp_container(datacenter_id: Optional[str] = None,
|
|
|
81
82
|
pool = vsphere.get_vapp_container(name="vapp-container-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 ID
|
|
@@ -112,6 +114,7 @@ def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
|
112
114
|
|
|
113
115
|
## Example Usage
|
|
114
116
|
|
|
117
|
+
<!--Start PulumiCodeChooser -->
|
|
115
118
|
```python
|
|
116
119
|
import pulumi
|
|
117
120
|
import pulumi_vsphere as vsphere
|
|
@@ -120,6 +123,7 @@ def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
|
120
123
|
pool = vsphere.get_vapp_container(name="vapp-container-01",
|
|
121
124
|
datacenter_id=datacenter.id)
|
|
122
125
|
```
|
|
126
|
+
<!--End PulumiCodeChooser -->
|
|
123
127
|
|
|
124
128
|
|
|
125
129
|
:param str datacenter_id: The managed object reference ID
|