pulumi-vsphere 4.11.0__py3-none-any.whl → 4.11.0a1710920591__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 (65) hide show
  1. pulumi_vsphere/__init__.py +0 -28
  2. pulumi_vsphere/_inputs.py +236 -646
  3. pulumi_vsphere/_utilities.py +4 -40
  4. pulumi_vsphere/compute_cluster.py +1486 -756
  5. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +34 -42
  6. pulumi_vsphere/content_library.py +10 -10
  7. pulumi_vsphere/datacenter.py +40 -33
  8. pulumi_vsphere/datastore_cluster.py +364 -154
  9. pulumi_vsphere/distributed_port_group.py +187 -131
  10. pulumi_vsphere/distributed_virtual_switch.py +828 -310
  11. pulumi_vsphere/entity_permissions.py +38 -59
  12. pulumi_vsphere/file.py +24 -16
  13. pulumi_vsphere/folder.py +28 -7
  14. pulumi_vsphere/get_compute_cluster.py +4 -0
  15. pulumi_vsphere/get_compute_cluster_host_group.py +20 -20
  16. pulumi_vsphere/get_content_library.py +10 -10
  17. pulumi_vsphere/get_content_library_item.py +8 -12
  18. pulumi_vsphere/get_custom_attribute.py +4 -0
  19. pulumi_vsphere/get_datacenter.py +4 -0
  20. pulumi_vsphere/get_datastore.py +16 -12
  21. pulumi_vsphere/get_datastore_cluster.py +4 -0
  22. pulumi_vsphere/get_datastore_stats.py +52 -46
  23. pulumi_vsphere/get_distributed_virtual_switch.py +4 -2
  24. pulumi_vsphere/get_dynamic.py +20 -18
  25. pulumi_vsphere/get_folder.py +6 -10
  26. pulumi_vsphere/get_guest_os_customization.py +47 -8
  27. pulumi_vsphere/get_host.py +4 -0
  28. pulumi_vsphere/get_host_pci_device.py +14 -8
  29. pulumi_vsphere/get_host_thumbprint.py +16 -12
  30. pulumi_vsphere/get_host_vgpu_profile.py +10 -4
  31. pulumi_vsphere/get_license.py +5 -2
  32. pulumi_vsphere/get_network.py +18 -14
  33. pulumi_vsphere/get_policy.py +4 -0
  34. pulumi_vsphere/get_resource_pool.py +18 -14
  35. pulumi_vsphere/get_role.py +8 -4
  36. pulumi_vsphere/get_tag.py +4 -0
  37. pulumi_vsphere/get_tag_category.py +4 -0
  38. pulumi_vsphere/get_vapp_container.py +4 -0
  39. pulumi_vsphere/get_virtual_machine.py +43 -60
  40. pulumi_vsphere/get_vmfs_disks.py +4 -0
  41. pulumi_vsphere/guest_os_customization.py +5 -55
  42. pulumi_vsphere/ha_vm_override.py +378 -189
  43. pulumi_vsphere/host.py +60 -49
  44. pulumi_vsphere/host_port_group.py +26 -14
  45. pulumi_vsphere/host_virtual_switch.py +287 -140
  46. pulumi_vsphere/license.py +32 -0
  47. pulumi_vsphere/nas_datastore.py +7 -7
  48. pulumi_vsphere/outputs.py +270 -672
  49. pulumi_vsphere/provider.py +6 -2
  50. pulumi_vsphere/pulumi-plugin.json +1 -2
  51. pulumi_vsphere/resource_pool.py +24 -50
  52. pulumi_vsphere/virtual_disk.py +34 -42
  53. pulumi_vsphere/virtual_machine.py +827 -598
  54. pulumi_vsphere/virtual_machine_snapshot.py +12 -8
  55. pulumi_vsphere/vm_storage_policy.py +127 -115
  56. pulumi_vsphere/vnic.py +105 -89
  57. {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/METADATA +1 -1
  58. pulumi_vsphere-4.11.0a1710920591.dist-info/RECORD +82 -0
  59. {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/WHEEL +1 -1
  60. pulumi_vsphere/get_host_base_images.py +0 -97
  61. pulumi_vsphere/offline_software_depot.py +0 -180
  62. pulumi_vsphere/supervisor.py +0 -962
  63. pulumi_vsphere/virtual_machine_class.py +0 -442
  64. pulumi_vsphere-4.11.0.dist-info/RECORD +0 -86
  65. {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/top_level.txt +0 -0
@@ -21,14 +21,11 @@ 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
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.
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.
32
29
  """
33
30
  pulumi.set(__self__, "entity_id", entity_id)
34
31
  pulumi.set(__self__, "entity_type", entity_type)
@@ -38,8 +35,7 @@ class EntityPermissionsArgs:
38
35
  @pulumi.getter(name="entityId")
39
36
  def entity_id(self) -> pulumi.Input[str]:
40
37
  """
41
- The managed object id (uuid for some entities) on
42
- which permissions are to be created.
38
+ The managed object id (uuid for some entities) on which permissions are to be created.
43
39
  """
44
40
  return pulumi.get(self, "entity_id")
45
41
 
@@ -51,9 +47,8 @@ class EntityPermissionsArgs:
51
47
  @pulumi.getter(name="entityType")
52
48
  def entity_type(self) -> pulumi.Input[str]:
53
49
  """
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/).
50
+ The managed object type, types can be found in the managed object type section
51
+ [here](https://developer.vmware.com/apis/968/vsphere).
57
52
  """
58
53
  return pulumi.get(self, "entity_type")
59
54
 
@@ -65,9 +60,8 @@ class EntityPermissionsArgs:
65
60
  @pulumi.getter
66
61
  def permissions(self) -> pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]:
67
62
  """
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.
63
+ The permissions to be given on this entity. Keep the permissions sorted
64
+ alphabetically on `user_or_group` for a better user experience.
71
65
  """
72
66
  return pulumi.get(self, "permissions")
73
67
 
@@ -84,14 +78,11 @@ class _EntityPermissionsState:
84
78
  permissions: Optional[pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]] = None):
85
79
  """
86
80
  Input properties used for looking up and filtering EntityPermissions resources.
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.
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.
95
86
  """
96
87
  if entity_id is not None:
97
88
  pulumi.set(__self__, "entity_id", entity_id)
@@ -104,8 +95,7 @@ class _EntityPermissionsState:
104
95
  @pulumi.getter(name="entityId")
105
96
  def entity_id(self) -> Optional[pulumi.Input[str]]:
106
97
  """
107
- The managed object id (uuid for some entities) on
108
- which permissions are to be created.
98
+ The managed object id (uuid for some entities) on which permissions are to be created.
109
99
  """
110
100
  return pulumi.get(self, "entity_id")
111
101
 
@@ -117,9 +107,8 @@ class _EntityPermissionsState:
117
107
  @pulumi.getter(name="entityType")
118
108
  def entity_type(self) -> Optional[pulumi.Input[str]]:
119
109
  """
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/).
110
+ The managed object type, types can be found in the managed object type section
111
+ [here](https://developer.vmware.com/apis/968/vsphere).
123
112
  """
124
113
  return pulumi.get(self, "entity_type")
125
114
 
@@ -131,9 +120,8 @@ class _EntityPermissionsState:
131
120
  @pulumi.getter
132
121
  def permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]]:
133
122
  """
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.
123
+ The permissions to be given on this entity. Keep the permissions sorted
124
+ alphabetically on `user_or_group` for a better user experience.
137
125
  """
138
126
  return pulumi.get(self, "permissions")
139
127
 
@@ -149,20 +137,17 @@ class EntityPermissions(pulumi.CustomResource):
149
137
  opts: Optional[pulumi.ResourceOptions] = None,
150
138
  entity_id: Optional[pulumi.Input[str]] = None,
151
139
  entity_type: Optional[pulumi.Input[str]] = None,
152
- permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]]] = None,
140
+ permissions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]]] = None,
153
141
  __props__=None):
154
142
  """
155
143
  Create a EntityPermissions resource with the given unique name, props, and options.
156
144
  :param str resource_name: The name of the resource.
157
145
  :param pulumi.ResourceOptions opts: Options for the resource.
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[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]] 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.
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.
166
151
  """
167
152
  ...
168
153
  @overload
@@ -189,7 +174,7 @@ class EntityPermissions(pulumi.CustomResource):
189
174
  opts: Optional[pulumi.ResourceOptions] = None,
190
175
  entity_id: Optional[pulumi.Input[str]] = None,
191
176
  entity_type: Optional[pulumi.Input[str]] = None,
192
- permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]]] = None,
177
+ permissions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]]] = None,
193
178
  __props__=None):
194
179
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
195
180
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -220,7 +205,7 @@ class EntityPermissions(pulumi.CustomResource):
220
205
  opts: Optional[pulumi.ResourceOptions] = None,
221
206
  entity_id: Optional[pulumi.Input[str]] = None,
222
207
  entity_type: Optional[pulumi.Input[str]] = None,
223
- permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]]] = None) -> 'EntityPermissions':
208
+ permissions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]]] = None) -> 'EntityPermissions':
224
209
  """
225
210
  Get an existing EntityPermissions resource's state with the given name, id, and optional extra
226
211
  properties used to qualify the lookup.
@@ -228,14 +213,11 @@ class EntityPermissions(pulumi.CustomResource):
228
213
  :param str resource_name: The unique name of the resulting resource.
229
214
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
230
215
  :param pulumi.ResourceOptions opts: Options for the resource.
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[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]] 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.
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.
239
221
  """
240
222
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
241
223
 
@@ -250,8 +232,7 @@ class EntityPermissions(pulumi.CustomResource):
250
232
  @pulumi.getter(name="entityId")
251
233
  def entity_id(self) -> pulumi.Output[str]:
252
234
  """
253
- The managed object id (uuid for some entities) on
254
- which permissions are to be created.
235
+ The managed object id (uuid for some entities) on which permissions are to be created.
255
236
  """
256
237
  return pulumi.get(self, "entity_id")
257
238
 
@@ -259,9 +240,8 @@ class EntityPermissions(pulumi.CustomResource):
259
240
  @pulumi.getter(name="entityType")
260
241
  def entity_type(self) -> pulumi.Output[str]:
261
242
  """
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/).
243
+ The managed object type, types can be found in the managed object type section
244
+ [here](https://developer.vmware.com/apis/968/vsphere).
265
245
  """
266
246
  return pulumi.get(self, "entity_type")
267
247
 
@@ -269,9 +249,8 @@ class EntityPermissions(pulumi.CustomResource):
269
249
  @pulumi.getter
270
250
  def permissions(self) -> pulumi.Output[Sequence['outputs.EntityPermissionsPermission']]:
271
251
  """
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.
252
+ The permissions to be given on this entity. Keep the permissions sorted
253
+ alphabetically on `user_or_group` for a better user experience.
275
254
  """
276
255
  return pulumi.get(self, "permissions")
277
256
 
pulumi_vsphere/file.py CHANGED
@@ -298,33 +298,37 @@ class File(pulumi.CustomResource):
298
298
 
299
299
  ### Uploading a File
300
300
 
301
+ <!--Start PulumiCodeChooser -->
301
302
  ```python
302
303
  import pulumi
303
304
  import pulumi_vsphere as vsphere
304
305
 
305
- ubuntu_vmdk_upload = vsphere.File("ubuntu_vmdk_upload",
306
+ ubuntu_vmdk_upload = vsphere.File("ubuntuVmdkUpload",
307
+ create_directories=True,
306
308
  datacenter="dc-01",
307
309
  datastore="datastore-01",
308
- source_file="/my/src/path/custom_ubuntu.vmdk",
309
310
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
310
- create_directories=True)
311
+ source_file="/my/src/path/custom_ubuntu.vmdk")
311
312
  ```
313
+ <!--End PulumiCodeChooser -->
312
314
 
313
315
  ### Copying a File
314
316
 
317
+ <!--Start PulumiCodeChooser -->
315
318
  ```python
316
319
  import pulumi
317
320
  import pulumi_vsphere as vsphere
318
321
 
319
- ubuntu_copy = vsphere.File("ubuntu_copy",
320
- source_datacenter="dc-01",
322
+ ubuntu_copy = vsphere.File("ubuntuCopy",
323
+ create_directories=True,
321
324
  datacenter="dc-01",
322
- source_datastore="datastore-01",
323
325
  datastore="datastore-01",
324
- source_file="/my/src/path/custom_ubuntu.vmdk",
325
326
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
326
- create_directories=True)
327
+ source_datacenter="dc-01",
328
+ source_datastore="datastore-01",
329
+ source_file="/my/src/path/custom_ubuntu.vmdk")
327
330
  ```
331
+ <!--End PulumiCodeChooser -->
328
332
 
329
333
  :param str resource_name: The name of the resource.
330
334
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -356,33 +360,37 @@ class File(pulumi.CustomResource):
356
360
 
357
361
  ### Uploading a File
358
362
 
363
+ <!--Start PulumiCodeChooser -->
359
364
  ```python
360
365
  import pulumi
361
366
  import pulumi_vsphere as vsphere
362
367
 
363
- ubuntu_vmdk_upload = vsphere.File("ubuntu_vmdk_upload",
368
+ ubuntu_vmdk_upload = vsphere.File("ubuntuVmdkUpload",
369
+ create_directories=True,
364
370
  datacenter="dc-01",
365
371
  datastore="datastore-01",
366
- source_file="/my/src/path/custom_ubuntu.vmdk",
367
372
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
368
- create_directories=True)
373
+ source_file="/my/src/path/custom_ubuntu.vmdk")
369
374
  ```
375
+ <!--End PulumiCodeChooser -->
370
376
 
371
377
  ### Copying a File
372
378
 
379
+ <!--Start PulumiCodeChooser -->
373
380
  ```python
374
381
  import pulumi
375
382
  import pulumi_vsphere as vsphere
376
383
 
377
- ubuntu_copy = vsphere.File("ubuntu_copy",
378
- source_datacenter="dc-01",
384
+ ubuntu_copy = vsphere.File("ubuntuCopy",
385
+ create_directories=True,
379
386
  datacenter="dc-01",
380
- source_datastore="datastore-01",
381
387
  datastore="datastore-01",
382
- source_file="/my/src/path/custom_ubuntu.vmdk",
383
388
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
384
- create_directories=True)
389
+ source_datacenter="dc-01",
390
+ source_datastore="datastore-01",
391
+ source_file="/my/src/path/custom_ubuntu.vmdk")
385
392
  ```
393
+ <!--End PulumiCodeChooser -->
386
394
 
387
395
  :param str resource_name: The name of the resource.
388
396
  :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,6 +48,9 @@ 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.
51
54
  """
52
55
  pulumi.set(__self__, "path", path)
53
56
  pulumi.set(__self__, "type", type)
@@ -99,7 +102,7 @@ class FolderArgs:
99
102
  @pulumi.getter(name="customAttributes")
100
103
  def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
101
104
  """
102
- Map of custom attribute ids to attribute
105
+ Map of custom attribute ids to attribute
103
106
  value strings to set for folder. See [here][docs-setting-custom-attributes]
104
107
  for a reference on how to set values for custom attributes.
105
108
 
@@ -133,6 +136,9 @@ class FolderArgs:
133
136
  def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
134
137
  """
135
138
  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.
136
142
  """
137
143
  return pulumi.get(self, "tags")
138
144
 
@@ -151,7 +157,7 @@ class _FolderState:
151
157
  type: Optional[pulumi.Input[str]] = None):
152
158
  """
153
159
  Input properties used for looking up and filtering Folder resources.
154
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
160
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
155
161
  value strings to set for folder. See [here][docs-setting-custom-attributes]
156
162
  for a reference on how to set values for custom attributes.
157
163
 
@@ -174,6 +180,9 @@ class _FolderState:
174
180
  any part before the last `/`), your folder will be moved to that new parent. If
