pulumi-vsphere 4.10.0a1710245029__py3-none-any.whl → 4.10.1__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 (52) hide show
  1. pulumi_vsphere/_inputs.py +96 -230
  2. pulumi_vsphere/compute_cluster.py +700 -1477
  3. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +28 -16
  4. pulumi_vsphere/datacenter.py +26 -12
  5. pulumi_vsphere/datastore_cluster.py +154 -350
  6. pulumi_vsphere/distributed_port_group.py +70 -175
  7. pulumi_vsphere/distributed_virtual_switch.py +308 -805
  8. pulumi_vsphere/file.py +16 -24
  9. pulumi_vsphere/get_compute_cluster.py +0 -4
  10. pulumi_vsphere/get_compute_cluster_host_group.py +8 -10
  11. pulumi_vsphere/get_content_library.py +0 -4
  12. pulumi_vsphere/get_custom_attribute.py +0 -4
  13. pulumi_vsphere/get_datacenter.py +0 -4
  14. pulumi_vsphere/get_datastore.py +0 -4
  15. pulumi_vsphere/get_datastore_cluster.py +0 -4
  16. pulumi_vsphere/get_datastore_stats.py +4 -12
  17. pulumi_vsphere/get_distributed_virtual_switch.py +2 -4
  18. pulumi_vsphere/get_dynamic.py +4 -8
  19. pulumi_vsphere/get_folder.py +0 -4
  20. pulumi_vsphere/get_guest_os_customization.py +0 -4
  21. pulumi_vsphere/get_host.py +0 -4
  22. pulumi_vsphere/get_host_pci_device.py +4 -12
  23. pulumi_vsphere/get_host_thumbprint.py +0 -4
  24. pulumi_vsphere/get_host_vgpu_profile.py +0 -8
  25. pulumi_vsphere/get_license.py +0 -4
  26. pulumi_vsphere/get_network.py +0 -4
  27. pulumi_vsphere/get_policy.py +0 -4
  28. pulumi_vsphere/get_resource_pool.py +2 -10
  29. pulumi_vsphere/get_role.py +0 -4
  30. pulumi_vsphere/get_tag.py +0 -4
  31. pulumi_vsphere/get_tag_category.py +0 -4
  32. pulumi_vsphere/get_vapp_container.py +0 -4
  33. pulumi_vsphere/get_virtual_machine.py +0 -8
  34. pulumi_vsphere/get_vmfs_disks.py +0 -4
  35. pulumi_vsphere/guest_os_customization.py +50 -0
  36. pulumi_vsphere/ha_vm_override.py +189 -378
  37. pulumi_vsphere/host.py +0 -20
  38. pulumi_vsphere/host_port_group.py +12 -24
  39. pulumi_vsphere/host_virtual_switch.py +140 -287
  40. pulumi_vsphere/license.py +0 -32
  41. pulumi_vsphere/outputs.py +96 -230
  42. pulumi_vsphere/resource_pool.py +48 -22
  43. pulumi_vsphere/virtual_disk.py +10 -10
  44. pulumi_vsphere/virtual_machine.py +578 -807
  45. pulumi_vsphere/virtual_machine_snapshot.py +6 -10
  46. pulumi_vsphere/vm_storage_policy.py +72 -84
  47. pulumi_vsphere/vnic.py +8 -20
  48. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.1.dist-info}/METADATA +1 -1
  49. pulumi_vsphere-4.10.1.dist-info/RECORD +82 -0
  50. pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +0 -82
  51. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.1.dist-info}/WHEEL +0 -0
  52. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.1.dist-info}/top_level.txt +0 -0
pulumi_vsphere/file.py CHANGED
@@ -298,37 +298,33 @@ 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
305
304
 
