pulumi-vsphere 4.11.0a1__py3-none-any.whl → 4.11.0a1711033215__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-vsphere might be problematic. Click here for more details.

Files changed (58) hide show
  1. pulumi_vsphere/__init__.py +0 -28
  2. pulumi_vsphere/_inputs.py +230 -554
  3. pulumi_vsphere/compute_cluster.py +1477 -747
  4. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +16 -28
  5. pulumi_vsphere/datacenter.py +12 -26
  6. pulumi_vsphere/datastore_cluster.py +350 -154
  7. pulumi_vsphere/distributed_port_group.py +175 -70
  8. pulumi_vsphere/distributed_virtual_switch.py +805 -308
  9. pulumi_vsphere/file.py +24 -16
  10. pulumi_vsphere/folder.py +7 -7
  11. pulumi_vsphere/get_compute_cluster.py +4 -0
  12. pulumi_vsphere/get_compute_cluster_host_group.py +10 -8
  13. pulumi_vsphere/get_content_library.py +4 -0
  14. pulumi_vsphere/get_custom_attribute.py +4 -0
  15. pulumi_vsphere/get_datacenter.py +4 -0
  16. pulumi_vsphere/get_datastore.py +4 -0
  17. pulumi_vsphere/get_datastore_cluster.py +4 -0
  18. pulumi_vsphere/get_datastore_stats.py +12 -4
  19. pulumi_vsphere/get_distributed_virtual_switch.py +4 -2
  20. pulumi_vsphere/get_dynamic.py +8 -4
  21. pulumi_vsphere/get_folder.py +6 -10
  22. pulumi_vsphere/get_guest_os_customization.py +4 -0
  23. pulumi_vsphere/get_host.py +4 -0
  24. pulumi_vsphere/get_host_pci_device.py +12 -4
  25. pulumi_vsphere/get_host_thumbprint.py +4 -0
  26. pulumi_vsphere/get_host_vgpu_profile.py +8 -0
  27. pulumi_vsphere/get_license.py +4 -0
  28. pulumi_vsphere/get_network.py +4 -0
  29. pulumi_vsphere/get_policy.py +4 -0
  30. pulumi_vsphere/get_resource_pool.py +10 -2
  31. pulumi_vsphere/get_role.py +4 -0
  32. pulumi_vsphere/get_tag.py +4 -0
  33. pulumi_vsphere/get_tag_category.py +4 -0
  34. pulumi_vsphere/get_vapp_container.py +4 -0
  35. pulumi_vsphere/get_virtual_machine.py +8 -0
  36. pulumi_vsphere/get_vmfs_disks.py +4 -0
  37. pulumi_vsphere/guest_os_customization.py +0 -50
  38. pulumi_vsphere/ha_vm_override.py +378 -189
  39. pulumi_vsphere/host.py +20 -0
  40. pulumi_vsphere/host_port_group.py +24 -12
  41. pulumi_vsphere/host_virtual_switch.py +287 -140
  42. pulumi_vsphere/license.py +32 -0
  43. pulumi_vsphere/outputs.py +230 -543
  44. pulumi_vsphere/pulumi-plugin.json +1 -2
  45. pulumi_vsphere/resource_pool.py +22 -48
  46. pulumi_vsphere/virtual_machine.py +807 -578
  47. pulumi_vsphere/virtual_machine_snapshot.py +10 -6
  48. pulumi_vsphere/vm_storage_policy.py +84 -72
  49. pulumi_vsphere/vnic.py +20 -8
  50. {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1711033215.dist-info}/METADATA +1 -1
  51. pulumi_vsphere-4.11.0a1711033215.dist-info/RECORD +82 -0
  52. pulumi_vsphere/get_host_base_images.py +0 -97
  53. pulumi_vsphere/offline_software_depot.py +0 -180
  54. pulumi_vsphere/supervisor.py +0 -858
  55. pulumi_vsphere/virtual_machine_class.py +0 -440
  56. pulumi_vsphere-4.11.0a1.dist-info/RECORD +0 -86
  57. {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1711033215.dist-info}/WHEEL +0 -0
  58. {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1711033215.dist-info}/top_level.txt +0 -0
@@ -308,19 +308,21 @@ class VirtualMachineSnapshot(pulumi.CustomResource):
308
308
 
309
309
  ## Example Usage
310
310
 
311
+ <!--Start PulumiCodeChooser -->
311
312
  ```python
312
313
  import pulumi
313
314
  import pulumi_vsphere as vsphere
314
315
 
315
316
  demo1 = vsphere.VirtualMachineSnapshot("demo1",
316
- virtual_machine_uuid="9aac5551-a351-4158-8c5c-15a71e8ec5c9",
317
- snapshot_name="Snapshot Name",
317
+ consolidate=True,
318
318
  description="This is Demo Snapshot",
319
319
  memory=True,
320
320
  quiesce=True,
321
321
  remove_children=False,
322
- consolidate=True)
322
+ snapshot_name="Snapshot Name",
323
+ virtual_machine_uuid="9aac5551-a351-4158-8c5c-15a71e8ec5c9")
323
324
  ```
325
+ <!--End PulumiCodeChooser -->
324
326
 
325
327
  :param str resource_name: The name of the resource.
326
328
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -369,19 +371,21 @@ class VirtualMachineSnapshot(pulumi.CustomResource):
369
371
 
370
372
  ## Example Usage
371
373
 
