pulumi-vsphere 4.10.0a1710245029__py3-none-any.whl → 4.10.2__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 (64) hide show
  1. pulumi_vsphere/__init__.py +28 -0
  2. pulumi_vsphere/_inputs.py +566 -236
  3. pulumi_vsphere/_utilities.py +35 -0
  4. pulumi_vsphere/compute_cluster.py +747 -1477
  5. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +28 -20
  6. pulumi_vsphere/datacenter.py +33 -40
  7. pulumi_vsphere/datastore_cluster.py +154 -364
  8. pulumi_vsphere/distributed_port_group.py +126 -182
  9. pulumi_vsphere/distributed_virtual_switch.py +301 -819
  10. pulumi_vsphere/entity_permissions.py +56 -35
  11. pulumi_vsphere/file.py +16 -24
  12. pulumi_vsphere/folder.py +7 -28
  13. pulumi_vsphere/get_compute_cluster.py +0 -4
  14. pulumi_vsphere/get_compute_cluster_host_group.py +20 -20
  15. pulumi_vsphere/get_content_library.py +10 -10
  16. pulumi_vsphere/get_content_library_item.py +12 -8
  17. pulumi_vsphere/get_custom_attribute.py +0 -4
  18. pulumi_vsphere/get_datacenter.py +0 -4
  19. pulumi_vsphere/get_datastore.py +9 -13
  20. pulumi_vsphere/get_datastore_cluster.py +0 -4
  21. pulumi_vsphere/get_datastore_stats.py +38 -44
  22. pulumi_vsphere/get_distributed_virtual_switch.py +2 -4
  23. pulumi_vsphere/get_dynamic.py +18 -20
  24. pulumi_vsphere/get_folder.py +10 -6
  25. pulumi_vsphere/get_guest_os_customization.py +8 -47
  26. pulumi_vsphere/get_host.py +0 -4
  27. pulumi_vsphere/get_host_base_images.py +97 -0
  28. pulumi_vsphere/get_host_pci_device.py +8 -14
  29. pulumi_vsphere/get_host_thumbprint.py +12 -16
  30. pulumi_vsphere/get_host_vgpu_profile.py +4 -10
  31. pulumi_vsphere/get_license.py +2 -5
  32. pulumi_vsphere/get_network.py +14 -18
  33. pulumi_vsphere/get_policy.py +0 -4
  34. pulumi_vsphere/get_resource_pool.py +14 -18
  35. pulumi_vsphere/get_role.py +4 -8
  36. pulumi_vsphere/get_tag.py +0 -4
  37. pulumi_vsphere/get_tag_category.py +0 -4
  38. pulumi_vsphere/get_vapp_container.py +0 -4
  39. pulumi_vsphere/get_virtual_machine.py +58 -41
  40. pulumi_vsphere/get_vmfs_disks.py +0 -4
  41. pulumi_vsphere/guest_os_customization.py +50 -0
  42. pulumi_vsphere/ha_vm_override.py +189 -378
  43. pulumi_vsphere/host.py +0 -20
  44. pulumi_vsphere/host_port_group.py +12 -24
  45. pulumi_vsphere/host_virtual_switch.py +140 -287
  46. pulumi_vsphere/license.py +0 -32
  47. pulumi_vsphere/nas_datastore.py +7 -7
  48. pulumi_vsphere/offline_software_depot.py +180 -0
  49. pulumi_vsphere/outputs.py +591 -270
  50. pulumi_vsphere/provider.py +2 -6
  51. pulumi_vsphere/pulumi-plugin.json +2 -1
  52. pulumi_vsphere/resource_pool.py +50 -24
  53. pulumi_vsphere/supervisor.py +962 -0
  54. pulumi_vsphere/virtual_disk.py +14 -20
  55. pulumi_vsphere/virtual_machine.py +580 -809
  56. pulumi_vsphere/virtual_machine_class.py +442 -0
  57. pulumi_vsphere/virtual_machine_snapshot.py +8 -12
  58. pulumi_vsphere/vm_storage_policy.py +74 -86
  59. pulumi_vsphere/vnic.py +61 -77
  60. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/METADATA +1 -1
  61. pulumi_vsphere-4.10.2.dist-info/RECORD +86 -0
  62. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/WHEEL +1 -1
  63. pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +0 -82
  64. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/top_level.txt +0 -0
@@ -21,11 +21,14 @@ class EntityPermissionsArgs:
21
21
  permissions: pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]):
