pulumi-vsphere 4.10.0a1709017641__py3-none-any.whl → 4.17.0a1763710194__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/__init__.py +51 -1
- pulumi_vsphere/_inputs.py +2568 -1025
- pulumi_vsphere/_utilities.py +50 -10
- pulumi_vsphere/compute_cluster.py +1564 -2373
- pulumi_vsphere/compute_cluster_host_group.py +191 -55
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +157 -113
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +133 -89
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +314 -106
- pulumi_vsphere/compute_cluster_vm_group.py +256 -55
- pulumi_vsphere/compute_cluster_vm_host_rule.py +323 -123
- pulumi_vsphere/config/__init__.py +2 -1
- pulumi_vsphere/config/__init__.pyi +7 -2
- pulumi_vsphere/config/vars.py +20 -15
- pulumi_vsphere/configuration_profile.py +286 -0
- pulumi_vsphere/content_library.py +177 -71
- pulumi_vsphere/content_library_item.py +252 -106
- pulumi_vsphere/custom_attribute.py +118 -38
- pulumi_vsphere/datacenter.py +128 -107
- pulumi_vsphere/datastore_cluster.py +636 -731
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +251 -89
- pulumi_vsphere/distributed_port_group.py +1129 -967
- pulumi_vsphere/distributed_virtual_switch.py +1971 -2239
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +294 -0
- pulumi_vsphere/dpm_host_override.py +222 -72
- pulumi_vsphere/drs_vm_override.py +236 -72
- pulumi_vsphere/entity_permissions.py +96 -69
- pulumi_vsphere/file.py +173 -178
- pulumi_vsphere/folder.py +236 -113
- pulumi_vsphere/get_compute_cluster.py +34 -23
- pulumi_vsphere/get_compute_cluster_host_group.py +52 -41
- pulumi_vsphere/get_configuration_profile.py +145 -0
- pulumi_vsphere/get_content_library.py +33 -21
- pulumi_vsphere/get_content_library_item.py +47 -31
- pulumi_vsphere/get_custom_attribute.py +26 -17
- pulumi_vsphere/get_datacenter.py +40 -18
- pulumi_vsphere/get_datastore.py +60 -24
- pulumi_vsphere/get_datastore_cluster.py +47 -22
- pulumi_vsphere/get_datastore_stats.py +204 -0
- pulumi_vsphere/get_distributed_virtual_switch.py +36 -23
- pulumi_vsphere/get_dynamic.py +55 -45
- pulumi_vsphere/get_folder.py +163 -25
- pulumi_vsphere/get_guest_os_customization.py +68 -37
- pulumi_vsphere/get_host.py +34 -23
- pulumi_vsphere/get_host_base_images.py +104 -0
- pulumi_vsphere/get_host_pci_device.py +78 -35
- pulumi_vsphere/get_host_thumbprint.py +58 -38
- pulumi_vsphere/get_host_vgpu_profile.py +195 -0
- pulumi_vsphere/get_license.py +44 -28
- pulumi_vsphere/get_network.py +157 -46
- pulumi_vsphere/get_ovf_vm_template.py +184 -301
- pulumi_vsphere/get_policy.py +23 -15
- pulumi_vsphere/get_resource_pool.py +107 -40
- pulumi_vsphere/get_role.py +49 -35
- pulumi_vsphere/get_tag.py +34 -23
- pulumi_vsphere/get_tag_category.py +32 -21
- pulumi_vsphere/get_vapp_container.py +31 -21
- pulumi_vsphere/get_virtual_machine.py +499 -287
- pulumi_vsphere/get_vmfs_disks.py +42 -29
- pulumi_vsphere/guest_os_customization.py +135 -79
- pulumi_vsphere/ha_vm_override.py +470 -577
- pulumi_vsphere/host.py +515 -262
- pulumi_vsphere/host_port_group.py +352 -355
- pulumi_vsphere/host_virtual_switch.py +580 -580
- pulumi_vsphere/license.py +110 -92
- pulumi_vsphere/nas_datastore.py +398 -270
- pulumi_vsphere/offline_software_depot.py +190 -0
- pulumi_vsphere/outputs.py +1582 -1027
- pulumi_vsphere/provider.py +172 -152
- pulumi_vsphere/pulumi-plugin.json +2 -1
- pulumi_vsphere/resource_pool.py +357 -273
- pulumi_vsphere/role.py +79 -47
- pulumi_vsphere/storage_drs_vm_override.py +225 -89
- pulumi_vsphere/supervisor.py +1064 -0
- pulumi_vsphere/tag.py +217 -55
- pulumi_vsphere/tag_category.py +158 -72
- pulumi_vsphere/vapp_container.py +425 -259
- pulumi_vsphere/vapp_entity.py +324 -174
- pulumi_vsphere/virtual_disk.py +245 -153
- pulumi_vsphere/virtual_machine.py +1696 -1836
- pulumi_vsphere/virtual_machine_class.py +448 -0
- pulumi_vsphere/virtual_machine_snapshot.py +137 -131
- pulumi_vsphere/vm_storage_policy.py +160 -154
- pulumi_vsphere/vmfs_datastore.py +460 -186
- pulumi_vsphere/vnic.py +249 -231
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +7 -6
- pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.0a1709017641.dist-info/RECORD +0 -80
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -16,16 +21,16 @@ __all__ = ['ContentLibraryArgs', 'ContentLibrary']
|
|
|
16
21
|
@pulumi.input_type
|
|
17
22
|
class ContentLibraryArgs:
|
|
18
23
|
def __init__(__self__, *,
|
|
19
|
-
storage_backings: pulumi.Input[Sequence[pulumi.Input[str]]],
|
|
20
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
21
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
24
|
+
storage_backings: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
|
|
25
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
22
27
|
publication: Optional[pulumi.Input['ContentLibraryPublicationArgs']] = None,
|
|
23
28
|
subscription: Optional[pulumi.Input['ContentLibrarySubscriptionArgs']] = None):
|
|
24
29
|
"""
|
|
25
30
|
The set of arguments for constructing a ContentLibrary resource.
|
|
26
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] storage_backings: The managed object reference ID of the datastore on which to store the content library items.
|
|
27
|
-
:param pulumi.Input[str] description: A description for the content library.
|
|
28
|
-
:param pulumi.Input[str] name: The name of the content library.
|
|
31
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] storage_backings: The managed object reference ID of the datastore on which to store the content library items.
|
|
32
|
+
:param pulumi.Input[_builtins.str] description: A description for the content library.
|
|
33
|
+
:param pulumi.Input[_builtins.str] name: The name of the content library.
|
|
29
34
|
:param pulumi.Input['ContentLibraryPublicationArgs'] publication: Options to publish a local content library.
|
|
30
35
|
:param pulumi.Input['ContentLibrarySubscriptionArgs'] subscription: Options subscribe to a published content library.
|
|
31
36
|
"""
|
|
@@ -39,43 +44,43 @@ class ContentLibraryArgs:
|
|
|
39
44
|
if subscription is not None:
|
|
40
45
|
pulumi.set(__self__, "subscription", subscription)
|
|
41
46
|
|
|
42
|
-
@property
|
|
47
|
+
@_builtins.property
|
|
43
48
|
@pulumi.getter(name="storageBackings")
|
|
44
|
-
def storage_backings(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
49
|
+
def storage_backings(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
|
|
45
50
|
"""
|
|
46
51
|
The managed object reference ID of the datastore on which to store the content library items.
|
|
47
52
|
"""
|
|
48
53
|
return pulumi.get(self, "storage_backings")
|
|
49
54
|
|
|
50
55
|
@storage_backings.setter
|
|
51
|
-
def storage_backings(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
|
56
|
+
def storage_backings(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
|
|
52
57
|
pulumi.set(self, "storage_backings", value)
|
|
53
58
|
|
|
54
|
-
@property
|
|
59
|
+
@_builtins.property
|
|
55
60
|
@pulumi.getter
|
|
56
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
61
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
57
62
|
"""
|
|
58
63
|
A description for the content library.
|
|
59
64
|
"""
|
|
60
65
|
return pulumi.get(self, "description")
|
|
61
66
|
|
|
62
67
|
@description.setter
|
|
63
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
68
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
64
69
|
pulumi.set(self, "description", value)
|
|
65
70
|
|
|
66
|
-
@property
|
|
71
|
+
@_builtins.property
|
|
67
72
|
@pulumi.getter
|
|
68
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
73
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
69
74
|
"""
|
|
70
75
|
The name of the content library.
|
|
71
76
|
"""
|
|
72
77
|
return pulumi.get(self, "name")
|
|
73
78
|
|
|
74
79
|
@name.setter
|
|
75
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
80
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
76
81
|
pulumi.set(self, "name", value)
|
|
77
82
|
|
|
78
|
-
@property
|
|
83
|
+
@_builtins.property
|
|
79
84
|
@pulumi.getter
|
|
80
85
|
def publication(self) -> Optional[pulumi.Input['ContentLibraryPublicationArgs']]:
|
|
81
86
|
"""
|
|
@@ -87,7 +92,7 @@ class ContentLibraryArgs:
|
|
|
87
92
|
def publication(self, value: Optional[pulumi.Input['ContentLibraryPublicationArgs']]):
|
|
88
93
|
pulumi.set(self, "publication", value)
|
|
89
94
|
|
|
90
|
-
@property
|
|
95
|
+
@_builtins.property
|
|
91
96
|
@pulumi.getter
|
|
92
97
|
def subscription(self) -> Optional[pulumi.Input['ContentLibrarySubscriptionArgs']]:
|
|
93
98
|
"""
|
|
@@ -103,17 +108,17 @@ class ContentLibraryArgs:
|
|
|
103
108
|
@pulumi.input_type
|
|
104
109
|
class _ContentLibraryState:
|
|
105
110
|
def __init__(__self__, *,
|
|
106
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
107
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
111
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
112
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
108
113
|
publication: Optional[pulumi.Input['ContentLibraryPublicationArgs']] = None,
|
|
109
|
-
storage_backings: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
114
|
+
storage_backings: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
110
115
|
subscription: Optional[pulumi.Input['ContentLibrarySubscriptionArgs']] = None):
|
|
111
116
|
"""
|
|
112
117
|
Input properties used for looking up and filtering ContentLibrary resources.
|
|
113
|
-
:param pulumi.Input[str] description: A description for the content library.
|
|
114
|
-
:param pulumi.Input[str] name: The name of the content library.
|
|
118
|
+
:param pulumi.Input[_builtins.str] description: A description for the content library.
|
|
119
|
+
:param pulumi.Input[_builtins.str] name: The name of the content library.
|
|
115
120
|
:param pulumi.Input['ContentLibraryPublicationArgs'] publication: Options to publish a local content library.
|
|
116
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] storage_backings: The managed object reference ID of the datastore on which to store the content library items.
|
|
121
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] storage_backings: The managed object reference ID of the datastore on which to store the content library items.
|
|
117
122
|
:param pulumi.Input['ContentLibrarySubscriptionArgs'] subscription: Options subscribe to a published content library.
|
|
118
123
|
"""
|
|
119
124
|
if description is not None:
|
|
@@ -127,31 +132,31 @@ class _ContentLibraryState:
|
|
|
127
132
|
if subscription is not None:
|
|
128
133
|
pulumi.set(__self__, "subscription", subscription)
|
|
129
134
|
|
|
130
|
-
@property
|
|
135
|
+
@_builtins.property
|
|
131
136
|
@pulumi.getter
|
|
132
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
137
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
133
138
|
"""
|
|
134
139
|
A description for the content library.
|
|
135
140
|
"""
|
|
136
141
|
return pulumi.get(self, "description")
|
|
137
142
|
|
|
138
143
|
@description.setter
|
|
139
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
144
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
140
145
|
pulumi.set(self, "description", value)
|
|
141
146
|
|
|
142
|
-
@property
|
|
147
|
+
@_builtins.property
|
|
143
148
|
@pulumi.getter
|
|
144
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
149
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
145
150
|
"""
|
|
146
151
|
The name of the content library.
|
|
147
152
|
"""
|
|
148
153
|
return pulumi.get(self, "name")
|
|
149
154
|
|
|
150
155
|
@name.setter
|
|
151
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
156
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
152
157
|
pulumi.set(self, "name", value)
|
|
153
158
|
|
|
154
|
-
@property
|
|
159
|
+
@_builtins.property
|
|
155
160
|
@pulumi.getter
|
|
156
161
|
def publication(self) -> Optional[pulumi.Input['ContentLibraryPublicationArgs']]:
|
|
157
162
|
"""
|
|
@@ -163,19 +168,19 @@ class _ContentLibraryState:
|
|
|
163
168
|
def publication(self, value: Optional[pulumi.Input['ContentLibraryPublicationArgs']]):
|
|
164
169
|
pulumi.set(self, "publication", value)
|
|
165
170
|
|
|
166
|
-
@property
|
|
171
|
+
@_builtins.property
|
|
167
172
|
@pulumi.getter(name="storageBackings")
|
|
168
|
-
def storage_backings(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
173
|
+
def storage_backings(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
169
174
|
"""
|
|
170
175
|
The managed object reference ID of the datastore on which to store the content library items.
|
|
171
176
|
"""
|
|
172
177
|
return pulumi.get(self, "storage_backings")
|
|
173
178
|
|
|
174
179
|
@storage_backings.setter
|
|
175
|
-
def storage_backings(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
180
|
+
def storage_backings(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
176
181
|
pulumi.set(self, "storage_backings", value)
|
|
177
182
|
|
|
178
|
-
@property
|
|
183
|
+
@_builtins.property
|
|
179
184
|
@pulumi.getter
|
|
180
185
|
def subscription(self) -> Optional[pulumi.Input['ContentLibrarySubscriptionArgs']]:
|
|
181
186
|
"""
|
|
@@ -188,26 +193,77 @@ class _ContentLibraryState:
|
|
|
188
193
|
pulumi.set(self, "subscription", value)
|
|
189
194
|
|
|
190
195
|
|
|
196
|
+
@pulumi.type_token("vsphere:index/contentLibrary:ContentLibrary")
|
|
191
197
|
class ContentLibrary(pulumi.CustomResource):
|
|
192
198
|
@overload
|
|
193
199
|
def __init__(__self__,
|
|
194
200
|
resource_name: str,
|
|
195
201
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
196
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
197
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
198
|
-
publication: Optional[pulumi.Input[
|
|
199
|
-
storage_backings: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
200
|
-
subscription: Optional[pulumi.Input[
|
|
202
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
203
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
204
|
+
publication: Optional[pulumi.Input[Union['ContentLibraryPublicationArgs', 'ContentLibraryPublicationArgsDict']]] = None,
|
|
205
|
+
storage_backings: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
206
|
+
subscription: Optional[pulumi.Input[Union['ContentLibrarySubscriptionArgs', 'ContentLibrarySubscriptionArgsDict']]] = None,
|
|
201
207
|
__props__=None):
|
|
202
208
|
"""
|
|
203
|
-
|
|
209
|
+
The `ContentLibrary` resource can be used to manage content libraries.
|
|
210
|
+
|
|
211
|
+
> **NOTE:** This resource requires a vCenter Server instance and is not available on direct ESXi host connections.
|
|
212
|
+
|
|
213
|
+
## Example Usage
|
|
214
|
+
|
|
215
|
+
The following example creates a publishing content library using the datastore named `publisher-datastore` as the storage backing.
|
|
216
|
+
|
|
217
|
+
```python
|
|
218
|
+
import pulumi
|
|
219
|
+
import pulumi_vsphere as vsphere
|
|
220
|
+
|
|
221
|
+
datacenter_a = vsphere.get_datacenter(name="dc-01-a")
|
|
222
|
+
publisher_datastore = vsphere.get_datastore(name="publisher-datastore",
|
|
223
|
+
datacenter_id=datacenter_a.id)
|
|
224
|
+
publisher_content_library = vsphere.ContentLibrary("publisher_content_library",
|
|
225
|
+
name="Publisher Content Library",
|
|
226
|
+
description="A publishing content library.",
|
|
227
|
+
storage_backings=[publisher_datastore.id])
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
The next example creates a subscribed content library using the URL of the publisher content library as the source and the datastore named `subscriber-datastore` as the storage backing.
|
|
231
|
+
|
|
232
|
+
```python
|
|
233
|
+
import pulumi
|
|
234
|
+
import pulumi_vsphere as vsphere
|
|
235
|
+
|
|
236
|
+
datacenter_b = vsphere.get_datacenter(name="dc-01-b")
|
|
237
|
+
subscriber_datastore = vsphere.get_datastore(name="subscriber-datastore",
|
|
238
|
+
datacenter_id=datacenter_b.id)
|
|
239
|
+
subscriber_content_library = vsphere.ContentLibrary("subscriber_content_library",
|
|
240
|
+
name="Subscriber Content Library",
|
|
241
|
+
description="A subscribing content library.",
|
|
242
|
+
storage_backings=[subscriber_datastore.id],
|
|
243
|
+
subscription={
|
|
244
|
+
"subscription_url": "https://vc-01-a.example.com:443/cls/vcsp/lib/f42a4b25-844a-44ec-9063-a3a5e9cc88c7/lib.json",
|
|
245
|
+
"automatic_sync": True,
|
|
246
|
+
"on_demand": False,
|
|
247
|
+
})
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
## Import
|
|
251
|
+
|
|
252
|
+
An existing content library can be imported into this resource by supplying the content library ID. For example:
|
|
253
|
+
|
|
254
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
255
|
+
|
|
256
|
+
```sh
|
|
257
|
+
$ pulumi import vsphere:index/contentLibrary:ContentLibrary vsphere_content_library publisher_content_library f42a4b25-844a-44ec-9063-a3a5e9cc88c7
|
|
258
|
+
```
|
|
259
|
+
|
|
204
260
|
:param str resource_name: The name of the resource.
|
|
205
261
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
206
|
-
:param pulumi.Input[str] description: A description for the content library.
|
|
207
|
-
:param pulumi.Input[str] name: The name of the content library.
|
|
208
|
-
:param pulumi.Input[
|
|
209
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] storage_backings: The managed object reference ID of the datastore on which to store the content library items.
|
|
210
|
-
:param pulumi.Input[
|
|
262
|
+
:param pulumi.Input[_builtins.str] description: A description for the content library.
|
|
263
|
+
:param pulumi.Input[_builtins.str] name: The name of the content library.
|
|
264
|
+
:param pulumi.Input[Union['ContentLibraryPublicationArgs', 'ContentLibraryPublicationArgsDict']] publication: Options to publish a local content library.
|
|
265
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] storage_backings: The managed object reference ID of the datastore on which to store the content library items.
|
|
266
|
+
:param pulumi.Input[Union['ContentLibrarySubscriptionArgs', 'ContentLibrarySubscriptionArgsDict']] subscription: Options subscribe to a published content library.
|
|
211
267
|
"""
|
|
212
268
|
...
|
|
213
269
|
@overload
|
|
@@ -216,7 +272,57 @@ class ContentLibrary(pulumi.CustomResource):
|
|
|
216
272
|
args: ContentLibraryArgs,
|
|
217
273
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
218
274
|
"""
|
|
219
|
-
|
|
275
|
+
The `ContentLibrary` resource can be used to manage content libraries.
|
|
276
|
+
|
|
277
|
+
> **NOTE:** This resource requires a vCenter Server instance and is not available on direct ESXi host connections.
|
|
278
|
+
|
|
279
|
+
## Example Usage
|
|
280
|
+
|
|
281
|
+
The following example creates a publishing content library using the datastore named `publisher-datastore` as the storage backing.
|
|
282
|
+
|
|
283
|
+
```python
|
|
284
|
+
import pulumi
|
|
285
|
+
import pulumi_vsphere as vsphere
|
|
286
|
+
|
|
287
|
+
datacenter_a = vsphere.get_datacenter(name="dc-01-a")
|
|
288
|
+
publisher_datastore = vsphere.get_datastore(name="publisher-datastore",
|
|
289
|
+
datacenter_id=datacenter_a.id)
|
|
290
|
+
publisher_content_library = vsphere.ContentLibrary("publisher_content_library",
|
|
291
|
+
name="Publisher Content Library",
|
|
292
|
+
description="A publishing content library.",
|
|
293
|
+
storage_backings=[publisher_datastore.id])
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
The next example creates a subscribed content library using the URL of the publisher content library as the source and the datastore named `subscriber-datastore` as the storage backing.
|
|
297
|
+
|
|
298
|
+
```python
|
|
299
|
+
import pulumi
|
|
300
|
+
import pulumi_vsphere as vsphere
|
|
301
|
+
|
|
302
|
+
datacenter_b = vsphere.get_datacenter(name="dc-01-b")
|
|
303
|
+
subscriber_datastore = vsphere.get_datastore(name="subscriber-datastore",
|
|
304
|
+
datacenter_id=datacenter_b.id)
|
|
305
|
+
subscriber_content_library = vsphere.ContentLibrary("subscriber_content_library",
|
|
306
|
+
name="Subscriber Content Library",
|
|
307
|
+
description="A subscribing content library.",
|
|
308
|
+
storage_backings=[subscriber_datastore.id],
|
|
309
|
+
subscription={
|
|
310
|
+
"subscription_url": "https://vc-01-a.example.com:443/cls/vcsp/lib/f42a4b25-844a-44ec-9063-a3a5e9cc88c7/lib.json",
|
|
311
|
+
"automatic_sync": True,
|
|
312
|
+
"on_demand": False,
|
|
313
|
+
})
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
## Import
|
|
317
|
+
|
|
318
|
+
An existing content library can be imported into this resource by supplying the content library ID. For example:
|
|
319
|
+
|
|
320
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
321
|
+
|
|
322
|
+
```sh
|
|
323
|
+
$ pulumi import vsphere:index/contentLibrary:ContentLibrary vsphere_content_library publisher_content_library f42a4b25-844a-44ec-9063-a3a5e9cc88c7
|
|
324
|
+
```
|
|
325
|
+
|
|
220
326
|
:param str resource_name: The name of the resource.
|
|
221
327
|
:param ContentLibraryArgs args: The arguments to use to populate this resource's properties.
|
|
222
328
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -232,11 +338,11 @@ class ContentLibrary(pulumi.CustomResource):
|
|
|
232
338
|
def _internal_init(__self__,
|
|
233
339
|
resource_name: str,
|
|
234
340
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
235
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
236
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
237
|
-
publication: Optional[pulumi.Input[
|
|
238
|
-
storage_backings: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
239
|
-
subscription: Optional[pulumi.Input[
|
|
341
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
342
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
343
|
+
publication: Optional[pulumi.Input[Union['ContentLibraryPublicationArgs', 'ContentLibraryPublicationArgsDict']]] = None,
|
|
344
|
+
storage_backings: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
345
|
+
subscription: Optional[pulumi.Input[Union['ContentLibrarySubscriptionArgs', 'ContentLibrarySubscriptionArgsDict']]] = None,
|
|
240
346
|
__props__=None):
|
|
241
347
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
242
348
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -263,11 +369,11 @@ class ContentLibrary(pulumi.CustomResource):
|
|
|
263
369
|
def get(resource_name: str,
|
|
264
370
|
id: pulumi.Input[str],
|
|
265
371
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
266
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
267
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
268
|
-
publication: Optional[pulumi.Input[
|
|
269
|
-
storage_backings: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
270
|
-
subscription: Optional[pulumi.Input[
|
|
372
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
373
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
374
|
+
publication: Optional[pulumi.Input[Union['ContentLibraryPublicationArgs', 'ContentLibraryPublicationArgsDict']]] = None,
|
|
375
|
+
storage_backings: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
376
|
+
subscription: Optional[pulumi.Input[Union['ContentLibrarySubscriptionArgs', 'ContentLibrarySubscriptionArgsDict']]] = None) -> 'ContentLibrary':
|
|
271
377
|
"""
|
|
272
378
|
Get an existing ContentLibrary resource's state with the given name, id, and optional extra
|
|
273
379
|
properties used to qualify the lookup.
|
|
@@ -275,11 +381,11 @@ class ContentLibrary(pulumi.CustomResource):
|
|
|
275
381
|
:param str resource_name: The unique name of the resulting resource.
|
|
276
382
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
277
383
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
278
|
-
:param pulumi.Input[str] description: A description for the content library.
|
|
279
|
-
:param pulumi.Input[str] name: The name of the content library.
|
|
280
|
-
:param pulumi.Input[
|
|
281
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] storage_backings: The managed object reference ID of the datastore on which to store the content library items.
|
|
282
|
-
:param pulumi.Input[
|
|
384
|
+
:param pulumi.Input[_builtins.str] description: A description for the content library.
|
|
385
|
+
:param pulumi.Input[_builtins.str] name: The name of the content library.
|
|
386
|
+
:param pulumi.Input[Union['ContentLibraryPublicationArgs', 'ContentLibraryPublicationArgsDict']] publication: Options to publish a local content library.
|
|
387
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] storage_backings: The managed object reference ID of the datastore on which to store the content library items.
|
|
388
|
+
:param pulumi.Input[Union['ContentLibrarySubscriptionArgs', 'ContentLibrarySubscriptionArgsDict']] subscription: Options subscribe to a published content library.
|
|
283
389
|
"""
|
|
284
390
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
285
391
|
|
|
@@ -292,23 +398,23 @@ class ContentLibrary(pulumi.CustomResource):
|
|
|
292
398
|
__props__.__dict__["subscription"] = subscription
|
|
293
399
|
return ContentLibrary(resource_name, opts=opts, __props__=__props__)
|
|
294
400
|
|
|
295
|
-
@property
|
|
401
|
+
@_builtins.property
|
|
296
402
|
@pulumi.getter
|
|
297
|
-
def description(self) -> pulumi.Output[Optional[str]]:
|
|
403
|
+
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
298
404
|
"""
|
|
299
405
|
A description for the content library.
|
|
300
406
|
"""
|
|
301
407
|
return pulumi.get(self, "description")
|
|
302
408
|
|
|
303
|
-
@property
|
|
409
|
+
@_builtins.property
|
|
304
410
|
@pulumi.getter
|
|
305
|
-
def name(self) -> pulumi.Output[str]:
|
|
411
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
306
412
|
"""
|
|
307
413
|
The name of the content library.
|
|
308
414
|
"""
|
|
309
415
|
return pulumi.get(self, "name")
|
|
310
416
|
|
|
311
|
-
@property
|
|
417
|
+
@_builtins.property
|
|
312
418
|
@pulumi.getter
|
|
313
419
|
def publication(self) -> pulumi.Output['outputs.ContentLibraryPublication']:
|
|
314
420
|
"""
|
|
@@ -316,15 +422,15 @@ class ContentLibrary(pulumi.CustomResource):
|
|
|
316
422
|
"""
|
|
317
423
|
return pulumi.get(self, "publication")
|
|
318
424
|
|
|
319
|
-
@property
|
|
425
|
+
@_builtins.property
|
|
320
426
|
@pulumi.getter(name="storageBackings")
|
|
321
|
-
def storage_backings(self) -> pulumi.Output[Sequence[str]]:
|
|
427
|
+
def storage_backings(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
322
428
|
"""
|
|
323
429
|
The managed object reference ID of the datastore on which to store the content library items.
|
|
324
430
|
"""
|
|
325
431
|
return pulumi.get(self, "storage_backings")
|
|
326
432
|
|
|
327
|
-
@property
|
|
433
|
+
@_builtins.property
|
|
328
434
|
@pulumi.getter
|
|
329
435
|
def subscription(self) -> pulumi.Output[Optional['outputs.ContentLibrarySubscription']]:
|
|
330
436
|
"""
|