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
pulumi_vsphere/virtual_disk.py
CHANGED
|
@@ -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
|
|
|
12
17
|
__all__ = ['VirtualDiskArgs', 'VirtualDisk']
|
|
@@ -14,21 +19,23 @@ __all__ = ['VirtualDiskArgs', 'VirtualDisk']
|
|
|
14
19
|
@pulumi.input_type
|
|
15
20
|
class VirtualDiskArgs:
|
|
16
21
|
def __init__(__self__, *,
|
|
17
|
-
datastore: pulumi.Input[str],
|
|
18
|
-
size: pulumi.Input[int],
|
|
19
|
-
vmdk_path: pulumi.Input[str],
|
|
20
|
-
adapter_type: Optional[pulumi.Input[str]] = None,
|
|
21
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
22
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
23
|
-
type: Optional[pulumi.Input[str]] = None):
|
|
22
|
+
datastore: pulumi.Input[_builtins.str],
|
|
23
|
+
size: pulumi.Input[_builtins.int],
|
|
24
|
+
vmdk_path: pulumi.Input[_builtins.str],
|
|
25
|
+
adapter_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
27
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
28
|
+
type: Optional[pulumi.Input[_builtins.str]] = None):
|
|
24
29
|
"""
|
|
25
30
|
The set of arguments for constructing a VirtualDisk resource.
|
|
26
|
-
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
31
|
+
:param pulumi.Input[_builtins.str] datastore: The name of the datastore in which to create the
|
|
27
32
|
disk.
|
|
28
|
-
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
29
|
-
|
|
33
|
+
:param pulumi.Input[_builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
34
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
35
|
+
created.
|
|
36
|
+
:param pulumi.Input[_builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
30
37
|
be created. This needs to end in `.vmdk`.
|
|
31
|
-
:param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
|
|
38
|
+
:param pulumi.Input[_builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
32
39
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
33
40
|
|
|
34
41
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -37,29 +44,29 @@ class VirtualDiskArgs:
|
|
|
37
44
|
in the `VirtualMachine` resource for information on how to control
|
|
38
45
|
disk controller types. This parameter will be removed in future versions of the
|
|
39
46
|
vSphere provider.
|
|
40
|
-
:param pulumi.Input[bool] create_directories: Tells the resource to create any
|
|
47
|
+
:param pulumi.Input[_builtins.bool] create_directories: Tells the resource to create any
|
|
41
48
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
42
49
|
Default: `false`.
|
|
43
50
|
|
|
44
51
|
> **NOTE:** Any directory created as part of the operation when
|
|
45
52
|
`create_directories` is enabled will not be deleted when the resource is
|
|
46
53
|
destroyed.
|
|
47
|
-
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
48
|
-
disk. Can be omitted when
|
|
54
|
+
:param pulumi.Input[_builtins.str] datacenter: The name of the datacenter in which to create the
|
|
55
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
49
56
|
your infrastructure.
|
|
50
|
-
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
57
|
+
:param pulumi.Input[_builtins.str] type: The type of disk to create. Can be one of
|
|
51
58
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
52
59
|
information on what each kind of disk provisioning policy means, click
|
|
53
60
|
[here][docs-vmware-vm-disk-provisioning].
|
|
54
61
|
|
|
55
|
-
[docs-vmware-vm-disk-provisioning]: https://
|
|
62
|
+
[docs-vmware-vm-disk-provisioning]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-single-host-management-vmware-host-client-8-0/virtual-machine-management-with-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/configuring-virtual-machines-in-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/virtual-disk-configuration-vSphereSingleHostManagementVMwareHostClient/about-virtual-disk-provisioning-policies-vSphereSingleHostManagementVMwareHostClient.html
|
|
56
63
|
"""
|
|
57
64
|
pulumi.set(__self__, "datastore", datastore)
|
|
58
65
|
pulumi.set(__self__, "size", size)
|
|
59
66
|
pulumi.set(__self__, "vmdk_path", vmdk_path)
|
|
60
67
|
if adapter_type is not None:
|
|
61
|
-
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in
|
|
62
|
-
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in
|
|
68
|
+
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""", DeprecationWarning)
|
|
69
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
63
70
|
if adapter_type is not None:
|
|
64
71
|
pulumi.set(__self__, "adapter_type", adapter_type)
|
|
65
72
|
if create_directories is not None:
|
|
@@ -69,9 +76,9 @@ class VirtualDiskArgs:
|
|
|
69
76
|
if type is not None:
|
|
70
77
|
pulumi.set(__self__, "type", type)
|
|
71
78
|
|
|
72
|
-
@property
|
|
79
|
+
@_builtins.property
|
|
73
80
|
@pulumi.getter
|
|
74
|
-
def datastore(self) -> pulumi.Input[str]:
|
|
81
|
+
def datastore(self) -> pulumi.Input[_builtins.str]:
|
|
75
82
|
"""
|
|
76
83
|
The name of the datastore in which to create the
|
|
77
84
|
disk.
|
|
@@ -79,24 +86,26 @@ class VirtualDiskArgs:
|
|
|
79
86
|
return pulumi.get(self, "datastore")
|
|
80
87
|
|
|
81
88
|
@datastore.setter
|
|
82
|
-
def datastore(self, value: pulumi.Input[str]):
|
|
89
|
+
def datastore(self, value: pulumi.Input[_builtins.str]):
|
|
83
90
|
pulumi.set(self, "datastore", value)
|
|
84
91
|
|
|
85
|
-
@property
|
|
92
|
+
@_builtins.property
|
|
86
93
|
@pulumi.getter
|
|
87
|
-
def size(self) -> pulumi.Input[int]:
|
|
94
|
+
def size(self) -> pulumi.Input[_builtins.int]:
|
|
88
95
|
"""
|
|
89
|
-
Size of the disk (in GB).
|
|
96
|
+
Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
97
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
98
|
+
created.
|
|
90
99
|
"""
|
|
91
100
|
return pulumi.get(self, "size")
|
|
92
101
|
|
|
93
102
|
@size.setter
|
|
94
|
-
def size(self, value: pulumi.Input[int]):
|
|
103
|
+
def size(self, value: pulumi.Input[_builtins.int]):
|
|
95
104
|
pulumi.set(self, "size", value)
|
|
96
105
|
|
|
97
|
-
@property
|
|
106
|
+
@_builtins.property
|
|
98
107
|
@pulumi.getter(name="vmdkPath")
|
|
99
|
-
def vmdk_path(self) -> pulumi.Input[str]:
|
|
108
|
+
def vmdk_path(self) -> pulumi.Input[_builtins.str]:
|
|
100
109
|
"""
|
|
101
110
|
The path, including filename, of the virtual disk to
|
|
102
111
|
be created. This needs to end in `.vmdk`.
|
|
@@ -104,12 +113,13 @@ class VirtualDiskArgs:
|
|
|
104
113
|
return pulumi.get(self, "vmdk_path")
|
|
105
114
|
|
|
106
115
|
@vmdk_path.setter
|
|
107
|
-
def vmdk_path(self, value: pulumi.Input[str]):
|
|
116
|
+
def vmdk_path(self, value: pulumi.Input[_builtins.str]):
|
|
108
117
|
pulumi.set(self, "vmdk_path", value)
|
|
109
118
|
|
|
110
|
-
@property
|
|
119
|
+
@_builtins.property
|
|
111
120
|
@pulumi.getter(name="adapterType")
|
|
112
|
-
|
|
121
|
+
@_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
122
|
+
def adapter_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
113
123
|
"""
|
|
114
124
|
The adapter type for this virtual disk. Can be
|
|
115
125
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
@@ -121,18 +131,15 @@ class VirtualDiskArgs:
|
|
|
121
131
|
disk controller types. This parameter will be removed in future versions of the
|
|
122
132
|
vSphere provider.
|
|
123
133
|
"""
|
|
124
|
-
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
|
|
125
|
-
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")
|
|
126
|
-
|
|
127
134
|
return pulumi.get(self, "adapter_type")
|
|
128
135
|
|
|
129
136
|
@adapter_type.setter
|
|
130
|
-
def adapter_type(self, value: Optional[pulumi.Input[str]]):
|
|
137
|
+
def adapter_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
131
138
|
pulumi.set(self, "adapter_type", value)
|
|
132
139
|
|
|
133
|
-
@property
|
|
140
|
+
@_builtins.property
|
|
134
141
|
@pulumi.getter(name="createDirectories")
|
|
135
|
-
def create_directories(self) -> Optional[pulumi.Input[bool]]:
|
|
142
|
+
def create_directories(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
136
143
|
"""
|
|
137
144
|
Tells the resource to create any
|
|
138
145
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
@@ -145,54 +152,54 @@ class VirtualDiskArgs:
|
|
|
145
152
|
return pulumi.get(self, "create_directories")
|
|
146
153
|
|
|
147
154
|
@create_directories.setter
|
|
148
|
-
def create_directories(self, value: Optional[pulumi.Input[bool]]):
|
|
155
|
+
def create_directories(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
149
156
|
pulumi.set(self, "create_directories", value)
|
|
150
157
|
|
|
151
|
-
@property
|
|
158
|
+
@_builtins.property
|
|
152
159
|
@pulumi.getter
|
|
153
|
-
def datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
160
|
+
def datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
154
161
|
"""
|
|
155
162
|
The name of the datacenter in which to create the
|
|
156
|
-
disk. Can be omitted when
|
|
163
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
157
164
|
your infrastructure.
|
|
158
165
|
"""
|
|
159
166
|
return pulumi.get(self, "datacenter")
|
|
160
167
|
|
|
161
168
|
@datacenter.setter
|
|
162
|
-
def datacenter(self, value: Optional[pulumi.Input[str]]):
|
|
169
|
+
def datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
163
170
|
pulumi.set(self, "datacenter", value)
|
|
164
171
|
|
|
165
|
-
@property
|
|
172
|
+
@_builtins.property
|
|
166
173
|
@pulumi.getter
|
|
167
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
|
174
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
168
175
|
"""
|
|
169
176
|
The type of disk to create. Can be one of
|
|
170
177
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
171
178
|
information on what each kind of disk provisioning policy means, click
|
|
172
179
|
[here][docs-vmware-vm-disk-provisioning].
|
|
173
180
|
|
|
174
|
-
[docs-vmware-vm-disk-provisioning]: https://
|
|
181
|
+
[docs-vmware-vm-disk-provisioning]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-single-host-management-vmware-host-client-8-0/virtual-machine-management-with-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/configuring-virtual-machines-in-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/virtual-disk-configuration-vSphereSingleHostManagementVMwareHostClient/about-virtual-disk-provisioning-policies-vSphereSingleHostManagementVMwareHostClient.html
|
|
175
182
|
"""
|
|
176
183
|
return pulumi.get(self, "type")
|
|
177
184
|
|
|
178
185
|
@type.setter
|
|
179
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
|
186
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
180
187
|
pulumi.set(self, "type", value)
|
|
181
188
|
|
|
182
189
|
|
|
183
190
|
@pulumi.input_type
|
|
184
191
|
class _VirtualDiskState:
|
|
185
192
|
def __init__(__self__, *,
|
|
186
|
-
adapter_type: Optional[pulumi.Input[str]] = None,
|
|
187
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
188
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
189
|
-
datastore: Optional[pulumi.Input[str]] = None,
|
|
190
|
-
size: Optional[pulumi.Input[int]] = None,
|
|
191
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
192
|
-
vmdk_path: Optional[pulumi.Input[str]] = None):
|
|
193
|
+
adapter_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
194
|
+
create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
195
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
196
|
+
datastore: Optional[pulumi.Input[_builtins.str]] = None,
|
|
197
|
+
size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
198
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
199
|
+
vmdk_path: Optional[pulumi.Input[_builtins.str]] = None):
|
|
193
200
|
"""
|
|
194
201
|
Input properties used for looking up and filtering VirtualDisk resources.
|
|
195
|
-
:param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
|
|
202
|
+
:param pulumi.Input[_builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
196
203
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
197
204
|
|
|
198
205
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -201,31 +208,33 @@ class _VirtualDiskState:
|
|
|
201
208
|
in the `VirtualMachine` resource for information on how to control
|
|
202
209
|
disk controller types. This parameter will be removed in future versions of the
|
|
203
210
|
vSphere provider.
|
|
204
|
-
:param pulumi.Input[bool] create_directories: Tells the resource to create any
|
|
211
|
+
:param pulumi.Input[_builtins.bool] create_directories: Tells the resource to create any
|
|
205
212
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
206
213
|
Default: `false`.
|
|
207
214
|
|
|
208
215
|
> **NOTE:** Any directory created as part of the operation when
|
|
209
216
|
`create_directories` is enabled will not be deleted when the resource is
|
|
210
217
|
destroyed.
|
|
211
|
-
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
212
|
-
disk. Can be omitted when
|
|
218
|
+
:param pulumi.Input[_builtins.str] datacenter: The name of the datacenter in which to create the
|
|
219
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
213
220
|
your infrastructure.
|
|
214
|
-
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
221
|
+
:param pulumi.Input[_builtins.str] datastore: The name of the datastore in which to create the
|
|
215
222
|
disk.
|
|
216
|
-
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
217
|
-
|
|
223
|
+
:param pulumi.Input[_builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
224
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
225
|
+
created.
|
|
226
|
+
:param pulumi.Input[_builtins.str] type: The type of disk to create. Can be one of
|
|
218
227
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
219
228
|
information on what each kind of disk provisioning policy means, click
|
|
220
229
|
[here][docs-vmware-vm-disk-provisioning].
|
|
221
230
|
|
|
222
|
-
[docs-vmware-vm-disk-provisioning]: https://
|
|
223
|
-
:param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
|
|
231
|
+
[docs-vmware-vm-disk-provisioning]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-single-host-management-vmware-host-client-8-0/virtual-machine-management-with-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/configuring-virtual-machines-in-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/virtual-disk-configuration-vSphereSingleHostManagementVMwareHostClient/about-virtual-disk-provisioning-policies-vSphereSingleHostManagementVMwareHostClient.html
|
|
232
|
+
:param pulumi.Input[_builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
224
233
|
be created. This needs to end in `.vmdk`.
|
|
225
234
|
"""
|
|
226
235
|
if adapter_type is not None:
|
|
227
|
-
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in
|
|
228
|
-
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in
|
|
236
|
+
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""", DeprecationWarning)
|
|
237
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
229
238
|
if adapter_type is not None:
|
|
230
239
|
pulumi.set(__self__, "adapter_type", adapter_type)
|
|
231
240
|
if create_directories is not None:
|
|
@@ -241,9 +250,10 @@ class _VirtualDiskState:
|
|
|
241
250
|
if vmdk_path is not None:
|
|
242
251
|
pulumi.set(__self__, "vmdk_path", vmdk_path)
|
|
243
252
|
|
|
244
|
-
@property
|
|
253
|
+
@_builtins.property
|
|
245
254
|
@pulumi.getter(name="adapterType")
|
|
246
|
-
|
|
255
|
+
@_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
256
|
+
def adapter_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
247
257
|
"""
|
|
248
258
|
The adapter type for this virtual disk. Can be
|
|
249
259
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
@@ -255,18 +265,15 @@ class _VirtualDiskState:
|
|
|
255
265
|
disk controller types. This parameter will be removed in future versions of the
|
|
256
266
|
vSphere provider.
|
|
257
267
|
"""
|
|
258
|
-
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
|
|
259
|
-
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")
|
|
260
|
-
|
|
261
268
|
return pulumi.get(self, "adapter_type")
|
|
262
269
|
|
|
263
270
|
@adapter_type.setter
|
|
264
|
-
def adapter_type(self, value: Optional[pulumi.Input[str]]):
|
|
271
|
+
def adapter_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
265
272
|
pulumi.set(self, "adapter_type", value)
|
|
266
273
|
|
|
267
|
-
@property
|
|
274
|
+
@_builtins.property
|
|
268
275
|
@pulumi.getter(name="createDirectories")
|
|
269
|
-
def create_directories(self) -> Optional[pulumi.Input[bool]]:
|
|
276
|
+
def create_directories(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
270
277
|
"""
|
|
271
278
|
Tells the resource to create any
|
|
272
279
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
@@ -279,26 +286,26 @@ class _VirtualDiskState:
|
|
|
279
286
|
return pulumi.get(self, "create_directories")
|
|
280
287
|
|
|
281
288
|
@create_directories.setter
|
|
282
|
-
def create_directories(self, value: Optional[pulumi.Input[bool]]):
|
|
289
|
+
def create_directories(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
283
290
|
pulumi.set(self, "create_directories", value)
|
|
284
291
|
|
|
285
|
-
@property
|
|
292
|
+
@_builtins.property
|
|
286
293
|
@pulumi.getter
|
|
287
|
-
def datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
294
|
+
def datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
288
295
|
"""
|
|
289
296
|
The name of the datacenter in which to create the
|
|
290
|
-
disk. Can be omitted when
|
|
297
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
291
298
|
your infrastructure.
|
|
292
299
|
"""
|
|
293
300
|
return pulumi.get(self, "datacenter")
|
|
294
301
|
|
|
295
302
|
@datacenter.setter
|
|
296
|
-
def datacenter(self, value: Optional[pulumi.Input[str]]):
|
|
303
|
+
def datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
297
304
|
pulumi.set(self, "datacenter", value)
|
|
298
305
|
|
|
299
|
-
@property
|
|
306
|
+
@_builtins.property
|
|
300
307
|
@pulumi.getter
|
|
301
|
-
def datastore(self) -> Optional[pulumi.Input[str]]:
|
|
308
|
+
def datastore(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
302
309
|
"""
|
|
303
310
|
The name of the datastore in which to create the
|
|
304
311
|
disk.
|
|
@@ -306,41 +313,43 @@ class _VirtualDiskState:
|
|
|
306
313
|
return pulumi.get(self, "datastore")
|
|
307
314
|
|
|
308
315
|
@datastore.setter
|
|
309
|
-
def datastore(self, value: Optional[pulumi.Input[str]]):
|
|
316
|
+
def datastore(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
310
317
|
pulumi.set(self, "datastore", value)
|
|
311
318
|
|
|
312
|
-
@property
|
|
319
|
+
@_builtins.property
|
|
313
320
|
@pulumi.getter
|
|
314
|
-
def size(self) -> Optional[pulumi.Input[int]]:
|
|
321
|
+
def size(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
315
322
|
"""
|
|
316
|
-
Size of the disk (in GB).
|
|
323
|
+
Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
324
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
325
|
+
created.
|
|
317
326
|
"""
|
|
318
327
|
return pulumi.get(self, "size")
|
|
319
328
|
|
|
320
329
|
@size.setter
|
|
321
|
-
def size(self, value: Optional[pulumi.Input[int]]):
|
|
330
|
+
def size(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
322
331
|
pulumi.set(self, "size", value)
|
|
323
332
|
|
|
324
|
-
@property
|
|
333
|
+
@_builtins.property
|
|
325
334
|
@pulumi.getter
|
|
326
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
|
335
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
327
336
|
"""
|
|
328
337
|
The type of disk to create. Can be one of
|
|
329
338
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
330
339
|
information on what each kind of disk provisioning policy means, click
|
|
331
340
|
[here][docs-vmware-vm-disk-provisioning].
|
|
332
341
|
|
|
333
|
-
[docs-vmware-vm-disk-provisioning]: https://
|
|
342
|
+
[docs-vmware-vm-disk-provisioning]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-single-host-management-vmware-host-client-8-0/virtual-machine-management-with-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/configuring-virtual-machines-in-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/virtual-disk-configuration-vSphereSingleHostManagementVMwareHostClient/about-virtual-disk-provisioning-policies-vSphereSingleHostManagementVMwareHostClient.html
|
|
334
343
|
"""
|
|
335
344
|
return pulumi.get(self, "type")
|
|
336
345
|
|
|
337
346
|
@type.setter
|
|
338
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
|
347
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
339
348
|
pulumi.set(self, "type", value)
|
|
340
349
|
|
|
341
|
-
@property
|
|
350
|
+
@_builtins.property
|
|
342
351
|
@pulumi.getter(name="vmdkPath")
|
|
343
|
-
def vmdk_path(self) -> Optional[pulumi.Input[str]]:
|
|
352
|
+
def vmdk_path(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
344
353
|
"""
|
|
345
354
|
The path, including filename, of the virtual disk to
|
|
346
355
|
be created. This needs to end in `.vmdk`.
|
|
@@ -348,28 +357,68 @@ class _VirtualDiskState:
|
|
|
348
357
|
return pulumi.get(self, "vmdk_path")
|
|
349
358
|
|
|
350
359
|
@vmdk_path.setter
|
|
351
|
-
def vmdk_path(self, value: Optional[pulumi.Input[str]]):
|
|
360
|
+
def vmdk_path(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
352
361
|
pulumi.set(self, "vmdk_path", value)
|
|
353
362
|
|
|
354
363
|
|
|
364
|
+
@pulumi.type_token("vsphere:index/virtualDisk:VirtualDisk")
|
|
355
365
|
class VirtualDisk(pulumi.CustomResource):
|
|
356
366
|
@overload
|
|
357
367
|
def __init__(__self__,
|
|
358
368
|
resource_name: str,
|
|
359
369
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
360
|
-
adapter_type: Optional[pulumi.Input[str]] = None,
|
|
361
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
362
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
363
|
-
datastore: Optional[pulumi.Input[str]] = None,
|
|
364
|
-
size: Optional[pulumi.Input[int]] = None,
|
|
365
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
366
|
-
vmdk_path: Optional[pulumi.Input[str]] = None,
|
|
370
|
+
adapter_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
371
|
+
create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
372
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
373
|
+
datastore: Optional[pulumi.Input[_builtins.str]] = None,
|
|
374
|
+
size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
375
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
376
|
+
vmdk_path: Optional[pulumi.Input[_builtins.str]] = None,
|
|
367
377
|
__props__=None):
|
|
368
378
|
"""
|
|
369
|
-
|
|
379
|
+
The `VirtualDisk` resource can be used to create virtual disks outside
|
|
380
|
+
of any given `VirtualMachine`
|
|
381
|
+
resource. These disks can be attached to a virtual machine by creating a disk
|
|
382
|
+
block with the `attach` parameter.
|
|
383
|
+
|
|
384
|
+
## Example Usage
|
|
385
|
+
|
|
386
|
+
```python
|
|
387
|
+
import pulumi
|
|
388
|
+
import pulumi_vsphere as vsphere
|
|
389
|
+
|
|
390
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
391
|
+
datastore = vsphere.get_datastore(name="datastore-01")
|
|
392
|
+
virtual_disk = vsphere.VirtualDisk("virtual_disk",
|
|
393
|
+
size=40,
|
|
394
|
+
type="thin",
|
|
395
|
+
vmdk_path="/foo/foo.vmdk",
|
|
396
|
+
create_directories=True,
|
|
397
|
+
datacenter=datacenter.name,
|
|
398
|
+
datastore=datastore.name)
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
## Import
|
|
402
|
+
|
|
403
|
+
An existing virtual disk can be imported into this resource
|
|
404
|
+
|
|
405
|
+
via supplying the full datastore path to the virtual disk. An example is below:
|
|
406
|
+
|
|
407
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
408
|
+
|
|
409
|
+
```sh
|
|
410
|
+
$ pulumi import vsphere:index/virtualDisk:VirtualDisk virtual_disk \\
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
'{"virtual_disk_path": "/dc-01/[datastore-01]foo/bar.vmdk", \\ "create_directories": "true"}'
|
|
414
|
+
|
|
415
|
+
The above would import the virtual disk located at `foo/bar.vmdk` in the `datastore-01`
|
|
416
|
+
|
|
417
|
+
datastore of the `dc-01` datacenter with `create_directories` set as `true`.
|
|
418
|
+
|
|
370
419
|
:param str resource_name: The name of the resource.
|
|
371
420
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
372
|
-
:param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
|
|
421
|
+
:param pulumi.Input[_builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
373
422
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
374
423
|
|
|
375
424
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -378,26 +427,28 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
378
427
|
in the `VirtualMachine` resource for information on how to control
|
|
379
428
|
disk controller types. This parameter will be removed in future versions of the
|
|
380
429
|
vSphere provider.
|
|
381
|
-
:param pulumi.Input[bool] create_directories: Tells the resource to create any
|
|
430
|
+
:param pulumi.Input[_builtins.bool] create_directories: Tells the resource to create any
|
|
382
431
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
383
432
|
Default: `false`.
|
|
384
433
|
|
|
385
434
|
> **NOTE:** Any directory created as part of the operation when
|
|
386
435
|
`create_directories` is enabled will not be deleted when the resource is
|
|
387
436
|
destroyed.
|
|
388
|
-
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
389
|
-
disk. Can be omitted when
|
|
437
|
+
:param pulumi.Input[_builtins.str] datacenter: The name of the datacenter in which to create the
|
|
438
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
390
439
|
your infrastructure.
|
|
391
|
-
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
440
|
+
:param pulumi.Input[_builtins.str] datastore: The name of the datastore in which to create the
|
|
392
441
|
disk.
|
|
393
|
-
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
394
|
-
|
|
442
|
+
:param pulumi.Input[_builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
443
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
444
|
+
created.
|
|
445
|
+
:param pulumi.Input[_builtins.str] type: The type of disk to create. Can be one of
|
|
395
446
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
396
447
|
information on what each kind of disk provisioning policy means, click
|
|
397
448
|
[here][docs-vmware-vm-disk-provisioning].
|
|
398
449
|
|
|
399
|
-
[docs-vmware-vm-disk-provisioning]: https://
|
|
400
|
-
:param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
|
|
450
|
+
[docs-vmware-vm-disk-provisioning]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-single-host-management-vmware-host-client-8-0/virtual-machine-management-with-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/configuring-virtual-machines-in-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/virtual-disk-configuration-vSphereSingleHostManagementVMwareHostClient/about-virtual-disk-provisioning-policies-vSphereSingleHostManagementVMwareHostClient.html
|
|
451
|
+
:param pulumi.Input[_builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
401
452
|
be created. This needs to end in `.vmdk`.
|
|
402
453
|
"""
|
|
403
454
|
...
|
|
@@ -407,7 +458,46 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
407
458
|
args: VirtualDiskArgs,
|
|
408
459
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
409
460
|
"""
|
|
410
|
-
|
|
461
|
+
The `VirtualDisk` resource can be used to create virtual disks outside
|
|
462
|
+
of any given `VirtualMachine`
|
|
463
|
+
resource. These disks can be attached to a virtual machine by creating a disk
|
|
464
|
+
block with the `attach` parameter.
|
|
465
|
+
|
|
466
|
+
## Example Usage
|
|
467
|
+
|
|
468
|
+
```python
|
|
469
|
+
import pulumi
|
|
470
|
+
import pulumi_vsphere as vsphere
|
|
471
|
+
|
|
472
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
473
|
+
datastore = vsphere.get_datastore(name="datastore-01")
|
|
474
|
+
virtual_disk = vsphere.VirtualDisk("virtual_disk",
|
|
475
|
+
size=40,
|
|
476
|
+
type="thin",
|
|
477
|
+
vmdk_path="/foo/foo.vmdk",
|
|
478
|
+
create_directories=True,
|
|
479
|
+
datacenter=datacenter.name,
|
|
480
|
+
datastore=datastore.name)
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
## Import
|
|
484
|
+
|
|
485
|
+
An existing virtual disk can be imported into this resource
|
|
486
|
+
|
|
487
|
+
via supplying the full datastore path to the virtual disk. An example is below:
|
|
488
|
+
|
|
489
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
490
|
+
|
|
491
|
+
```sh
|
|
492
|
+
$ pulumi import vsphere:index/virtualDisk:VirtualDisk virtual_disk \\
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
'{"virtual_disk_path": "/dc-01/[datastore-01]foo/bar.vmdk", \\ "create_directories": "true"}'
|
|
496
|
+
|
|
497
|
+
The above would import the virtual disk located at `foo/bar.vmdk` in the `datastore-01`
|
|
498
|
+
|
|
499
|
+
datastore of the `dc-01` datacenter with `create_directories` set as `true`.
|
|
500
|
+
|
|
411
501
|
:param str resource_name: The name of the resource.
|
|
412
502
|
:param VirtualDiskArgs args: The arguments to use to populate this resource's properties.
|
|
413
503
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -423,13 +513,13 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
423
513
|
def _internal_init(__self__,
|
|
424
514
|
resource_name: str,
|
|
425
515
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
426
|
-
adapter_type: Optional[pulumi.Input[str]] = None,
|
|
427
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
428
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
429
|
-
datastore: Optional[pulumi.Input[str]] = None,
|
|
430
|
-
size: Optional[pulumi.Input[int]] = None,
|
|
431
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
432
|
-
vmdk_path: Optional[pulumi.Input[str]] = None,
|
|
516
|
+
adapter_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
517
|
+
create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
518
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
519
|
+
datastore: Optional[pulumi.Input[_builtins.str]] = None,
|
|
520
|
+
size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
521
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
522
|
+
vmdk_path: Optional[pulumi.Input[_builtins.str]] = None,
|
|
433
523
|
__props__=None):
|
|
434
524
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
435
525
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -462,13 +552,13 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
462
552
|
def get(resource_name: str,
|
|
463
553
|
id: pulumi.Input[str],
|
|
464
554
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
465
|
-
adapter_type: Optional[pulumi.Input[str]] = None,
|
|
466
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
467
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
468
|
-
datastore: Optional[pulumi.Input[str]] = None,
|
|
469
|
-
size: Optional[pulumi.Input[int]] = None,
|
|
470
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
471
|
-
vmdk_path: Optional[pulumi.Input[str]] = None) -> 'VirtualDisk':
|
|
555
|
+
adapter_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
556
|
+
create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
557
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
558
|
+
datastore: Optional[pulumi.Input[_builtins.str]] = None,
|
|
559
|
+
size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
560
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
561
|
+
vmdk_path: Optional[pulumi.Input[_builtins.str]] = None) -> 'VirtualDisk':
|
|
472
562
|
"""
|
|
473
563
|
Get an existing VirtualDisk resource's state with the given name, id, and optional extra
|
|
474
564
|
properties used to qualify the lookup.
|
|
@@ -476,7 +566,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
476
566
|
:param str resource_name: The unique name of the resulting resource.
|
|
477
567
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
478
568
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
479
|
-
:param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
|
|
569
|
+
:param pulumi.Input[_builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
480
570
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
481
571
|
|
|
482
572
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -485,26 +575,28 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
485
575
|
in the `VirtualMachine` resource for information on how to control
|
|
486
576
|
disk controller types. This parameter will be removed in future versions of the
|
|
487
577
|
vSphere provider.
|
|
488
|
-
:param pulumi.Input[bool] create_directories: Tells the resource to create any
|
|
578
|
+
:param pulumi.Input[_builtins.bool] create_directories: Tells the resource to create any
|
|
489
579
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
490
580
|
Default: `false`.
|
|
491
581
|
|
|
492
582
|
> **NOTE:** Any directory created as part of the operation when
|
|
493
583
|
`create_directories` is enabled will not be deleted when the resource is
|
|
494
584
|
destroyed.
|
|
495
|
-
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
496
|
-
disk. Can be omitted when
|
|
585
|
+
:param pulumi.Input[_builtins.str] datacenter: The name of the datacenter in which to create the
|
|
586
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
497
587
|
your infrastructure.
|
|
498
|
-
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
588
|
+
:param pulumi.Input[_builtins.str] datastore: The name of the datastore in which to create the
|
|
499
589
|
disk.
|
|
500
|
-
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
501
|
-
|
|
590
|
+
:param pulumi.Input[_builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
591
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
592
|
+
created.
|
|
593
|
+
:param pulumi.Input[_builtins.str] type: The type of disk to create. Can be one of
|
|
502
594
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
503
595
|
information on what each kind of disk provisioning policy means, click
|
|
504
596
|
[here][docs-vmware-vm-disk-provisioning].
|
|
505
597
|
|
|
506
|
-
[docs-vmware-vm-disk-provisioning]: https://
|
|
507
|
-
:param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
|
|
598
|
+
[docs-vmware-vm-disk-provisioning]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-single-host-management-vmware-host-client-8-0/virtual-machine-management-with-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/configuring-virtual-machines-in-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/virtual-disk-configuration-vSphereSingleHostManagementVMwareHostClient/about-virtual-disk-provisioning-policies-vSphereSingleHostManagementVMwareHostClient.html
|
|
599
|
+
:param pulumi.Input[_builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
508
600
|
be created. This needs to end in `.vmdk`.
|
|
509
601
|
"""
|
|
510
602
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -520,9 +612,10 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
520
612
|
__props__.__dict__["vmdk_path"] = vmdk_path
|
|
521
613
|
return VirtualDisk(resource_name, opts=opts, __props__=__props__)
|
|
522
614
|
|
|
523
|
-
@property
|
|
615
|
+
@_builtins.property
|
|
524
616
|
@pulumi.getter(name="adapterType")
|
|
525
|
-
|
|
617
|
+
@_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
618
|
+
def adapter_type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
526
619
|
"""
|
|
527
620
|
The adapter type for this virtual disk. Can be
|
|
528
621
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
@@ -534,14 +627,11 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
534
627
|
disk controller types. This parameter will be removed in future versions of the
|
|
535
628
|
vSphere provider.
|
|
536
629
|
"""
|
|
537
|
-
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
|
|
538
|
-
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")
|
|
539
|
-
|
|
540
630
|
return pulumi.get(self, "adapter_type")
|
|
541
631
|
|
|
542
|
-
@property
|
|
632
|
+
@_builtins.property
|
|
543
633
|
@pulumi.getter(name="createDirectories")
|
|
544
|
-
def create_directories(self) -> pulumi.Output[Optional[bool]]:
|
|
634
|
+
def create_directories(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
545
635
|
"""
|
|
546
636
|
Tells the resource to create any
|
|
547
637
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
@@ -553,49 +643,51 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
553
643
|
"""
|
|
554
644
|
return pulumi.get(self, "create_directories")
|
|
555
645
|
|
|
556
|
-
@property
|
|
646
|
+
@_builtins.property
|
|
557
647
|
@pulumi.getter
|
|
558
|
-
def datacenter(self) -> pulumi.Output[Optional[str]]:
|
|
648
|
+
def datacenter(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
559
649
|
"""
|
|
560
650
|
The name of the datacenter in which to create the
|
|
561
|
-
disk. Can be omitted when
|
|
651
|
+
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
562
652
|
your infrastructure.
|
|
563
653
|
"""
|
|
564
654
|
return pulumi.get(self, "datacenter")
|
|
565
655
|
|
|
566
|
-
@property
|
|
656
|
+
@_builtins.property
|
|
567
657
|
@pulumi.getter
|
|
568
|
-
def datastore(self) -> pulumi.Output[str]:
|
|
658
|
+
def datastore(self) -> pulumi.Output[_builtins.str]:
|
|
569
659
|
"""
|
|
570
660
|
The name of the datastore in which to create the
|
|
571
661
|
disk.
|
|
572
662
|
"""
|
|
573
663
|
return pulumi.get(self, "datastore")
|
|
574
664
|
|
|
575
|
-
@property
|
|
665
|
+
@_builtins.property
|
|
576
666
|
@pulumi.getter
|
|
577
|
-
def size(self) -> pulumi.Output[int]:
|
|
667
|
+
def size(self) -> pulumi.Output[_builtins.int]:
|
|
578
668
|
"""
|
|
579
|
-
Size of the disk (in GB).
|
|
669
|
+
Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
670
|
+
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
671
|
+
created.
|
|
580
672
|
"""
|
|
581
673
|
return pulumi.get(self, "size")
|
|
582
674
|
|
|
583
|
-
@property
|
|
675
|
+
@_builtins.property
|
|
584
676
|
@pulumi.getter
|
|
585
|
-
def type(self) -> pulumi.Output[Optional[str]]:
|
|
677
|
+
def type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
586
678
|
"""
|
|
587
679
|
The type of disk to create. Can be one of
|
|
588
680
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
589
681
|
information on what each kind of disk provisioning policy means, click
|
|
590
682
|
[here][docs-vmware-vm-disk-provisioning].
|
|
591
683
|
|
|
592
|
-
[docs-vmware-vm-disk-provisioning]: https://
|
|
684
|
+
[docs-vmware-vm-disk-provisioning]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-single-host-management-vmware-host-client-8-0/virtual-machine-management-with-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/configuring-virtual-machines-in-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/virtual-disk-configuration-vSphereSingleHostManagementVMwareHostClient/about-virtual-disk-provisioning-policies-vSphereSingleHostManagementVMwareHostClient.html
|
|
593
685
|
"""
|
|
594
686
|
return pulumi.get(self, "type")
|
|
595
687
|
|
|
596
|
-
@property
|
|
688
|
+
@_builtins.property
|
|
597
689
|
@pulumi.getter(name="vmdkPath")
|
|
598
|
-
def vmdk_path(self) -> pulumi.Output[str]:
|
|
690
|
+
def vmdk_path(self) -> pulumi.Output[_builtins.str]:
|
|
599
691
|
"""
|
|
600
692
|
The path, including filename, of the virtual disk to
|
|
601
693
|
be created. This needs to end in `.vmdk`.
|