175
181
  modifying the name (the part after the last `/`), your folder will be renamed.
176
182
  :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.
177
186
  :param pulumi.Input[str] type: The type of folder to create. Allowed options are
178
187
  `datacenter` for datacenter folders, `host` for host and cluster folders,
179
188
  `vm` for virtual machine folders, `datastore` for datastore folders, and
@@ -194,7 +203,7 @@ class _FolderState:
194
203
  @pulumi.getter(name="customAttributes")
195
204
  def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
196
205
  """
197
- Map of custom attribute ids to attribute
206
+ Map of custom attribute ids to attribute
198
207
  value strings to set for folder. See [here][docs-setting-custom-attributes]
199
208
  for a reference on how to set values for custom attributes.
200
209
 
@@ -250,6 +259,9 @@ class _FolderState:
250
259
  def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
251
260
  """
252
261
  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.
253
265
  """
254
266
  return pulumi.get(self, "tags")
255
267
 
@@ -288,7 +300,7 @@ class Folder(pulumi.CustomResource):
288
300
  Create a Folder resource with the given unique name, props, and options.
289
301
  :param str resource_name: The name of the resource.
290
302
  :param pulumi.ResourceOptions opts: Options for the resource.
291
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
303
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
292
304
  value strings to set for folder. See [here][docs-setting-custom-attributes]
293
305
  for a reference on how to set values for custom attributes.
294
306
 
@@ -311,6 +323,9 @@ class Folder(pulumi.CustomResource):
311
323
  any part before the last `/`), your folder will be moved to that new parent. If
312
324
  modifying the name (the part after the last `/`), your folder will be renamed.
313
325
  :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.
314
329
  :param pulumi.Input[str] type: The type of folder to create. Allowed options are
315
330
  `datacenter` for datacenter folders, `host` for host and cluster folders,
316
331
  `vm` for virtual machine folders, `datastore` for datastore folders, and
@@ -384,7 +399,7 @@ class Folder(pulumi.CustomResource):
384
399
  :param str resource_name: The unique name of the resulting resource.
385
400
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
386
401
  :param pulumi.ResourceOptions opts: Options for the resource.
387
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
402
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
388
403
  value strings to set for folder. See [here][docs-setting-custom-attributes]
389
404
  for a reference on how to set values for custom attributes.
390
405
 
@@ -407,6 +422,9 @@ class Folder(pulumi.CustomResource):
407
422
  any part before the last `/`), your folder will be moved to that new parent. If
408
423
  modifying the name (the part after the last `/`), your folder will be renamed.
409
424
  :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.
410
428
  :param pulumi.Input[str] type: The type of folder to create. Allowed options are
411
429
  `datacenter` for datacenter folders, `host` for host and cluster folders,
412
430
  `vm` for virtual machine folders, `datastore` for datastore folders, and
@@ -427,7 +445,7 @@ class Folder(pulumi.CustomResource):
427
445
  @pulumi.getter(name="customAttributes")
428
446
  def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
429
447
  """
