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
|
@@ -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,24 +19,24 @@ __all__ = ['DatastoreClusterVmAntiAffinityRuleArgs', 'DatastoreClusterVmAntiAffi
|
|
|
19
19
|
@pulumi.input_type
|
|
20
20
|
class DatastoreClusterVmAntiAffinityRuleArgs:
|
|
21
21
|
def __init__(__self__, *,
|
|
22
|
-
datastore_cluster_id: pulumi.Input[str],
|
|
23
|
-
virtual_machine_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
|
|
24
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
25
|
-
mandatory: Optional[pulumi.Input[bool]] = None,
|
|
26
|
-
name: Optional[pulumi.Input[str]] = None):
|
|
22
|
+
datastore_cluster_id: pulumi.Input[_builtins.str],
|
|
23
|
+
virtual_machine_ids: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
|
|
24
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
25
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
26
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
27
27
|
"""
|
|
28
28
|
The set of arguments for constructing a DatastoreClusterVmAntiAffinityRule resource.
|
|
29
|
-
:param pulumi.Input[str] datastore_cluster_id: The managed object reference
|
|
29
|
+
:param pulumi.Input[_builtins.str] datastore_cluster_id: The managed object reference
|
|
30
30
|
ID of the datastore cluster to put the group in. Forces
|
|
31
31
|
a new resource if changed.
|
|
32
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
32
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
33
33
|
on different datastores from each other.
|
|
34
34
|
|
|
35
35
|
> **NOTE:** The minimum length of `virtual_machine_ids` is 2.
|
|
36
|
-
:param pulumi.Input[bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
37
|
-
:param pulumi.Input[bool] mandatory: When this value is `true`, prevents any virtual
|
|
36
|
+
:param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
37
|
+
:param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
|
|
38
38
|
machine operations that may violate this rule. Default: `false`.
|
|
39
|
-
:param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
|
|
39
|
+
:param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
|
|
40
40
|
"""
|
|
41
41
|
pulumi.set(__self__, "datastore_cluster_id", datastore_cluster_id)
|
|
42
42
|
pulumi.set(__self__, "virtual_machine_ids", virtual_machine_ids)
|
|
@@ -47,9 +47,9 @@ class DatastoreClusterVmAntiAffinityRuleArgs:
|
|
|
47
47
|
if name is not None:
|
|
48
48
|
pulumi.set(__self__, "name", name)
|
|
49
49
|
|
|
50
|
-
@property
|
|
50
|
+
@_builtins.property
|
|
51
51
|
@pulumi.getter(name="datastoreClusterId")
|
|
52
|
-
def datastore_cluster_id(self) -> pulumi.Input[str]:
|
|
52
|
+
def datastore_cluster_id(self) -> pulumi.Input[_builtins.str]:
|
|
53
53
|
"""
|
|
54
54
|
The managed object reference
|
|
55
55
|
ID of the datastore cluster to put the group in. Forces
|
|
@@ -58,12 +58,12 @@ class DatastoreClusterVmAntiAffinityRuleArgs:
|
|
|
58
58
|
return pulumi.get(self, "datastore_cluster_id")
|
|
59
59
|
|
|
60
60
|
@datastore_cluster_id.setter
|
|
61
|
-
def datastore_cluster_id(self, value: pulumi.Input[str]):
|
|
61
|
+
def datastore_cluster_id(self, value: pulumi.Input[_builtins.str]):
|
|
62
62
|
pulumi.set(self, "datastore_cluster_id", value)
|
|
63
63
|
|
|
64
|
-
@property
|
|
64
|
+
@_builtins.property
|
|
65
65
|
@pulumi.getter(name="virtualMachineIds")
|
|
66
|
-
def virtual_machine_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
66
|
+
def virtual_machine_ids(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
|
|
67
67
|
"""
|
|
68
68
|
The UUIDs of the virtual machines to run
|
|
69
69
|
on different datastores from each other.
|
|
@@ -73,24 +73,24 @@ class DatastoreClusterVmAntiAffinityRuleArgs:
|
|
|
73
73
|
return pulumi.get(self, "virtual_machine_ids")
|
|
74
74
|
|
|
75
75
|
@virtual_machine_ids.setter
|
|
76
|
-
def virtual_machine_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
|
76
|
+
def virtual_machine_ids(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
|
|
77
77
|
pulumi.set(self, "virtual_machine_ids", value)
|
|
78
78
|
|
|
79
|
-
@property
|
|
79
|
+
@_builtins.property
|
|
80
80
|
@pulumi.getter
|
|
81
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
81
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
82
82
|
"""
|
|
83
83
|
Enable this rule in the cluster. Default: `true`.
|
|
84
84
|
"""
|
|
85
85
|
return pulumi.get(self, "enabled")
|
|
86
86
|
|
|
87
87
|
@enabled.setter
|
|
88
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
88
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
89
89
|
pulumi.set(self, "enabled", value)
|
|
90
90
|
|
|
91
|
-
@property
|
|
91
|
+
@_builtins.property
|
|
92
92
|
@pulumi.getter
|
|
93
|
-
def mandatory(self) -> Optional[pulumi.Input[bool]]:
|
|
93
|
+
def mandatory(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
94
94
|
"""
|
|
95
95
|
When this value is `true`, prevents any virtual
|
|
96
96
|
machine operations that may violate this rule. Default: `false`.
|
|
@@ -98,40 +98,40 @@ class DatastoreClusterVmAntiAffinityRuleArgs:
|
|
|
98
98
|
return pulumi.get(self, "mandatory")
|
|
99
99
|
|
|
100
100
|
@mandatory.setter
|
|
101
|
-
def mandatory(self, value: Optional[pulumi.Input[bool]]):
|
|
101
|
+
def mandatory(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
102
102
|
pulumi.set(self, "mandatory", value)
|
|
103
103
|
|
|
104
|
-
@property
|
|
104
|
+
@_builtins.property
|
|
105
105
|
@pulumi.getter
|
|
106
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
106
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
107
107
|
"""
|
|
108
108
|
The name of the rule. This must be unique in the cluster.
|
|
109
109
|
"""
|
|
110
110
|
return pulumi.get(self, "name")
|
|
111
111
|
|
|
112
112
|
@name.setter
|
|
113
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
113
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
114
114
|
pulumi.set(self, "name", value)
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
@pulumi.input_type
|
|
118
118
|
class _DatastoreClusterVmAntiAffinityRuleState:
|
|
119
119
|
def __init__(__self__, *,
|
|
120
|
-
datastore_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
121
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
122
|
-
mandatory: Optional[pulumi.Input[bool]] = None,
|
|
123
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
124
|
-
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
120
|
+
datastore_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
121
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
122
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
123
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
124
|
+
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
125
125
|
"""
|
|
126
126
|
Input properties used for looking up and filtering DatastoreClusterVmAntiAffinityRule resources.
|
|
127
|
-
:param pulumi.Input[str] datastore_cluster_id: The managed object reference
|
|
127
|
+
:param pulumi.Input[_builtins.str] datastore_cluster_id: The managed object reference
|
|
128
128
|
ID of the datastore cluster to put the group in. Forces
|
|
129
129
|
a new resource if changed.
|
|
130
|
-
:param pulumi.Input[bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
131
|
-
:param pulumi.Input[bool] mandatory: When this value is `true`, prevents any virtual
|
|
130
|
+
:param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
131
|
+
:param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
|
|
132
132
|
machine operations that may violate this rule. Default: `false`.
|
|
133
|
-
:param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
|
|
134
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
133
|
+
:param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
|
|
134
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
135
135
|
on different datastores from each other.
|
|
136
136
|
|
|
137
137
|
> **NOTE:** The minimum length of `virtual_machine_ids` is 2.
|
|
@@ -147,9 +147,9 @@ class _DatastoreClusterVmAntiAffinityRuleState:
|
|
|
147
147
|
if virtual_machine_ids is not None:
|
|
148
148
|
pulumi.set(__self__, "virtual_machine_ids", virtual_machine_ids)
|
|
149
149
|
|
|
150
|
-
@property
|
|
150
|
+
@_builtins.property
|
|
151
151
|
@pulumi.getter(name="datastoreClusterId")
|
|
152
|
-
def datastore_cluster_id(self) -> Optional[pulumi.Input[str]]:
|
|
152
|
+
def datastore_cluster_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
153
153
|
"""
|
|
154
154
|
The managed object reference
|
|
155
155
|
ID of the datastore cluster to put the group in. Forces
|
|
@@ -158,24 +158,24 @@ class _DatastoreClusterVmAntiAffinityRuleState:
|
|
|
158
158
|
return pulumi.get(self, "datastore_cluster_id")
|
|
159
159
|
|
|
160
160
|
@datastore_cluster_id.setter
|
|
161
|
-
def datastore_cluster_id(self, value: Optional[pulumi.Input[str]]):
|
|
161
|
+
def datastore_cluster_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
162
162
|
pulumi.set(self, "datastore_cluster_id", value)
|
|
163
163
|
|
|
164
|
-
@property
|
|
164
|
+
@_builtins.property
|
|
165
165
|
@pulumi.getter
|
|
166
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
166
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
167
167
|
"""
|
|
168
168
|
Enable this rule in the cluster. Default: `true`.
|
|
169
169
|
"""
|
|
170
170
|
return pulumi.get(self, "enabled")
|
|
171
171
|
|
|
172
172
|
@enabled.setter
|
|
173
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
173
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
174
174
|
pulumi.set(self, "enabled", value)
|
|
175
175
|
|
|
176
|
-
@property
|
|
176
|
+
@_builtins.property
|
|
177
177
|
@pulumi.getter
|
|
178
|
-
def mandatory(self) -> Optional[pulumi.Input[bool]]:
|
|
178
|
+
def mandatory(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
179
179
|
"""
|
|
180
180
|
When this value is `true`, prevents any virtual
|
|
181
181
|
machine operations that may violate this rule. Default: `false`.
|
|
@@ -183,24 +183,24 @@ class _DatastoreClusterVmAntiAffinityRuleState:
|
|
|
183
183
|
return pulumi.get(self, "mandatory")
|
|
184
184
|
|
|
185
185
|
@mandatory.setter
|
|
186
|
-
def mandatory(self, value: Optional[pulumi.Input[bool]]):
|
|
186
|
+
def mandatory(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
187
187
|
pulumi.set(self, "mandatory", value)
|
|
188
188
|
|
|
189
|
-
@property
|
|
189
|
+
@_builtins.property
|
|
190
190
|
@pulumi.getter
|
|
191
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
191
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
192
192
|
"""
|
|
193
193
|
The name of the rule. This must be unique in the cluster.
|
|
194
194
|
"""
|
|
195
195
|
return pulumi.get(self, "name")
|
|
196
196
|
|
|
197
197
|
@name.setter
|
|
198
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
198
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
199
199
|
pulumi.set(self, "name", value)
|
|
200
200
|
|
|
201
|
-
@property
|
|
201
|
+
@_builtins.property
|
|
202
202
|
@pulumi.getter(name="virtualMachineIds")
|
|
203
|
-
def virtual_machine_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
203
|
+
def virtual_machine_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
204
204
|
"""
|
|
205
205
|
The UUIDs of the virtual machines to run
|
|
206
206
|
on different datastores from each other.
|
|
@@ -210,20 +210,21 @@ class _DatastoreClusterVmAntiAffinityRuleState:
|
|
|
210
210
|
return pulumi.get(self, "virtual_machine_ids")
|
|
211
211
|
|
|
212
212
|
@virtual_machine_ids.setter
|
|
213
|
-
def virtual_machine_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
213
|
+
def virtual_machine_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
214
214
|
pulumi.set(self, "virtual_machine_ids", value)
|
|
215
215
|
|
|
216
216
|
|
|
217
|
+
@pulumi.type_token("vsphere:index/datastoreClusterVmAntiAffinityRule:DatastoreClusterVmAntiAffinityRule")
|
|
217
218
|
class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
218
219
|
@overload
|
|
219
220
|
def __init__(__self__,
|
|
220
221
|
resource_name: str,
|
|
221
222
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
222
|
-
datastore_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
223
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
224
|
-
mandatory: Optional[pulumi.Input[bool]] = None,
|
|
225
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
226
|
-
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
223
|
+
datastore_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
224
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
225
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
226
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
227
|
+
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
227
228
|
__props__=None):
|
|
228
229
|
"""
|
|
229
230
|
The `DatastoreClusterVmAntiAffinityRule` resource can be used to
|
|
@@ -295,6 +296,8 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
295
296
|
|
|
296
297
|
example is below:
|
|
297
298
|
|
|
299
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
300
|
+
|
|
298
301
|
```sh
|
|
299
302
|
$ pulumi import vsphere:index/datastoreClusterVmAntiAffinityRule:DatastoreClusterVmAntiAffinityRule cluster_vm_anti_affinity_rule \\
|
|
300
303
|
```
|
|
@@ -305,14 +308,14 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
305
308
|
|
|
306
309
|
:param str resource_name: The name of the resource.
|
|
307
310
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
308
|
-
:param pulumi.Input[str] datastore_cluster_id: The managed object reference
|
|
311
|
+
:param pulumi.Input[_builtins.str] datastore_cluster_id: The managed object reference
|
|
309
312
|
ID of the datastore cluster to put the group in. Forces
|
|
310
313
|
a new resource if changed.
|
|
311
|
-
:param pulumi.Input[bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
312
|
-
:param pulumi.Input[bool] mandatory: When this value is `true`, prevents any virtual
|
|
314
|
+
:param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
315
|
+
:param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
|
|
313
316
|
machine operations that may violate this rule. Default: `false`.
|
|
314
|
-
:param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
|
|
315
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
317
|
+
:param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
|
|
318
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
316
319
|
on different datastores from each other.
|
|
317
320
|
|
|
318
321
|
> **NOTE:** The minimum length of `virtual_machine_ids` is 2.
|
|
@@ -393,6 +396,8 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
393
396
|
|
|
394
397
|
example is below:
|
|
395
398
|
|
|
399
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
400
|
+
|
|
396
401
|
```sh
|
|
397
402
|
$ pulumi import vsphere:index/datastoreClusterVmAntiAffinityRule:DatastoreClusterVmAntiAffinityRule cluster_vm_anti_affinity_rule \\
|
|
398
403
|
```
|
|
@@ -416,11 +421,11 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
416
421
|
def _internal_init(__self__,
|
|
417
422
|
resource_name: str,
|
|
418
423
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
419
|
-
datastore_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
420
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
421
|
-
mandatory: Optional[pulumi.Input[bool]] = None,
|
|
422
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
423
|
-
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
424
|
+
datastore_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
425
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
426
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
427
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
428
|
+
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
424
429
|
__props__=None):
|
|
425
430
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
426
431
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -449,11 +454,11 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
449
454
|
def get(resource_name: str,
|
|
450
455
|
id: pulumi.Input[str],
|
|
451
456
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
452
|
-
datastore_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
453
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
454
|
-
mandatory: Optional[pulumi.Input[bool]] = None,
|
|
455
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
456
|
-
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'DatastoreClusterVmAntiAffinityRule':
|
|
457
|
+
datastore_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
458
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
459
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
460
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
461
|
+
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'DatastoreClusterVmAntiAffinityRule':
|
|
457
462
|
"""
|
|
458
463
|
Get an existing DatastoreClusterVmAntiAffinityRule resource's state with the given name, id, and optional extra
|
|
459
464
|
properties used to qualify the lookup.
|
|
@@ -461,14 +466,14 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
461
466
|
:param str resource_name: The unique name of the resulting resource.
|
|
462
467
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
463
468
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
464
|
-
:param pulumi.Input[str] datastore_cluster_id: The managed object reference
|
|
469
|
+
:param pulumi.Input[_builtins.str] datastore_cluster_id: The managed object reference
|
|
465
470
|
ID of the datastore cluster to put the group in. Forces
|
|
466
471
|
a new resource if changed.
|
|
467
|
-
:param pulumi.Input[bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
468
|
-
:param pulumi.Input[bool] mandatory: When this value is `true`, prevents any virtual
|
|
472
|
+
:param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
473
|
+
:param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
|
|
469
474
|
machine operations that may violate this rule. Default: `false`.
|
|
470
|
-
:param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
|
|
471
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
475
|
+
:param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
|
|
476
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
472
477
|
on different datastores from each other.
|
|
473
478
|
|
|
474
479
|
> **NOTE:** The minimum length of `virtual_machine_ids` is 2.
|
|
@@ -484,9 +489,9 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
484
489
|
__props__.__dict__["virtual_machine_ids"] = virtual_machine_ids
|
|
485
490
|
return DatastoreClusterVmAntiAffinityRule(resource_name, opts=opts, __props__=__props__)
|
|
486
491
|
|
|
487
|
-
@property
|
|
492
|
+
@_builtins.property
|
|
488
493
|
@pulumi.getter(name="datastoreClusterId")
|
|
489
|
-
def datastore_cluster_id(self) -> pulumi.Output[str]:
|
|
494
|
+
def datastore_cluster_id(self) -> pulumi.Output[_builtins.str]:
|
|
490
495
|
"""
|
|
491
496
|
The managed object reference
|
|
492
497
|
ID of the datastore cluster to put the group in. Forces
|
|
@@ -494,34 +499,34 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
494
499
|
"""
|
|
495
500
|
return pulumi.get(self, "datastore_cluster_id")
|
|
496
501
|
|
|
497
|
-
@property
|
|
502
|
+
@_builtins.property
|
|
498
503
|
@pulumi.getter
|
|
499
|
-
def enabled(self) -> pulumi.Output[Optional[bool]]:
|
|
504
|
+
def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
500
505
|
"""
|
|
501
506
|
Enable this rule in the cluster. Default: `true`.
|
|
502
507
|
"""
|
|
503
508
|
return pulumi.get(self, "enabled")
|
|
504
509
|
|
|
505
|
-
@property
|
|
510
|
+
@_builtins.property
|
|
506
511
|
@pulumi.getter
|
|
507
|
-
def mandatory(self) -> pulumi.Output[Optional[bool]]:
|
|
512
|
+
def mandatory(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
508
513
|
"""
|
|
509
514
|
When this value is `true`, prevents any virtual
|
|
510
515
|
machine operations that may violate this rule. Default: `false`.
|
|
511
516
|
"""
|
|
512
517
|
return pulumi.get(self, "mandatory")
|
|
513
518
|
|
|
514
|
-
@property
|
|
519
|
+
@_builtins.property
|
|
515
520
|
@pulumi.getter
|
|
516
|
-
def name(self) -> pulumi.Output[str]:
|
|
521
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
517
522
|
"""
|
|
518
523
|
The name of the rule. This must be unique in the cluster.
|
|
519
524
|
"""
|
|
520
525
|
return pulumi.get(self, "name")
|
|
521
526
|
|
|
522
|
-
@property
|
|
527
|
+
@_builtins.property
|
|
523
528
|
@pulumi.getter(name="virtualMachineIds")
|
|
524
|
-
def virtual_machine_ids(self) -> pulumi.Output[Sequence[str]]:
|
|
529
|
+
def virtual_machine_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
525
530
|
"""
|
|
526
531
|
The UUIDs of the virtual machines to run
|
|
527
532
|
on different datastores from each other.
|