22
22
  """
23
23
  The set of arguments for constructing a EntityPermissions resource.
24
- :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on which permissions are to be created.
25
- :param pulumi.Input[str] entity_type: The managed object type, types can be found in the managed object type section
26
- [here](https://developer.vmware.com/apis/968/vsphere).
27
- :param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep the permissions sorted
28
- alphabetically on `user_or_group` for a better user experience.
24
+ :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
25
+ which permissions are to be created.
26
+ :param pulumi.Input[str] entity_type: The managed object type, types can be found in the
27
+ managed object type section
28
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
29
+ :param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep
30
+ the permissions sorted alphabetically on `user_or_group` for a better user
31
+ experience.
29
32
  """
30
33
  pulumi.set(__self__, "entity_id", entity_id)
31
34
  pulumi.set(__self__, "entity_type", entity_type)
@@ -35,7 +38,8 @@ class EntityPermissionsArgs:
35
38
  @pulumi.getter(name="entityId")
36
39
  def entity_id(self) -> pulumi.Input[str]:
37
40
  """
38
- The managed object id (uuid for some entities) on which permissions are to be created.
41
+ The managed object id (uuid for some entities) on
42
+ which permissions are to be created.
39
43
  """
40
44
  return pulumi.get(self, "entity_id")
41
45
 
@@ -47,8 +51,9 @@ class EntityPermissionsArgs:
47
51
  @pulumi.getter(name="entityType")
48
52
  def entity_type(self) -> pulumi.Input[str]:
49
53
  """
50
- The managed object type, types can be found in the managed object type section
51
- [here](https://developer.vmware.com/apis/968/vsphere).
54
+ The managed object type, types can be found in the
55
+ managed object type section
56
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
52
57
  """
53
58
  return pulumi.get(self, "entity_type")
54
59
 
@@ -60,8 +65,9 @@ class EntityPermissionsArgs:
60
65
  @pulumi.getter
61
66
  def permissions(self) -> pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]:
62
67
  """
63
- The permissions to be given on this entity. Keep the permissions sorted
64
- alphabetically on `user_or_group` for a better user experience.
68
+ The permissions to be given on this entity. Keep
69
+ the permissions sorted alphabetically on `user_or_group` for a better user
70
+ experience.
65
71
  """
66
72
  return pulumi.get(self, "permissions")
67
73
 
@@ -78,11 +84,14 @@ class _EntityPermissionsState:
78
84
  permissions: Optional[pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]] = None):
79
85
  """
80
86
  Input properties used for looking up and filtering EntityPermissions resources.
81
- :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on which permissions are to be created.
82
- :param pulumi.Input[str] entity_type: The managed object type, types can be found in the managed object type section
83
- [here](https://developer.vmware.com/apis/968/vsphere).
84
- :param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep the permissions sorted
85
- alphabetically on `user_or_group` for a better user experience.
87
+ :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
88
+ which permissions are to be created.
89
+ :param pulumi.Input[str] entity_type: The managed object type, types can be found in the
90
+ managed object type section
91
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
92
+ :param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep
93
+ the permissions sorted alphabetically on `user_or_group` for a better user
94
+ experience.
86
95
  """
87
96
  if entity_id is not None:
88
97
  pulumi.set(__self__, "entity_id", entity_id)
@@ -95,7 +104,8 @@ class _EntityPermissionsState:
95
104
  @pulumi.getter(name="entityId")
96
105
  def entity_id(self) -> Optional[pulumi.Input[str]]:
97
106
  """
98
- The managed object id (uuid for some entities) on which permissions are to be created.
107
+ The managed object id (uuid for some entities) on
108
+ which permissions are to be created.
99
109
  """
100
110
  return pulumi.get(self, "entity_id")
101
111
 
@@ -107,8 +117,9 @@ class _EntityPermissionsState:
107
117
  @pulumi.getter(name="entityType")
108
118
  def entity_type(self) -> Optional[pulumi.Input[str]]:
109
119
  """
110
- The managed object type, types can be found in the managed object type section
111
- [here](https://developer.vmware.com/apis/968/vsphere).
120
+ The managed object type, types can be found in the
121
+ managed object type section
122
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
112
123
  """
113
124
  return pulumi.get(self, "entity_type")
114
125
 
@@ -120,8 +131,9 @@ class _EntityPermissionsState:
120
131
  @pulumi.getter