374
+ <!--Start PulumiCodeChooser -->
372
375
  ```python
373
376
  import pulumi
374
377
  import pulumi_vsphere as vsphere
375
378
 
376
379
  demo1 = vsphere.VirtualMachineSnapshot("demo1",
377
- virtual_machine_uuid="9aac5551-a351-4158-8c5c-15a71e8ec5c9",
378
- snapshot_name="Snapshot Name",
380
+ consolidate=True,
379
381
  description="This is Demo Snapshot",
380
382
  memory=True,
381
383
  quiesce=True,
382
384
  remove_children=False,
383
- consolidate=True)
385
+ snapshot_name="Snapshot Name",
386
+ virtual_machine_uuid="9aac5551-a351-4158-8c5c-15a71e8ec5c9")
384
387
  ```
388
+ <!--End PulumiCodeChooser -->
385
389
 
386
390
  :param str resource_name: The name of the resource.
387
391
  :param VirtualMachineSnapshotArgs args: The arguments to use to populate this resource's properties.
@@ -144,6 +144,7 @@ class VmStoragePolicy(pulumi.CustomResource):
144
144
 
145
145
  In this example, tags are first applied to datastores.
146
146
 
147
+ <!--Start PulumiCodeChooser -->
147
148
  ```python
148
149
  import pulumi
149
150
  import pulumi_vsphere as vsphere
@@ -151,93 +152,98 @@ class VmStoragePolicy(pulumi.CustomResource):
151
152
  environment = vsphere.get_tag_category(name="environment")
152
153
  service_level = vsphere.get_tag_category(name="service_level")
153
154
  replication = vsphere.get_tag_category(name="replication")
154
- production = vsphere.get_tag(name="production",
155
- category_id="data.vsphere_tag_category.environment.id")
156
- development = vsphere.get_tag(name="development",
157
- category_id="data.vsphere_tag_category.environment.id")
158
- platinum = vsphere.get_tag(name="platinum",
159
- category_id="data.vsphere_tag_category.service_level.id")
160
- gold = vsphere.get_tag(name="platinum",
161
- category_id="data.vsphere_tag_category.service_level.id")
162
- silver = vsphere.get_tag(name="silver",
163
- category_id="data.vsphere_tag_category.service_level.id")
164
- bronze = vsphere.get_tag(name="bronze",
165
- category_id="data.vsphere_tag_category.service_level.id")
166
- replicated = vsphere.get_tag(name="replicated",
167
- category_id="data.vsphere_tag_category.replication.id")
168
- non_replicated = vsphere.get_tag(name="non_replicated",
169
- category_id="data.vsphere_tag_category.replication.id")
170
- prod_datastore = vsphere.VmfsDatastore("prod_datastore", tags=[
155
+ production = vsphere.get_tag(category_id="data.vsphere_tag_category.environment.id",
156
+ name="production")
157
+ development = vsphere.get_tag(category_id="data.vsphere_tag_category.environment.id",
158
+ name="development")
159
+ platinum = vsphere.get_tag(category_id="data.vsphere_tag_category.service_level.id",
160
+ name="platinum")
161
+ gold = vsphere.get_tag(category_id="data.vsphere_tag_category.service_level.id",
162
+ name="platinum")
163
+ silver = vsphere.get_tag(category_id="data.vsphere_tag_category.service_level.id",
164
+ name="silver")
165
+ bronze = vsphere.get_tag(category_id="data.vsphere_tag_category.service_level.id",
166
+ name="bronze")
167
+ replicated = vsphere.get_tag(category_id="data.vsphere_tag_category.replication.id",
168
+ name="replicated")
169
+ non_replicated = vsphere.get_tag(category_id="data.vsphere_tag_category.replication.id",
170
+ name="non_replicated")
171
+ prod_datastore = vsphere.VmfsDatastore("prodDatastore", tags=[
171
172
  "data.vsphere_tag.production.id",
172
173
  "data.vsphere_tag.platinum.id",
173
174
  "data.vsphere_tag.replicated.id",
174
175
  ])
175
- dev_datastore = vsphere.NasDatastore("dev_datastore", tags=[
176
+ dev_datastore = vsphere.NasDatastore("devDatastore", tags=[
176
177
  "data.vsphere_tag.development.id",
177
178
  "data.vsphere_tag.silver.id",
178
179
  "data.vsphere_tag.non_replicated.id",
179
180
  ])
180
181
  ```
182
+ <!--End PulumiCodeChooser -->
181
183
 
182
184
  Next, storage policies are created and `tag_rules` are applied.
183
185
 