306
- ubuntu_vmdk_upload = vsphere.File("ubuntuVmdkUpload",
307
- create_directories=True,
305
+ ubuntu_vmdk_upload = vsphere.File("ubuntu_vmdk_upload",
308
306
  datacenter="dc-01",
309
307
  datastore="datastore-01",
308
+ source_file="/my/src/path/custom_ubuntu.vmdk",
310
309
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
311
- source_file="/my/src/path/custom_ubuntu.vmdk")
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
321
318
 
322
- ubuntu_copy = vsphere.File("ubuntuCopy",
323
- create_directories=True,
319
+ ubuntu_copy = vsphere.File("ubuntu_copy",
320
+ source_datacenter="dc-01",
324
321
  datacenter="dc-01",
322
+ source_datastore="datastore-01",
325
323
  datastore="datastore-01",
324
+ source_file="/my/src/path/custom_ubuntu.vmdk",
326
325
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
327
- source_datacenter="dc-01",
328
- source_datastore="datastore-01",
329
- source_file="/my/src/path/custom_ubuntu.vmdk")
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,37 +356,33 @@ 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
367
362
 
368
- ubuntu_vmdk_upload = vsphere.File("ubuntuVmdkUpload",
369
- create_directories=True,
363
+ ubuntu_vmdk_upload = vsphere.File("ubuntu_vmdk_upload",
370
364
  datacenter="dc-01",
371
365
  datastore="datastore-01",
366
+ source_file="/my/src/path/custom_ubuntu.vmdk",
372
367
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
373
- source_file="/my/src/path/custom_ubuntu.vmdk")
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
383
376
 
384
- ubuntu_copy = vsphere.File("ubuntuCopy",
385
- create_directories=True,
377
+ ubuntu_copy = vsphere.File("ubuntu_copy",
378
+ source_datacenter="dc-01",
386
379
  datacenter="dc-01",
380
+ source_datastore="datastore-01",
387
381
  datastore="datastore-01",
382
+ source_file="/my/src/path/custom_ubuntu.vmdk",
388
383
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
389
- source_datacenter="dc-01",
390
- source_datastore="datastore-01",
391
- source_file="/my/src/path/custom_ubuntu.vmdk")
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,22 +85,21 @@ 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
92
91
 
93
- datacenter = vsphere.get_datacenter(name=var["vsphere_datacenter"])
94
- cluster = vsphere.get_compute_cluster(name=var["vsphere_cluster"],
92
+ datacenter = vsphere.get_datacenter(name=vsphere_datacenter)
93
+ cluster = vsphere.get_compute_cluster(name=vsphere_cluster,
95
94
  datacenter_id=datacenter.id)
96
95
  host_group1 = vsphere.get_compute_cluster_host_group(name="host_group1",
97
96
  compute_cluster_id=cluster.id)
98
- host_rule1 = vsphere.ComputeClusterVmHostRule("hostRule1",
97
+ host_rule1 = vsphere.ComputeClusterVmHostRule("host_rule1",
99
98
  compute_cluster_id=cluster.id,
99
+ name="terraform-host-rule1",
100
100
  vm_group_name="vm_group1",
101
101
  affinity_host_group_name=host_group1.name)
102
102
  ```
103
- <!--End PulumiCodeChooser -->
104
103
 
105
104
 
106
105
  :param str compute_cluster_id: The [managed object reference ID][docs-about-morefs]
@@ -133,22 +132,21 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
133
132
 
134
133
  ## Example Usage
135
134
 
136
- <!--Start PulumiCodeChooser -->
137
135
  ```python
138
136
  import pulumi
139
137
  import pulumi_vsphere as vsphere
140
138
 
141
- datacenter = vsphere.get_datacenter(name=var["vsphere_datacenter"])
142
- cluster = vsphere.get_compute_cluster(name=var["vsphere_cluster"],
139
+ datacenter = vsphere.get_datacenter(name=vsphere_datacenter)
140
+ cluster = vsphere.get_compute_cluster(name=vsphere_cluster,
143
141
  datacenter_id=datacenter.id)
144
142
  host_group1 = vsphere.get_compute_cluster_host_group(name="host_group1",
145
143
  compute_cluster_id=cluster.id)
146
- host_rule1 = vsphere.ComputeClusterVmHostRule("hostRule1",
144
+ host_rule1 = vsphere.ComputeClusterVmHostRule("host_rule1",
147
145
  compute_cluster_id=cluster.id,
146
+ name="terraform-host-rule1",
148
147
  vm_group_name="vm_group1",
149
148
  affinity_host_group_name=host_group1.name)
150
149
  ```
151
- <!--End PulumiCodeChooser -->
152
150
 
153
151
 
154
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.
@@ -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.
@@ -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
- pulumi.export("maxFreeSpaceName", local["max_free_space_name"])
119
- pulumi.export("maxFreeSpace", local["max_free_space"])
115
+ pulumi.export("maxFreeSpaceName", their_max_free_space_name)
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
- pulumi.export("maxFreeSpaceName", local["max_free_space_name"])
184
- pulumi.export("maxFreeSpace", local["max_free_space"])
176
+ pulumi.export("maxFreeSpaceName", their_max_free_space_name)
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
@@ -106,11 +105,11 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
106
105
  vds = vsphere.get_distributed_virtual_switch(name="vds-01",
107
106
  datacenter_id=datacenter.id)
108
107
  dvpg = vsphere.DistributedPortGroup("dvpg",
108
+ name="dvpg-01",
109
109
  distributed_virtual_switch_uuid=vds.id,
110
110
  active_uplinks=[vds.uplinks[0]],
111
111
  standby_uplinks=[vds.uplinks[1]])
112
112
  ```
113
- <!--End PulumiCodeChooser -->
114
113
 
115
114
 
116
115
  :param str datacenter_id: The managed object reference ID
@@ -153,7 +152,6 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
153
152
  `DistributedPortGroup` resource that uses the first uplink as a
154
153
  primary uplink and the second uplink as a secondary.
155
154
 
156
- <!--Start PulumiCodeChooser -->
157
155
  ```python
158
156
  import pulumi
159
157
  import pulumi_vsphere as vsphere
@@ -162,11 +160,11 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
162
160
  vds = vsphere.get_distributed_virtual_switch(name="vds-01",
163
161
  datacenter_id=datacenter.id)
164
162
  dvpg = vsphere.DistributedPortGroup("dvpg",
163
+ name="dvpg-01",
165
164
  distributed_virtual_switch_uuid=vds.id,
166
165
  active_uplinks=[vds.uplinks[0]],
167
166
  standby_uplinks=[vds.uplinks[1]])
168
167
  ```
169
- <!--End PulumiCodeChooser -->
170
168
 
171
169
 
172
170
  :param str datacenter_id: The managed object reference ID
@@ -84,16 +84,15 @@ 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
91
90
 
92
91
  category = vsphere.get_tag_category(name="SomeCategory")
93
92
  tag1 = vsphere.get_tag(name="FirstTag",
94
- category_id=data["vsphere_tag_category"]["cat"]["id"])
93
+ category_id=cat["id"])
95
94
  tag2 = vsphere.get_tag(name="SecondTag",
96
- category_id=data["vsphere_tag_category"]["cat"]["id"])
95
+ category_id=cat["id"])
97
96
  dyn = vsphere.get_dynamic(filters=[
98
97
  tag1.id,
99
98
  tag1.id,
@@ -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,16 +138,15 @@ 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
147
144
 
148
145
  category = vsphere.get_tag_category(name="SomeCategory")
149
146
  tag1 = vsphere.get_tag(name="FirstTag",
150
- category_id=data["vsphere_tag_category"]["cat"]["id"])
147
+ category_id=cat["id"])
151
148
  tag2 = vsphere.get_tag(name="SecondTag",
152
- category_id=data["vsphere_tag_category"]["cat"]["id"])
149
+ category_id=cat["id"])
153
150
  dyn = vsphere.get_dynamic(filters=[
154
151
  tag1.id,
155
152
  tag1.id,
@@ -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
@@ -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.
@@ -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
- datacenter_id=datacenter.id)
129
+ datacenter_id=datacenter.id)
133
130
  dev = vsphere.get_host_pci_device(host_id=host.id,
134
- name_regex="MMC")
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
- datacenter_id=datacenter.id)
197
+ datacenter_id=datacenter.id)
205
198
  dev = vsphere.get_host_pci_device(host_id=host.id,
206
- name_regex="MMC")
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