121
132
  def permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]]:
122
133
  """
123
- The permissions to be given on this entity. Keep the permissions sorted
124
- alphabetically on `user_or_group` for a better user experience.
134
+ The permissions to be given on this entity. Keep
135
+ the permissions sorted alphabetically on `user_or_group` for a better user
136
+ experience.
125
137
  """
126
138
  return pulumi.get(self, "permissions")
127
139
 
@@ -143,11 +155,14 @@ class EntityPermissions(pulumi.CustomResource):
143
155
  Create a EntityPermissions resource with the given unique name, props, and options.
144
156
  :param str resource_name: The name of the resource.
145
157
  :param pulumi.ResourceOptions opts: Options for the resource.
146
- :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on which permissions are to be created.
147
- :param pulumi.Input[str] entity_type: The managed object type, types can be found in the managed object type section
148
- [here](https://developer.vmware.com/apis/968/vsphere).
149
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]] permissions: The permissions to be given on this entity. Keep the permissions sorted
150
- alphabetically on `user_or_group` for a better user experience.
158
+ :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
159
+ which permissions are to be created.
160
+ :param pulumi.Input[str] entity_type: The managed object type, types can be found in the
161
+ managed object type section
162
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
163
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]] permissions: The permissions to be given on this entity. Keep
164
+ the permissions sorted alphabetically on `user_or_group` for a better user
165
+ experience.
151
166
  """
152
167
  ...
153
168
  @overload
@@ -213,11 +228,14 @@ class EntityPermissions(pulumi.CustomResource):
213
228
  :param str resource_name: The unique name of the resulting resource.
214
229
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
215
230
  :param pulumi.ResourceOptions opts: Options for the resource.
216
- :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on which permissions are to be created.
217
- :param pulumi.Input[str] entity_type: The managed object type, types can be found in the managed object type section
218
- [here](https://developer.vmware.com/apis/968/vsphere).
219
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]] permissions: The permissions to be given on this entity. Keep the permissions sorted
220
- alphabetically on `user_or_group` for a better user experience.
231
+ :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
232
+ which permissions are to be created.
233
+ :param pulumi.Input[str] entity_type: The managed object type, types can be found in the
234
+ managed object type section
235
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
236
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]] permissions: The permissions to be given on this entity. Keep
237
+ the permissions sorted alphabetically on `user_or_group` for a better user
238
+ experience.
221
239
  """
222
240
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
223
241
 
@@ -232,7 +250,8 @@ class EntityPermissions(pulumi.CustomResource):
232
250
  @pulumi.getter(name="entityId")
233
251
  def entity_id(self) -> pulumi.Output[str]:
234
252
  """
235
- The managed object id (uuid for some entities) on which permissions are to be created.
253
+ The managed object id (uuid for some entities) on
254
+ which permissions are to be created.
236
255
  """
237
256
  return pulumi.get(self, "entity_id")
238
257
 
@@ -240,8 +259,9 @@ class EntityPermissions(pulumi.CustomResource):
240
259
  @pulumi.getter(name="entityType")
241
260
  def entity_type(self) -> pulumi.Output[str]:
242
261
  """
243
- The managed object type, types can be found in the managed object type section
244
- [here](https://developer.vmware.com/apis/968/vsphere).
262
+ The managed object type, types can be found in the
263
+ managed object type section
264
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
245
265
  """
246
266
  return pulumi.get(self, "entity_type")
247
267
 
@@ -249,8 +269,9 @@ class EntityPermissions(pulumi.CustomResource):
249
269
  @pulumi.getter
250
270
  def permissions(self) -> pulumi.Output[Sequence['outputs.EntityPermissionsPermission']]:
251
271
  """
252
- The permissions to be given on this entity. Keep the permissions sorted
253
- alphabetically on `user_or_group` for a better user experience.
272
+ The permissions to be given on this entity. Keep
273
+ the permissions sorted alphabetically on `user_or_group` for a better user
274
+ experience.
254
275
  """
255
276
  return pulumi.get(self, "permissions")
256
277
 
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.
pulumi_vsphere/folder.py CHANGED
@@ -36,7 +36,7 @@ class FolderArgs:
36
36
  `datacenter` for datacenter folders, `host` for host and cluster folders,
37
37
  `vm` for virtual machine folders, `datastore` for datastore folders, and
38
38
  `network` for network folders. Forces a new resource if changed.