186
+ <!--Start PulumiCodeChooser -->
184
187
  ```python
185
188
  import pulumi
186
189
  import pulumi_vsphere as vsphere
187
190
 
188
- prod_platinum_replicated = vsphere.VmStoragePolicy("prod_platinum_replicated",
189
- name="prod_platinum_replicated",
191
+ prod_platinum_replicated = vsphere.VmStoragePolicy("prodPlatinumReplicated",
190
192
  description="prod_platinum_replicated",
191
193
  tag_rules=[
192
194
  vsphere.VmStoragePolicyTagRuleArgs(
193
- tag_category=environment["name"],
194
- tags=[production["name"]],
195
+ tag_category=data["vsphere_tag_category"]["environment"]["name"],
196
+ tags=[data["vsphere_tag"]["production"]["name"]],
195
197
  include_datastores_with_tags=True,
196
198
  ),
197
199
  vsphere.VmStoragePolicyTagRuleArgs(
198
- tag_category=service_level["name"],
199
- tags=[platinum["name"]],
200
+ tag_category=data["vsphere_tag_category"]["service_level"]["name"],
201
+ tags=[data["vsphere_tag"]["platinum"]["name"]],
200
202
  include_datastores_with_tags=True,
201
203
  ),
202
204
  vsphere.VmStoragePolicyTagRuleArgs(
203
- tag_category=replication["name"],
204
- tags=[replicated["name"]],
205
+ tag_category=data["vsphere_tag_category"]["replication"]["name"],
206
+ tags=[data["vsphere_tag"]["replicated"]["name"]],
205
207
  include_datastores_with_tags=True,
206
208
  ),
207
209
  ])
208
- dev_silver_nonreplicated = vsphere.VmStoragePolicy("dev_silver_nonreplicated",
209
- name="dev_silver_nonreplicated",
210
+ dev_silver_nonreplicated = vsphere.VmStoragePolicy("devSilverNonreplicated",
210
211
  description="dev_silver_nonreplicated",
211
212
  tag_rules=[
212
213
  vsphere.VmStoragePolicyTagRuleArgs(
213
- tag_category=environment["name"],
214
- tags=[development["name"]],
214
+ tag_category=data["vsphere_tag_category"]["environment"]["name"],
215
+ tags=[data["vsphere_tag"]["development"]["name"]],
215
216
  include_datastores_with_tags=True,
216
217
  ),
217
218
  vsphere.VmStoragePolicyTagRuleArgs(
218
- tag_category=service_level["name"],
219
- tags=[silver["name"]],
219
+ tag_category=data["vsphere_tag_category"]["service_level"]["name"],
220
+ tags=[data["vsphere_tag"]["silver"]["name"]],
220
221
  include_datastores_with_tags=True,
221
222
  ),
222
223
  vsphere.VmStoragePolicyTagRuleArgs(
223
- tag_category=replication["name"],
224
- tags=[non_replicated["name"]],
224
+ tag_category=data["vsphere_tag_category"]["replication"]["name"],
225
+ tags=[data["vsphere_tag"]["non_replicated"]["name"]],
225
226
  include_datastores_with_tags=True,
226
227
  ),
227
228
  ])
228
229
  ```
230
+ <!--End PulumiCodeChooser -->
229
231
 
230
232
  Lasttly, when creating a virtual machine resource, a storage policy can be specificed to direct virtual machine placement to a datastore which matches the policy's `tags_rules`.
231
233
 
234
+ <!--Start PulumiCodeChooser -->
232
235
  ```python
233
236
  import pulumi
234
237
  import pulumi_vsphere as vsphere
235
238
 
236
239
  prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated")
237
240
  dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated")
238
- prod_vm = vsphere.VirtualMachine("prod_vm", storage_policy_id=storage_policy["prodPlatinumReplicated"]["id"])
239
- dev_vm = vsphere.VirtualMachine("dev_vm", storage_policy_id=storage_policy["devSilverNonreplicated"]["id"])
241
+ prod_vm = vsphere.VirtualMachine("prodVm", storage_policy_id=data["vsphere_storage_policy"]["storage_policy"]["prod_platinum_replicated"]["id"])
242
+ # ... other configuration ...
243
+ dev_vm = vsphere.VirtualMachine("devVm", storage_policy_id=data["vsphere_storage_policy"]["storage_policy"]["dev_silver_nonreplicated"]["id"])
244
+ # ... other configuration ...
240
245
  ```
246
+ <!--End PulumiCodeChooser -->
241
247
 
242
248
  :param str resource_name: The name of the resource.
243
249
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -262,6 +268,7 @@ class VmStoragePolicy(pulumi.CustomResource):
262
268
 
263
269
  In this example, tags are first applied to datastores.
264
270
 
271
+ <!--Start PulumiCodeChooser -->
265
272
  ```python
266
273
  import pulumi
267
274
  import pulumi_vsphere as vsphere
@@ -269,93 +276,98 @@ class VmStoragePolicy(pulumi.CustomResource):
269
276
  environment = vsphere.get_tag_category(name="environment")
270
277
  service_level = vsphere.get_tag_category(name="service_level")
271
278
  replication = vsphere.get_tag_category(name="replication")
272
- production = vsphere.get_tag(name="production",
273
- category_id="data.vsphere_tag_category.environment.id")
274
- development = vsphere.get_tag(name="development",
275
- category_id="data.vsphere_tag_category.environment.id")
276
- platinum = vsphere.get_tag(name="platinum",
277
- category_id="data.vsphere_tag_category.service_level.id")
278
- gold = vsphere.get_tag(name="platinum",
279
- category_id="data.vsphere_tag_category.service_level.id")
280
- silver = vsphere.get_tag(name="silver",
281
- category_id="data.vsphere_tag_category.service_level.id")
282
- bronze = vsphere.get_tag(name="bronze",
283
- category_id="data.vsphere_tag_category.service_level.id")
284
- replicated = vsphere.get_tag(name="replicated",
285
- category_id="data.vsphere_tag_category.replication.id")
286
- non_replicated = vsphere.get_tag(name="non_replicated",
287
- category_id="data.vsphere_tag_category.replication.id")
288
- prod_datastore = vsphere.VmfsDatastore("prod_datastore", tags=[
279
+ production = vsphere.get_tag(category_id="data.vsphere_tag_category.environment.id",
280
+ name="production")
281
+ development = vsphere.get_tag(category_id="data.vsphere_tag_category.environment.id",
282
+ name="development")
283
+ platinum = vsphere.get_tag(category_id="data.vsphere_tag_category.service_level.id",
284
+ name="platinum")
285
+ gold = vsphere.get_tag(category_id="data.vsphere_tag_category.service_level.id",
286
+ name="platinum")
287
+ silver = vsphere.get_tag(category_id="data.vsphere_tag_category.service_level.id",
288
+ name="silver")
289
+ bronze = vsphere.get_tag(category_id="data.vsphere_tag_category.service_level.id",
290
+ name="bronze")
291
+ replicated = vsphere.get_tag(category_id="data.vsphere_tag_category.replication.id",
292
+ name="replicated")
293
+ non_replicated = vsphere.get_tag(category_id="data.vsphere_tag_category.replication.id",
294
+ name="non_replicated")
295
+ prod_datastore = vsphere.VmfsDatastore("prodDatastore", tags=[
289
296
  "data.vsphere_tag.production.id",
290
297
  "data.vsphere_tag.platinum.id",
291
298
  "data.vsphere_tag.replicated.id",
292
299
  ])
293
- dev_datastore = vsphere.NasDatastore("dev_datastore", tags=[
300
+ dev_datastore = vsphere.NasDatastore("devDatastore", tags=[
294
301
  "data.vsphere_tag.development.id",
295
302
  "data.vsphere_tag.silver.id",
296
303
  "data.vsphere_tag.non_replicated.id",
297
304
  ])
298
305
  ```
