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/get_vmfs_disks.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__ = [
|
|
@@ -38,36 +43,36 @@ class GetVmfsDisksResult:
|
|
|
38
43
|
raise TypeError("Expected argument 'rescan' to be a bool")
|
|
39
44
|
pulumi.set(__self__, "rescan", rescan)
|
|
40
45
|
|
|
41
|
-
@property
|
|
46
|
+
@_builtins.property
|
|
42
47
|
@pulumi.getter
|
|
43
|
-
def disks(self) -> Sequence[str]:
|
|
48
|
+
def disks(self) -> Sequence[_builtins.str]:
|
|
44
49
|
"""
|
|
45
50
|
A lexicographically sorted list of devices discovered by the
|
|
46
51
|
operation, matching the supplied `filter`, if provided.
|
|
47
52
|
"""
|
|
48
53
|
return pulumi.get(self, "disks")
|
|
49
54
|
|
|
50
|
-
@property
|
|
55
|
+
@_builtins.property
|
|
51
56
|
@pulumi.getter
|
|
52
|
-
def filter(self) -> Optional[str]:
|
|
57
|
+
def filter(self) -> Optional[_builtins.str]:
|
|
53
58
|
return pulumi.get(self, "filter")
|
|
54
59
|
|
|
55
|
-
@property
|
|
60
|
+
@_builtins.property
|
|
56
61
|
@pulumi.getter(name="hostSystemId")
|
|
57
|
-
def host_system_id(self) -> str:
|
|
62
|
+
def host_system_id(self) -> _builtins.str:
|
|
58
63
|
return pulumi.get(self, "host_system_id")
|
|
59
64
|
|
|
60
|
-
@property
|
|
65
|
+
@_builtins.property
|
|
61
66
|
@pulumi.getter
|
|
62
|
-
def id(self) -> str:
|
|
67
|
+
def id(self) -> _builtins.str:
|
|
63
68
|
"""
|
|
64
69
|
The provider-assigned unique ID for this managed resource.
|
|
65
70
|
"""
|
|
66
71
|
return pulumi.get(self, "id")
|
|
67
72
|
|
|
68
|
-
@property
|
|
73
|
+
@_builtins.property
|
|
69
74
|
@pulumi.getter
|
|
70
|
-
def rescan(self) -> Optional[bool]:
|
|
75
|
+
def rescan(self) -> Optional[_builtins.bool]:
|
|
71
76
|
return pulumi.get(self, "rescan")
|
|
72
77
|
|
|
73
78
|
|
|
@@ -84,9 +89,9 @@ class AwaitableGetVmfsDisksResult(GetVmfsDisksResult):
|
|
|
84
89
|
rescan=self.rescan)
|
|
85
90
|
|
|
86
91
|
|
|
87
|
-
def get_vmfs_disks(filter: Optional[str] = None,
|
|
88
|
-
host_system_id: Optional[str] = None,
|
|
89
|
-
rescan: Optional[bool] = None,
|
|
92
|
+
def get_vmfs_disks(filter: Optional[_builtins.str] = None,
|
|
93
|
+
host_system_id: Optional[_builtins.str] = None,
|
|
94
|
+
rescan: Optional[_builtins.bool] = None,
|
|
90
95
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVmfsDisksResult:
|
|
91
96
|
"""
|
|
92
97
|
The `get_vmfs_disks` data source can be used to discover the storage
|
|
@@ -109,15 +114,15 @@ def get_vmfs_disks(filter: Optional[str] = None,
|
|
|
109
114
|
```
|
|
110
115
|
|
|
111
116
|
|
|
112
|
-
:param str filter: A regular expression to filter the disks against. Only
|
|
117
|
+
:param _builtins.str filter: A regular expression to filter the disks against. Only
|
|
113
118
|
disks with canonical names that match will be included.
|
|
114
119
|
|
|
115
120
|
> **NOTE:** Using a `filter` is recommended if there is any chance the host
|
|
116
121
|
will have any specific storage devices added to it that may affect the order of
|
|
117
122
|
the output `disks` attribute below, which is lexicographically sorted.
|
|
118
|
-
:param str host_system_id: The managed object ID of
|
|
123
|
+
:param _builtins.str host_system_id: The managed object ID of
|
|
119
124
|
the host to look for disks on.
|
|
120
|
-
:param bool rescan: Whether or not to rescan storage adapters before
|
|
125
|
+
:param _builtins.bool rescan: Whether or not to rescan storage adapters before
|
|
121
126
|
searching for disks. This may lengthen the time it takes to perform the
|
|
122
127
|
search. Default: `false`.
|
|
123
128
|
"""
|
|
@@ -134,13 +139,10 @@ def get_vmfs_disks(filter: Optional[str] = None,
|
|
|
134
139
|
host_system_id=pulumi.get(__ret__, 'host_system_id'),
|
|
135
140
|
id=pulumi.get(__ret__, 'id'),
|
|
136
141
|
rescan=pulumi.get(__ret__, 'rescan'))
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
host_system_id: Optional[pulumi.Input[str]] = None,
|
|
142
|
-
rescan: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
143
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetVmfsDisksResult]:
|
|
142
|
+
def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
143
|
+
host_system_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
144
|
+
rescan: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
145
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVmfsDisksResult]:
|
|
144
146
|
"""
|
|
145
147
|
The `get_vmfs_disks` data source can be used to discover the storage
|
|
146
148
|
devices available on an ESXi host. This data source can be combined with the
|
|
@@ -162,16 +164,27 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
162
164
|
```
|
|
163
165
|
|
|
164
166
|
|
|
165
|
-
:param str filter: A regular expression to filter the disks against. Only
|
|
167
|
+
:param _builtins.str filter: A regular expression to filter the disks against. Only
|
|
166
168
|
disks with canonical names that match will be included.
|
|
167
169
|
|
|
168
170
|
> **NOTE:** Using a `filter` is recommended if there is any chance the host
|
|
169
171
|
will have any specific storage devices added to it that may affect the order of
|
|
170
172
|
the output `disks` attribute below, which is lexicographically sorted.
|
|
171
|
-
:param str host_system_id: The managed object ID of
|
|
173
|
+
:param _builtins.str host_system_id: The managed object ID of
|
|
172
174
|
the host to look for disks on.
|
|
173
|
-
:param bool rescan: Whether or not to rescan storage adapters before
|
|
175
|
+
:param _builtins.bool rescan: Whether or not to rescan storage adapters before
|
|
174
176
|
searching for disks. This may lengthen the time it takes to perform the
|
|
175
177
|
search. Default: `false`.
|
|
176
178
|
"""
|
|
177
|
-
|
|
179
|
+
__args__ = dict()
|
|
180
|
+
__args__['filter'] = filter
|
|
181
|
+
__args__['hostSystemId'] = host_system_id
|
|
182
|
+
__args__['rescan'] = rescan
|
|
183
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
184
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getVmfsDisks:getVmfsDisks', __args__, opts=opts, typ=GetVmfsDisksResult)
|
|
185
|
+
return __ret__.apply(lambda __response__: GetVmfsDisksResult(
|
|
186
|
+
disks=pulumi.get(__response__, 'disks'),
|
|
187
|
+
filter=pulumi.get(__response__, 'filter'),
|
|
188
|
+
host_system_id=pulumi.get(__response__, 'host_system_id'),
|
|
189
|
+
id=pulumi.get(__response__, 'id'),
|
|
190
|
+
rescan=pulumi.get(__response__, 'rescan')))
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -17,15 +22,15 @@ __all__ = ['GuestOsCustomizationArgs', 'GuestOsCustomization']
|
|
|
17
22
|
class GuestOsCustomizationArgs:
|
|
18
23
|
def __init__(__self__, *,
|
|
19
24
|
spec: pulumi.Input['GuestOsCustomizationSpecArgs'],
|
|
20
|
-
type: pulumi.Input[str],
|
|
21
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
22
|
-
name: Optional[pulumi.Input[str]] = None):
|
|
25
|
+
type: pulumi.Input[_builtins.str],
|
|
26
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
23
28
|
"""
|
|
24
29
|
The set of arguments for constructing a GuestOsCustomization resource.
|
|
25
30
|
:param pulumi.Input['GuestOsCustomizationSpecArgs'] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
|
|
26
|
-
:param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
|
|
27
|
-
:param pulumi.Input[str] description: The description for the customization specification.
|
|
28
|
-
:param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
31
|
+
:param pulumi.Input[_builtins.str] type: The type of customization specification: One among: Windows, Linux.
|
|
32
|
+
:param pulumi.Input[_builtins.str] description: The description for the customization specification.
|
|
33
|
+
:param pulumi.Input[_builtins.str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
29
34
|
"""
|
|
30
35
|
pulumi.set(__self__, "spec", spec)
|
|
31
36
|
pulumi.set(__self__, "type", type)
|
|
@@ -34,7 +39,7 @@ class GuestOsCustomizationArgs:
|
|
|
34
39
|
if name is not None:
|
|
35
40
|
pulumi.set(__self__, "name", name)
|
|
36
41
|
|
|
37
|
-
@property
|
|
42
|
+
@_builtins.property
|
|
38
43
|
@pulumi.getter
|
|
39
44
|
def spec(self) -> pulumi.Input['GuestOsCustomizationSpecArgs']:
|
|
40
45
|
"""
|
|
@@ -46,60 +51,60 @@ class GuestOsCustomizationArgs:
|
|
|
46
51
|
def spec(self, value: pulumi.Input['GuestOsCustomizationSpecArgs']):
|
|
47
52
|
pulumi.set(self, "spec", value)
|
|
48
53
|
|
|
49
|
-
@property
|
|
54
|
+
@_builtins.property
|
|
50
55
|
@pulumi.getter
|
|
51
|
-
def type(self) -> pulumi.Input[str]:
|
|
56
|
+
def type(self) -> pulumi.Input[_builtins.str]:
|
|
52
57
|
"""
|
|
53
58
|
The type of customization specification: One among: Windows, Linux.
|
|
54
59
|
"""
|
|
55
60
|
return pulumi.get(self, "type")
|
|
56
61
|
|
|
57
62
|
@type.setter
|
|
58
|
-
def type(self, value: pulumi.Input[str]):
|
|
63
|
+
def type(self, value: pulumi.Input[_builtins.str]):
|
|
59
64
|
pulumi.set(self, "type", value)
|
|
60
65
|
|
|
61
|
-
@property
|
|
66
|
+
@_builtins.property
|
|
62
67
|
@pulumi.getter
|
|
63
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
68
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
64
69
|
"""
|
|
65
70
|
The description for the customization specification.
|
|
66
71
|
"""
|
|
67
72
|
return pulumi.get(self, "description")
|
|
68
73
|
|
|
69
74
|
@description.setter
|
|
70
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
75
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
71
76
|
pulumi.set(self, "description", value)
|
|
72
77
|
|
|
73
|
-
@property
|
|
78
|
+
@_builtins.property
|
|
74
79
|
@pulumi.getter
|
|
75
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
80
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
76
81
|
"""
|
|
77
82
|
The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
78
83
|
"""
|
|
79
84
|
return pulumi.get(self, "name")
|
|
80
85
|
|
|
81
86
|
@name.setter
|
|
82
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
87
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
83
88
|
pulumi.set(self, "name", value)
|
|
84
89
|
|
|
85
90
|
|
|
86
91
|
@pulumi.input_type
|
|
87
92
|
class _GuestOsCustomizationState:
|
|
88
93
|
def __init__(__self__, *,
|
|
89
|
-
change_version: Optional[pulumi.Input[str]] = None,
|
|
90
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
91
|
-
last_update_time: Optional[pulumi.Input[str]] = None,
|
|
92
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
94
|
+
change_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
95
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
96
|
+
last_update_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
97
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
93
98
|
spec: Optional[pulumi.Input['GuestOsCustomizationSpecArgs']] = None,
|
|
94
|
-
type: Optional[pulumi.Input[str]] = None):
|
|
99
|
+
type: Optional[pulumi.Input[_builtins.str]] = None):
|
|
95
100
|
"""
|
|
96
101
|
Input properties used for looking up and filtering GuestOsCustomization resources.
|
|
97
|
-
:param pulumi.Input[str] change_version: The number of last changed version to the customization specification.
|
|
98
|
-
:param pulumi.Input[str] description: The description for the customization specification.
|
|
99
|
-
:param pulumi.Input[str] last_update_time: The time of last modification to the customization specification.
|
|
100
|
-
:param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
102
|
+
:param pulumi.Input[_builtins.str] change_version: The number of last changed version to the customization specification.
|
|
103
|
+
:param pulumi.Input[_builtins.str] description: The description for the customization specification.
|
|
104
|
+
:param pulumi.Input[_builtins.str] last_update_time: The time of last modification to the customization specification.
|
|
105
|
+
:param pulumi.Input[_builtins.str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
101
106
|
:param pulumi.Input['GuestOsCustomizationSpecArgs'] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
|
|
102
|
-
:param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
|
|
107
|
+
:param pulumi.Input[_builtins.str] type: The type of customization specification: One among: Windows, Linux.
|
|
103
108
|
"""
|
|
104
109
|
if change_version is not None:
|
|
105
110
|
pulumi.set(__self__, "change_version", change_version)
|
|
@@ -114,55 +119,55 @@ class _GuestOsCustomizationState:
|
|
|
114
119
|
if type is not None:
|
|
115
120
|
pulumi.set(__self__, "type", type)
|
|
116
121
|
|
|
117
|
-
@property
|
|
122
|
+
@_builtins.property
|
|
118
123
|
@pulumi.getter(name="changeVersion")
|
|
119
|
-
def change_version(self) -> Optional[pulumi.Input[str]]:
|
|
124
|
+
def change_version(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
120
125
|
"""
|
|
121
126
|
The number of last changed version to the customization specification.
|
|
122
127
|
"""
|
|
123
128
|
return pulumi.get(self, "change_version")
|
|
124
129
|
|
|
125
130
|
@change_version.setter
|
|
126
|
-
def change_version(self, value: Optional[pulumi.Input[str]]):
|
|
131
|
+
def change_version(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
127
132
|
pulumi.set(self, "change_version", value)
|
|
128
133
|
|
|
129
|
-
@property
|
|
134
|
+
@_builtins.property
|
|
130
135
|
@pulumi.getter
|
|
131
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
136
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
132
137
|
"""
|
|
133
138
|
The description for the customization specification.
|
|
134
139
|
"""
|
|
135
140
|
return pulumi.get(self, "description")
|
|
136
141
|
|
|
137
142
|
@description.setter
|
|
138
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
143
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
139
144
|
pulumi.set(self, "description", value)
|
|
140
145
|
|
|
141
|
-
@property
|
|
146
|
+
@_builtins.property
|
|
142
147
|
@pulumi.getter(name="lastUpdateTime")
|
|
143
|
-
def last_update_time(self) -> Optional[pulumi.Input[str]]:
|
|
148
|
+
def last_update_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
144
149
|
"""
|
|
145
150
|
The time of last modification to the customization specification.
|
|
146
151
|
"""
|
|
147
152
|
return pulumi.get(self, "last_update_time")
|
|
148
153
|
|
|
149
154
|
@last_update_time.setter
|
|
150
|
-
def last_update_time(self, value: Optional[pulumi.Input[str]]):
|
|
155
|
+
def last_update_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
151
156
|
pulumi.set(self, "last_update_time", value)
|
|
152
157
|
|
|
153
|
-
@property
|
|
158
|
+
@_builtins.property
|
|
154
159
|
@pulumi.getter
|
|
155
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
160
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
156
161
|
"""
|
|
157
162
|
The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
158
163
|
"""
|
|
159
164
|
return pulumi.get(self, "name")
|
|
160
165
|
|
|
161
166
|
@name.setter
|
|
162
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
167
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
163
168
|
pulumi.set(self, "name", value)
|
|
164
169
|
|
|
165
|
-
@property
|
|
170
|
+
@_builtins.property
|
|
166
171
|
@pulumi.getter
|
|
167
172
|
def spec(self) -> Optional[pulumi.Input['GuestOsCustomizationSpecArgs']]:
|
|
168
173
|
"""
|
|
@@ -174,40 +179,66 @@ class _GuestOsCustomizationState:
|
|
|
174
179
|
def spec(self, value: Optional[pulumi.Input['GuestOsCustomizationSpecArgs']]):
|
|
175
180
|
pulumi.set(self, "spec", value)
|
|
176
181
|
|
|
177
|
-
@property
|
|
182
|
+
@_builtins.property
|
|
178
183
|
@pulumi.getter
|
|
179
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
|
184
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
180
185
|
"""
|
|
181
186
|
The type of customization specification: One among: Windows, Linux.
|
|
182
187
|
"""
|
|
183
188
|
return pulumi.get(self, "type")
|
|
184
189
|
|
|
185
190
|
@type.setter
|
|
186
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
|
191
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
187
192
|
pulumi.set(self, "type", value)
|
|
188
193
|
|
|
189
194
|
|
|
195
|
+
@pulumi.type_token("vsphere:index/guestOsCustomization:GuestOsCustomization")
|
|
190
196
|
class GuestOsCustomization(pulumi.CustomResource):
|
|
191
197
|
@overload
|
|
192
198
|
def __init__(__self__,
|
|
193
199
|
resource_name: str,
|
|
194
200
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
195
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
196
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
197
|
-
spec: Optional[pulumi.Input[
|
|
198
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
201
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
202
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
203
|
+
spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
|
|
204
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
199
205
|
__props__=None):
|
|
200
206
|
"""
|
|
201
207
|
The `GuestOsCustomization` resource can be used to a customization specification for a guest operating system.
|
|
202
208
|
|
|
203
209
|
> **NOTE:** The name attribute is unique identifier for the guest OS spec per VC.
|
|
204
210
|
|
|
211
|
+
## Example Usage
|
|
212
|
+
|
|
213
|
+
```python
|
|
214
|
+
import pulumi
|
|
215
|
+
import pulumi_vsphere as vsphere
|
|
216
|
+
|
|
217
|
+
windows = vsphere.GuestOsCustomization("windows",
|
|
218
|
+
name="windows",
|
|
219
|
+
type="Windows",
|
|
220
|
+
spec={
|
|
221
|
+
"windows_options": {
|
|
222
|
+
"run_once_command_lists": [
|
|
223
|
+
"command-1",
|
|
224
|
+
"command-2",
|
|
225
|
+
],
|
|
226
|
+
"computer_name": "windows",
|
|
227
|
+
"auto_logon": False,
|
|
228
|
+
"auto_logon_count": 0,
|
|
229
|
+
"admin_password": "VMware1!",
|
|
230
|
+
"time_zone": 4,
|
|
231
|
+
"workgroup": "workgroup",
|
|
232
|
+
},
|
|
233
|
+
})
|
|
234
|
+
```
|
|
235
|
+
|
|
205
236
|
:param str resource_name: The name of the resource.
|
|
206
237
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
207
|
-
:param pulumi.Input[str] description: The description for the customization specification.
|
|
208
|
-
:param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
209
|
-
:param pulumi.Input[
|
|
210
|
-
:param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
|
|
238
|
+
:param pulumi.Input[_builtins.str] description: The description for the customization specification.
|
|
239
|
+
:param pulumi.Input[_builtins.str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
240
|
+
:param pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
|
|
241
|
+
:param pulumi.Input[_builtins.str] type: The type of customization specification: One among: Windows, Linux.
|
|
211
242
|
"""
|
|
212
243
|
...
|
|
213
244
|
@overload
|
|
@@ -220,6 +251,31 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
220
251
|
|
|
221
252
|
> **NOTE:** The name attribute is unique identifier for the guest OS spec per VC.
|
|
222
253
|
|
|
254
|
+
## Example Usage
|
|
255
|
+
|
|
256
|
+
```python
|
|
257
|
+
import pulumi
|
|
258
|
+
import pulumi_vsphere as vsphere
|
|
259
|
+
|
|
260
|
+
windows = vsphere.GuestOsCustomization("windows",
|
|
261
|
+
name="windows",
|
|
262
|
+
type="Windows",
|
|
263
|
+
spec={
|
|
264
|
+
"windows_options": {
|
|
265
|
+
"run_once_command_lists": [
|
|
266
|
+
"command-1",
|
|
267
|
+
"command-2",
|
|
268
|
+
],
|
|
269
|
+
"computer_name": "windows",
|
|
270
|
+
"auto_logon": False,
|
|
271
|
+
"auto_logon_count": 0,
|
|
272
|
+
"admin_password": "VMware1!",
|
|
273
|
+
"time_zone": 4,
|
|
274
|
+
"workgroup": "workgroup",
|
|
275
|
+
},
|
|
276
|
+
})
|
|
277
|
+
```
|
|
278
|
+
|
|
223
279
|
:param str resource_name: The name of the resource.
|
|
224
280
|
:param GuestOsCustomizationArgs args: The arguments to use to populate this resource's properties.
|
|
225
281
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -235,10 +291,10 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
235
291
|
def _internal_init(__self__,
|
|
236
292
|
resource_name: str,
|
|
237
293
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
238
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
239
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
240
|
-
spec: Optional[pulumi.Input[
|
|
241
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
294
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
295
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
296
|
+
spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
|
|
297
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
242
298
|
__props__=None):
|
|
243
299
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
244
300
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -268,12 +324,12 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
268
324
|
def get(resource_name: str,
|
|
269
325
|
id: pulumi.Input[str],
|
|
270
326
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
271
|
-
change_version: Optional[pulumi.Input[str]] = None,
|
|
272
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
273
|
-
last_update_time: Optional[pulumi.Input[str]] = None,
|
|
274
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
275
|
-
spec: Optional[pulumi.Input[
|
|
276
|
-
type: Optional[pulumi.Input[str]] = None) -> 'GuestOsCustomization':
|
|
327
|
+
change_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
328
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
329
|
+
last_update_time: Optional[pulumi.Input[_builtins.str]] = None,
|
|
330
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
331
|
+
spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
|
|
332
|
+
type: Optional[pulumi.Input[_builtins.str]] = None) -> 'GuestOsCustomization':
|
|
277
333
|
"""
|
|
278
334
|
Get an existing GuestOsCustomization resource's state with the given name, id, and optional extra
|
|
279
335
|
properties used to qualify the lookup.
|
|
@@ -281,12 +337,12 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
281
337
|
:param str resource_name: The unique name of the resulting resource.
|
|
282
338
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
283
339
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
284
|
-
:param pulumi.Input[str] change_version: The number of last changed version to the customization specification.
|
|
285
|
-
:param pulumi.Input[str] description: The description for the customization specification.
|
|
286
|
-
:param pulumi.Input[str] last_update_time: The time of last modification to the customization specification.
|
|
287
|
-
:param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
288
|
-
:param pulumi.Input[
|
|
289
|
-
:param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
|
|
340
|
+
:param pulumi.Input[_builtins.str] change_version: The number of last changed version to the customization specification.
|
|
341
|
+
:param pulumi.Input[_builtins.str] description: The description for the customization specification.
|
|
342
|
+
:param pulumi.Input[_builtins.str] last_update_time: The time of last modification to the customization specification.
|
|
343
|
+
:param pulumi.Input[_builtins.str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
344
|
+
:param pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
|
|
345
|
+
:param pulumi.Input[_builtins.str] type: The type of customization specification: One among: Windows, Linux.
|
|
290
346
|
"""
|
|
291
347
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
292
348
|
|
|
@@ -300,39 +356,39 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
300
356
|
__props__.__dict__["type"] = type
|
|
301
357
|
return GuestOsCustomization(resource_name, opts=opts, __props__=__props__)
|
|
302
358
|
|
|
303
|
-
@property
|
|
359
|
+
@_builtins.property
|
|
304
360
|
@pulumi.getter(name="changeVersion")
|
|
305
|
-
def change_version(self) -> pulumi.Output[str]:
|
|
361
|
+
def change_version(self) -> pulumi.Output[_builtins.str]:
|
|
306
362
|
"""
|
|
307
363
|
The number of last changed version to the customization specification.
|
|
308
364
|
"""
|
|
309
365
|
return pulumi.get(self, "change_version")
|
|
310
366
|
|
|
311
|
-
@property
|
|
367
|
+
@_builtins.property
|
|
312
368
|
@pulumi.getter
|
|
313
|
-
def description(self) -> pulumi.Output[Optional[str]]:
|
|
369
|
+
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
314
370
|
"""
|
|
315
371
|
The description for the customization specification.
|
|
316
372
|
"""
|
|
317
373
|
return pulumi.get(self, "description")
|
|
318
374
|
|
|
319
|
-
@property
|
|
375
|
+
@_builtins.property
|
|
320
376
|
@pulumi.getter(name="lastUpdateTime")
|
|
321
|
-
def last_update_time(self) -> pulumi.Output[str]:
|
|
377
|
+
def last_update_time(self) -> pulumi.Output[_builtins.str]:
|
|
322
378
|
"""
|
|
323
379
|
The time of last modification to the customization specification.
|
|
324
380
|
"""
|
|
325
381
|
return pulumi.get(self, "last_update_time")
|
|
326
382
|
|
|
327
|
-
@property
|
|
383
|
+
@_builtins.property
|
|
328
384
|
@pulumi.getter
|
|
329
|
-
def name(self) -> pulumi.Output[str]:
|
|
385
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
330
386
|
"""
|
|
331
387
|
The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
332
388
|
"""
|
|
333
389
|
return pulumi.get(self, "name")
|
|
334
390
|
|
|
335
|
-
@property
|
|
391
|
+
@_builtins.property
|
|
336
392
|
@pulumi.getter
|
|
337
393
|
def spec(self) -> pulumi.Output['outputs.GuestOsCustomizationSpec']:
|
|
338
394
|
"""
|
|
@@ -340,9 +396,9 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
340
396
|
"""
|
|
341
397
|
return pulumi.get(self, "spec")
|
|
342
398
|
|
|
343
|
-
@property
|
|
399
|
+
@_builtins.property
|
|
344
400
|
@pulumi.getter
|
|
345
|
-
def type(self) -> pulumi.Output[str]:
|
|
401
|
+
def type(self) -> pulumi.Output[_builtins.str]:
|
|
346
402
|
"""
|
|
347
403
|
The type of customization specification: One among: Windows, Linux.
|
|
348
404
|
"""
|