pulumi-vsphere 4.11.0a1713561492__py3-none-any.whl → 4.11.0a1713905355__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/_inputs.py +96 -232
- pulumi_vsphere/compute_cluster.py +700 -1477
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +0 -8
- pulumi_vsphere/datacenter.py +0 -8
- pulumi_vsphere/datastore_cluster.py +154 -350
- pulumi_vsphere/distributed_port_group.py +70 -175
- pulumi_vsphere/distributed_virtual_switch.py +308 -798
- pulumi_vsphere/file.py +0 -8
- pulumi_vsphere/get_compute_cluster.py +0 -4
- pulumi_vsphere/get_compute_cluster_host_group.py +0 -4
- pulumi_vsphere/get_content_library.py +0 -4
- pulumi_vsphere/get_custom_attribute.py +0 -4
- pulumi_vsphere/get_datacenter.py +0 -4
- pulumi_vsphere/get_datastore.py +0 -4
- pulumi_vsphere/get_datastore_cluster.py +0 -4
- pulumi_vsphere/get_datastore_stats.py +0 -8
- pulumi_vsphere/get_distributed_virtual_switch.py +0 -4
- pulumi_vsphere/get_dynamic.py +0 -4
- pulumi_vsphere/get_folder.py +0 -4
- pulumi_vsphere/get_guest_os_customization.py +0 -4
- pulumi_vsphere/get_host.py +0 -4
- pulumi_vsphere/get_host_pci_device.py +4 -12
- pulumi_vsphere/get_host_thumbprint.py +0 -4
- pulumi_vsphere/get_host_vgpu_profile.py +0 -8
- pulumi_vsphere/get_license.py +0 -4
- pulumi_vsphere/get_network.py +0 -4
- pulumi_vsphere/get_policy.py +0 -4
- pulumi_vsphere/get_resource_pool.py +0 -8
- pulumi_vsphere/get_role.py +0 -4
- 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 +0 -8
- pulumi_vsphere/get_vmfs_disks.py +0 -4
- pulumi_vsphere/guest_os_customization.py +0 -4
- pulumi_vsphere/ha_vm_override.py +189 -378
- pulumi_vsphere/host.py +0 -8
- pulumi_vsphere/host_port_group.py +0 -8
- pulumi_vsphere/host_virtual_switch.py +140 -287
- pulumi_vsphere/outputs.py +96 -232
- pulumi_vsphere/resource_pool.py +0 -12
- pulumi_vsphere/virtual_machine.py +599 -739
- pulumi_vsphere/virtual_machine_snapshot.py +0 -4
- pulumi_vsphere/vm_storage_policy.py +0 -12
- pulumi_vsphere/vnic.py +0 -8
- {pulumi_vsphere-4.11.0a1713561492.dist-info → pulumi_vsphere-4.11.0a1713905355.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.11.0a1713905355.dist-info/RECORD +82 -0
- pulumi_vsphere-4.11.0a1713561492.dist-info/RECORD +0 -82
- {pulumi_vsphere-4.11.0a1713561492.dist-info → pulumi_vsphere-4.11.0a1713905355.dist-info}/WHEEL +0 -0
- {pulumi_vsphere-4.11.0a1713561492.dist-info → pulumi_vsphere-4.11.0a1713905355.dist-info}/top_level.txt +0 -0
pulumi_vsphere/file.py
CHANGED
|
@@ -298,7 +298,6 @@ class File(pulumi.CustomResource):
|
|
|
298
298
|
|
|
299
299
|
### Uploading a File
|
|
300
300
|
|
|
301
|
-
<!--Start PulumiCodeChooser -->
|
|
302
301
|
```python
|
|
303
302
|
import pulumi
|
|
304
303
|
import pulumi_vsphere as vsphere
|
|
@@ -310,11 +309,9 @@ class File(pulumi.CustomResource):
|
|
|
310
309
|
destination_file="/my/dst/path/custom_ubuntu.vmdk",
|
|
311
310
|
create_directories=True)
|
|
312
311
|
```
|
|
313
|
-
<!--End PulumiCodeChooser -->
|
|
314
312
|
|
|
315
313
|
### Copying a File
|
|
316
314
|
|
|
317
|
-
<!--Start PulumiCodeChooser -->
|
|
318
315
|
```python
|
|
319
316
|
import pulumi
|
|
320
317
|
import pulumi_vsphere as vsphere
|
|
@@ -328,7 +325,6 @@ class File(pulumi.CustomResource):
|
|
|
328
325
|
destination_file="/my/dst/path/custom_ubuntu.vmdk",
|
|
329
326
|
create_directories=True)
|
|
330
327
|
```
|
|
331
|
-
<!--End PulumiCodeChooser -->
|
|
332
328
|
|
|
333
329
|
:param str resource_name: The name of the resource.
|
|
334
330
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -360,7 +356,6 @@ class File(pulumi.CustomResource):
|
|
|
360
356
|
|
|
361
357
|
### Uploading a File
|
|
362
358
|
|
|
363
|
-
<!--Start PulumiCodeChooser -->
|
|
364
359
|
```python
|
|
365
360
|
import pulumi
|
|
366
361
|
import pulumi_vsphere as vsphere
|
|
@@ -372,11 +367,9 @@ class File(pulumi.CustomResource):
|
|
|
372
367
|
destination_file="/my/dst/path/custom_ubuntu.vmdk",
|
|
373
368
|
create_directories=True)
|
|
374
369
|
```
|
|
375
|
-
<!--End PulumiCodeChooser -->
|
|
376
370
|
|
|
377
371
|
### Copying a File
|
|
378
372
|
|
|
379
|
-
<!--Start PulumiCodeChooser -->
|
|
380
373
|
```python
|
|
381
374
|
import pulumi
|
|
382
375
|
import pulumi_vsphere as vsphere
|
|
@@ -390,7 +383,6 @@ class File(pulumi.CustomResource):
|
|
|
390
383
|
destination_file="/my/dst/path/custom_ubuntu.vmdk",
|
|
391
384
|
create_directories=True)
|
|
392
385
|
```
|
|
393
|
-
<!--End PulumiCodeChooser -->
|
|
394
386
|
|
|
395
387
|
:param str resource_name: The name of the resource.
|
|
396
388
|
:param FileArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -91,7 +91,6 @@ def get_compute_cluster(datacenter_id: Optional[str] = None,
|
|
|
91
91
|
|
|
92
92
|
## Example Usage
|
|
93
93
|
|
|
94
|
-
<!--Start PulumiCodeChooser -->
|
|
95
94
|
```python
|
|
96
95
|
import pulumi
|
|
97
96
|
import pulumi_vsphere as vsphere
|
|
@@ -100,7 +99,6 @@ def get_compute_cluster(datacenter_id: Optional[str] = None,
|
|
|
100
99
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
101
100
|
datacenter_id=datacenter.id)
|
|
102
101
|
```
|
|
103
|
-
<!--End PulumiCodeChooser -->
|
|
104
102
|
|
|
105
103
|
|
|
106
104
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -139,7 +137,6 @@ def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str
|
|
|
139
137
|
|
|
140
138
|
## Example Usage
|
|
141
139
|
|
|
142
|
-
<!--Start PulumiCodeChooser -->
|
|
143
140
|
```python
|
|
144
141
|
import pulumi
|
|
145
142
|
import pulumi_vsphere as vsphere
|
|
@@ -148,7 +145,6 @@ def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str
|
|
|
148
145
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
149
146
|
datacenter_id=datacenter.id)
|
|
150
147
|
```
|
|
151
|
-
<!--End PulumiCodeChooser -->
|
|
152
148
|
|
|
153
149
|
|
|
154
150
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -85,7 +85,6 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None,
|
|
|
85
85
|
|
|
86
86
|
## Example Usage
|
|
87
87
|
|
|
88
|
-
<!--Start PulumiCodeChooser -->
|
|
89
88
|
```python
|
|
90
89
|
import pulumi
|
|
91
90
|
import pulumi_vsphere as vsphere
|
|
@@ -101,7 +100,6 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None,
|
|
|
101
100
|
vm_group_name="vm_group1",
|
|
102
101
|
affinity_host_group_name=host_group1.name)
|
|
103
102
|
```
|
|
104
|
-
<!--End PulumiCodeChooser -->
|
|
105
103
|
|
|
106
104
|
|
|
107
105
|
:param str compute_cluster_id: The [managed object reference ID][docs-about-morefs]
|
|
@@ -134,7 +132,6 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
|
|
|
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
|
|
@@ -150,7 +147,6 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
|
|
|
150
147
|
vm_group_name="vm_group1",
|
|
151
148
|
affinity_host_group_name=host_group1.name)
|
|
152
149
|
```
|
|
153
|
-
<!--End PulumiCodeChooser -->
|
|
154
150
|
|
|
155
151
|
|
|
156
152
|
:param str compute_cluster_id: The [managed object reference ID][docs-about-morefs]
|
|
@@ -62,14 +62,12 @@ def get_content_library(name: Optional[str] = None,
|
|
|
62
62
|
|
|
63
63
|
## Example Usage
|
|
64
64
|
|
|
65
|
-
<!--Start PulumiCodeChooser -->
|
|
66
65
|
```python
|
|
67
66
|
import pulumi
|
|
68
67
|
import pulumi_vsphere as vsphere
|
|
69
68
|
|
|
70
69
|
library = vsphere.get_content_library(name="Content Library")
|
|
71
70
|
```
|
|
72
|
-
<!--End PulumiCodeChooser -->
|
|
73
71
|
|
|
74
72
|
|
|
75
73
|
:param str name: The name of the content library.
|
|
@@ -94,14 +92,12 @@ def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
94
92
|
|
|
95
93
|
## Example Usage
|
|
96
94
|
|
|
97
|
-
<!--Start PulumiCodeChooser -->
|
|
98
95
|
```python
|
|
99
96
|
import pulumi
|
|
100
97
|
import pulumi_vsphere as vsphere
|
|
101
98
|
|
|
102
99
|
library = vsphere.get_content_library(name="Content Library")
|
|
103
100
|
```
|
|
104
|
-
<!--End PulumiCodeChooser -->
|
|
105
101
|
|
|
106
102
|
|
|
107
103
|
:param str name: The name of the content library.
|
|
@@ -76,14 +76,12 @@ def get_custom_attribute(name: Optional[str] = None,
|
|
|
76
76
|
|
|
77
77
|
## Example Usage
|
|
78
78
|
|
|
79
|
-
<!--Start PulumiCodeChooser -->
|
|
80
79
|
```python
|
|
81
80
|
import pulumi
|
|
82
81
|
import pulumi_vsphere as vsphere
|
|
83
82
|
|
|
84
83
|
attribute = vsphere.get_custom_attribute(name="test-attribute")
|
|
85
84
|
```
|
|
86
|
-
<!--End PulumiCodeChooser -->
|
|
87
85
|
|
|
88
86
|
|
|
89
87
|
:param str name: The name of the custom attribute.
|
|
@@ -114,14 +112,12 @@ def get_custom_attribute_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
114
112
|
|
|
115
113
|
## Example Usage
|
|
116
114
|
|
|
117
|
-
<!--Start PulumiCodeChooser -->
|
|
118
115
|
```python
|
|
119
116
|
import pulumi
|
|
120
117
|
import pulumi_vsphere as vsphere
|
|
121
118
|
|
|
122
119
|
attribute = vsphere.get_custom_attribute(name="test-attribute")
|
|
123
120
|
```
|
|
124
|
-
<!--End PulumiCodeChooser -->
|
|
125
121
|
|
|
126
122
|
|
|
127
123
|
:param str name: The name of the custom attribute.
|
pulumi_vsphere/get_datacenter.py
CHANGED
|
@@ -63,14 +63,12 @@ def get_datacenter(name: Optional[str] = None,
|
|
|
63
63
|
|
|
64
64
|
## Example Usage
|
|
65
65
|
|
|
66
|
-
<!--Start PulumiCodeChooser -->
|
|
67
66
|
```python
|
|
68
67
|
import pulumi
|
|
69
68
|
import pulumi_vsphere as vsphere
|
|
70
69
|
|
|
71
70
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
72
71
|
```
|
|
73
|
-
<!--End PulumiCodeChooser -->
|
|
74
72
|
|
|
75
73
|
|
|
76
74
|
:param str name: The name of the datacenter. This can be a name or path.
|
|
@@ -102,14 +100,12 @@ def get_datacenter_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
102
100
|
|
|
103
101
|
## Example Usage
|
|
104
102
|
|
|
105
|
-
<!--Start PulumiCodeChooser -->
|
|
106
103
|
```python
|
|
107
104
|
import pulumi
|
|
108
105
|
import pulumi_vsphere as vsphere
|
|
109
106
|
|
|
110
107
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
111
108
|
```
|
|
112
|
-
<!--End PulumiCodeChooser -->
|
|
113
109
|
|
|
114
110
|
|
|
115
111
|
:param str name: The name of the datacenter. This can be a name or path.
|
pulumi_vsphere/get_datastore.py
CHANGED
|
@@ -88,7 +88,6 @@ def get_datastore(datacenter_id: Optional[str] = None,
|
|
|
88
88
|
|
|
89
89
|
## Example Usage
|
|
90
90
|
|
|
91
|
-
<!--Start PulumiCodeChooser -->
|
|
92
91
|
```python
|
|
93
92
|
import pulumi
|
|
94
93
|
import pulumi_vsphere as vsphere
|
|
@@ -97,7 +96,6 @@ def get_datastore(datacenter_id: Optional[str] = None,
|
|
|
97
96
|
datastore = vsphere.get_datastore(name="datastore-01",
|
|
98
97
|
datacenter_id=datacenter.id)
|
|
99
98
|
```
|
|
100
|
-
<!--End PulumiCodeChooser -->
|
|
101
99
|
|
|
102
100
|
|
|
103
101
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -136,7 +134,6 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
136
134
|
|
|
137
135
|
## Example Usage
|
|
138
136
|
|
|
139
|
-
<!--Start PulumiCodeChooser -->
|
|
140
137
|
```python
|
|
141
138
|
import pulumi
|
|
142
139
|
import pulumi_vsphere as vsphere
|
|
@@ -145,7 +142,6 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
145
142
|
datastore = vsphere.get_datastore(name="datastore-01",
|
|
146
143
|
datacenter_id=datacenter.id)
|
|
147
144
|
```
|
|
148
|
-
<!--End PulumiCodeChooser -->
|
|
149
145
|
|
|
150
146
|
|
|
151
147
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -73,7 +73,6 @@ def get_datastore_cluster(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_datastore_cluster(datacenter_id: Optional[str] = None,
|
|
|
82
81
|
datastore_cluster = vsphere.get_datastore_cluster(name="datastore-cluster-01",
|
|
83
82
|
datacenter_id=datacenter.id)
|
|
84
83
|
```
|
|
85
|
-
<!--End PulumiCodeChooser -->
|
|
86
84
|
|
|
87
85
|
|
|
88
86
|
:param str datacenter_id: The managed object reference
|
|
@@ -116,7 +114,6 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s
|
|
|
116
114
|
|
|
117
115
|
## Example Usage
|
|
118
116
|
|
|
119
|
-
<!--Start PulumiCodeChooser -->
|
|
120
117
|
```python
|
|
121
118
|
import pulumi
|
|
122
119
|
import pulumi_vsphere as vsphere
|
|
@@ -125,7 +122,6 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s
|
|
|
125
122
|
datastore_cluster = vsphere.get_datastore_cluster(name="datastore-cluster-01",
|
|
126
123
|
datacenter_id=datacenter.id)
|
|
127
124
|
```
|
|
128
|
-
<!--End PulumiCodeChooser -->
|
|
129
125
|
|
|
130
126
|
|
|
131
127
|
:param str datacenter_id: The managed object reference
|
|
@@ -95,7 +95,6 @@ def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
|
|
|
95
95
|
|
|
96
96
|
## Example Usage
|
|
97
97
|
|
|
98
|
-
<!--Start PulumiCodeChooser -->
|
|
99
98
|
```python
|
|
100
99
|
import pulumi
|
|
101
100
|
import pulumi_vsphere as vsphere
|
|
@@ -103,7 +102,6 @@ def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
|
|
|
103
102
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
104
103
|
datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
|
|
105
104
|
```
|
|
106
|
-
<!--End PulumiCodeChooser -->
|
|
107
105
|
|
|
108
106
|
A usefull example of this datasource would be to determine the
|
|
109
107
|
datastore with the most free space. For example, in addition to
|
|
@@ -111,14 +109,12 @@ def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
|
|
|
111
109
|
|
|
112
110
|
Create an `outputs.tf` like that:
|
|
113
111
|
|
|
114
|
-
<!--Start PulumiCodeChooser -->
|
|
115
112
|
```python
|
|
116
113
|
import pulumi
|
|
117
114
|
|
|
118
115
|
pulumi.export("maxFreeSpaceName", their_max_free_space_name)
|
|
119
116
|
pulumi.export("maxFreeSpace", their_max_free_space)
|
|
120
117
|
```
|
|
121
|
-
<!--End PulumiCodeChooser -->
|
|
122
118
|
|
|
123
119
|
and a `locals.tf` like that:
|
|
124
120
|
|
|
@@ -160,7 +156,6 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
|
|
|
160
156
|
|
|
161
157
|
## Example Usage
|
|
162
158
|
|
|
163
|
-
<!--Start PulumiCodeChooser -->
|
|
164
159
|
```python
|
|
165
160
|
import pulumi
|
|
166
161
|
import pulumi_vsphere as vsphere
|
|
@@ -168,7 +163,6 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
|
|
|
168
163
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
169
164
|
datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
|
|
170
165
|
```
|
|
171
|
-
<!--End PulumiCodeChooser -->
|
|
172
166
|
|
|
173
167
|
A usefull example of this datasource would be to determine the
|
|
174
168
|
datastore with the most free space. For example, in addition to
|
|
@@ -176,14 +170,12 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
|
|
|
176
170
|
|
|
177
171
|
Create an `outputs.tf` like that:
|
|
178
172
|
|
|
179
|
-
<!--Start PulumiCodeChooser -->
|
|
180
173
|
```python
|
|
181
174
|
import pulumi
|
|
182
175
|
|
|
183
176
|
pulumi.export("maxFreeSpaceName", their_max_free_space_name)
|
|
184
177
|
pulumi.export("maxFreeSpace", their_max_free_space)
|
|
185
178
|
```
|
|
186
|
-
<!--End PulumiCodeChooser -->
|
|
187
179
|
|
|
188
180
|
and a `locals.tf` like that:
|
|
189
181
|
|
|
@@ -97,7 +97,6 @@ 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 -->
|
|
101
100
|
```python
|
|
102
101
|
import pulumi
|
|
103
102
|
import pulumi_vsphere as vsphere
|
|
@@ -111,7 +110,6 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
|
|
|
111
110
|
active_uplinks=[vds.uplinks[0]],
|
|
112
111
|
standby_uplinks=[vds.uplinks[1]])
|
|
113
112
|
```
|
|
114
|
-
<!--End PulumiCodeChooser -->
|
|
115
113
|
|
|
116
114
|
|
|
117
115
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -154,7 +152,6 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
|
|
|
154
152
|
`DistributedPortGroup` resource that uses the first uplink as a
|
|
155
153
|
primary uplink and the second uplink as a secondary.
|
|
156
154
|
|
|
157
|
-
<!--Start PulumiCodeChooser -->
|
|
158
155
|
```python
|
|
159
156
|
import pulumi
|
|
160
157
|
import pulumi_vsphere as vsphere
|
|
@@ -168,7 +165,6 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
|
|
|
168
165
|
active_uplinks=[vds.uplinks[0]],
|
|
169
166
|
standby_uplinks=[vds.uplinks[1]])
|
|
170
167
|
```
|
|
171
|
-
<!--End PulumiCodeChooser -->
|
|
172
168
|
|
|
173
169
|
|
|
174
170
|
:param str datacenter_id: The managed object reference ID
|
pulumi_vsphere/get_dynamic.py
CHANGED
|
@@ -84,7 +84,6 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
|
|
|
84
84
|
|
|
85
85
|
## Example Usage
|
|
86
86
|
|
|
87
|
-
<!--Start PulumiCodeChooser -->
|
|
88
87
|
```python
|
|
89
88
|
import pulumi
|
|
90
89
|
import pulumi_vsphere as vsphere
|
|
@@ -101,7 +100,6 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
|
|
|
101
100
|
name_regex="ubuntu",
|
|
102
101
|
type="Datacenter")
|
|
103
102
|
```
|
|
104
|
-
<!--End PulumiCodeChooser -->
|
|
105
103
|
|
|
106
104
|
|
|
107
105
|
:param Sequence[str] filters: A list of tag IDs that must be present on an object to
|
|
@@ -140,7 +138,6 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
|
|
|
140
138
|
|
|
141
139
|
## Example Usage
|
|
142
140
|
|
|
143
|
-
<!--Start PulumiCodeChooser -->
|
|
144
141
|
```python
|
|
145
142
|
import pulumi
|
|
146
143
|
import pulumi_vsphere as vsphere
|
|
@@ -157,7 +154,6 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
|
|
|
157
154
|
name_regex="ubuntu",
|
|
158
155
|
type="Datacenter")
|
|
159
156
|
```
|
|
160
|
-
<!--End PulumiCodeChooser -->
|
|
161
157
|
|
|
162
158
|
|
|
163
159
|
:param Sequence[str] filters: A list of tag IDs that must be present on an object to
|
pulumi_vsphere/get_folder.py
CHANGED
|
@@ -61,14 +61,12 @@ def get_folder(path: Optional[str] = None,
|
|
|
61
61
|
|
|
62
62
|
## Example Usage
|
|
63
63
|
|
|
64
|
-
<!--Start PulumiCodeChooser -->
|
|
65
64
|
```python
|
|
66
65
|
import pulumi
|
|
67
66
|
import pulumi_vsphere as vsphere
|
|
68
67
|
|
|
69
68
|
folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
|
|
70
69
|
```
|
|
71
|
-
<!--End PulumiCodeChooser -->
|
|
72
70
|
|
|
73
71
|
|
|
74
72
|
:param str path: The absolute path of the folder. For example, given a
|
|
@@ -96,14 +94,12 @@ def get_folder_output(path: Optional[pulumi.Input[str]] = None,
|
|
|
96
94
|
|
|
97
95
|
## Example Usage
|
|
98
96
|
|
|
99
|
-
<!--Start PulumiCodeChooser -->
|
|
100
97
|
```python
|
|
101
98
|
import pulumi
|
|
102
99
|
import pulumi_vsphere as vsphere
|
|
103
100
|
|
|
104
101
|
folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
|
|
105
102
|
```
|
|
106
|
-
<!--End PulumiCodeChooser -->
|
|
107
103
|
|
|
108
104
|
|
|
109
105
|
:param str path: The absolute path of the folder. For example, given a
|
|
@@ -124,14 +124,12 @@ def get_guest_os_customization(name: Optional[str] = None,
|
|
|
124
124
|
|
|
125
125
|
## Example Usage
|
|
126
126
|
|
|
127
|
-
<!--Start PulumiCodeChooser -->
|
|
128
127
|
```python
|
|
129
128
|
import pulumi
|
|
130
129
|
import pulumi_vsphere as vsphere
|
|
131
130
|
|
|
132
131
|
gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
|
|
133
132
|
```
|
|
134
|
-
<!--End PulumiCodeChooser -->
|
|
135
133
|
|
|
136
134
|
|
|
137
135
|
:param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
@@ -162,14 +160,12 @@ def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
162
160
|
|
|
163
161
|
## Example Usage
|
|
164
162
|
|
|
165
|
-
<!--Start PulumiCodeChooser -->
|
|
166
163
|
```python
|
|
167
164
|
import pulumi
|
|
168
165
|
import pulumi_vsphere as vsphere
|
|
169
166
|
|
|
170
167
|
gosc1 = vsphere.get_guest_os_customization(name="linux-spec")
|
|
171
168
|
```
|
|
172
|
-
<!--End PulumiCodeChooser -->
|
|
173
169
|
|
|
174
170
|
|
|
175
171
|
:param str name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
pulumi_vsphere/get_host.py
CHANGED
|
@@ -85,7 +85,6 @@ def get_host(datacenter_id: Optional[str] = None,
|
|
|
85
85
|
|
|
86
86
|
## Example Usage
|
|
87
87
|
|
|
88
|
-
<!--Start PulumiCodeChooser -->
|
|
89
88
|
```python
|
|
90
89
|
import pulumi
|
|
91
90
|
import pulumi_vsphere as vsphere
|
|
@@ -94,7 +93,6 @@ def get_host(datacenter_id: Optional[str] = None,
|
|
|
94
93
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
95
94
|
datacenter_id=datacenter.id)
|
|
96
95
|
```
|
|
97
|
-
<!--End PulumiCodeChooser -->
|
|
98
96
|
|
|
99
97
|
|
|
100
98
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -129,7 +127,6 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
|
129
127
|
|
|
130
128
|
## Example Usage
|
|
131
129
|
|
|
132
|
-
<!--Start PulumiCodeChooser -->
|
|
133
130
|
```python
|
|
134
131
|
import pulumi
|
|
135
132
|
import pulumi_vsphere as vsphere
|
|
@@ -138,7 +135,6 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
|
138
135
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
139
136
|
datacenter_id=datacenter.id)
|
|
140
137
|
```
|
|
141
|
-
<!--End PulumiCodeChooser -->
|
|
142
138
|
|
|
143
139
|
|
|
144
140
|
:param str datacenter_id: The managed object reference ID
|
|
@@ -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
|
|
@@ -178,7 +174,6 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
178
174
|
|
|
179
175
|
### With Vendor ID And Class ID
|
|
180
176
|
|
|
181
|
-
<!--Start PulumiCodeChooser -->
|
|
182
177
|
```python
|
|
183
178
|
import pulumi
|
|
184
179
|
import pulumi_vsphere as vsphere
|
|
@@ -190,22 +185,19 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
190
185
|
class_id="123",
|
|
191
186
|
vendor_id="456")
|
|
192
187
|
```
|
|
193
|
-
<!--End PulumiCodeChooser -->
|
|
194
188
|
|
|
195
189
|
### With Name Regular Expression
|
|
196
190
|
|
|
197
|
-
<!--Start PulumiCodeChooser -->
|
|
198
191
|
```python
|
|
199
192
|
import pulumi
|
|
200
193
|
import pulumi_vsphere as vsphere
|
|
201
194
|
|
|
202
195
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
203
196
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
204
|
-
|
|
197
|
+
datacenter_id=datacenter.id)
|
|
205
198
|
dev = vsphere.get_host_pci_device(host_id=host.id,
|
|
206
|
-
|
|
199
|
+
name_regex="MMC")
|
|
207
200
|
```
|
|
208
|
-
<!--End PulumiCodeChooser -->
|
|
209
201
|
|
|
210
202
|
|
|
211
203
|
:param str class_id: The hexadecimal PCI device class ID
|
|
@@ -83,14 +83,12 @@ def get_host_thumbprint(address: Optional[str] = None,
|
|
|
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
94
|
:param str address: The address of the ESXi host to retrieve the
|
|
@@ -126,14 +124,12 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
|
|
|
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
135
|
:param str address: The address of the ESXi host to retrieve the
|
|
@@ -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,7 +116,6 @@ 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
121
|
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
|
@@ -153,7 +149,6 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
|
153
149
|
|
|
154
150
|
### To Return All VGPU Profiles
|
|
155
151
|
|
|
156
|
-
<!--Start PulumiCodeChooser -->
|
|
157
152
|
```python
|
|
158
153
|
import pulumi
|
|
159
154
|
import pulumi_vsphere as vsphere
|
|
@@ -163,11 +158,9 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
|
163
158
|
datacenter_id=datacenter.id)
|
|
164
159
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id)
|
|
165
160
|
```
|
|
166
|
-
<!--End PulumiCodeChooser -->
|
|
167
161
|
|
|
168
162
|
### With VGPU Profile Name_regex
|
|
169
163
|
|
|
170
|
-
<!--Start PulumiCodeChooser -->
|
|
171
164
|
```python
|
|
172
165
|
import pulumi
|
|
173
166
|
import pulumi_vsphere as vsphere
|
|
@@ -178,7 +171,6 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
|
|
|
178
171
|
vgpu_profile = vsphere.get_host_vgpu_profile(host_id=host.id,
|
|
179
172
|
name_regex="a100")
|
|
180
173
|
```
|
|
181
|
-
<!--End PulumiCodeChooser -->
|
|
182
174
|
|
|
183
175
|
|
|
184
176
|
:param str host_id: The [managed object reference ID][docs-about-morefs] of a host.
|
pulumi_vsphere/get_license.py
CHANGED
|
@@ -118,14 +118,12 @@ def get_license(license_key: Optional[str] = None,
|
|
|
118
118
|
|
|
119
119
|
## Example Usage
|
|
120
120
|
|
|
121
|
-
<!--Start PulumiCodeChooser -->
|
|
122
121
|
```python
|
|
123
122
|
import pulumi
|
|
124
123
|
import pulumi_vsphere as vsphere
|
|
125
124
|
|
|
126
125
|
license = vsphere.get_license(license_key="00000-00000-00000-00000-00000")
|
|
127
126
|
```
|
|
128
|
-
<!--End PulumiCodeChooser -->
|
|
129
127
|
|
|
130
128
|
|
|
131
129
|
:param str license_key: The license key.
|
|
@@ -154,14 +152,12 @@ def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
|
|
|
154
152
|
|
|
155
153
|
## Example Usage
|
|
156
154
|
|
|
157
|
-
<!--Start PulumiCodeChooser -->
|
|
158
155
|
```python
|
|
159
156
|
import pulumi
|
|
160
157
|
import pulumi_vsphere as vsphere
|
|
161
158
|
|
|
162
159
|
license = vsphere.get_license(license_key="00000-00000-00000-00000-00000")
|
|
163
160
|
```
|
|
164
|
-
<!--End PulumiCodeChooser -->
|
|
165
161
|
|
|
166
162
|
|
|
167
163
|
:param str license_key: The license key.
|