306
+ <!--End PulumiCodeChooser -->
299
307
 
300
308
  Next, storage policies are created and `tag_rules` are applied.
301
309
 
310
+ <!--Start PulumiCodeChooser -->
302
311
  ```python
303
312
  import pulumi
304
313
  import pulumi_vsphere as vsphere
305
314
 
306
- prod_platinum_replicated = vsphere.VmStoragePolicy("prod_platinum_replicated",
307
- name="prod_platinum_replicated",
315
+ prod_platinum_replicated = vsphere.VmStoragePolicy("prodPlatinumReplicated",
308
316
  description="prod_platinum_replicated",
309
317
  tag_rules=[
310
318
  vsphere.VmStoragePolicyTagRuleArgs(
311
- tag_category=environment["name"],
312
- tags=[production["name"]],
319
+ tag_category=data["vsphere_tag_category"]["environment"]["name"],
320
+ tags=[data["vsphere_tag"]["production"]["name"]],
313
321
  include_datastores_with_tags=True,
314
322
  ),
315
323
  vsphere.VmStoragePolicyTagRuleArgs(
316
- tag_category=service_level["name"],
317
- tags=[platinum["name"]],
324
+ tag_category=data["vsphere_tag_category"]["service_level"]["name"],
325
+ tags=[data["vsphere_tag"]["platinum"]["name"]],
318
326
  include_datastores_with_tags=True,
319
327
  ),
320
328
  vsphere.VmStoragePolicyTagRuleArgs(
321
- tag_category=replication["name"],
322
- tags=[replicated["name"]],
329
+ tag_category=data["vsphere_tag_category"]["replication"]["name"],
330
+ tags=[data["vsphere_tag"]["replicated"]["name"]],
323
331
  include_datastores_with_tags=True,
324
332
  ),
325
333
  ])
326
- dev_silver_nonreplicated = vsphere.VmStoragePolicy("dev_silver_nonreplicated",
327
- name="dev_silver_nonreplicated",
334
+ dev_silver_nonreplicated = vsphere.VmStoragePolicy("devSilverNonreplicated",
328
335
  description="dev_silver_nonreplicated",
329
336
  tag_rules=[
330
337
  vsphere.VmStoragePolicyTagRuleArgs(
331
- tag_category=environment["name"],
332
- tags=[development["name"]],
338
+ tag_category=data["vsphere_tag_category"]["environment"]["name"],
339
+ tags=[data["vsphere_tag"]["development"]["name"]],
333
340
  include_datastores_with_tags=True,
334
341
  ),
335
342
  vsphere.VmStoragePolicyTagRuleArgs(
336
- tag_category=service_level["name"],
337
- tags=[silver["name"]],
343
+ tag_category=data["vsphere_tag_category"]["service_level"]["name"],
344
+ tags=[data["vsphere_tag"]["silver"]["name"]],
338
345
  include_datastores_with_tags=True,
339
346
  ),
340
347
  vsphere.VmStoragePolicyTagRuleArgs(
341
- tag_category=replication["name"],
342
- tags=[non_replicated["name"]],
348
+ tag_category=data["vsphere_tag_category"]["replication"]["name"],
349
+ tags=[data["vsphere_tag"]["non_replicated"]["name"]],
343
350
  include_datastores_with_tags=True,
344
351
  ),
345
352
  ])
346
353
  ```
354
+ <!--End PulumiCodeChooser -->
347
355
 
348
356
  Lasttly, when creating a virtual machine resource, a storage policy can be specificed to direct virtual machine placement to a datastore which matches the policy's `tags_rules`.
349
357
 