39
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
39
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
40
40
  value strings to set for folder. See [here][docs-setting-custom-attributes]
41
41
  for a reference on how to set values for custom attributes.
42
42
 
@@ -48,9 +48,6 @@ class FolderArgs:
48
48
  Required for all folder types except for datacenter folders. Forces a new
49
49
  resource if changed.
50
50
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
51
-
52
- > **NOTE:** Tagging support is unsupported on direct ESXi connections and
53
- requires vCenter 6.0 or higher.
54
51
  """
55
52
  pulumi.set(__self__, "path", path)
56
53
  pulumi.set(__self__, "type", type)
@@ -102,7 +99,7 @@ class FolderArgs:
102
99
  @pulumi.getter(name="customAttributes")
103
100
  def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
104
101
  """
105
- Map of custom attribute ids to attribute
102
+ Map of custom attribute ids to attribute
106
103
  value strings to set for folder. See [here][docs-setting-custom-attributes]
107
104
  for a reference on how to set values for custom attributes.
108
105
 
@@ -136,9 +133,6 @@ class FolderArgs:
136
133
  def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
137
134
  """
138
135
  The IDs of any tags to attach to this resource.
139
-
140
- > **NOTE:** Tagging support is unsupported on direct ESXi connections and
141
- requires vCenter 6.0 or higher.
142
136
  """
143
137
  return pulumi.get(self, "tags")
144
138
 
@@ -157,7 +151,7 @@ class _FolderState:
157
151
  type: Optional[pulumi.Input[str]] = None):
158
152
  """
159
153
  Input properties used for looking up and filtering Folder resources.
160
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
154
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
161
155
  value strings to set for folder. See [here][docs-setting-custom-attributes]
162
156
  for a reference on how to set values for custom attributes.
163
157
 
@@ -180,9 +174,6 @@ class _FolderState:
180
174
  any part before the last `/`), your folder will be moved to that new parent. If
181
175
  modifying the name (the part after the last `/`), your folder will be renamed.
182
176
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
183
-
184
- > **NOTE:** Tagging support is unsupported on direct ESXi connections and
185
- requires vCenter 6.0 or higher.
186
177
  :param pulumi.Input[str] type: The type of folder to create. Allowed options are
187
178
  `datacenter` for datacenter folders, `host` for host and cluster folders,
188
179
  `vm` for virtual machine folders, `datastore` for datastore folders, and
@@ -203,7 +194,7 @@ class _FolderState:
203
194
  @pulumi.getter(name="customAttributes")
204
195
  def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
205
196
  """
206
- Map of custom attribute ids to attribute
197
+ Map of custom attribute ids to attribute
207
198
  value strings to set for folder. See [here][docs-setting-custom-attributes]
208
199
  for a reference on how to set values for custom attributes.
209
200
 
@@ -259,9 +250,6 @@ class _FolderState:
259
250
  def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
260
251
  """
261
252
  The IDs of any tags to attach to this resource.
262
-
263
- > **NOTE:** Tagging support is unsupported on direct ESXi connections and
264
- requires vCenter 6.0 or higher.
265
253
  """
266
254
  return pulumi.get(self, "tags")
267
255
 
@@ -300,7 +288,7 @@ class Folder(pulumi.CustomResource):
300
288
  Create a Folder resource with the given unique name, props, and options.
301
289
  :param str resource_name: The name of the resource.
302
290
  :param pulumi.ResourceOptions opts: Options for the resource.
303
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
291
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
304
292
  value strings to set for folder. See [here][docs-setting-custom-attributes]
305
293
  for a reference on how to set values for custom attributes.
306
294
 
@@ -323,9 +311,6 @@ class Folder(pulumi.CustomResource):
323
311
  any part before the last `/`), your folder will be moved to that new parent. If
324
312
  modifying the name (the part after the last `/`), your folder will be renamed.
325
313
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
326
-
327
- > **NOTE:** Tagging support is unsupported on direct ESXi connections and
328
- requires vCenter 6.0 or higher.
329
314
  :param pulumi.Input[str] type: The type of folder to create. Allowed options are
330
315
  `datacenter` for datacenter folders, `host` for host and cluster folders,
331
316
  `vm` for virtual machine folders, `datastore` for datastore folders, and
@@ -399,7 +384,7 @@ class Folder(pulumi.CustomResource):
399
384
  :param str resource_name: The unique name of the resulting resource.
