pulumi-vsphere 4.10.0a1709368772__py3-none-any.whl → 4.10.0a1710245029__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (48) hide show
  1. pulumi_vsphere/__init__.py +2 -0
  2. pulumi_vsphere/_inputs.py +4 -0
  3. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +8 -0
  4. pulumi_vsphere/datacenter.py +12 -0
  5. pulumi_vsphere/datastore_cluster.py +7 -7
  6. pulumi_vsphere/distributed_virtual_switch.py +28 -7
  7. pulumi_vsphere/file.py +12 -0
  8. pulumi_vsphere/get_compute_cluster.py +4 -0
  9. pulumi_vsphere/get_compute_cluster_host_group.py +4 -0
  10. pulumi_vsphere/get_content_library.py +4 -0
  11. pulumi_vsphere/get_custom_attribute.py +4 -0
  12. pulumi_vsphere/get_datacenter.py +4 -0
  13. pulumi_vsphere/get_datastore.py +31 -3
  14. pulumi_vsphere/get_datastore_cluster.py +4 -0
  15. pulumi_vsphere/get_datastore_stats.py +202 -0
  16. pulumi_vsphere/get_distributed_virtual_switch.py +4 -0
  17. pulumi_vsphere/get_dynamic.py +4 -0
  18. pulumi_vsphere/get_folder.py +4 -0
  19. pulumi_vsphere/get_guest_os_customization.py +4 -0
  20. pulumi_vsphere/get_host.py +4 -0
  21. pulumi_vsphere/get_host_pci_device.py +34 -0
  22. pulumi_vsphere/get_host_thumbprint.py +4 -0
  23. pulumi_vsphere/get_host_vgpu_profile.py +190 -0
  24. pulumi_vsphere/get_license.py +4 -0
  25. pulumi_vsphere/get_network.py +4 -0
  26. pulumi_vsphere/get_ovf_vm_template.py +0 -168
  27. pulumi_vsphere/get_policy.py +4 -0
  28. pulumi_vsphere/get_resource_pool.py +10 -0
  29. pulumi_vsphere/get_role.py +4 -0
  30. pulumi_vsphere/get_tag.py +4 -0
  31. pulumi_vsphere/get_tag_category.py +4 -0
  32. pulumi_vsphere/get_vapp_container.py +4 -0
  33. pulumi_vsphere/get_virtual_machine.py +37 -1
  34. pulumi_vsphere/get_vmfs_disks.py +4 -0
  35. pulumi_vsphere/host.py +18 -0
  36. pulumi_vsphere/host_port_group.py +14 -0
  37. pulumi_vsphere/license.py +4 -0
  38. pulumi_vsphere/outputs.py +75 -0
  39. pulumi_vsphere/resource_pool.py +12 -12
  40. pulumi_vsphere/virtual_machine.py +75 -14
  41. pulumi_vsphere/virtual_machine_snapshot.py +4 -0
  42. pulumi_vsphere/vm_storage_policy.py +12 -0
  43. pulumi_vsphere/vnic.py +18 -0
  44. {pulumi_vsphere-4.10.0a1709368772.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/METADATA +1 -1
  45. pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +82 -0
  46. {pulumi_vsphere-4.10.0a1709368772.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/WHEEL +1 -1
  47. pulumi_vsphere-4.10.0a1709368772.dist-info/RECORD +0 -80
  48. {pulumi_vsphere-4.10.0a1709368772.dist-info → pulumi_vsphere-4.10.0a1710245029.dist-info}/top_level.txt +0 -0
@@ -33,6 +33,7 @@ from .get_custom_attribute import *
33
33
  from .get_datacenter import *
34
34
  from .get_datastore import *
35
35
  from .get_datastore_cluster import *
36
+ from .get_datastore_stats import *
36
37
  from .get_distributed_virtual_switch import *
37
38
  from .get_dynamic import *
38
39
  from .get_folder import *
@@ -40,6 +41,7 @@ from .get_guest_os_customization import *
40
41
  from .get_host import *
41
42
  from .get_host_pci_device import *
42
43
  from .get_host_thumbprint import *
44
+ from .get_host_vgpu_profile import *
43
45
  from .get_license import *
44
46
  from .get_network import *
45
47
  from .get_ovf_vm_template import *
pulumi_vsphere/_inputs.py CHANGED
@@ -160,6 +160,7 @@ class ComputeClusterVsanStretchedClusterArgs:
160
160
  > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster.
161
161
  You can enable or re-enable vSphere HA after vSAN is configured.
162
162
 
163
+ <!--Start PulumiCodeChooser -->
163
164
  ```python
164
165
  import pulumi
165
166
  import pulumi_vsphere as vsphere
@@ -202,6 +203,7 @@ class ComputeClusterVsanStretchedClusterArgs:
202
203
  witness_node=data["vsphere_host"]["witness_host"]["id"],
203
204
  ))
204
205
  ```
206
+ <!--End PulumiCodeChooser -->
205
207
  """
206
208
  pulumi.set(__self__, "preferred_fault_domain_host_ids", preferred_fault_domain_host_ids)
207
209
  pulumi.set(__self__, "secondary_fault_domain_host_ids", secondary_fault_domain_host_ids)
@@ -268,6 +270,7 @@ class ComputeClusterVsanStretchedClusterArgs:
268
270
  > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster.
269
271
  You can enable or re-enable vSphere HA after vSAN is configured.
270
272
 
273
+ <!--Start PulumiCodeChooser -->
271
274
  ```python
272
275
  import pulumi
273
276
  import pulumi_vsphere as vsphere
@@ -310,6 +313,7 @@ class ComputeClusterVsanStretchedClusterArgs:
310
313
  witness_node=data["vsphere_host"]["witness_host"]["id"],
311
314
  ))
312
315
  ```
316
+ <!--End PulumiCodeChooser -->
313
317
  """
314
318
  return pulumi.get(self, "secondary_fault_domain_name")
315
319
 
@@ -260,6 +260,7 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
260
260
  then creates an affinity rule for these two virtual machines, ensuring they
261
261
  will run on the same host whenever possible.
262
262
 
263
+ <!--Start PulumiCodeChooser -->
263
264
  ```python
264
265
  import pulumi
265
266
  import pulumi_vsphere as vsphere
@@ -290,11 +291,13 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
290
291
  compute_cluster_id=cluster.id,
291
292
  virtual_machine_ids=[v.id for k, v in vm])
292
293
  ```
294
+ <!--End PulumiCodeChooser -->
293
295
 
294
296
  The following example creates an affinity rule for a set of virtual machines
295
297
  in the cluster by looking up the virtual machine UUIDs from the
296
298
  `VirtualMachine` data source.
297
299
 
300
+ <!--Start PulumiCodeChooser -->
298
301
  ```python
299
302
  import pulumi
300
303
  import pulumi_vsphere as vsphere
@@ -313,6 +316,7 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
313
316
  compute_cluster_id=cluster.id,
314
317
  virtual_machine_ids=[__item.id for __item in vms_virtual_machine])
315
318
  ```
319
+ <!--End PulumiCodeChooser -->
316
320
 
317
321
  :param str resource_name: The name of the resource.
318
322
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -368,6 +372,7 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
368
372
  then creates an affinity rule for these two virtual machines, ensuring they
369
373
  will run on the same host whenever possible.
370
374
 
375
+ <!--Start PulumiCodeChooser -->
371
376
  ```python
372
377
  import pulumi
373
378
  import pulumi_vsphere as vsphere
@@ -398,11 +403,13 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
398
403
  compute_cluster_id=cluster.id,
399
404
  virtual_machine_ids=[v.id for k, v in vm])
400
405
  ```
406
+ <!--End PulumiCodeChooser -->
401
407
 
402
408
  The following example creates an affinity rule for a set of virtual machines
403
409
  in the cluster by looking up the virtual machine UUIDs from the
404
410
  `VirtualMachine` data source.
405
411
 
412
+ <!--Start PulumiCodeChooser -->
406
413
  ```python
407
414
  import pulumi
408
415
  import pulumi_vsphere as vsphere
@@ -421,6 +428,7 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
421
428
  compute_cluster_id=cluster.id,
422
429
  virtual_machine_ids=[__item.id for __item in vms_virtual_machine])
423
430
  ```
431
+ <!--End PulumiCodeChooser -->
424
432
 
425
433
  :param str resource_name: The name of the resource.
426
434
  :param ComputeClusterVmAffinityRuleArgs args: The arguments to use to populate this resource's properties.
@@ -238,22 +238,28 @@ class Datacenter(pulumi.CustomResource):
238
238
  container of inventory objects such as hosts and virtual machines.
239
239
 
240
240
  ## Example Usage
241
+
241
242
  ### Create datacenter on the root folder
242
243
 
244
+ <!--Start PulumiCodeChooser -->
243
245
  ```python
244
246
  import pulumi
245
247
  import pulumi_vsphere as vsphere
246
248
 
247
249
  prod_datacenter = vsphere.Datacenter("prodDatacenter")
248
250
  ```
251
+ <!--End PulumiCodeChooser -->
252
+
249
253
  ### Create datacenter on a subfolder
250
254
 
255
+ <!--Start PulumiCodeChooser -->
251
256
  ```python
252
257
  import pulumi
253
258
  import pulumi_vsphere as vsphere
254
259
 
255
260
  research_datacenter = vsphere.Datacenter("researchDatacenter", folder="/research/")
256
261
  ```
262
+ <!--End PulumiCodeChooser -->
257
263
 
258
264
  :param str resource_name: The name of the resource.
259
265
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -286,22 +292,28 @@ class Datacenter(pulumi.CustomResource):
286
292
  container of inventory objects such as hosts and virtual machines.
287
293
 
288
294
  ## Example Usage
295
+
289
296
  ### Create datacenter on the root folder
290
297
 
298
+ <!--Start PulumiCodeChooser -->
291
299
  ```python
292
300
  import pulumi
293
301
  import pulumi_vsphere as vsphere
294
302
 
295
303
  prod_datacenter = vsphere.Datacenter("prodDatacenter")
296
304
  ```
305
+ <!--End PulumiCodeChooser -->
306
+
297
307
  ### Create datacenter on a subfolder
298
308
 
309
+ <!--Start PulumiCodeChooser -->
299
310
  ```python
300
311
  import pulumi
301
312
  import pulumi_vsphere as vsphere
302
313
 
303
314
  research_datacenter = vsphere.Datacenter("researchDatacenter", folder="/research/")
304
315
  ```
316
+ <!--End PulumiCodeChooser -->
305
317
 
306
318
  :param str resource_name: The name of the resource.
307
319
  :param DatacenterArgs args: The arguments to use to populate this resource's properties.
@@ -93,7 +93,7 @@ class DatastoreClusterArgs:
93
93
  recommendations to move VMs off of a datastore. Note that this setting should
94
94
  only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate
95
95
  estimate of the capacity of the datastores in your cluster, and should be set
96
- to roughly 50-60% of the worst case peak performance of the backing LUNs.
96
+ to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs.
97
97
  :param pulumi.Input[int] sdrs_io_reservable_percent_threshold: The threshold, in
98
98
  percent, of actual estimated performance of the datastore (in IOPS) that
99
99
  storage DRS uses to make recommendations to move VMs off of a datastore when
@@ -390,7 +390,7 @@ class DatastoreClusterArgs:
390
390
  recommendations to move VMs off of a datastore. Note that this setting should
391
391
  only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate
392
392
  estimate of the capacity of the datastores in your cluster, and should be set
393
- to roughly 50-60% of the worst case peak performance of the backing LUNs.
393
+ to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs.
394
394
  """
395
395
  return pulumi.get(self, "sdrs_io_reservable_iops_threshold")
396
396
 
@@ -604,7 +604,7 @@ class _DatastoreClusterState:
604
604
  recommendations to move VMs off of a datastore. Note that this setting should
605
605
  only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate
606
606
  estimate of the capacity of the datastores in your cluster, and should be set
607
- to roughly 50-60% of the worst case peak performance of the backing LUNs.
607
+ to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs.
608
608
  :param pulumi.Input[int] sdrs_io_reservable_percent_threshold: The threshold, in
609
609
  percent, of actual estimated performance of the datastore (in IOPS) that
610
610
  storage DRS uses to make recommendations to move VMs off of a datastore when
@@ -902,7 +902,7 @@ class _DatastoreClusterState:
902
902
  recommendations to move VMs off of a datastore. Note that this setting should
903
903
  only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate
904
904
  estimate of the capacity of the datastores in your cluster, and should be set
905
- to roughly 50-60% of the worst case peak performance of the backing LUNs.
905
+ to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs.
906
906
  """
907
907
  return pulumi.get(self, "sdrs_io_reservable_iops_threshold")
908
908
 
@@ -1121,7 +1121,7 @@ class DatastoreCluster(pulumi.CustomResource):
1121
1121
  recommendations to move VMs off of a datastore. Note that this setting should
1122
1122
  only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate
1123
1123
  estimate of the capacity of the datastores in your cluster, and should be set
1124
- to roughly 50-60% of the worst case peak performance of the backing LUNs.
1124
+ to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs.
1125
1125
  :param pulumi.Input[int] sdrs_io_reservable_percent_threshold: The threshold, in
1126
1126
  percent, of actual estimated performance of the datastore (in IOPS) that
1127
1127
  storage DRS uses to make recommendations to move VMs off of a datastore when
@@ -1325,7 +1325,7 @@ class DatastoreCluster(pulumi.CustomResource):
1325
1325
  recommendations to move VMs off of a datastore. Note that this setting should
1326
1326
  only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate
1327
1327
  estimate of the capacity of the datastores in your cluster, and should be set
1328
- to roughly 50-60% of the worst case peak performance of the backing LUNs.
1328
+ to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs.
1329
1329
  :param pulumi.Input[int] sdrs_io_reservable_percent_threshold: The threshold, in
1330
1330
  percent, of actual estimated performance of the datastore (in IOPS) that
1331
1331
  storage DRS uses to make recommendations to move VMs off of a datastore when
@@ -1543,7 +1543,7 @@ class DatastoreCluster(pulumi.CustomResource):
1543
1543
  recommendations to move VMs off of a datastore. Note that this setting should
1544
1544
  only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate
1545
1545
  estimate of the capacity of the datastores in your cluster, and should be set
1546
- to roughly 50-60% of the worst case peak performance of the backing LUNs.
1546
+ to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs.
1547
1547
  """
1548
1548
  return pulumi.get(self, "sdrs_io_reservable_iops_threshold")
1549
1549
 
@@ -226,7 +226,8 @@ class DistributedVirtualSwitchArgs:
226
226
  :param pulumi.Input[int] netflow_sampling_rate: The ratio of total number of packets to
227
227
  the number of packets analyzed. The default is `0`, which indicates that the
228
228
  VDS should analyze all packets. The maximum value is `1000`, which
229
- indicates an analysis rate of 0.001%.
229
+ indicates an analysis rate of 0.001%!
230
+ (MISSING)
230
231
  :param pulumi.Input[bool] network_resource_control_enabled: Set to `true` to enable
231
232
  network I/O control. Default: `false`.
232
233
  :param pulumi.Input[str] network_resource_control_version: The version of network I/O
@@ -275,6 +276,7 @@ class DistributedVirtualSwitchArgs:
275
276
  `vlan_range` definitions are allowed, but they must not overlap. Example
276
277
  below:
277
278
 
279
+ <!--Start PulumiCodeChooser -->
278
280
  ```python
279
281
  import pulumi
280
282
  import pulumi_vsphere as vsphere
@@ -290,6 +292,7 @@ class DistributedVirtualSwitchArgs:
290
292
  ),
291
293
  ])
292
294
  ```
295
+ <!--End PulumiCodeChooser -->
293
296
  :param pulumi.Input[int] vmotion_maximum_mbit: The maximum allowed usage for the vmotion traffic class, in Mbits/sec.
294
297
  :param pulumi.Input[int] vmotion_reservation_mbit: The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec.
295
298
  :param pulumi.Input[int] vmotion_share_count: The amount of shares to allocate to the vmotion traffic class for a custom share level.
@@ -1265,7 +1268,8 @@ class DistributedVirtualSwitchArgs:
1265
1268
  The ratio of total number of packets to
1266
1269
  the number of packets analyzed. The default is `0`, which indicates that the
1267
1270
  VDS should analyze all packets. The maximum value is `1000`, which
1268
- indicates an analysis rate of 0.001%.
1271
+ indicates an analysis rate of 0.001%!
1272
+ (MISSING)
1269
1273
  """
1270
1274
  return pulumi.get(self, "netflow_sampling_rate")
1271
1275
 
@@ -1589,6 +1593,7 @@ class DistributedVirtualSwitchArgs:
1589
1593
  `vlan_range` definitions are allowed, but they must not overlap. Example
1590
1594
  below:
1591
1595
 
1596
+ <!--Start PulumiCodeChooser -->
1592
1597
  ```python
1593
1598
  import pulumi
1594
1599
  import pulumi_vsphere as vsphere
@@ -1604,6 +1609,7 @@ class DistributedVirtualSwitchArgs:
1604
1609
  ),
1605
1610
  ])
1606
1611
  ```
1612
+ <!--End PulumiCodeChooser -->
1607
1613
  """
1608
1614
  return pulumi.get(self, "vlan_ranges")
1609
1615
 
@@ -1924,7 +1930,8 @@ class _DistributedVirtualSwitchState:
1924
1930
  :param pulumi.Input[int] netflow_sampling_rate: The ratio of total number of packets to
1925
1931
  the number of packets analyzed. The default is `0`, which indicates that the
1926
1932
  VDS should analyze all packets. The maximum value is `1000`, which
1927
- indicates an analysis rate of 0.001%.
1933
+ indicates an analysis rate of 0.001%!
1934
+ (MISSING)
1928
1935
  :param pulumi.Input[bool] network_resource_control_enabled: Set to `true` to enable
1929
1936
  network I/O control. Default: `false`.
1930
1937
  :param pulumi.Input[str] network_resource_control_version: The version of network I/O
@@ -1973,6 +1980,7 @@ class _DistributedVirtualSwitchState:
1973
1980
  `vlan_range` definitions are allowed, but they must not overlap. Example
1974
1981
  below:
1975
1982
 
1983
+ <!--Start PulumiCodeChooser -->
1976
1984
  ```python
1977
1985
  import pulumi
1978
1986
  import pulumi_vsphere as vsphere
@@ -1988,6 +1996,7 @@ class _DistributedVirtualSwitchState:
1988
1996
  ),
1989
1997
  ])
1990
1998
  ```
1999
+ <!--End PulumiCodeChooser -->
1991
2000
  :param pulumi.Input[int] vmotion_maximum_mbit: The maximum allowed usage for the vmotion traffic class, in Mbits/sec.
1992
2001
  :param pulumi.Input[int] vmotion_reservation_mbit: The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec.
1993
2002
  :param pulumi.Input[int] vmotion_share_count: The amount of shares to allocate to the vmotion traffic class for a custom share level.
@@ -2979,7 +2988,8 @@ class _DistributedVirtualSwitchState:
2979
2988
  The ratio of total number of packets to
2980
2989
  the number of packets analyzed. The default is `0`, which indicates that the
2981
2990
  VDS should analyze all packets. The maximum value is `1000`, which
2982
- indicates an analysis rate of 0.001%.
2991
+ indicates an analysis rate of 0.001%!
2992
+ (MISSING)
2983
2993
  """
2984
2994
  return pulumi.get(self, "netflow_sampling_rate")
2985
2995
 
@@ -3303,6 +3313,7 @@ class _DistributedVirtualSwitchState:
3303
3313
  `vlan_range` definitions are allowed, but they must not overlap. Example
3304
3314
  below:
3305
3315
 
3316
+ <!--Start PulumiCodeChooser -->
3306
3317
  ```python
3307
3318
  import pulumi
3308
3319
  import pulumi_vsphere as vsphere
@@ -3318,6 +3329,7 @@ class _DistributedVirtualSwitchState:
3318
3329
  ),
3319
3330
  ])
3320
3331
  ```
3332
+ <!--End PulumiCodeChooser -->
3321
3333
  """
3322
3334
  return pulumi.get(self, "vlan_ranges")
3323
3335
 
@@ -3640,7 +3652,8 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
3640
3652
  :param pulumi.Input[int] netflow_sampling_rate: The ratio of total number of packets to
3641
3653
  the number of packets analyzed. The default is `0`, which indicates that the
3642
3654
  VDS should analyze all packets. The maximum value is `1000`, which
3643
- indicates an analysis rate of 0.001%.
3655
+ indicates an analysis rate of 0.001%!
3656
+ (MISSING)
3644
3657
  :param pulumi.Input[bool] network_resource_control_enabled: Set to `true` to enable
3645
3658
  network I/O control. Default: `false`.
3646
3659
  :param pulumi.Input[str] network_resource_control_version: The version of network I/O
@@ -3689,6 +3702,7 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
3689
3702
  `vlan_range` definitions are allowed, but they must not overlap. Example
3690
3703
  below:
3691
3704
 
3705
+ <!--Start PulumiCodeChooser -->
3692
3706
  ```python
3693
3707
  import pulumi
3694
3708
  import pulumi_vsphere as vsphere
@@ -3704,6 +3718,7 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
3704
3718
  ),
3705
3719
  ])
3706
3720
  ```
3721
+ <!--End PulumiCodeChooser -->
3707
3722
  :param pulumi.Input[int] vmotion_maximum_mbit: The maximum allowed usage for the vmotion traffic class, in Mbits/sec.
3708
3723
  :param pulumi.Input[int] vmotion_reservation_mbit: The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec.
3709
3724
  :param pulumi.Input[int] vmotion_share_count: The amount of shares to allocate to the vmotion traffic class for a custom share level.
@@ -4164,7 +4179,8 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
4164
4179
  :param pulumi.Input[int] netflow_sampling_rate: The ratio of total number of packets to
4165
4180
  the number of packets analyzed. The default is `0`, which indicates that the
4166
4181
  VDS should analyze all packets. The maximum value is `1000`, which
4167
- indicates an analysis rate of 0.001%.
4182
+ indicates an analysis rate of 0.001%!
4183
+ (MISSING)
4168
4184
  :param pulumi.Input[bool] network_resource_control_enabled: Set to `true` to enable
4169
4185
  network I/O control. Default: `false`.
4170
4186
  :param pulumi.Input[str] network_resource_control_version: The version of network I/O
@@ -4213,6 +4229,7 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
4213
4229
  `vlan_range` definitions are allowed, but they must not overlap. Example
4214
4230
  below:
4215
4231
 
4232
+ <!--Start PulumiCodeChooser -->
4216
4233
  ```python
4217
4234
  import pulumi
4218
4235
  import pulumi_vsphere as vsphere
@@ -4228,6 +4245,7 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
4228
4245
  ),
4229
4246
  ])
4230
4247
  ```
4248
+ <!--End PulumiCodeChooser -->
4231
4249
  :param pulumi.Input[int] vmotion_maximum_mbit: The maximum allowed usage for the vmotion traffic class, in Mbits/sec.
4232
4250
  :param pulumi.Input[int] vmotion_reservation_mbit: The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec.
4233
4251
  :param pulumi.Input[int] vmotion_share_count: The amount of shares to allocate to the vmotion traffic class for a custom share level.
@@ -4885,7 +4903,8 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
4885
4903
  The ratio of total number of packets to
4886
4904
  the number of packets analyzed. The default is `0`, which indicates that the
4887
4905
  VDS should analyze all packets. The maximum value is `1000`, which
4888
- indicates an analysis rate of 0.001%.
4906
+ indicates an analysis rate of 0.001%!
4907
+ (MISSING)
4889
4908
  """
4890
4909
  return pulumi.get(self, "netflow_sampling_rate")
4891
4910
 
@@ -5109,6 +5128,7 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
5109
5128
  `vlan_range` definitions are allowed, but they must not overlap. Example
5110
5129
  below:
5111
5130
 
5131
+ <!--Start PulumiCodeChooser -->
5112
5132
  ```python
5113
5133
  import pulumi
5114
5134
  import pulumi_vsphere as vsphere
@@ -5124,6 +5144,7 @@ class DistributedVirtualSwitch(pulumi.CustomResource):
5124
5144
  ),
5125
5145
  ])
5126
5146
  ```
5147
+ <!--End PulumiCodeChooser -->
5127
5148
  """
5128
5149
  return pulumi.get(self, "vlan_ranges")
5129
5150
 
pulumi_vsphere/file.py CHANGED
@@ -295,8 +295,10 @@ class File(pulumi.CustomResource):
295
295
  __props__=None):
296
296
  """
297
297
  ## Example Usage
298
+
298
299
  ### Uploading a File
299
300
 
301
+ <!--Start PulumiCodeChooser -->
300
302
  ```python
301
303
  import pulumi
302
304
  import pulumi_vsphere as vsphere
@@ -308,8 +310,11 @@ class File(pulumi.CustomResource):
308
310
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
309
311
  source_file="/my/src/path/custom_ubuntu.vmdk")
310
312
  ```
313
+ <!--End PulumiCodeChooser -->
314
+
311
315
  ### Copying a File
312
316
 
317
+ <!--Start PulumiCodeChooser -->
313
318
  ```python
314
319
  import pulumi
315
320
  import pulumi_vsphere as vsphere
@@ -323,6 +328,7 @@ class File(pulumi.CustomResource):
323
328
  source_datastore="datastore-01",
324
329
  source_file="/my/src/path/custom_ubuntu.vmdk")
325
330
  ```
331
+ <!--End PulumiCodeChooser -->
326
332
 
327
333
  :param str resource_name: The name of the resource.
328
334
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -351,8 +357,10 @@ class File(pulumi.CustomResource):
351
357
  opts: Optional[pulumi.ResourceOptions] = None):
352
358
  """
353
359
  ## Example Usage
360
+
354
361
  ### Uploading a File
355
362
 
363
+ <!--Start PulumiCodeChooser -->
356
364
  ```python
357
365
  import pulumi
358
366
  import pulumi_vsphere as vsphere
@@ -364,8 +372,11 @@ class File(pulumi.CustomResource):
364
372
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
365
373
  source_file="/my/src/path/custom_ubuntu.vmdk")
366
374
  ```
375
+ <!--End PulumiCodeChooser -->
376
+
367
377
  ### Copying a File
368
378
 
379
+ <!--Start PulumiCodeChooser -->
369
380
  ```python
370
381
  import pulumi
371
382
  import pulumi_vsphere as vsphere
@@ -379,6 +390,7 @@ class File(pulumi.CustomResource):
379
390
  source_datastore="datastore-01",
380
391
  source_file="/my/src/path/custom_ubuntu.vmdk")
381
392
  ```
393
+ <!--End PulumiCodeChooser -->
382
394
 
383
395
  :param str resource_name: The name of the resource.
384
396
  :param FileArgs args: The arguments to use to populate this resource's properties.
@@ -91,6 +91,7 @@ def get_compute_cluster(datacenter_id: Optional[str] = None,
91
91
 
92
92
  ## Example Usage
93
93
 
94
+ <!--Start PulumiCodeChooser -->
94
95
  ```python
95
96
  import pulumi
96
97
  import pulumi_vsphere as vsphere
@@ -99,6 +100,7 @@ def get_compute_cluster(datacenter_id: Optional[str] = None,
99
100
  compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
100
101
  datacenter_id=datacenter.id)
101
102
  ```
103
+ <!--End PulumiCodeChooser -->
102
104
 
103
105
 
104
106
  :param str datacenter_id: The managed object reference ID
@@ -137,6 +139,7 @@ def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str
137
139
 
138
140
  ## Example Usage
139
141
 
142
+ <!--Start PulumiCodeChooser -->
140
143
  ```python
141
144
  import pulumi
142
145
  import pulumi_vsphere as vsphere
@@ -145,6 +148,7 @@ def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str
145
148
  compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
146
149
  datacenter_id=datacenter.id)
147
150
  ```
151
+ <!--End PulumiCodeChooser -->
148
152
 
149
153
 
150
154
  :param str datacenter_id: The managed object reference ID
@@ -85,6 +85,7 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None,
85
85
 
86
86
  ## Example Usage
87
87
 
88
+ <!--Start PulumiCodeChooser -->
88
89
  ```python
89
90
  import pulumi
90
91
  import pulumi_vsphere as vsphere
@@ -99,6 +100,7 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None,
99
100
  vm_group_name="vm_group1",
100
101
  affinity_host_group_name=host_group1.name)
101
102
  ```
103
+ <!--End PulumiCodeChooser -->
102
104
 
103
105
 
104
106
  :param str compute_cluster_id: The [managed object reference ID][docs-about-morefs]
@@ -131,6 +133,7 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
131
133
 
132
134
  ## Example Usage
133
135
 
136
+ <!--Start PulumiCodeChooser -->
134
137
  ```python
135
138
  import pulumi
136
139
  import pulumi_vsphere as vsphere
@@ -145,6 +148,7 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
145
148
  vm_group_name="vm_group1",
146
149
  affinity_host_group_name=host_group1.name)
147
150
  ```
151
+ <!--End PulumiCodeChooser -->
148
152
 
149
153
 
150
154
  :param str compute_cluster_id: The [managed object reference ID][docs-about-morefs]
@@ -62,12 +62,14 @@ def get_content_library(name: Optional[str] = None,
62
62
 
63
63
  ## Example Usage
64
64
 
65
+ <!--Start PulumiCodeChooser -->
65
66
  ```python
66
67
  import pulumi
67
68
  import pulumi_vsphere as vsphere
68
69
 
69
70
  library = vsphere.get_content_library(name="Content Library")
70
71
  ```
72
+ <!--End PulumiCodeChooser -->
71
73
 
72
74
 
73
75
  :param str name: The name of the content library.
@@ -92,12 +94,14 @@ def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
92
94
 
93
95
  ## Example Usage
94
96
 
97
+ <!--Start PulumiCodeChooser -->
95
98
  ```python
96
99
  import pulumi
97
100
  import pulumi_vsphere as vsphere
98
101
 
99
102
  library = vsphere.get_content_library(name="Content Library")
100
103
  ```
104
+ <!--End PulumiCodeChooser -->
101
105
 
102
106
 
103
107
  :param str name: The name of the content library.
@@ -76,12 +76,14 @@ def get_custom_attribute(name: Optional[str] = None,
76
76
 
77
77
  ## Example Usage
78
78
 
79
+ <!--Start PulumiCodeChooser -->
79
80
  ```python
80
81
  import pulumi
81
82
  import pulumi_vsphere as vsphere
82
83
 
83
84
  attribute = vsphere.get_custom_attribute(name="test-attribute")
84
85
  ```
86
+ <!--End PulumiCodeChooser -->
85
87
 
86
88
 
87
89
  :param str name: The name of the custom attribute.
@@ -112,12 +114,14 @@ def get_custom_attribute_output(name: 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
118
121
 
119
122
  attribute = vsphere.get_custom_attribute(name="test-attribute")
120
123
  ```
124
+ <!--End PulumiCodeChooser -->
121
125
 
122
126
 
123
127
  :param str name: The name of the custom attribute.
@@ -63,12 +63,14 @@ def get_datacenter(name: Optional[str] = None,
63
63
 
64
64
  ## Example Usage
65
65
 
66
+ <!--Start PulumiCodeChooser -->
66
67
  ```python
67
68
  import pulumi
68
69
  import pulumi_vsphere as vsphere
69
70
 
70
71
  datacenter = vsphere.get_datacenter(name="dc-01")
71
72
  ```
73
+ <!--End PulumiCodeChooser -->
72
74
 
73
75
 
74
76
  :param str name: The name of the datacenter. This can be a name or path.
@@ -100,12 +102,14 @@ def get_datacenter_output(name: Optional[pulumi.Input[Optional[str]]] = None,
100
102
 
101
103
  ## Example Usage
102
104
 
105
+ <!--Start PulumiCodeChooser -->
103
106
  ```python
104
107
  import pulumi
105
108
  import pulumi_vsphere as vsphere
106
109
 
107
110
  datacenter = vsphere.get_datacenter(name="dc-01")
108
111
  ```
112
+ <!--End PulumiCodeChooser -->
109
113
 
110
114
 
111
115
  :param str name: The name of the datacenter. This can be a name or path.