430
- Map of custom attribute ids to attribute
448
+ Map of custom attribute ids to attribute
431
449
  value strings to set for folder. See [here][docs-setting-custom-attributes]
432
450
  for a reference on how to set values for custom attributes.
433
451
 
@@ -471,6 +489,9 @@ class Folder(pulumi.CustomResource):
471
489
  def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
472
490
  """
473
491
  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.
474
495
  """
475
496
  return pulumi.get(self, "tags")
476
497
 
@@ -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,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 -->
88
89
  ```python
89
90
  import pulumi
90
91
  import pulumi_vsphere as vsphere
91
92
 
92
- datacenter = vsphere.get_datacenter(name="dc-01")
93
- cluster = vsphere.get_compute_cluster(name="cluster-01",
93
+ datacenter = vsphere.get_datacenter(name=var["vsphere_datacenter"])
94
+ cluster = vsphere.get_compute_cluster(name=var["vsphere_cluster"],
94
95
  datacenter_id=datacenter.id)
95
- host_group = vsphere.get_compute_cluster_host_group(name="hostgroup-01",
96
+ host_group1 = vsphere.get_compute_cluster_host_group(name="host_group1",
96
97
  compute_cluster_id=cluster.id)
97
- host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
98
+ host_rule1 = vsphere.ComputeClusterVmHostRule("hostRule1",
98
99
  compute_cluster_id=cluster.id,
99
- name="terraform-host-rule1",
100
- vm_group_name="vmgroup-01",
101
- affinity_host_group_name=host_group.name)
100
+ vm_group_name="vm_group1",
101
+ affinity_host_group_name=host_group1.name)
102
102
  ```