400
385
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
401
386
  :param pulumi.ResourceOptions opts: Options for the resource.
402
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
387
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
403
388
  value strings to set for folder. See [here][docs-setting-custom-attributes]
404
389
  for a reference on how to set values for custom attributes.
405
390
 
@@ -422,9 +407,6 @@ class Folder(pulumi.CustomResource):
422
407
  any part before the last `/`), your folder will be moved to that new parent. If
423
408
  modifying the name (the part after the last `/`), your folder will be renamed.
424
409
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
425
-
426
- > **NOTE:** Tagging support is unsupported on direct ESXi connections and
427
- requires vCenter 6.0 or higher.
428
410
  :param pulumi.Input[str] type: The type of folder to create. Allowed options are
429
411
  `datacenter` for datacenter folders, `host` for host and cluster folders,
430
412
  `vm` for virtual machine folders, `datastore` for datastore folders, and
@@ -445,7 +427,7 @@ class Folder(pulumi.CustomResource):
445
427
  @pulumi.getter(name="customAttributes")
446
428
  def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
447
429
  """
448
- Map of custom attribute ids to attribute
430
+ Map of custom attribute ids to attribute
449
431
  value strings to set for folder. See [here][docs-setting-custom-attributes]
450
432
  for a reference on how to set values for custom attributes.
451
433
 
@@ -489,9 +471,6 @@ class Folder(pulumi.CustomResource):
489
471
  def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
490
472
  """
491
473
  The IDs of any tags to attach to this resource.
492
-
493
- > **NOTE:** Tagging support is unsupported on direct ESXi connections and
494
- requires vCenter 6.0 or higher.
495
474
  """
496
475
  return pulumi.get(self, "tags")
497
476
 
@@ -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,26 +85,26 @@ 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="dc-01")
93
+ cluster = vsphere.get_compute_cluster(name="cluster-01",
95
94
  datacenter_id=datacenter.id)
96
- host_group1 = vsphere.get_compute_cluster_host_group(name="host_group1",
95
+ host_group = vsphere.get_compute_cluster_host_group(name="hostgroup-01",
97
96
  compute_cluster_id=cluster.id)
98
- host_rule1 = vsphere.ComputeClusterVmHostRule("hostRule1",
97
+ host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
99
98
  compute_cluster_id=cluster.id,
100
- vm_group_name="vm_group1",
101
- affinity_host_group_name=host_group1.name)
99
+ name="terraform-host-rule1",
100
+ vm_group_name="vmgroup-01",
101
+ affinity_host_group_name=host_group.name)
102
102
  ```
103
- <!--End PulumiCodeChooser -->
104
103
 
105
104
 
106
- :param str compute_cluster_id: The [managed object reference ID][docs-about-morefs]
107
- of the compute cluster for the host group.
105
+ :param str compute_cluster_id: The
106
+ [managed object reference ID][docs-about-morefs] of the compute cluster for
107
+ the host group.
108
108
 
109
109
  [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
110
110
  :param str name: The name of the host group.
@@ -133,26 +133,26 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
133
133
 
134
134
  ## Example Usage
135
135
 
136
- <!--Start PulumiCodeChooser -->
137
136
  ```python
138
137
  import pulumi
139
138
  import pulumi_vsphere as vsphere
140
139
 
141
- datacenter = vsphere.get_datacenter(name=var["vsphere_datacenter"])
142
- cluster = vsphere.get_compute_cluster(name=var["vsphere_cluster"],
140
+ datacenter = vsphere.get_datacenter(name="dc-01")
141
+ cluster = vsphere.get_compute_cluster(name="cluster-01",
143
142
  datacenter_id=datacenter.id)
144
- host_group1 = vsphere.get_compute_cluster_host_group(name="host_group1",
143
+ host_group = vsphere.get_compute_cluster_host_group(name="hostgroup-01",
145
144
  compute_cluster_id=cluster.id)
146
- host_rule1 = vsphere.ComputeClusterVmHostRule("hostRule1",
145
+ host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
147
146
  compute_cluster_id=cluster.id,
148
- vm_group_name="vm_group1",
149
- affinity_host_group_name=host_group1.name)
147
+ name="terraform-host-rule1",
148
+ vm_group_name="vmgroup-01",
149
+ affinity_host_group_name=host_group.name)
150
150
  ```
151
- <!--End PulumiCodeChooser -->
152
151
 
153
152
 
154
- :param str compute_cluster_id: The [managed object reference ID][docs-about-morefs]
155
- of the compute cluster for the host group.
153
+ :param str compute_cluster_id: The
154
+ [managed object reference ID][docs-about-morefs] of the compute cluster for
155
+ the host group.
156
156
 
157
157
  [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
158
158
  :param str name: The name of the host group.
@@ -56,20 +56,20 @@ class AwaitableGetContentLibraryResult(GetContentLibraryResult):
56
56
  def get_content_library(name: Optional[str] = None,
57
57
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetContentLibraryResult:
58
58
  """