358
+ <!--Start PulumiCodeChooser -->
350
359
  ```python
351
360
  import pulumi
352
361
  import pulumi_vsphere as vsphere
353
362
 
354
363
  prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated")
355
364
  dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated")
356
- prod_vm = vsphere.VirtualMachine("prod_vm", storage_policy_id=storage_policy["prodPlatinumReplicated"]["id"])
357
- dev_vm = vsphere.VirtualMachine("dev_vm", storage_policy_id=storage_policy["devSilverNonreplicated"]["id"])
365
+ prod_vm = vsphere.VirtualMachine("prodVm", storage_policy_id=data["vsphere_storage_policy"]["storage_policy"]["prod_platinum_replicated"]["id"])
366
+ # ... other configuration ...
367
+ dev_vm = vsphere.VirtualMachine("devVm", storage_policy_id=data["vsphere_storage_policy"]["storage_policy"]["dev_silver_nonreplicated"]["id"])
368
+ # ... other configuration ...
358
369
  ```
370
+ <!--End PulumiCodeChooser -->
359
371
 
360
372
  :param str resource_name: The name of the resource.
361
373
  :param VmStoragePolicyArgs args: The arguments to use to populate this resource's properties.
pulumi_vsphere/vnic.py CHANGED
@@ -373,6 +373,7 @@ class Vnic(pulumi.CustomResource):
373
373
 
374
374
  ### Create a vnic attached to a distributed virtual switch using the vmotion TCP/IP stack
375
375
 
376
+ <!--Start PulumiCodeChooser -->
376
377
  ```python
377
378
  import pulumi
378
379
  import pulumi_vsphere as vsphere
@@ -381,14 +382,12 @@ class Vnic(pulumi.CustomResource):
381
382
  h1 = vsphere.get_host(name="esxi1.host.test",
382
383
  datacenter_id=dc.id)
383
384
  d1 = vsphere.DistributedVirtualSwitch("d1",
384
- name="dc_DVPG0",
385
385
  datacenter_id=dc.id,
386
386
  hosts=[vsphere.DistributedVirtualSwitchHostArgs(
387
387
  host_system_id=h1.id,
388
388
  devices=["vnic3"],
389
389
  )])
390
390
  p1 = vsphere.DistributedPortGroup("p1",
391
- name="test-pg",
392
391
  vlan_id=1234,
393
392
  distributed_virtual_switch_uuid=d1.id)
394
393
  v1 = vsphere.Vnic("v1",
@@ -400,9 +399,11 @@ class Vnic(pulumi.CustomResource):
400
399
  ),
401
400
  netstack="vmotion")
402
401
  ```
402
+ <!--End PulumiCodeChooser -->
403
403
 
404
404
  ### Create a vnic attached to a portgroup using the default TCP/IP stack
405
405
 
406
+ <!--Start PulumiCodeChooser -->
406
407
  ```python
407
408
  import pulumi
408
409
  import pulumi_vsphere as vsphere
@@ -411,7 +412,6 @@ class Vnic(pulumi.CustomResource):
411
412
  h1 = vsphere.get_host(name="esxi1.host.test",
412
413
  datacenter_id=dc.id)
413
414
  hvs1 = vsphere.HostVirtualSwitch("hvs1",
414
- name="dc_HPG0",
415
415
  host_system_id=h1.id,
416
416
  network_adapters=[
417
417
  "vmnic3",
@@ -420,7 +420,6 @@ class Vnic(pulumi.CustomResource):
420
420
  active_nics=["vmnic3"],
421
421
  standby_nics=["vmnic4"])
422
422
  p1 = vsphere.HostPortGroup("p1",
423
- name="my-pg",
424
423
  virtual_switch_name=hvs1.name,
425
424
  host_system_id=h1.id)
426
425
  v1 = vsphere.Vnic("v1",
@@ -434,6 +433,7 @@ class Vnic(pulumi.CustomResource):
434
433
  "management",
435
434
  ])
436
435
  ```
436
+ <!--End PulumiCodeChooser -->
437
437
 
438
438
  ## Importing
439
439
 
@@ -442,6 +442,12 @@ class Vnic(pulumi.CustomResource):
442
442
 
443
443
  [docs-import]: /docs/import/index.html
444
444
 
445
+ <!--Start PulumiCodeChooser -->
446
+ ```python
447
+ import pulumi
448
+ ```
449
+ <!--End PulumiCodeChooser -->
450
+
445
451
  The above would import the vnic `vmk2` from host with ID `host-123`.
446
452
 
447
453
  :param str resource_name: The name of the resource.
@@ -472,6 +478,7 @@ class Vnic(pulumi.CustomResource):
472
478
 
473
479
  ### Create a vnic attached to a distributed virtual switch using the vmotion TCP/IP stack
474
480
 
481
+ <!--Start PulumiCodeChooser -->
475
482
  ```python
476
483
  import pulumi
477
484
  import pulumi_vsphere as vsphere
@@ -480,14 +487,12 @@ class Vnic(pulumi.CustomResource):
480
487
  h1 = vsphere.get_host(name="esxi1.host.test",
481
488
  datacenter_id=dc.id)
482
489
  d1 = vsphere.DistributedVirtualSwitch("d1",
483
- name="dc_DVPG0",
484
490
  datacenter_id=dc.id,
485
491
  hosts=[vsphere.DistributedVirtualSwitchHostArgs(
486
492
  host_system_id=h1.id,
487
493
  devices=["vnic3"],
488
494
  )])
489
495
  p1 = vsphere.DistributedPortGroup("p1",
490
- name="test-pg",
491
496
  vlan_id=1234,
492
497
  distributed_virtual_switch_uuid=d1.id)
493
498
  v1 = vsphere.Vnic("v1",
@@ -499,9 +504,11 @@ class Vnic(pulumi.CustomResource):
499
504
  ),
500
505
  netstack="vmotion")
501
506
  ```