103
+ <!--End PulumiCodeChooser -->
103
104
 
104
105
 
105
- :param str compute_cluster_id: The
106
- [managed object reference ID][docs-about-morefs] of the compute cluster for
107
- the host group.
106
+ :param str compute_cluster_id: The [managed object reference ID][docs-about-morefs]
107
+ of the compute cluster for 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 -->
136
137
  ```python
137
138
  import pulumi
138
139
  import pulumi_vsphere as vsphere
139
140
 
140
- datacenter = vsphere.get_datacenter(name="dc-01")
141
- cluster = vsphere.get_compute_cluster(name="cluster-01",
141
+ datacenter = vsphere.get_datacenter(name=var["vsphere_datacenter"])
142
+ cluster = vsphere.get_compute_cluster(name=var["vsphere_cluster"],
142
143
  datacenter_id=datacenter.id)
143
- host_group = vsphere.get_compute_cluster_host_group(name="hostgroup-01",
144
+ host_group1 = vsphere.get_compute_cluster_host_group(name="host_group1",
144
145
  compute_cluster_id=cluster.id)
145
- host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
146
+ host_rule1 = vsphere.ComputeClusterVmHostRule("hostRule1",
146
147
  compute_cluster_id=cluster.id,
147
- name="terraform-host-rule1",
148
- vm_group_name="vmgroup-01",
149
- affinity_host_group_name=host_group.name)
148
+ vm_group_name="vm_group1",
149
+ affinity_host_group_name=host_group1.name)
150
150
  ```