59
- The `ContentLibrary` data source can be used to discover the ID of a content library.
59
+ The `ContentLibrary` data source can be used to discover the ID of a
60
+ content library.
60
61
 
61
- > **NOTE:** This resource requires vCenter Server and is not available on direct ESXi host connections.
62
+ > **NOTE:** This resource requires vCenter and is not available on direct ESXi
63
+ host connections.
62
64
 
63
65
  ## Example Usage
64
66
 
65
- <!--Start PulumiCodeChooser -->
66
67
  ```python
67
68
  import pulumi
68
69
  import pulumi_vsphere as vsphere
69
70
 
70
- library = vsphere.get_content_library(name="Content Library")
71
+ content_library = vsphere.get_content_library(name="Content Library")
71
72
  ```
72
- <!--End PulumiCodeChooser -->
73
73
 
74
74
 
75
75
  :param str name: The name of the content library.
@@ -88,20 +88,20 @@ def get_content_library(name: Optional[str] = None,
88
88
  def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
89
89
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetContentLibraryResult]:
90
90
  """
91
- The `ContentLibrary` data source can be used to discover the ID of a content library.
91
+ The `ContentLibrary` data source can be used to discover the ID of a
92
+ content library.
92
93
 
93
- > **NOTE:** This resource requires vCenter Server and is not available on direct ESXi host connections.
94
+ > **NOTE:** This resource requires vCenter and is not available on direct ESXi
95
+ host connections.
94
96
 
95
97
  ## Example Usage
96
98
 
97
- <!--Start PulumiCodeChooser -->
98
99
  ```python
99
100
  import pulumi
100
101
  import pulumi_vsphere as vsphere
101
102
 
102
- library = vsphere.get_content_library(name="Content Library")
103
+ content_library = vsphere.get_content_library(name="Content Library")
103
104
  ```
104
- <!--End PulumiCodeChooser -->
105
105
 
106
106
 
107
107
  :param str name: The name of the content library.
@@ -79,13 +79,15 @@ def get_content_library_item(library_id: Optional[str] = None,
79
79
  The `ContentLibraryItem` data source can be used to discover the ID
80
80
  of a content library item.
81
81
 
82
- > **NOTE:** This resource requires vCenter Server and is not available on
83
- direct ESXi host connections.
82
+ > **NOTE:** This resource requires vCenter and is not available on direct ESXi
83
+ host connections.
84
84
 
85
85
 
86
- :param str library_id: The ID of the content library in which the item exists.
86
+ :param str library_id: The ID of the content library in which the item
87
+ exists.
87
88
  :param str name: The name of the content library item.
88
- :param str type: The type for the content library item. One of `ovf`, `vm-template`, or `iso`
89
+ :param str type: The type for the content library item. One of `ovf`,
90
+ `vm-template`, or `iso`
89
91
  """
90
92
  __args__ = dict()
91
93
  __args__['libraryId'] = library_id
@@ -110,12 +112,14 @@ def get_content_library_item_output(library_id: Optional[pulumi.Input[str]] = No
110
112
  The `ContentLibraryItem` data source can be used to discover the ID
111
113
  of a content library item.
112
114
 
113
- > **NOTE:** This resource requires vCenter Server and is not available on
114
- direct ESXi host connections.
115
+ > **NOTE:** This resource requires vCenter and is not available on direct ESXi
116
+ host connections.
115
117
 
116
118
 
117
- :param str library_id: The ID of the content library in which the item exists.
119
+ :param str library_id: The ID of the content library in which the item
120
+ exists.
118
121
  :param str name: The name of the content library item.
119
- :param str type: The type for the content library item. One of `ovf`, `vm-template`, or `iso`
122
+ :param str type: The type for the content library item. One of `ovf`,
123
+ `vm-template`, or `iso`
120
124
  """
121
125
  ...
@@ -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.