pulumi-vsphere 4.10.3a1723624830__py3-none-any.whl → 4.11.0a1__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.
- pulumi_vsphere/_inputs.py +6 -12
- pulumi_vsphere/_utilities.py +4 -40
- pulumi_vsphere/compute_cluster.py +20 -20
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +18 -14
- pulumi_vsphere/content_library.py +10 -10
- pulumi_vsphere/datacenter.py +28 -7
- pulumi_vsphere/datastore_cluster.py +14 -0
- pulumi_vsphere/distributed_port_group.py +12 -61
- pulumi_vsphere/distributed_virtual_switch.py +43 -22
- pulumi_vsphere/entity_permissions.py +38 -59
- pulumi_vsphere/folder.py +21 -0
- pulumi_vsphere/get_compute_cluster_host_group.py +16 -18
- pulumi_vsphere/get_content_library.py +6 -10
- pulumi_vsphere/get_content_library_item.py +8 -12
- pulumi_vsphere/get_datastore.py +9 -9
- pulumi_vsphere/get_datastore_stats.py +32 -34
- pulumi_vsphere/get_dynamic.py +12 -14
- pulumi_vsphere/get_guest_os_customization.py +43 -8
- pulumi_vsphere/get_host_base_images.py +6 -6
- pulumi_vsphere/get_host_pci_device.py +2 -4
- pulumi_vsphere/get_host_thumbprint.py +12 -12
- pulumi_vsphere/get_host_vgpu_profile.py +2 -4
- pulumi_vsphere/get_license.py +1 -2
- pulumi_vsphere/get_network.py +14 -14
- pulumi_vsphere/get_resource_pool.py +8 -12
- pulumi_vsphere/get_role.py +4 -4
- pulumi_vsphere/get_virtual_machine.py +35 -60
- pulumi_vsphere/guest_os_customization.py +31 -31
- pulumi_vsphere/host_port_group.py +2 -2
- pulumi_vsphere/nas_datastore.py +7 -7
- pulumi_vsphere/offline_software_depot.py +2 -2
- pulumi_vsphere/outputs.py +40 -48
- pulumi_vsphere/provider.py +6 -2
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +2 -2
- pulumi_vsphere/supervisor.py +30 -134
- pulumi_vsphere/virtual_disk.py +30 -38
- pulumi_vsphere/virtual_machine.py +32 -32
- pulumi_vsphere/virtual_machine_class.py +0 -2
- pulumi_vsphere/virtual_machine_snapshot.py +2 -2
- pulumi_vsphere/vm_storage_policy.py +67 -67
- pulumi_vsphere/vnic.py +93 -89
- {pulumi_vsphere-4.10.3a1723624830.dist-info → pulumi_vsphere-4.11.0a1.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.11.0a1.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.10.3a1723624830.dist-info → pulumi_vsphere-4.11.0a1.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.3a1723624830.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.10.3a1723624830.dist-info → pulumi_vsphere-4.11.0a1.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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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[
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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[
|
|
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[
|
|
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
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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/folder.py
CHANGED
|
@@ -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)
|
|
@@ -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
|
|
|
@@ -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
|
|
@@ -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
|
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
|
@@ -89,22 +89,21 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None,
|
|
|
89
89
|
import pulumi
|
|
90
90
|
import pulumi_vsphere as vsphere
|
|
91
91
|
|
|
92
|
-
datacenter = vsphere.get_datacenter(name=
|
|
93
|
-
cluster = vsphere.get_compute_cluster(name=
|
|
92
|
+
datacenter = vsphere.get_datacenter(name=vsphere_datacenter)
|
|
93
|
+
cluster = vsphere.get_compute_cluster(name=vsphere_cluster,
|
|
94
94
|
datacenter_id=datacenter.id)
|
|
95
|
-
|
|
95
|
+
host_group1 = vsphere.get_compute_cluster_host_group(name="host_group1",
|
|
96
96
|
compute_cluster_id=cluster.id)
|
|
97
|
-
|
|
97
|
+
host_rule1 = vsphere.ComputeClusterVmHostRule("host_rule1",
|
|
98
98
|
compute_cluster_id=cluster.id,
|
|
99
99
|
name="terraform-host-rule1",
|
|
100
|
-
vm_group_name="
|
|
101
|
-
affinity_host_group_name=
|
|
100
|
+
vm_group_name="vm_group1",
|
|
101
|
+
affinity_host_group_name=host_group1.name)
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
:param str compute_cluster_id: The
|
|
106
|
-
|
|
107
|
-
the host group.
|
|
105
|
+
:param str compute_cluster_id: The [managed object reference ID][docs-about-morefs]
|
|
106
|
+
of the compute cluster for the host group.
|
|
108
107
|
|
|
109
108
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
110
109
|
:param str name: The name of the host group.
|
|
@@ -137,22 +136,21 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
|
|
|
137
136
|
import pulumi
|
|
138
137
|
import pulumi_vsphere as vsphere
|
|
139
138
|
|
|
140
|
-
datacenter = vsphere.get_datacenter(name=
|
|
141
|
-
cluster = vsphere.get_compute_cluster(name=
|
|
139
|
+
datacenter = vsphere.get_datacenter(name=vsphere_datacenter)
|
|
140
|
+
cluster = vsphere.get_compute_cluster(name=vsphere_cluster,
|
|
142
141
|
datacenter_id=datacenter.id)
|
|
143
|
-
|
|
142
|
+
host_group1 = vsphere.get_compute_cluster_host_group(name="host_group1",
|
|
144
143
|
compute_cluster_id=cluster.id)
|
|
145
|
-
|
|
144
|
+
host_rule1 = vsphere.ComputeClusterVmHostRule("host_rule1",
|
|
146
145
|
compute_cluster_id=cluster.id,
|
|
147
146
|
name="terraform-host-rule1",
|
|
148
|
-
vm_group_name="
|
|
149
|
-
affinity_host_group_name=
|
|
147
|
+
vm_group_name="vm_group1",
|
|
148
|
+
affinity_host_group_name=host_group1.name)
|
|
150
149
|
```
|
|
151
150
|
|
|
152
151
|
|
|
153
|
-
:param str compute_cluster_id: The
|
|
154
|
-
|
|
155
|
-
the host group.
|
|
152
|
+
:param str compute_cluster_id: The [managed object reference ID][docs-about-morefs]
|
|
153
|
+
of the compute cluster for the host group.
|
|
156
154
|
|
|
157
155
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
158
156
|
:param str name: The name of the host group.
|
|
@@ -56,11 +56,9 @@ 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
|
|
|
@@ -68,7 +66,7 @@ def get_content_library(name: Optional[str] = None,
|
|
|
68
66
|
import pulumi
|
|
69
67
|
import pulumi_vsphere as vsphere
|
|
70
68
|
|
|
71
|
-
|
|
69
|
+
library = vsphere.get_content_library(name="Content Library")
|
|
72
70
|
```
|
|
73
71
|
|
|
74
72
|
|
|
@@ -88,11 +86,9 @@ def get_content_library(name: Optional[str] = None,
|
|
|
88
86
|
def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
|
|
89
87
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetContentLibraryResult]:
|
|
90
88
|
"""
|
|
91
|
-
The `ContentLibrary` data source can be used to discover the ID of a
|
|
92
|
-
content library.
|
|
89
|
+
The `ContentLibrary` data source can be used to discover the ID of a content library.
|
|
93
90
|
|
|
94
|
-
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
95
|
-
host connections.
|
|
91
|
+
> **NOTE:** This resource requires vCenter Server and is not available on direct ESXi host connections.
|
|
96
92
|
|
|
97
93
|
## Example Usage
|
|
98
94
|
|
|
@@ -100,7 +96,7 @@ def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
100
96
|
import pulumi
|
|
101
97
|
import pulumi_vsphere as vsphere
|
|
102
98
|
|
|
103
|
-
|
|
99
|
+
library = vsphere.get_content_library(name="Content Library")
|
|
104
100
|
```
|
|
105
101
|
|
|
106
102
|
|
|
@@ -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
|
|
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
|
|
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
|
...
|
pulumi_vsphere/get_datastore.py
CHANGED
|
@@ -57,9 +57,9 @@ class GetDatastoreResult:
|
|
|
57
57
|
@pulumi.getter
|
|
58
58
|
def stats(self) -> Optional[Mapping[str, Any]]:
|
|
59
59
|
"""
|
|
60
|
-
The disk space usage statistics for the specific datastore. The
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
The disk space usage statistics for the specific datastore. The total
|
|
61
|
+
datastore capacity is represented as `capacity` and the free remaining disk is
|
|
62
|
+
represented as `free`.
|
|
63
63
|
"""
|
|
64
64
|
return pulumi.get(self, "stats")
|
|
65
65
|
|
|
@@ -103,9 +103,9 @@ def get_datastore(datacenter_id: Optional[str] = None,
|
|
|
103
103
|
search path used in `name` is an absolute path. For default datacenters, use
|
|
104
104
|
the `id` attribute from an empty `Datacenter` data source.
|
|
105
105
|
:param str name: The name of the datastore. This can be a name or path.
|
|
106
|
-
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The total
|
|
107
|
+
datastore capacity is represented as `capacity` and the free remaining disk is
|
|
108
|
+
represented as `free`.
|
|
109
109
|
"""
|
|
110
110
|
__args__ = dict()
|
|
111
111
|
__args__['datacenterId'] = datacenter_id
|
|
@@ -149,8 +149,8 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
149
149
|
search path used in `name` is an absolute path. For default datacenters, use
|
|
150
150
|
the `id` attribute from an empty `Datacenter` data source.
|
|
151
151
|
:param str name: The name of the datastore. This can be a name or path.
|
|
152
|
-
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The total
|
|
153
|
+
datastore capacity is represented as `capacity` and the free remaining disk is
|
|
154
|
+
represented as `free`.
|
|
155
155
|
"""
|
|
156
156
|
...
|
|
@@ -39,8 +39,8 @@ class GetDatastoreStatsResult:
|
|
|
39
39
|
@pulumi.getter
|
|
40
40
|
def capacity(self) -> Optional[Mapping[str, Any]]:
|
|
41
41
|
"""
|
|
42
|
-
A mapping of the capacity for all datastore in the datacenter
|
|
43
|
-
where the name of the datastore is used as key and the capacity as value.
|
|
42
|
+
A mapping of the capacity for all datastore in the datacenter
|
|
43
|
+
, where the name of the datastore is used as key and the capacity as value.
|
|
44
44
|
"""
|
|
45
45
|
return pulumi.get(self, "capacity")
|
|
46
46
|
|
|
@@ -48,8 +48,8 @@ class GetDatastoreStatsResult:
|
|
|
48
48
|
@pulumi.getter(name="datacenterId")
|
|
49
49
|
def datacenter_id(self) -> str:
|
|
50
50
|
"""
|
|
51
|
-
The [managed object reference ID][docs-about-morefs]
|
|
52
|
-
datacenter the datastores are located in.
|
|
51
|
+
The [managed object reference ID][docs-about-morefs]
|
|
52
|
+
of the datacenter the datastores are located in.
|
|
53
53
|
"""
|
|
54
54
|
return pulumi.get(self, "datacenter_id")
|
|
55
55
|
|
|
@@ -58,8 +58,8 @@ class GetDatastoreStatsResult:
|
|
|
58
58
|
def free_space(self) -> Optional[Mapping[str, Any]]:
|
|
59
59
|
"""
|
|
60
60
|
A mapping of the free space for each datastore in the
|
|
61
|
-
datacenter, where the name of the datastore is used as key and the free
|
|
62
|
-
as value.
|
|
61
|
+
datacenter, where the name of the datastore is used as key and the free
|
|
62
|
+
space as value.
|
|
63
63
|
"""
|
|
64
64
|
return pulumi.get(self, "free_space")
|
|
65
65
|
|
|
@@ -89,10 +89,9 @@ def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
|
|
|
89
89
|
free_space: Optional[Mapping[str, Any]] = None,
|
|
90
90
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreStatsResult:
|
|
91
91
|
"""
|
|
92
|
-
The `get_datastore_stats` data source can be used to retrieve the usage
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
sources.
|
|
92
|
+
The `get_datastore_stats` data source can be used to retrieve the usage stats
|
|
93
|
+
of all vSphere datastore objects in a datacenter. This can then be used as a
|
|
94
|
+
standalone datasource to get information required as input to other data sources.
|
|
96
95
|
|
|
97
96
|
## Example Usage
|
|
98
97
|
|
|
@@ -104,8 +103,9 @@ def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
|
|
|
104
103
|
datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
|
|
105
104
|
```
|
|
106
105
|
|
|
107
|
-
A
|
|
108
|
-
the most free space. For example, in addition to
|
|
106
|
+
A usefull example of this datasource would be to determine the
|
|
107
|
+
datastore with the most free space. For example, in addition to
|
|
108
|
+
the above:
|
|
109
109
|
|
|
110
110
|
Create an `outputs.tf` like that:
|
|
111
111
|
|
|
@@ -119,17 +119,16 @@ def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
|
|
|
119
119
|
and a `locals.tf` like that:
|
|
120
120
|
|
|
121
121
|
|
|
122
|
-
:param Mapping[str, Any] capacity: A mapping of the capacity for all datastore in the datacenter
|
|
123
|
-
where the name of the datastore is used as key and the capacity as value.
|
|
124
|
-
:param str datacenter_id: The
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
from an empty `Datacenter` data source.
|
|
122
|
+
:param Mapping[str, Any] capacity: A mapping of the capacity for all datastore in the datacenter
|
|
123
|
+
, where the name of the datastore is used as key and the capacity as value.
|
|
124
|
+
:param str datacenter_id: The [managed object reference ID][docs-about-morefs]
|
|
125
|
+
of the datacenter the datastores are located in. For default datacenters, use
|
|
126
|
+
the `id` attribute from an empty `Datacenter` data source.
|
|
128
127
|
|
|
129
128
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
130
129
|
:param Mapping[str, Any] free_space: A mapping of the free space for each datastore in the
|
|
131
|
-
datacenter, where the name of the datastore is used as key and the free
|
|
132
|
-
as value.
|
|
130
|
+
datacenter, where the name of the datastore is used as key and the free
|
|
131
|
+
space as value.
|
|
133
132
|
"""
|
|
134
133
|
__args__ = dict()
|
|
135
134
|
__args__['capacity'] = capacity
|
|
@@ -151,10 +150,9 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
|
|
|
151
150
|
free_space: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
|
|
152
151
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreStatsResult]:
|
|
153
152
|
"""
|
|
154
|
-
The `get_datastore_stats` data source can be used to retrieve the usage
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
sources.
|
|
153
|
+
The `get_datastore_stats` data source can be used to retrieve the usage stats
|
|
154
|
+
of all vSphere datastore objects in a datacenter. This can then be used as a
|
|
155
|
+
standalone datasource to get information required as input to other data sources.
|
|
158
156
|
|
|
159
157
|
## Example Usage
|
|
160
158
|
|
|
@@ -166,8 +164,9 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
|
|
|
166
164
|
datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
|
|
167
165
|
```
|
|
168
166
|
|
|
169
|
-
A
|
|
170
|
-
the most free space. For example, in addition to
|
|
167
|
+
A usefull example of this datasource would be to determine the
|
|
168
|
+
datastore with the most free space. For example, in addition to
|
|
169
|
+
the above:
|
|
171
170
|
|
|
172
171
|
Create an `outputs.tf` like that:
|
|
173
172
|
|
|
@@ -181,16 +180,15 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
|
|
|
181
180
|
and a `locals.tf` like that:
|
|
182
181
|
|
|
183
182
|
|
|
184
|
-
:param Mapping[str, Any] capacity: A mapping of the capacity for all datastore in the datacenter
|
|
185
|
-
where the name of the datastore is used as key and the capacity as value.
|
|
186
|
-
:param str datacenter_id: The
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
from an empty `Datacenter` data source.
|
|
183
|
+
:param Mapping[str, Any] capacity: A mapping of the capacity for all datastore in the datacenter
|
|
184
|
+
, where the name of the datastore is used as key and the capacity as value.
|
|
185
|
+
:param str datacenter_id: The [managed object reference ID][docs-about-morefs]
|
|
186
|
+
of the datacenter the datastores are located in. For default datacenters, use
|
|
187
|
+
the `id` attribute from an empty `Datacenter` data source.
|
|
190
188
|
|
|
191
189
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
192
190
|
:param Mapping[str, Any] free_space: A mapping of the free space for each datastore in the
|
|
193
|
-
datacenter, where the name of the datastore is used as key and the free
|
|
194
|
-
as value.
|
|
191
|
+
datacenter, where the name of the datastore is used as key and the free
|
|
192
|
+
space as value.
|
|
195
193
|
"""
|
|
196
194
|
...
|