151
+ <!--End PulumiCodeChooser -->
151
152
 
152
153
 
153
- :param str compute_cluster_id: The
154
- [managed object reference ID][docs-about-morefs] of the compute cluster for
155
- the host group.
154
+ :param str compute_cluster_id: The [managed object reference ID][docs-about-morefs]
155
+ of the compute cluster for 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
60
- content library.
59
+ The `ContentLibrary` data source can be used to discover the ID of a content library.
61
60
 
62
- > **NOTE:** This resource requires vCenter and is not available on direct ESXi
63
- host connections.
61
+ > **NOTE:** This resource requires vCenter Server and is not available on direct ESXi host connections.
64
62
 
65
63
  ## Example Usage
66
64
 
65
+ <!--Start PulumiCodeChooser -->
67
66
  ```python
68
67
  import pulumi
69
68
  import pulumi_vsphere as vsphere
70
69
 
71
- content_library = vsphere.get_content_library(name="Content Library")
70
+ library = vsphere.get_content_library(name="Content Library")
72
71
  ```
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
92
- content library.
91
+ The `ContentLibrary` data source can be used to discover the ID of a content library.
93
92
 
94
- > **NOTE:** This resource requires vCenter and is not available on direct ESXi
95
- host connections.
93
+ > **NOTE:** This resource requires vCenter Server and is not available on direct ESXi host connections.
96
94
 