507
+ <!--End PulumiCodeChooser -->
502
508
 
503
509
  ### Create a vnic attached to a portgroup using the default TCP/IP stack
504
510
 
511
+ <!--Start PulumiCodeChooser -->
505
512
  ```python
506
513
  import pulumi
507
514
  import pulumi_vsphere as vsphere
@@ -510,7 +517,6 @@ class Vnic(pulumi.CustomResource):
510
517
  h1 = vsphere.get_host(name="esxi1.host.test",
511
518
  datacenter_id=dc.id)
512
519
  hvs1 = vsphere.HostVirtualSwitch("hvs1",
513
- name="dc_HPG0",
514
520
  host_system_id=h1.id,
515
521
  network_adapters=[
516
522
  "vmnic3",
@@ -519,7 +525,6 @@ class Vnic(pulumi.CustomResource):
519
525
  active_nics=["vmnic3"],
520
526
  standby_nics=["vmnic4"])
521
527
  p1 = vsphere.HostPortGroup("p1",
522
- name="my-pg",
523
528
  virtual_switch_name=hvs1.name,
524
529
  host_system_id=h1.id)
525
530
  v1 = vsphere.Vnic("v1",
@@ -533,6 +538,7 @@ class Vnic(pulumi.CustomResource):
533
538
  "management",
534
539
  ])
535
540
  ```
541
+ <!--End PulumiCodeChooser -->
536
542
 
537
543
  ## Importing
538
544
 
@@ -541,6 +547,12 @@ class Vnic(pulumi.CustomResource):
541
547
 
542
548
  [docs-import]: /docs/import/index.html
543
549
 
550
+ <!--Start PulumiCodeChooser -->
551
+ ```python
552
+ import pulumi
553
+ ```
554
+ <!--End PulumiCodeChooser -->
555
+
544
556
  The above would import the vnic `vmk2` from host with ID `host-123`.
545
557
 
546
558
  :param str resource_name: The name of the resource.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_vsphere
