pulumi-vsphere 4.11.0a1719961236__py3-none-any.whl → 4.11.0a1720768633__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 +12 -6
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +0 -4
- pulumi_vsphere/datacenter.py +7 -28
- pulumi_vsphere/datastore_cluster.py +0 -14
- pulumi_vsphere/distributed_port_group.py +56 -7
- pulumi_vsphere/distributed_virtual_switch.py +7 -28
- pulumi_vsphere/entity_permissions.py +56 -35
- pulumi_vsphere/folder.py +0 -21
- pulumi_vsphere/get_compute_cluster_host_group.py +18 -16
- pulumi_vsphere/get_content_library.py +10 -6
- pulumi_vsphere/get_content_library_item.py +12 -8
- pulumi_vsphere/get_datastore.py +9 -9
- pulumi_vsphere/get_datastore_stats.py +34 -32
- pulumi_vsphere/get_dynamic.py +14 -12
- pulumi_vsphere/get_guest_os_customization.py +8 -43
- pulumi_vsphere/get_host_base_images.py +6 -6
- pulumi_vsphere/get_host_pci_device.py +4 -2
- pulumi_vsphere/get_host_thumbprint.py +12 -12
- pulumi_vsphere/get_host_vgpu_profile.py +4 -2
- pulumi_vsphere/get_license.py +2 -1
- pulumi_vsphere/get_network.py +14 -14
- pulumi_vsphere/get_resource_pool.py +12 -8
- pulumi_vsphere/get_role.py +4 -4
- pulumi_vsphere/get_virtual_machine.py +58 -33
- pulumi_vsphere/guest_os_customization.py +4 -4
- pulumi_vsphere/nas_datastore.py +7 -7
- pulumi_vsphere/outputs.py +48 -40
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +2 -2
- pulumi_vsphere/supervisor.py +104 -0
- pulumi_vsphere/virtual_disk.py +7 -7
- pulumi_vsphere/virtual_machine.py +2 -2
- pulumi_vsphere/virtual_machine_class.py +2 -0
- pulumi_vsphere/virtual_machine_snapshot.py +2 -2
- pulumi_vsphere/vm_storage_policy.py +2 -2
- pulumi_vsphere/vnic.py +61 -65
- {pulumi_vsphere-4.11.0a1719961236.dist-info → pulumi_vsphere-4.11.0a1720768633.dist-info}/METADATA +1 -1
- {pulumi_vsphere-4.11.0a1719961236.dist-info → pulumi_vsphere-4.11.0a1720768633.dist-info}/RECORD +40 -40
- {pulumi_vsphere-4.11.0a1719961236.dist-info → pulumi_vsphere-4.11.0a1720768633.dist-info}/WHEEL +1 -1
- {pulumi_vsphere-4.11.0a1719961236.dist-info → pulumi_vsphere-4.11.0a1720768633.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
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
|
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
|
|
51
|
-
|
|
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
|
|
64
|
-
alphabetically on `user_or_group` for a better user
|
|
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
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
|
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
|
|
111
|
-
|
|
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
|
|
124
|
-
alphabetically on `user_or_group` for a better user
|
|
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
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
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
|
|
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
|
|
244
|
-
|
|
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
|
|
253
|
-
alphabetically on `user_or_group` for a better user
|
|
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/folder.py
CHANGED
|
@@ -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)
|
|
@@ -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
|
|
|
@@ -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
|
|
@@ -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
|
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
|
@@ -89,21 +89,22 @@ 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="dc-01")
|
|
93
|
+
cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
94
94
|
datacenter_id=datacenter.id)
|
|
95
|
-
|
|
95
|
+
host_group = vsphere.get_compute_cluster_host_group(name="hostgroup-01",
|
|
96
96
|
compute_cluster_id=cluster.id)
|
|
97
|
-
|
|
97
|
+
host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
|
|
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="vmgroup-01",
|
|
101
|
+
affinity_host_group_name=host_group.name)
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
:param str compute_cluster_id: The
|
|
106
|
-
of the compute cluster for
|
|
105
|
+
:param str compute_cluster_id: The
|
|
106
|
+
[managed object reference ID][docs-about-morefs] of the compute cluster for
|
|
107
|
+
the host group.
|
|
107
108
|
|
|
108
109
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
109
110
|
:param str name: The name of the host group.
|
|
@@ -136,21 +137,22 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
|
|
|
136
137
|
import pulumi
|
|
137
138
|
import pulumi_vsphere as vsphere
|
|
138
139
|
|
|
139
|
-
datacenter = vsphere.get_datacenter(name=
|
|
140
|
-
cluster = vsphere.get_compute_cluster(name=
|
|
140
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
141
|
+
cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
141
142
|
datacenter_id=datacenter.id)
|
|
142
|
-
|
|
143
|
+
host_group = vsphere.get_compute_cluster_host_group(name="hostgroup-01",
|
|
143
144
|
compute_cluster_id=cluster.id)
|
|
144
|
-
|
|
145
|
+
host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
|
|
145
146
|
compute_cluster_id=cluster.id,
|
|
146
147
|
name="terraform-host-rule1",
|
|
147
|
-
vm_group_name="
|
|
148
|
-
affinity_host_group_name=
|
|
148
|
+
vm_group_name="vmgroup-01",
|
|
149
|
+
affinity_host_group_name=host_group.name)
|
|
149
150
|
```
|
|
150
151
|
|
|
151
152
|
|
|
152
|
-
:param str compute_cluster_id: The
|
|
153
|
-
of the compute cluster for
|
|
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
156
|
|
|
155
157
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
156
158
|
:param str name: The name of the host group.
|
|
@@ -56,9 +56,11 @@ 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
|
|
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
|
|
62
|
+
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
63
|
+
host connections.
|
|
62
64
|
|
|
63
65
|
## Example Usage
|
|
64
66
|
|
|
@@ -66,7 +68,7 @@ def get_content_library(name: Optional[str] = None,
|
|
|
66
68
|
import pulumi
|
|
67
69
|
import pulumi_vsphere as vsphere
|
|
68
70
|
|
|
69
|
-
|
|
71
|
+
content_library = vsphere.get_content_library(name="Content Library")
|
|
70
72
|
```
|
|
71
73
|
|
|
72
74
|
|
|
@@ -86,9 +88,11 @@ def get_content_library(name: Optional[str] = None,
|
|
|
86
88
|
def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
|
|
87
89
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetContentLibraryResult]:
|
|
88
90
|
"""
|
|
89
|
-
The `ContentLibrary` data source can be used to discover the ID of a
|
|
91
|
+
The `ContentLibrary` data source can be used to discover the ID of a
|
|
92
|
+
content library.
|
|
90
93
|
|
|
91
|
-
> **NOTE:** This resource requires vCenter
|
|
94
|
+
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
95
|
+
host connections.
|
|
92
96
|
|
|
93
97
|
## Example Usage
|
|
94
98
|
|
|
@@ -96,7 +100,7 @@ def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
96
100
|
import pulumi
|
|
97
101
|
import pulumi_vsphere as vsphere
|
|
98
102
|
|
|
99
|
-
|
|
103
|
+
content_library = vsphere.get_content_library(name="Content Library")
|
|
100
104
|
```
|
|
101
105
|
|
|
102
106
|
|
|
@@ -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
|
|
83
|
-
|
|
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
|
|
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`,
|
|
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
|
|
114
|
-
|
|
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
|
|
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`,
|
|
122
|
+
:param str type: The type for the content library item. One of `ovf`,
|
|
123
|
+
`vm-template`, or `iso`
|
|
120
124
|
"""
|
|
121
125
|
...
|
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
|
-
datastore capacity is represented as `capacity` and the free remaining
|
|
62
|
-
represented as `free`.
|
|
60
|
+
The disk space usage statistics for the specific datastore. The
|
|
61
|
+
total datastore capacity is represented as `capacity` and the free remaining
|
|
62
|
+
disk is 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
|
-
datastore capacity is represented as `capacity` and the free remaining
|
|
108
|
-
represented as `free`.
|
|
106
|
+
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The
|
|
107
|
+
total datastore capacity is represented as `capacity` and the free remaining
|
|
108
|
+
disk is 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
|
-
datastore capacity is represented as `capacity` and the free remaining
|
|
154
|
-
represented as `free`.
|
|
152
|
+
:param Mapping[str, Any] stats: The disk space usage statistics for the specific datastore. The
|
|
153
|
+
total datastore capacity is represented as `capacity` and the free remaining
|
|
154
|
+
disk is 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
|
-
|
|
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
|
-
|
|
51
|
+
The [managed object reference ID][docs-about-morefs] of the
|
|
52
|
+
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
|
-
|
|
61
|
+
datacenter, where the name of the datastore is used as key and the free space
|
|
62
|
+
as value.
|
|
63
63
|
"""
|
|
64
64
|
return pulumi.get(self, "free_space")
|
|
65
65
|
|
|
@@ -89,9 +89,10 @@ 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
|
-
of all vSphere datastore objects in a datacenter. This can then be used as
|
|
94
|
-
standalone
|
|
92
|
+
The `get_datastore_stats` data source can be used to retrieve the usage
|
|
93
|
+
stats of all vSphere datastore objects in a datacenter. This can then be used as
|
|
94
|
+
a standalone data source to get information required as input to other data
|
|
95
|
+
sources.
|
|
95
96
|
|
|
96
97
|
## Example Usage
|
|
97
98
|
|
|
@@ -103,9 +104,8 @@ def get_datastore_stats(capacity: Optional[Mapping[str, Any]] = None,
|
|
|
103
104
|
datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
|
|
104
105
|
```
|
|
105
106
|
|
|
106
|
-
A
|
|
107
|
-
|
|
108
|
-
the above:
|
|
107
|
+
A useful example of this data source would be to determine the datastore with
|
|
108
|
+
the most free space. For example, in addition to the above:
|
|
109
109
|
|
|
110
110
|
Create an `outputs.tf` like that:
|
|
111
111
|
|
|
@@ -119,16 +119,17 @@ 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
|
-
|
|
124
|
-
:param str datacenter_id: The
|
|
125
|
-
of the datacenter the
|
|
126
|
-
|
|
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
|
+
[managed object reference ID][docs-about-morefs] of the datacenter the
|
|
126
|
+
datastores are located in. For default datacenters, use the `id` attribute
|
|
127
|
+
from an empty `Datacenter` data source.
|
|
127
128
|
|
|
128
129
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
129
130
|
:param Mapping[str, Any] free_space: A mapping of the free space for each datastore in the
|
|
130
|
-
datacenter, where the name of the datastore is used as key and the free
|
|
131
|
-
|
|
131
|
+
datacenter, where the name of the datastore is used as key and the free space
|
|
132
|
+
as value.
|
|
132
133
|
"""
|
|
133
134
|
__args__ = dict()
|
|
134
135
|
__args__['capacity'] = capacity
|
|
@@ -150,9 +151,10 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
|
|
|
150
151
|
free_space: Optional[pulumi.Input[Optional[Mapping[str, Any]]]] = None,
|
|
151
152
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreStatsResult]:
|
|
152
153
|
"""
|
|
153
|
-
The `get_datastore_stats` data source can be used to retrieve the usage
|
|
154
|
-
of all vSphere datastore objects in a datacenter. This can then be used as
|
|
155
|
-
standalone
|
|
154
|
+
The `get_datastore_stats` data source can be used to retrieve the usage
|
|
155
|
+
stats of all vSphere datastore objects in a datacenter. This can then be used as
|
|
156
|
+
a standalone data source to get information required as input to other data
|
|
157
|
+
sources.
|
|
156
158
|
|
|
157
159
|
## Example Usage
|
|
158
160
|
|
|
@@ -164,9 +166,8 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
|
|
|
164
166
|
datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
|
|
165
167
|
```
|
|
166
168
|
|
|
167
|
-
A
|
|
168
|
-
|
|
169
|
-
the above:
|
|
169
|
+
A useful example of this data source would be to determine the datastore with
|
|
170
|
+
the most free space. For example, in addition to the above:
|
|
170
171
|
|
|
171
172
|
Create an `outputs.tf` like that:
|
|
172
173
|
|
|
@@ -180,15 +181,16 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
|
|
|
180
181
|
and a `locals.tf` like that:
|
|
181
182
|
|
|
182
183
|
|
|
183
|
-
:param Mapping[str, Any] capacity: A mapping of the capacity for all datastore in the datacenter
|
|
184
|
-
|
|
185
|
-
:param str datacenter_id: The
|
|
186
|
-
of the datacenter the
|
|
187
|
-
|
|
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
|
+
[managed object reference ID][docs-about-morefs] of the datacenter the
|
|
188
|
+
datastores are located in. For default datacenters, use the `id` attribute
|
|
189
|
+
from an empty `Datacenter` data source.
|
|
188
190
|
|
|
189
191
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
190
192
|
:param Mapping[str, Any] free_space: A mapping of the free space for each datastore in the
|
|
191
|
-
datacenter, where the name of the datastore is used as key and the free
|
|
192
|
-
|
|
193
|
+
datacenter, where the name of the datastore is used as key and the free space
|
|
194
|
+
as value.
|
|
193
195
|
"""
|
|
194
196
|
...
|
pulumi_vsphere/get_dynamic.py
CHANGED
|
@@ -78,9 +78,10 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
|
|
|
78
78
|
"""
|
|
79
79
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
80
80
|
|
|
81
|
-
The `get_dynamic` data source can be used to get the
|
|
82
|
-
of any tagged managed object in
|
|
83
|
-
and an optional regular expression
|
|
81
|
+
The `get_dynamic` data source can be used to get the
|
|
82
|
+
[managed object reference ID][docs-about-morefs] of any tagged managed object in
|
|
83
|
+
vCenter Server by providing a list of tag IDs and an optional regular expression
|
|
84
|
+
to filter objects by name.
|
|
84
85
|
|
|
85
86
|
## Example Usage
|
|
86
87
|
|
|
@@ -104,11 +105,11 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
|
|
|
104
105
|
|
|
105
106
|
:param Sequence[str] filters: A list of tag IDs that must be present on an object to
|
|
106
107
|
be a match.
|
|
107
|
-
:param str name_regex: A regular expression that will be used to match
|
|
108
|
-
|
|
108
|
+
:param str name_regex: A regular expression that will be used to match the
|
|
109
|
+
object's name.
|
|
109
110
|
:param str type: The managed object type the returned object must match.
|
|
110
111
|
The managed object types can be found in the managed object type section
|
|
111
|
-
[here](https://developer.
|
|
112
|
+
[here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
|
|
112
113
|
"""
|
|
113
114
|
__args__ = dict()
|
|
114
115
|
__args__['filters'] = filters
|
|
@@ -132,9 +133,10 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
|
|
|
132
133
|
"""
|
|
133
134
|
[docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
134
135
|
|
|
135
|
-
The `get_dynamic` data source can be used to get the
|
|
136
|
-
of any tagged managed object in
|
|
137
|
-
and an optional regular expression
|
|
136
|
+
The `get_dynamic` data source can be used to get the
|
|
137
|
+
[managed object reference ID][docs-about-morefs] of any tagged managed object in
|
|
138
|
+
vCenter Server by providing a list of tag IDs and an optional regular expression
|
|
139
|
+
to filter objects by name.
|
|
138
140
|
|
|
139
141
|
## Example Usage
|
|
140
142
|
|
|
@@ -158,10 +160,10 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
|
|
|
158
160
|
|
|
159
161
|
:param Sequence[str] filters: A list of tag IDs that must be present on an object to
|
|
160
162
|
be a match.
|
|
161
|
-
:param str name_regex: A regular expression that will be used to match
|
|
162
|
-
|
|
163
|
+
:param str name_regex: A regular expression that will be used to match the
|
|
164
|
+
object's name.
|
|
163
165
|
:param str type: The managed object type the returned object must match.
|
|
164
166
|
The managed object types can be found in the managed object type section
|
|
165
|
-
[here](https://developer.
|
|
167
|
+
[here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
|
|
166
168
|
"""
|
|
167
169
|
...
|