97
95
  ## Example Usage
98
96
 
97
+ <!--Start PulumiCodeChooser -->
99
98
  ```python
100
99
  import pulumi
101
100
  import pulumi_vsphere as vsphere
102
101
 
103
- content_library = vsphere.get_content_library(name="Content Library")
102
+ library = vsphere.get_content_library(name="Content Library")
104
103
  ```
104
+ <!--End PulumiCodeChooser -->
105
105
 
106
106
 
107
107
  :param str name: The name of the content library.
@@ -79,15 +79,13 @@ 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 and is not available on direct ESXi
83
- host connections.
82
+ > **NOTE:** This resource requires vCenter Server and is not available on
83
+ direct ESXi host connections.
84
84
 
85
85
 
86
- :param str library_id: The ID of the content library in which the item
87
- exists.
86
+ :param str library_id: The ID of the content library in which the item exists.
88
87
  :param str name: The name of the content library item.
89
- :param str type: The type for the content library item. One of `ovf`,
90
- `vm-template`, or `iso`
88
+ :param str type: The type for the content library item. One of `ovf`, `vm-template`, or `iso`
91
89
  """
92
90
  __args__ = dict()
93
91
  __args__['libraryId'] = library_id
@@ -112,14 +110,12 @@ def get_content_library_item_output(library_id: Optional[pulumi.Input[str]] = No
112
110
  The `ContentLibraryItem` data source can be used to discover the ID
113
111
  of a content library item.
114
112
 
115
- > **NOTE:** This resource requires vCenter and is not available on direct ESXi
116
- host connections.
113
+ > **NOTE:** This resource requires vCenter Server and is not available on
114
+ direct ESXi host connections.
117
115
 
118
116
 
119
- :param str library_id: The ID of the content library in which the item
120
- exists.
117
+ :param str library_id: The ID of the content library in which the item exists.
121
118
  :param str name: The name of the content library item.
122
- :param str type: The type for the content library item. One of `ovf`,
123
- `vm-template`, or `iso`
119
+ :param str type: The type for the content library item. One of `ovf`, `vm-template`, or `iso`
124
120
  """
125
121
  ...
@@ -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.