3
- Version: 4.11.0a1
3
+ Version: 4.11.0a1711033215
4
4
  Summary: A Pulumi package for creating vsphere resources
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -0,0 +1,82 @@
1
+ pulumi_vsphere/__init__.py,sha256=D0xUdIG9TzexthoPimJXUxoqiIfxr5H0lOHIAJhhsjE,10114
2
+ pulumi_vsphere/_inputs.py,sha256=n7IWt2LMpbsan_Pw5DPlEWWXolg15HOVJQ1dAIgPKGM,136898
3
+ pulumi_vsphere/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
4
+ pulumi_vsphere/compute_cluster.py,sha256=8HJuTuH9JIxCMh2WTG7zT7f6JwUy8qScFsr2S8ozkHg,245818
5
+ pulumi_vsphere/compute_cluster_host_group.py,sha256=QUCBKwC2RaJI6ZuC_qBDZJl5gey-rs3iVsbPrFFK-1g,13437
6
+ pulumi_vsphere/compute_cluster_vm_affinity_rule.py,sha256=tEW7sHDqTawVmI28q1xqprkpoU-fnan1hAeZkOUmNIM,24771
7
+ pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py,sha256=-5K0E6HRhIWGBKAcMZsqXNFQLWIAhJs07_PKVi-3PBg,17554
8
+ pulumi_vsphere/compute_cluster_vm_dependency_rule.py,sha256=_q1lrkr1pWzl10dGA1PdRSOXibmYvLKBLTdZG0O0YNQ,21613
9
+ pulumi_vsphere/compute_cluster_vm_group.py,sha256=l3gk0qAc9UiX6DpkCZl30L6qmTigu4pGo5O1YBJoatU,13459
10
+ pulumi_vsphere/compute_cluster_vm_host_rule.py,sha256=Am9PFFU8PghrdOTRbqJzeFS6nLxgX5Pob-SKqCEaY3k,24422
11
+ pulumi_vsphere/content_library.py,sha256=-3mst76bjX3vq4izMl8pIlZR2B9RjEG3A0VA7jpOfRc,15087
12
+ pulumi_vsphere/content_library_item.py,sha256=qjHPcnsxpNiFOzCPxQXngZXtR1R1RrsqAhdJgpqgZUc,15640
13
+ pulumi_vsphere/custom_attribute.py,sha256=wTuv97G4uXpJ9kv_TaKZc1OYj1e_68c9dAsFc9Ds5nQ,9031
14
+ pulumi_vsphere/datacenter.py,sha256=wz6ZhWNMg88zY21kTSALXAXyG1HBuZfyYGFhHtM--lM,19182
15
+ pulumi_vsphere/datastore_cluster.py,sha256=zTzK-jiRFBc7Cka5T3nAyZW8WJ2wcu3YFQddLhQ1yYo,90219
16
+ pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py,sha256=8eKwKS9ZYaZICVxjNrNLDDBqBKyQqOJmC_nt0jlqYJY,16842
17
+ pulumi_vsphere/distributed_port_group.py,sha256=LWuv8PgWOo6MRx82QTrpiDAzORv9s6da7qdg3ZyV-KA,134499
18
+ pulumi_vsphere/distributed_virtual_switch.py,sha256=L6Vd4C9N9JRaILTt4Ll-CvQM9SVHhvBZ__61P61osok,264137
19
+ pulumi_vsphere/dpm_host_override.py,sha256=i3eG4PkI3Hi2KodP6OFAGC6QLczmNDRcSIt9MbK7U1Q,15371
20
+ pulumi_vsphere/drs_vm_override.py,sha256=qGlUe9gq9StYW4OHDSZKA03j0ru3Ruvb9SEaVcpHo1c,16657
21
+ pulumi_vsphere/entity_permissions.py,sha256=uPVnBk47c6csM0kQLwJC3Niml9uCTq23KGOfhNyNrrk,12429
22
+ pulumi_vsphere/file.py,sha256=00qPdnT7-00SNMacM8_lGQrEbGSXv9rTC_ERTZHtB3U,23703
23
+ pulumi_vsphere/folder.py,sha256=wCsVzpLVQn5tbx0kn4hKNUBxQpalVn9ydGemsbz_MLc,25630
24
+ pulumi_vsphere/get_compute_cluster.py,sha256=rOCQTRMnHzOz3lCSZOQUQJ80qkXUqkxJPOihH_GxrVk,6137
25
+ pulumi_vsphere/get_compute_cluster_host_group.py,sha256=1vMYBvHD7-b4d6k9wPR_DlRAqjoBMSC-vCjFFvtUpgE,6266
26
+ pulumi_vsphere/get_content_library.py,sha256=zaz3CNzLrJLB5rH0D1zQk5Mi_g_LANjeHfHJDXW9o6k,3358
27
+ pulumi_vsphere/get_content_library_item.py,sha256=-yztx7VLc3cyG8nwjZ4iA4QbwvVGgL6K81YHOrYHJ4U,4496
28
+ pulumi_vsphere/get_custom_attribute.py,sha256=KMIPUXKbqrRMzUFgQ91V6A_qwHttMHIaSSof4KOoD9Q,4494
29
+ pulumi_vsphere/get_datacenter.py,sha256=XjgzHmheL3QNXnywVEoJ7dHZqzR2P-_kmJrfx14tX-k,4223
30
+ pulumi_vsphere/get_datastore.py,sha256=paiKxWPfdEyz7Z9yRAe_wcfMVDVeJH59_ezscPg09_s,6119
31
+ pulumi_vsphere/get_datastore_cluster.py,sha256=U108Z7EMqK4Q-7QYzIAuYSLaZQywdA7HVMT417ppC2E,5297
32
+ pulumi_vsphere/get_datastore_stats.py,sha256=O8FhEGF5NT2mlFnNzgU-v3kxqvQjscPCtia-daF4qA4,7917
33
+ pulumi_vsphere/get_distributed_virtual_switch.py,sha256=3Y9Z7qhXnUz60I1WGF3g6UUQu_iwqdmZYumZxM6iFVE,7014
34
+ pulumi_vsphere/get_dynamic.py,sha256=4evdnVACuoARVhytaBkXCPOQTJfAhzU63H1dy2MYYL4,6242
35
+ pulumi_vsphere/get_folder.py,sha256=cZn7YUGiNn6sziSiH1_6v-p9LVLxiiiEwXgUnjR93Qk,3765
36
+ pulumi_vsphere/get_guest_os_customization.py,sha256=a-hctk_ltCSfcjAgx_IxqQtOCd-df9a5vZeKXY8mNoU,6510
37
+ pulumi_vsphere/get_host.py,sha256=PBTK0McfwvgkKjuBeZbQWESeBrhbeIL1mafQO5Au0kY,5340
38
+ pulumi_vsphere/get_host_pci_device.py,sha256=47KyrlqKw_mnLK3eaVMbmI8bEGqUye0BVh6YGPO_cWI,7898
39
+ pulumi_vsphere/get_host_thumbprint.py,sha256=9UmtSmyhiewNXW-7cifViECzkU6RXUN0aNcbhOKsf5k,5103
40
+ pulumi_vsphere/get_host_vgpu_profile.py,sha256=5LP_PDfY3wXA4zCml3Cz_yANEHPIh0OFoMK9PNJnJhI,6628
41
+ pulumi_vsphere/get_license.py,sha256=2egn7bCzJt6Eul_HWgPTrHpzzfruab3JlPBrNWCWfkc,5398
42
+ pulumi_vsphere/get_network.py,sha256=Cm2IZobXCW_RbyfGJybAqULksx4LUNFg-7oNKEWL0qs,7273
43
+ pulumi_vsphere/get_ovf_vm_template.py,sha256=1C3sBBXBAzpxaZBiv4knADbzSNN7XaV3ItNLwRcFwb4,25791
44
+ pulumi_vsphere/get_policy.py,sha256=RmwMeG08vPnbebfPw4Qyvi60zofxLdx5sHFbH73hFBY,3565
45
+ pulumi_vsphere/get_resource_pool.py,sha256=SybwTomV_rYafuE4Xegm67g1exIHi66_PA-ZzNwz_cE,7597
46
+ pulumi_vsphere/get_role.py,sha256=ZH7ycfvudtiCgmFZV3fJobeitdyFYCrZ0gmli46rFCs,5351
47
+ pulumi_vsphere/get_tag.py,sha256=Cf7jDIln9TEHBrjH9AWWUEFreEA9Z2Anm7umdbBWVlA,4956
48
+ pulumi_vsphere/get_tag_category.py,sha256=vB023_5_viINfklL9-KKhvADQKoY8ZDjTTQVgF2w3-Q,5174
49
+ pulumi_vsphere/get_vapp_container.py,sha256=Ae77fQHwunAm8Ab97wEYqjL-ZmdTuyj8yoE57RU6xzs,4613
50
+ pulumi_vsphere/get_virtual_machine.py,sha256=FsY6V0eKMRXr2JBqFtkdyu1nU9PvVmFsLd30FHhMlJc,58811
51
+ pulumi_vsphere/get_vmfs_disks.py,sha256=ItMOx8cK9l12N4Yc4hQb2Ocuk_hCwb4Ql39QX9Tt1HQ,6857
52
+ pulumi_vsphere/guest_os_customization.py,sha256=HB-qrGxduUJH_cUpKyLbnmmV-HOBqJWesV4lWTLdETk,15360
53
+ pulumi_vsphere/ha_vm_override.py,sha256=gGQd5NMeFDznmfLTQvuXuVM5JT_ZAmQRxwuVEDe_FxI,58963
54
+ pulumi_vsphere/host.py,sha256=jX-4FYaKACBU2OwgK3khdQwDs81bMR5GG-aMlIRaGTg,46389
55
+ pulumi_vsphere/host_port_group.py,sha256=_0k6zNLexAWeaOocfTLZRCWwbsZ5vRbrsceoL1AsWrc,57254
56
+ pulumi_vsphere/host_virtual_switch.py,sha256=gj2BcglObvCxe4tkIze0OxW2xnGDDOhWKUc2Qbz99eQ,61643
57
+ pulumi_vsphere/license.py,sha256=FUrMgYlPCR74DuWahcgZttso7Q2m9kpoKiTb-6IOWy4,12908
58
+ pulumi_vsphere/nas_datastore.py,sha256=X5PeUipclE4MG0uHS_SlmpaHBrz4jtaLhVEfOybjYQY,48202
59
+ pulumi_vsphere/outputs.py,sha256=PQWYuK0-fabmFt2L7I7YXrCRJluhu8mvak_KSlGwMJw,151078
60
+ pulumi_vsphere/provider.py,sha256=ljEs3n-BiTMtFb7qqPn6YDZh3M-L5Oq2LAbX1QfV274,20511
61
+ pulumi_vsphere/pulumi-plugin.json,sha256=GPkzWdIfUGLp-CeSzzIZ8ksrThmeZnOYMcpaT3JCpTU,44
62
+ pulumi_vsphere/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
+ pulumi_vsphere/resource_pool.py,sha256=h8uuERR45TUAH2-IvtbR1uZfcJq55FyW_ZqET7OVifE,54219
64
+ pulumi_vsphere/role.py,sha256=kO9DfdLWHq5bfwD0EBAsZuWQxrcX7amJBVUrfREHf3c,8528
65
+ pulumi_vsphere/storage_drs_vm_override.py,sha256=f1DoLBiMk4_JQdPaemv5RW6xPksw5p4w-AFLZsC6Jr8,20828
66
+ pulumi_vsphere/tag.py,sha256=gF7uOgj1Xm_k2cV7YIiwBGakQvhi-jlsNYKDm7JDFWw,9943
67
+ pulumi_vsphere/tag_category.py,sha256=FzqdUOMwmAo7W6Xuw3-CByCbBSmsvkCGXiLRaMUVVQ4,15120
68
+ pulumi_vsphere/vapp_container.py,sha256=1On1t7PnLEqnQvNIt1XIh9VFu7LaSegyRyDaJf8lQmQ,48255
69
+ pulumi_vsphere/vapp_entity.py,sha256=JePz7OF__e1x7aFp_9I257S61HnDT7gdHsWK-u17nlM,29555
70
+ pulumi_vsphere/virtual_disk.py,sha256=wFycNUG7WdYogDgWDRc5zP1u9n2afPtQOUiX_987ito,28633
71
+ pulumi_vsphere/virtual_machine.py,sha256=VzvF0jXEWx_ROG_t8MiIUJqEaJ4lW29uVimFFCbyxP4,273930
72
+ pulumi_vsphere/virtual_machine_snapshot.py,sha256=G8-3jJEsViVYhF4v4LSfWSw1ajq3AdaSloMO1rseyww,24082
73
+ pulumi_vsphere/vm_storage_policy.py,sha256=MzAcDxZfj6p25LFT6sS-zho9i_uDXlU6uytttWQyJkg,21426
74
+ pulumi_vsphere/vmfs_datastore.py,sha256=gNhmetE0wMDKMEM_ImATFpnTJhqMEPd0q8eOgqpedr0,34596
75
+ pulumi_vsphere/vnic.py,sha256=upByAXkmwaA7U9VYF2huy2yntN2creeBaFvIoRfee_o,30855
76
+ pulumi_vsphere/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
77
+ pulumi_vsphere/config/__init__.pyi,sha256=ZO6ktIIpO1bKQNe2__l8JqDti_ZKgnRvHTcXcRWzb0M,1351
78
+ pulumi_vsphere/config/vars.py,sha256=fcurb1Hwqp3evWnRD4s2t--MUjqR9R11nIm04F1UMW0,3210
79
+ pulumi_vsphere-4.11.0a1711033215.dist-info/METADATA,sha256=DUTAqx_7Z8JE29rBF7SUNs4hDfYatCGN62p1Ht3Y2AE,4958
80
+ pulumi_vsphere-4.11.0a1711033215.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
81
+ pulumi_vsphere-4.11.0a1711033215.dist-info/top_level.txt,sha256=00BIE8zaYtdsw0_tBfXR8E5sTs3lRnwlcZ6lUdu4loI,15
82
+ pulumi_vsphere-4.11.0a1711033215.dist-info/RECORD,,