pulumi-vsphere 4.14.0a1739946909__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 +12 -1
- pulumi_vsphere/_inputs.py +1172 -1172
- pulumi_vsphere/_utilities.py +1 -1
- pulumi_vsphere/compute_cluster.py +1226 -1484
- pulumi_vsphere/compute_cluster_host_group.py +124 -53
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +88 -87
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +92 -87
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +109 -104
- pulumi_vsphere/compute_cluster_vm_group.py +58 -53
- pulumi_vsphere/compute_cluster_vm_host_rule.py +126 -121
- pulumi_vsphere/config/__init__.py +2 -1
- pulumi_vsphere/config/__init__.pyi +2 -2
- pulumi_vsphere/config/vars.py +15 -15
- pulumi_vsphere/configuration_profile.py +286 -0
- pulumi_vsphere/content_library.py +64 -59
- pulumi_vsphere/content_library_item.py +109 -104
- pulumi_vsphere/custom_attribute.py +41 -36
- pulumi_vsphere/datacenter.py +80 -79
- pulumi_vsphere/datastore_cluster.py +531 -477
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +92 -87
- pulumi_vsphere/distributed_port_group.py +802 -818
- pulumi_vsphere/distributed_virtual_switch.py +1590 -1620
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +71 -70
- pulumi_vsphere/dpm_host_override.py +159 -70
- pulumi_vsphere/drs_vm_override.py +75 -70
- pulumi_vsphere/entity_permissions.py +40 -39
- pulumi_vsphere/file.py +148 -162
- pulumi_vsphere/folder.py +104 -99
- pulumi_vsphere/get_compute_cluster.py +18 -18
- pulumi_vsphere/get_compute_cluster_host_group.py +18 -22
- pulumi_vsphere/get_configuration_profile.py +145 -0
- pulumi_vsphere/get_content_library.py +10 -10
- pulumi_vsphere/get_content_library_item.py +22 -22
- pulumi_vsphere/get_custom_attribute.py +12 -12
- pulumi_vsphere/get_datacenter.py +12 -12
- pulumi_vsphere/get_datastore.py +22 -22
- pulumi_vsphere/get_datastore_cluster.py +19 -19
- pulumi_vsphere/get_datastore_stats.py +22 -26
- pulumi_vsphere/get_distributed_virtual_switch.py +18 -18
- pulumi_vsphere/get_dynamic.py +22 -26
- pulumi_vsphere/get_folder.py +140 -18
- pulumi_vsphere/get_guest_os_customization.py +74 -21
- pulumi_vsphere/get_host.py +18 -18
- pulumi_vsphere/get_host_base_images.py +6 -6
- pulumi_vsphere/get_host_pci_device.py +30 -30
- pulumi_vsphere/get_host_thumbprint.py +22 -22
- pulumi_vsphere/get_host_vgpu_profile.py +17 -17
- pulumi_vsphere/get_license.py +26 -24
- pulumi_vsphere/get_network.py +80 -29
- pulumi_vsphere/get_ovf_vm_template.py +126 -126
- pulumi_vsphere/get_policy.py +10 -10
- pulumi_vsphere/get_resource_pool.py +77 -26
- pulumi_vsphere/get_role.py +26 -26
- pulumi_vsphere/get_tag.py +18 -18
- pulumi_vsphere/get_tag_category.py +16 -16
- pulumi_vsphere/get_vapp_container.py +16 -16
- pulumi_vsphere/get_virtual_machine.py +273 -273
- pulumi_vsphere/get_vmfs_disks.py +24 -24
- pulumi_vsphere/guest_os_customization.py +75 -74
- pulumi_vsphere/ha_vm_override.py +295 -374
- pulumi_vsphere/host.py +304 -249
- pulumi_vsphere/host_port_group.py +321 -341
- pulumi_vsphere/host_virtual_switch.py +373 -389
- pulumi_vsphere/license.py +125 -84
- pulumi_vsphere/nas_datastore.py +324 -261
- pulumi_vsphere/offline_software_depot.py +26 -21
- pulumi_vsphere/outputs.py +1003 -970
- pulumi_vsphere/provider.py +165 -146
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +691 -364
- pulumi_vsphere/role.py +46 -45
- pulumi_vsphere/storage_drs_vm_override.py +92 -87
- pulumi_vsphere/supervisor.py +210 -209
- pulumi_vsphere/tag.py +58 -53
- pulumi_vsphere/tag_category.py +75 -70
- pulumi_vsphere/vapp_container.py +262 -257
- pulumi_vsphere/vapp_entity.py +177 -172
- pulumi_vsphere/virtual_disk.py +130 -125
- pulumi_vsphere/virtual_machine.py +1339 -1443
- pulumi_vsphere/virtual_machine_class.py +109 -108
- pulumi_vsphere/virtual_machine_snapshot.py +122 -121
- pulumi_vsphere/vm_storage_policy.py +40 -39
- pulumi_vsphere/vmfs_datastore.py +189 -184
- pulumi_vsphere/vnic.py +145 -144
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +4 -4
- pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.14.0a1739946909.dist-info/RECORD +0 -87
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
pulumi_vsphere/folder.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -19,14 +19,14 @@ __all__ = ['FolderArgs', 'Folder']
|
|
|
19
19
|
@pulumi.input_type
|
|
20
20
|
class FolderArgs:
|
|
21
21
|
def __init__(__self__, *,
|
|
22
|
-
path: pulumi.Input[str],
|
|
23
|
-
type: pulumi.Input[str],
|
|
24
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
25
|
-
datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
26
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
22
|
+
path: pulumi.Input[_builtins.str],
|
|
23
|
+
type: pulumi.Input[_builtins.str],
|
|
24
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
25
|
+
datacenter_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
27
27
|
"""
|
|
28
28
|
The set of arguments for constructing a Folder resource.
|
|
29
|
-
:param pulumi.Input[str] path: The path of the folder to be created. This is relative to
|
|
29
|
+
:param pulumi.Input[_builtins.str] path: The path of the folder to be created. This is relative to
|
|
30
30
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
31
31
|
For example, given a default datacenter of `default-dc`, a folder of type
|
|
32
32
|
`vm` (denoting a virtual machine folder), and a supplied folder of
|
|
@@ -37,11 +37,11 @@ class FolderArgs:
|
|
|
37
37
|
what section of `path` you are modifying. If you are modifying the parent (so
|
|
38
38
|
any part before the last `/`), your folder will be moved to that new parent. If
|
|
39
39
|
modifying the name (the part after the last `/`), your folder will be renamed.
|
|
40
|
-
:param pulumi.Input[str] type: The type of folder to create. Allowed options are
|
|
40
|
+
:param pulumi.Input[_builtins.str] type: The type of folder to create. Allowed options are
|
|
41
41
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
42
42
|
`vm` for virtual machine folders, `datastore` for datastore folders, and
|
|
43
43
|
`network` for network folders. Forces a new resource if changed.
|
|
44
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
44
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
45
45
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
46
46
|
for a reference on how to set values for custom attributes.
|
|
47
47
|
|
|
@@ -49,10 +49,10 @@ class FolderArgs:
|
|
|
49
49
|
|
|
50
50
|
> **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
51
51
|
and require vCenter.
|
|
52
|
-
:param pulumi.Input[str] datacenter_id: The ID of the datacenter the folder will be created in.
|
|
52
|
+
:param pulumi.Input[_builtins.str] datacenter_id: The ID of the datacenter the folder will be created in.
|
|
53
53
|
Required for all folder types except for datacenter folders. Forces a new
|
|
54
54
|
resource if changed.
|
|
55
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
55
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
56
56
|
"""
|
|
57
57
|
pulumi.set(__self__, "path", path)
|
|
58
58
|
pulumi.set(__self__, "type", type)
|
|
@@ -63,9 +63,9 @@ class FolderArgs:
|
|
|
63
63
|
if tags is not None:
|
|
64
64
|
pulumi.set(__self__, "tags", tags)
|
|
65
65
|
|
|
66
|
-
@property
|
|
66
|
+
@_builtins.property
|
|
67
67
|
@pulumi.getter
|
|
68
|
-
def path(self) -> pulumi.Input[str]:
|
|
68
|
+
def path(self) -> pulumi.Input[_builtins.str]:
|
|
69
69
|
"""
|
|
70
70
|
The path of the folder to be created. This is relative to
|
|
71
71
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
@@ -82,12 +82,12 @@ class FolderArgs:
|
|
|
82
82
|
return pulumi.get(self, "path")
|
|
83
83
|
|
|
84
84
|
@path.setter
|
|
85
|
-
def path(self, value: pulumi.Input[str]):
|
|
85
|
+
def path(self, value: pulumi.Input[_builtins.str]):
|
|
86
86
|
pulumi.set(self, "path", value)
|
|
87
87
|
|
|
88
|
-
@property
|
|
88
|
+
@_builtins.property
|
|
89
89
|
@pulumi.getter
|
|
90
|
-
def type(self) -> pulumi.Input[str]:
|
|
90
|
+
def type(self) -> pulumi.Input[_builtins.str]:
|
|
91
91
|
"""
|
|
92
92
|
The type of folder to create. Allowed options are
|
|
93
93
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
@@ -97,12 +97,12 @@ class FolderArgs:
|
|
|
97
97
|
return pulumi.get(self, "type")
|
|
98
98
|
|
|
99
99
|
@type.setter
|
|
100
|
-
def type(self, value: pulumi.Input[str]):
|
|
100
|
+
def type(self, value: pulumi.Input[_builtins.str]):
|
|
101
101
|
pulumi.set(self, "type", value)
|
|
102
102
|
|
|
103
|
-
@property
|
|
103
|
+
@_builtins.property
|
|
104
104
|
@pulumi.getter(name="customAttributes")
|
|
105
|
-
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
105
|
+
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
106
106
|
"""
|
|
107
107
|
Map of custom attribute ids to attribute
|
|
108
108
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
@@ -116,12 +116,12 @@ class FolderArgs:
|
|
|
116
116
|
return pulumi.get(self, "custom_attributes")
|
|
117
117
|
|
|
118
118
|
@custom_attributes.setter
|
|
119
|
-
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
119
|
+
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
120
120
|
pulumi.set(self, "custom_attributes", value)
|
|
121
121
|
|
|
122
|
-
@property
|
|
122
|
+
@_builtins.property
|
|
123
123
|
@pulumi.getter(name="datacenterId")
|
|
124
|
-
def datacenter_id(self) -> Optional[pulumi.Input[str]]:
|
|
124
|
+
def datacenter_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
125
125
|
"""
|
|
126
126
|
The ID of the datacenter the folder will be created in.
|
|
127
127
|
Required for all folder types except for datacenter folders. Forces a new
|
|
@@ -130,33 +130,33 @@ class FolderArgs:
|
|
|
130
130
|
return pulumi.get(self, "datacenter_id")
|
|
131
131
|
|
|
132
132
|
@datacenter_id.setter
|
|
133
|
-
def datacenter_id(self, value: Optional[pulumi.Input[str]]):
|
|
133
|
+
def datacenter_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
134
134
|
pulumi.set(self, "datacenter_id", value)
|
|
135
135
|
|
|
136
|
-
@property
|
|
136
|
+
@_builtins.property
|
|
137
137
|
@pulumi.getter
|
|
138
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
138
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
139
139
|
"""
|
|
140
140
|
The IDs of any tags to attach to this resource.
|
|
141
141
|
"""
|
|
142
142
|
return pulumi.get(self, "tags")
|
|
143
143
|
|
|
144
144
|
@tags.setter
|
|
145
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
145
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
146
146
|
pulumi.set(self, "tags", value)
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
@pulumi.input_type
|
|
150
150
|
class _FolderState:
|
|
151
151
|
def __init__(__self__, *,
|
|
152
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
153
|
-
datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
154
|
-
path: Optional[pulumi.Input[str]] = None,
|
|
155
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
156
|
-
type: Optional[pulumi.Input[str]] = None):
|
|
152
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
153
|
+
datacenter_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
154
|
+
path: Optional[pulumi.Input[_builtins.str]] = None,
|
|
155
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
156
|
+
type: Optional[pulumi.Input[_builtins.str]] = None):
|
|
157
157
|
"""
|
|
158
158
|
Input properties used for looking up and filtering Folder resources.
|
|
159
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
159
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
160
160
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
161
161
|
for a reference on how to set values for custom attributes.
|
|
162
162
|
|
|
@@ -164,10 +164,10 @@ class _FolderState:
|
|
|
164
164
|
|
|
165
165
|
> **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
166
166
|
and require vCenter.
|
|
167
|
-
:param pulumi.Input[str] datacenter_id: The ID of the datacenter the folder will be created in.
|
|
167
|
+
:param pulumi.Input[_builtins.str] datacenter_id: The ID of the datacenter the folder will be created in.
|
|
168
168
|
Required for all folder types except for datacenter folders. Forces a new
|
|
169
169
|
resource if changed.
|
|
170
|
-
:param pulumi.Input[str] path: The path of the folder to be created. This is relative to
|
|
170
|
+
:param pulumi.Input[_builtins.str] path: The path of the folder to be created. This is relative to
|
|
171
171
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
172
172
|
For example, given a default datacenter of `default-dc`, a folder of type
|
|
173
173
|
`vm` (denoting a virtual machine folder), and a supplied folder of
|
|
@@ -178,8 +178,8 @@ class _FolderState:
|
|
|
178
178
|
what section of `path` you are modifying. If you are modifying the parent (so
|
|
179
179
|
any part before the last `/`), your folder will be moved to that new parent. If
|
|
180
180
|
modifying the name (the part after the last `/`), your folder will be renamed.
|
|
181
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
182
|
-
:param pulumi.Input[str] type: The type of folder to create. Allowed options are
|
|
181
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
182
|
+
:param pulumi.Input[_builtins.str] type: The type of folder to create. Allowed options are
|
|
183
183
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
184
184
|
`vm` for virtual machine folders, `datastore` for datastore folders, and
|
|
185
185
|
`network` for network folders. Forces a new resource if changed.
|
|
@@ -195,9 +195,9 @@ class _FolderState:
|
|
|
195
195
|
if type is not None:
|
|
196
196
|
pulumi.set(__self__, "type", type)
|
|
197
197
|
|
|
198
|
-
@property
|
|
198
|
+
@_builtins.property
|
|
199
199
|
@pulumi.getter(name="customAttributes")
|
|
200
|
-
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
200
|
+
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
201
201
|
"""
|
|
202
202
|
Map of custom attribute ids to attribute
|
|
203
203
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
@@ -211,12 +211,12 @@ class _FolderState:
|
|
|
211
211
|
return pulumi.get(self, "custom_attributes")
|
|
212
212
|
|
|
213
213
|
@custom_attributes.setter
|
|
214
|
-
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
214
|
+
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
215
215
|
pulumi.set(self, "custom_attributes", value)
|
|
216
216
|
|
|
217
|
-
@property
|
|
217
|
+
@_builtins.property
|
|
218
218
|
@pulumi.getter(name="datacenterId")
|
|
219
|
-
def datacenter_id(self) -> Optional[pulumi.Input[str]]:
|
|
219
|
+
def datacenter_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
220
220
|
"""
|
|
221
221
|
The ID of the datacenter the folder will be created in.
|
|
222
222
|
Required for all folder types except for datacenter folders. Forces a new
|
|
@@ -225,12 +225,12 @@ class _FolderState:
|
|
|
225
225
|
return pulumi.get(self, "datacenter_id")
|
|
226
226
|
|
|
227
227
|
@datacenter_id.setter
|
|
228
|
-
def datacenter_id(self, value: Optional[pulumi.Input[str]]):
|
|
228
|
+
def datacenter_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
229
229
|
pulumi.set(self, "datacenter_id", value)
|
|
230
230
|
|
|
231
|
-
@property
|
|
231
|
+
@_builtins.property
|
|
232
232
|
@pulumi.getter
|
|
233
|
-
def path(self) -> Optional[pulumi.Input[str]]:
|
|
233
|
+
def path(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
234
234
|
"""
|
|
235
235
|
The path of the folder to be created. This is relative to
|
|
236
236
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
@@ -247,24 +247,24 @@ class _FolderState:
|
|
|
247
247
|
return pulumi.get(self, "path")
|
|
248
248
|
|
|
249
249
|
@path.setter
|
|
250
|
-
def path(self, value: Optional[pulumi.Input[str]]):
|
|
250
|
+
def path(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
251
251
|
pulumi.set(self, "path", value)
|
|
252
252
|
|
|
253
|
-
@property
|
|
253
|
+
@_builtins.property
|
|
254
254
|
@pulumi.getter
|
|
255
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
255
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
256
256
|
"""
|
|
257
257
|
The IDs of any tags to attach to this resource.
|
|
258
258
|
"""
|
|
259
259
|
return pulumi.get(self, "tags")
|
|
260
260
|
|
|
261
261
|
@tags.setter
|
|
262
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
262
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
263
263
|
pulumi.set(self, "tags", value)
|
|
264
264
|
|
|
265
|
-
@property
|
|
265
|
+
@_builtins.property
|
|
266
266
|
@pulumi.getter
|
|
267
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
|
267
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
268
268
|
"""
|
|
269
269
|
The type of folder to create. Allowed options are
|
|
270
270
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
@@ -274,20 +274,21 @@ class _FolderState:
|
|
|
274
274
|
return pulumi.get(self, "type")
|
|
275
275
|
|
|
276
276
|
@type.setter
|
|
277
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
|
277
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
278
278
|
pulumi.set(self, "type", value)
|
|
279
279
|
|
|
280
280
|
|
|
281
|
+
@pulumi.type_token("vsphere:index/folder:Folder")
|
|
281
282
|
class Folder(pulumi.CustomResource):
|
|
282
283
|
@overload
|
|
283
284
|
def __init__(__self__,
|
|
284
285
|
resource_name: str,
|
|
285
286
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
286
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
287
|
-
datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
288
|
-
path: Optional[pulumi.Input[str]] = None,
|
|
289
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
290
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
287
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
288
|
+
datacenter_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
289
|
+
path: Optional[pulumi.Input[_builtins.str]] = None,
|
|
290
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
291
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
291
292
|
__props__=None):
|
|
292
293
|
"""
|
|
293
294
|
The `Folder` resource can be used to manage vSphere inventory folders.
|
|
@@ -298,7 +299,7 @@ class Folder(pulumi.CustomResource):
|
|
|
298
299
|
Paths are always relative to the specific type of folder you are creating.
|
|
299
300
|
A subfolder is discovered by parsing the relative path specified in `path`, so
|
|
300
301
|
`foo/bar` will create a folder named `bar` in the parent folder `foo`, as long
|
|
301
|
-
as
|
|
302
|
+
as the folder `foo` exists.
|
|
302
303
|
|
|
303
304
|
## Example Usage
|
|
304
305
|
|
|
@@ -309,14 +310,14 @@ class Folder(pulumi.CustomResource):
|
|
|
309
310
|
import pulumi
|
|
310
311
|
import pulumi_vsphere as vsphere
|
|
311
312
|
|
|
312
|
-
datacenter = vsphere.get_datacenter()
|
|
313
|
+
datacenter = vsphere.get_datacenter(name=vsphere_datacenter)
|
|
313
314
|
folder = vsphere.Folder("folder",
|
|
314
315
|
path="test-folder",
|
|
315
316
|
type="vm",
|
|
316
317
|
datacenter_id=datacenter.id)
|
|
317
318
|
```
|
|
318
319
|
|
|
319
|
-
### Example with
|
|
320
|
+
### Example with Sub-folders
|
|
320
321
|
|
|
321
322
|
The below example builds off of the above by first creating a folder named
|
|
322
323
|
`test-parent`, and then locating `test-folder` in that
|
|
@@ -331,7 +332,7 @@ class Folder(pulumi.CustomResource):
|
|
|
331
332
|
import pulumi
|
|
332
333
|
import pulumi_vsphere as vsphere
|
|
333
334
|
|
|
334
|
-
datacenter = vsphere.get_datacenter()
|
|
335
|
+
datacenter = vsphere.get_datacenter(name=vsphere_datacenter)
|
|
335
336
|
parent = vsphere.Folder("parent",
|
|
336
337
|
path="test-parent",
|
|
337
338
|
type="vm",
|
|
@@ -348,19 +349,21 @@ class Folder(pulumi.CustomResource):
|
|
|
348
349
|
|
|
349
350
|
its full path, via the following command:
|
|
350
351
|
|
|
352
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
353
|
+
|
|
351
354
|
```sh
|
|
352
|
-
$ pulumi import vsphere:index/folder:Folder folder /default-dc/vm/
|
|
355
|
+
$ pulumi import vsphere:index/folder:Folder folder /default-dc/vm/example-vm-folder
|
|
353
356
|
```
|
|
354
357
|
|
|
355
358
|
The above command would import the folder from our examples above, the VM
|
|
356
359
|
|
|
357
|
-
folder named `
|
|
360
|
+
folder named `example-vm-folder` located in the datacenter named
|
|
358
361
|
|
|
359
362
|
`default-dc`.
|
|
360
363
|
|
|
361
364
|
:param str resource_name: The name of the resource.
|
|
362
365
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
363
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
366
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
364
367
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
365
368
|
for a reference on how to set values for custom attributes.
|
|
366
369
|
|
|
@@ -368,10 +371,10 @@ class Folder(pulumi.CustomResource):
|
|
|
368
371
|
|
|
369
372
|
> **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
370
373
|
and require vCenter.
|
|
371
|
-
:param pulumi.Input[str] datacenter_id: The ID of the datacenter the folder will be created in.
|
|
374
|
+
:param pulumi.Input[_builtins.str] datacenter_id: The ID of the datacenter the folder will be created in.
|
|
372
375
|
Required for all folder types except for datacenter folders. Forces a new
|
|
373
376
|
resource if changed.
|
|
374
|
-
:param pulumi.Input[str] path: The path of the folder to be created. This is relative to
|
|
377
|
+
:param pulumi.Input[_builtins.str] path: The path of the folder to be created. This is relative to
|
|
375
378
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
376
379
|
For example, given a default datacenter of `default-dc`, a folder of type
|
|
377
380
|
`vm` (denoting a virtual machine folder), and a supplied folder of
|
|
@@ -382,8 +385,8 @@ class Folder(pulumi.CustomResource):
|
|
|
382
385
|
what section of `path` you are modifying. If you are modifying the parent (so
|
|
383
386
|
any part before the last `/`), your folder will be moved to that new parent. If
|
|
384
387
|
modifying the name (the part after the last `/`), your folder will be renamed.
|
|
385
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
386
|
-
:param pulumi.Input[str] type: The type of folder to create. Allowed options are
|
|
388
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
389
|
+
:param pulumi.Input[_builtins.str] type: The type of folder to create. Allowed options are
|
|
387
390
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
388
391
|
`vm` for virtual machine folders, `datastore` for datastore folders, and
|
|
389
392
|
`network` for network folders. Forces a new resource if changed.
|
|
@@ -403,7 +406,7 @@ class Folder(pulumi.CustomResource):
|
|
|
403
406
|
Paths are always relative to the specific type of folder you are creating.
|
|
404
407
|
A subfolder is discovered by parsing the relative path specified in `path`, so
|
|
405
408
|
`foo/bar` will create a folder named `bar` in the parent folder `foo`, as long
|
|
406
|
-
as
|
|
409
|
+
as the folder `foo` exists.
|
|
407
410
|
|
|
408
411
|
## Example Usage
|
|
409
412
|
|
|
@@ -414,14 +417,14 @@ class Folder(pulumi.CustomResource):
|
|
|
414
417
|
import pulumi
|
|
415
418
|
import pulumi_vsphere as vsphere
|
|
416
419
|
|
|
417
|
-
datacenter = vsphere.get_datacenter()
|
|
420
|
+
datacenter = vsphere.get_datacenter(name=vsphere_datacenter)
|
|
418
421
|
folder = vsphere.Folder("folder",
|
|
419
422
|
path="test-folder",
|
|
420
423
|
type="vm",
|
|
421
424
|
datacenter_id=datacenter.id)
|
|
422
425
|
```
|
|
423
426
|
|
|
424
|
-
### Example with
|
|
427
|
+
### Example with Sub-folders
|
|
425
428
|
|
|
426
429
|
The below example builds off of the above by first creating a folder named
|
|
427
430
|
`test-parent`, and then locating `test-folder` in that
|
|
@@ -436,7 +439,7 @@ class Folder(pulumi.CustomResource):
|
|
|
436
439
|
import pulumi
|
|
437
440
|
import pulumi_vsphere as vsphere
|
|
438
441
|
|
|
439
|
-
datacenter = vsphere.get_datacenter()
|
|
442
|
+
datacenter = vsphere.get_datacenter(name=vsphere_datacenter)
|
|
440
443
|
parent = vsphere.Folder("parent",
|
|
441
444
|
path="test-parent",
|
|
442
445
|
type="vm",
|
|
@@ -453,13 +456,15 @@ class Folder(pulumi.CustomResource):
|
|
|
453
456
|
|
|
454
457
|
its full path, via the following command:
|
|
455
458
|
|
|
459
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
460
|
+
|
|
456
461
|
```sh
|
|
457
|
-
$ pulumi import vsphere:index/folder:Folder folder /default-dc/vm/
|
|
462
|
+
$ pulumi import vsphere:index/folder:Folder folder /default-dc/vm/example-vm-folder
|
|
458
463
|
```
|
|
459
464
|
|
|
460
465
|
The above command would import the folder from our examples above, the VM
|
|
461
466
|
|
|
462
|
-
folder named `
|
|
467
|
+
folder named `example-vm-folder` located in the datacenter named
|
|
463
468
|
|
|
464
469
|
`default-dc`.
|
|
465
470
|
|
|
@@ -478,11 +483,11 @@ class Folder(pulumi.CustomResource):
|
|
|
478
483
|
def _internal_init(__self__,
|
|
479
484
|
resource_name: str,
|
|
480
485
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
481
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
482
|
-
datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
483
|
-
path: Optional[pulumi.Input[str]] = None,
|
|
484
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
485
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
486
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
487
|
+
datacenter_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
488
|
+
path: Optional[pulumi.Input[_builtins.str]] = None,
|
|
489
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
490
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
486
491
|
__props__=None):
|
|
487
492
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
488
493
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -511,11 +516,11 @@ class Folder(pulumi.CustomResource):
|
|
|
511
516
|
def get(resource_name: str,
|
|
512
517
|
id: pulumi.Input[str],
|
|
513
518
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
514
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
515
|
-
datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
516
|
-
path: Optional[pulumi.Input[str]] = None,
|
|
517
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
518
|
-
type: Optional[pulumi.Input[str]] = None) -> 'Folder':
|
|
519
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
520
|
+
datacenter_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
521
|
+
path: Optional[pulumi.Input[_builtins.str]] = None,
|
|
522
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
523
|
+
type: Optional[pulumi.Input[_builtins.str]] = None) -> 'Folder':
|
|
519
524
|
"""
|
|
520
525
|
Get an existing Folder resource's state with the given name, id, and optional extra
|
|
521
526
|
properties used to qualify the lookup.
|
|
@@ -523,7 +528,7 @@ class Folder(pulumi.CustomResource):
|
|
|
523
528
|
:param str resource_name: The unique name of the resulting resource.
|
|
524
529
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
525
530
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
526
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
531
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
527
532
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
528
533
|
for a reference on how to set values for custom attributes.
|
|
529
534
|
|
|
@@ -531,10 +536,10 @@ class Folder(pulumi.CustomResource):
|
|
|
531
536
|
|
|
532
537
|
> **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
533
538
|
and require vCenter.
|
|
534
|
-
:param pulumi.Input[str] datacenter_id: The ID of the datacenter the folder will be created in.
|
|
539
|
+
:param pulumi.Input[_builtins.str] datacenter_id: The ID of the datacenter the folder will be created in.
|
|
535
540
|
Required for all folder types except for datacenter folders. Forces a new
|
|
536
541
|
resource if changed.
|
|
537
|
-
:param pulumi.Input[str] path: The path of the folder to be created. This is relative to
|
|
542
|
+
:param pulumi.Input[_builtins.str] path: The path of the folder to be created. This is relative to
|
|
538
543
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
539
544
|
For example, given a default datacenter of `default-dc`, a folder of type
|
|
540
545
|
`vm` (denoting a virtual machine folder), and a supplied folder of
|
|
@@ -545,8 +550,8 @@ class Folder(pulumi.CustomResource):
|
|
|
545
550
|
what section of `path` you are modifying. If you are modifying the parent (so
|
|
546
551
|
any part before the last `/`), your folder will be moved to that new parent. If
|
|
547
552
|
modifying the name (the part after the last `/`), your folder will be renamed.
|
|
548
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
549
|
-
:param pulumi.Input[str] type: The type of folder to create. Allowed options are
|
|
553
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
554
|
+
:param pulumi.Input[_builtins.str] type: The type of folder to create. Allowed options are
|
|
550
555
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
551
556
|
`vm` for virtual machine folders, `datastore` for datastore folders, and
|
|
552
557
|
`network` for network folders. Forces a new resource if changed.
|
|
@@ -562,9 +567,9 @@ class Folder(pulumi.CustomResource):
|
|
|
562
567
|
__props__.__dict__["type"] = type
|
|
563
568
|
return Folder(resource_name, opts=opts, __props__=__props__)
|
|
564
569
|
|
|
565
|
-
@property
|
|
570
|
+
@_builtins.property
|
|
566
571
|
@pulumi.getter(name="customAttributes")
|
|
567
|
-
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
572
|
+
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
|
568
573
|
"""
|
|
569
574
|
Map of custom attribute ids to attribute
|
|
570
575
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
@@ -577,9 +582,9 @@ class Folder(pulumi.CustomResource):
|
|
|
577
582
|
"""
|
|
578
583
|
return pulumi.get(self, "custom_attributes")
|
|
579
584
|
|
|
580
|
-
@property
|
|
585
|
+
@_builtins.property
|
|
581
586
|
@pulumi.getter(name="datacenterId")
|
|
582
|
-
def datacenter_id(self) -> pulumi.Output[Optional[str]]:
|
|
587
|
+
def datacenter_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
583
588
|
"""
|
|
584
589
|
The ID of the datacenter the folder will be created in.
|
|
585
590
|
Required for all folder types except for datacenter folders. Forces a new
|
|
@@ -587,9 +592,9 @@ class Folder(pulumi.CustomResource):
|
|
|
587
592
|
"""
|
|
588
593
|
return pulumi.get(self, "datacenter_id")
|
|
589
594
|
|
|
590
|
-
@property
|
|
595
|
+
@_builtins.property
|
|
591
596
|
@pulumi.getter
|
|
592
|
-
def path(self) -> pulumi.Output[str]:
|
|
597
|
+
def path(self) -> pulumi.Output[_builtins.str]:
|
|
593
598
|
"""
|
|
594
599
|
The path of the folder to be created. This is relative to
|
|
595
600
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
@@ -605,17 +610,17 @@ class Folder(pulumi.CustomResource):
|
|
|
605
610
|
"""
|
|
606
611
|
return pulumi.get(self, "path")
|
|
607
612
|
|
|
608
|
-
@property
|
|
613
|
+
@_builtins.property
|
|
609
614
|
@pulumi.getter
|
|
610
|
-
def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
615
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
611
616
|
"""
|
|
612
617
|
The IDs of any tags to attach to this resource.
|
|
613
618
|
"""
|
|
614
619
|
return pulumi.get(self, "tags")
|
|
615
620
|
|
|
616
|
-
@property
|
|
621
|
+
@_builtins.property
|
|
617
622
|
@pulumi.getter
|
|
618
|
-
def type(self) -> pulumi.Output[str]:
|
|
623
|
+
def type(self) -> pulumi.Output[_builtins.str]:
|
|
619
624
|
"""
|
|
620
625
|
The type of folder to create. Allowed options are
|
|
621
626
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
@@ -1,8 +1,8 @@
|
|
|
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
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -40,27 +40,27 @@ class GetComputeClusterResult:
|
|
|
40
40
|
raise TypeError("Expected argument 'resource_pool_id' to be a str")
|
|
41
41
|
pulumi.set(__self__, "resource_pool_id", resource_pool_id)
|
|
42
42
|
|
|
43
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
44
44
|
@pulumi.getter(name="datacenterId")
|
|
45
|
-
def datacenter_id(self) -> Optional[str]:
|
|
45
|
+
def datacenter_id(self) -> Optional[_builtins.str]:
|
|
46
46
|
return pulumi.get(self, "datacenter_id")
|
|
47
47
|
|
|
48
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
49
49
|
@pulumi.getter
|
|
50
|
-
def id(self) -> str:
|
|
50
|
+
def id(self) -> _builtins.str:
|
|
51
51
|
"""
|
|
52
52
|
The provider-assigned unique ID for this managed resource.
|
|
53
53
|
"""
|
|
54
54
|
return pulumi.get(self, "id")
|
|
55
55
|
|
|
56
|
-
@property
|
|
56
|
+
@_builtins.property
|
|
57
57
|
@pulumi.getter
|
|
58
|
-
def name(self) -> str:
|
|
58
|
+
def name(self) -> _builtins.str:
|
|
59
59
|
return pulumi.get(self, "name")
|
|
60
60
|
|
|
61
|
-
@property
|
|
61
|
+
@_builtins.property
|
|
62
62
|
@pulumi.getter(name="resourcePoolId")
|
|
63
|
-
def resource_pool_id(self) -> str:
|
|
63
|
+
def resource_pool_id(self) -> _builtins.str:
|
|
64
64
|
"""
|
|
65
65
|
The managed object reference ID of
|
|
66
66
|
the root resource pool for the cluster.
|
|
@@ -80,8 +80,8 @@ class AwaitableGetComputeClusterResult(GetComputeClusterResult):
|
|
|
80
80
|
resource_pool_id=self.resource_pool_id)
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
def get_compute_cluster(datacenter_id: Optional[str] = None,
|
|
84
|
-
name: Optional[str] = None,
|
|
83
|
+
def get_compute_cluster(datacenter_id: Optional[_builtins.str] = None,
|
|
84
|
+
name: Optional[_builtins.str] = None,
|
|
85
85
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetComputeClusterResult:
|
|
86
86
|
"""
|
|
87
87
|
The `ComputeCluster` data source can be used to discover the ID of a
|
|
@@ -106,11 +106,11 @@ def get_compute_cluster(datacenter_id: Optional[str] = None,
|
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
:param str datacenter_id: The managed object reference ID
|
|
109
|
+
:param _builtins.str datacenter_id: The managed object reference ID
|
|
110
110
|
of the datacenter the cluster is located in. This can be omitted if the
|
|
111
111
|
search path used in `name` is an absolute path. For default datacenters,
|
|
112
112
|
use the `id` attribute from an empty `Datacenter` data source.
|
|
113
|
-
:param str name: The name or absolute path to the cluster.
|
|
113
|
+
:param _builtins.str name: The name or absolute path to the cluster.
|
|
114
114
|
"""
|
|
115
115
|
__args__ = dict()
|
|
116
116
|
__args__['datacenterId'] = datacenter_id
|
|
@@ -123,8 +123,8 @@ def get_compute_cluster(datacenter_id: Optional[str] = None,
|
|
|
123
123
|
id=pulumi.get(__ret__, 'id'),
|
|
124
124
|
name=pulumi.get(__ret__, 'name'),
|
|
125
125
|
resource_pool_id=pulumi.get(__ret__, 'resource_pool_id'))
|
|
126
|
-
def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
127
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
126
|
+
def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
127
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
128
128
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetComputeClusterResult]:
|
|
129
129
|
"""
|
|
130
130
|
The `ComputeCluster` data source can be used to discover the ID of a
|
|
@@ -149,11 +149,11 @@ def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str
|
|
|
149
149
|
```
|
|
150
150
|
|
|
151
151
|
|
|
152
|
-
:param str datacenter_id: The managed object reference ID
|
|
152
|
+
:param _builtins.str datacenter_id: The managed object reference ID
|
|
153
153
|
of the datacenter the cluster is located in. This can be omitted if the
|
|
154
154
|
search path used in `name` is an absolute path. For default datacenters,
|
|
155
155
|
use the `id` attribute from an empty `Datacenter` data source.
|
|
156
|
-
:param str name: The name or absolute path to the cluster.
|
|
156
|
+
:param _builtins.str name: The name or absolute path to the cluster.
|
|
157
157
|
"""
|
|
158
158
|
__args__ = dict()
|
|
159
159
|
__args__['datacenterId'] = datacenter_id
|