pulumi-vsphere 4.10.0a1709017641__py3-none-any.whl → 4.17.0a1763710194__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-vsphere might be problematic. Click here for more details.
- pulumi_vsphere/__init__.py +51 -1
- pulumi_vsphere/_inputs.py +2568 -1025
- pulumi_vsphere/_utilities.py +50 -10
- pulumi_vsphere/compute_cluster.py +1564 -2373
- pulumi_vsphere/compute_cluster_host_group.py +191 -55
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +157 -113
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +133 -89
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +314 -106
- pulumi_vsphere/compute_cluster_vm_group.py +256 -55
- pulumi_vsphere/compute_cluster_vm_host_rule.py +323 -123
- pulumi_vsphere/config/__init__.py +2 -1
- pulumi_vsphere/config/__init__.pyi +7 -2
- pulumi_vsphere/config/vars.py +20 -15
- pulumi_vsphere/configuration_profile.py +286 -0
- pulumi_vsphere/content_library.py +177 -71
- pulumi_vsphere/content_library_item.py +252 -106
- pulumi_vsphere/custom_attribute.py +118 -38
- pulumi_vsphere/datacenter.py +128 -107
- pulumi_vsphere/datastore_cluster.py +636 -731
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +251 -89
- pulumi_vsphere/distributed_port_group.py +1129 -967
- pulumi_vsphere/distributed_virtual_switch.py +1971 -2239
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +294 -0
- pulumi_vsphere/dpm_host_override.py +222 -72
- pulumi_vsphere/drs_vm_override.py +236 -72
- pulumi_vsphere/entity_permissions.py +96 -69
- pulumi_vsphere/file.py +173 -178
- pulumi_vsphere/folder.py +236 -113
- pulumi_vsphere/get_compute_cluster.py +34 -23
- pulumi_vsphere/get_compute_cluster_host_group.py +52 -41
- pulumi_vsphere/get_configuration_profile.py +145 -0
- pulumi_vsphere/get_content_library.py +33 -21
- pulumi_vsphere/get_content_library_item.py +47 -31
- pulumi_vsphere/get_custom_attribute.py +26 -17
- pulumi_vsphere/get_datacenter.py +40 -18
- pulumi_vsphere/get_datastore.py +60 -24
- pulumi_vsphere/get_datastore_cluster.py +47 -22
- pulumi_vsphere/get_datastore_stats.py +204 -0
- pulumi_vsphere/get_distributed_virtual_switch.py +36 -23
- pulumi_vsphere/get_dynamic.py +55 -45
- pulumi_vsphere/get_folder.py +163 -25
- pulumi_vsphere/get_guest_os_customization.py +68 -37
- pulumi_vsphere/get_host.py +34 -23
- pulumi_vsphere/get_host_base_images.py +104 -0
- pulumi_vsphere/get_host_pci_device.py +78 -35
- pulumi_vsphere/get_host_thumbprint.py +58 -38
- pulumi_vsphere/get_host_vgpu_profile.py +195 -0
- pulumi_vsphere/get_license.py +44 -28
- pulumi_vsphere/get_network.py +157 -46
- pulumi_vsphere/get_ovf_vm_template.py +184 -301
- pulumi_vsphere/get_policy.py +23 -15
- pulumi_vsphere/get_resource_pool.py +107 -40
- pulumi_vsphere/get_role.py +49 -35
- pulumi_vsphere/get_tag.py +34 -23
- pulumi_vsphere/get_tag_category.py +32 -21
- pulumi_vsphere/get_vapp_container.py +31 -21
- pulumi_vsphere/get_virtual_machine.py +499 -287
- pulumi_vsphere/get_vmfs_disks.py +42 -29
- pulumi_vsphere/guest_os_customization.py +135 -79
- pulumi_vsphere/ha_vm_override.py +470 -577
- pulumi_vsphere/host.py +515 -262
- pulumi_vsphere/host_port_group.py +352 -355
- pulumi_vsphere/host_virtual_switch.py +580 -580
- pulumi_vsphere/license.py +110 -92
- pulumi_vsphere/nas_datastore.py +398 -270
- pulumi_vsphere/offline_software_depot.py +190 -0
- pulumi_vsphere/outputs.py +1582 -1027
- pulumi_vsphere/provider.py +172 -152
- pulumi_vsphere/pulumi-plugin.json +2 -1
- pulumi_vsphere/resource_pool.py +357 -273
- pulumi_vsphere/role.py +79 -47
- pulumi_vsphere/storage_drs_vm_override.py +225 -89
- pulumi_vsphere/supervisor.py +1064 -0
- pulumi_vsphere/tag.py +217 -55
- pulumi_vsphere/tag_category.py +158 -72
- pulumi_vsphere/vapp_container.py +425 -259
- pulumi_vsphere/vapp_entity.py +324 -174
- pulumi_vsphere/virtual_disk.py +245 -153
- pulumi_vsphere/virtual_machine.py +1696 -1836
- pulumi_vsphere/virtual_machine_class.py +448 -0
- pulumi_vsphere/virtual_machine_snapshot.py +137 -131
- pulumi_vsphere/vm_storage_policy.py +160 -154
- pulumi_vsphere/vmfs_datastore.py +460 -186
- pulumi_vsphere/vnic.py +249 -231
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +7 -6
- pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.0a1709017641.dist-info/RECORD +0 -80
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +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 builtins as _builtins
|
|
5
6
|
import sys
|
|
6
7
|
from .vars import _ExportableConfig
|
|
7
8
|
|
|
@@ -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
|
allowUnverifiedSsl: Optional[bool]
|
pulumi_vsphere/config/vars.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
|
import types
|
|
@@ -15,88 +20,88 @@ __config__ = pulumi.Config('vsphere')
|
|
|
15
20
|
|
|
16
21
|
|
|
17
22
|
class _ExportableConfig(types.ModuleType):
|
|
18
|
-
@property
|
|
23
|
+
@_builtins.property
|
|
19
24
|
def allow_unverified_ssl(self) -> Optional[bool]:
|
|
20
25
|
"""
|
|
21
26
|
If set, VMware vSphere client will permit unverifiable SSL certificates.
|
|
22
27
|
"""
|
|
23
28
|
return __config__.get_bool('allowUnverifiedSsl') or _utilities.get_env_bool('VSPHERE_ALLOW_UNVERIFIED_SSL')
|
|
24
29
|
|
|
25
|
-
@property
|
|
30
|
+
@_builtins.property
|
|
26
31
|
def api_timeout(self) -> Optional[int]:
|
|
27
32
|
"""
|
|
28
33
|
API timeout in minutes (Default: 5)
|
|
29
34
|
"""
|
|
30
35
|
return __config__.get_int('apiTimeout')
|
|
31
36
|
|
|
32
|
-
@property
|
|
37
|
+
@_builtins.property
|
|
33
38
|
def client_debug(self) -> Optional[bool]:
|
|
34
39
|
"""
|
|
35
40
|
govmomi debug
|
|
36
41
|
"""
|
|
37
42
|
return __config__.get_bool('clientDebug') or _utilities.get_env_bool('VSPHERE_CLIENT_DEBUG')
|
|
38
43
|
|
|
39
|
-
@property
|
|
44
|
+
@_builtins.property
|
|
40
45
|
def client_debug_path(self) -> Optional[str]:
|
|
41
46
|
"""
|
|
42
47
|
govmomi debug path for debug
|
|
43
48
|
"""
|
|
44
49
|
return __config__.get('clientDebugPath') or _utilities.get_env('VSPHERE_CLIENT_DEBUG_PATH')
|
|
45
50
|
|
|
46
|
-
@property
|
|
51
|
+
@_builtins.property
|
|
47
52
|
def client_debug_path_run(self) -> Optional[str]:
|
|
48
53
|
"""
|
|
49
54
|
govmomi debug path for a single run
|
|
50
55
|
"""
|
|
51
56
|
return __config__.get('clientDebugPathRun') or _utilities.get_env('VSPHERE_CLIENT_DEBUG_PATH_RUN')
|
|
52
57
|
|
|
53
|
-
@property
|
|
58
|
+
@_builtins.property
|
|
54
59
|
def password(self) -> Optional[str]:
|
|
55
60
|
"""
|
|
56
61
|
The user password for vSphere API operations.
|
|
57
62
|
"""
|
|
58
63
|
return __config__.get('password')
|
|
59
64
|
|
|
60
|
-
@property
|
|
65
|
+
@_builtins.property
|
|
61
66
|
def persist_session(self) -> Optional[bool]:
|
|
62
67
|
"""
|
|
63
68
|
Persist vSphere client sessions to disk
|
|
64
69
|
"""
|
|
65
70
|
return __config__.get_bool('persistSession') or _utilities.get_env_bool('VSPHERE_PERSIST_SESSION')
|
|
66
71
|
|
|
67
|
-
@property
|
|
72
|
+
@_builtins.property
|
|
68
73
|
def rest_session_path(self) -> Optional[str]:
|
|
69
74
|
"""
|
|
70
75
|
The directory to save vSphere REST API sessions to
|
|
71
76
|
"""
|
|
72
77
|
return __config__.get('restSessionPath') or _utilities.get_env('VSPHERE_REST_SESSION_PATH')
|
|
73
78
|
|
|
74
|
-
@property
|
|
79
|
+
@_builtins.property
|
|
75
80
|
def user(self) -> Optional[str]:
|
|
76
81
|
"""
|
|
77
82
|
The user name for vSphere API operations.
|
|
78
83
|
"""
|
|
79
84
|
return __config__.get('user')
|
|
80
85
|
|
|
81
|
-
@property
|
|
86
|
+
@_builtins.property
|
|
82
87
|
def vcenter_server(self) -> Optional[str]:
|
|
83
88
|
return __config__.get('vcenterServer')
|
|
84
89
|
|
|
85
|
-
@property
|
|
90
|
+
@_builtins.property
|
|
86
91
|
def vim_keep_alive(self) -> Optional[int]:
|
|
87
92
|
"""
|
|
88
93
|
Keep alive interval for the VIM session in minutes
|
|
89
94
|
"""
|
|
90
95
|
return __config__.get_int('vimKeepAlive') or _utilities.get_env_int('VSPHERE_VIM_KEEP_ALIVE')
|
|
91
96
|
|
|
92
|
-
@property
|
|
97
|
+
@_builtins.property
|
|
93
98
|
def vim_session_path(self) -> Optional[str]:
|
|
94
99
|
"""
|
|
95
100
|
The directory to save vSphere SOAP API sessions to
|
|
96
101
|
"""
|
|
97
102
|
return __config__.get('vimSessionPath') or _utilities.get_env('VSPHERE_VIM_SESSION_PATH')
|
|
98
103
|
|
|
99
|
-
@property
|
|
104
|
+
@_builtins.property
|
|
100
105
|
def vsphere_server(self) -> Optional[str]:
|
|
101
106
|
"""
|
|
102
107
|
The vSphere Server name for vSphere API operations.
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
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
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = ['ConfigurationProfileArgs', 'ConfigurationProfile']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class ConfigurationProfileArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
cluster_id: pulumi.Input[_builtins.str],
|
|
23
|
+
configuration: Optional[pulumi.Input[_builtins.str]] = None,
|
|
24
|
+
reference_host_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
25
|
+
"""
|
|
26
|
+
The set of arguments for constructing a ConfigurationProfile resource.
|
|
27
|
+
:param pulumi.Input[_builtins.str] cluster_id: The identifier of the cluster.
|
|
28
|
+
:param pulumi.Input[_builtins.str] configuration: The configuration JSON provided as a plain string. This argument can only be specified if `reference_host_id` is not set.
|
|
29
|
+
:param pulumi.Input[_builtins.str] reference_host_id: The identifier of the host to use as a configuration source.
|
|
30
|
+
The host needs to be a member of the cluster identified by `cluster_id`. This argument can only be specified if
|
|
31
|
+
`configuration` is not set.
|
|
32
|
+
"""
|
|
33
|
+
pulumi.set(__self__, "cluster_id", cluster_id)
|
|
34
|
+
if configuration is not None:
|
|
35
|
+
pulumi.set(__self__, "configuration", configuration)
|
|
36
|
+
if reference_host_id is not None:
|
|
37
|
+
pulumi.set(__self__, "reference_host_id", reference_host_id)
|
|
38
|
+
|
|
39
|
+
@_builtins.property
|
|
40
|
+
@pulumi.getter(name="clusterId")
|
|
41
|
+
def cluster_id(self) -> pulumi.Input[_builtins.str]:
|
|
42
|
+
"""
|
|
43
|
+
The identifier of the cluster.
|
|
44
|
+
"""
|
|
45
|
+
return pulumi.get(self, "cluster_id")
|
|
46
|
+
|
|
47
|
+
@cluster_id.setter
|
|
48
|
+
def cluster_id(self, value: pulumi.Input[_builtins.str]):
|
|
49
|
+
pulumi.set(self, "cluster_id", value)
|
|
50
|
+
|
|
51
|
+
@_builtins.property
|
|
52
|
+
@pulumi.getter
|
|
53
|
+
def configuration(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
54
|
+
"""
|
|
55
|
+
The configuration JSON provided as a plain string. This argument can only be specified if `reference_host_id` is not set.
|
|
56
|
+
"""
|
|
57
|
+
return pulumi.get(self, "configuration")
|
|
58
|
+
|
|
59
|
+
@configuration.setter
|
|
60
|
+
def configuration(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
61
|
+
pulumi.set(self, "configuration", value)
|
|
62
|
+
|
|
63
|
+
@_builtins.property
|
|
64
|
+
@pulumi.getter(name="referenceHostId")
|
|
65
|
+
def reference_host_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
66
|
+
"""
|
|
67
|
+
The identifier of the host to use as a configuration source.
|
|
68
|
+
The host needs to be a member of the cluster identified by `cluster_id`. This argument can only be specified if
|
|
69
|
+
`configuration` is not set.
|
|
70
|
+
"""
|
|
71
|
+
return pulumi.get(self, "reference_host_id")
|
|
72
|
+
|
|
73
|
+
@reference_host_id.setter
|
|
74
|
+
def reference_host_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
75
|
+
pulumi.set(self, "reference_host_id", value)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
@pulumi.input_type
|
|
79
|
+
class _ConfigurationProfileState:
|
|
80
|
+
def __init__(__self__, *,
|
|
81
|
+
cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
82
|
+
configuration: Optional[pulumi.Input[_builtins.str]] = None,
|
|
83
|
+
reference_host_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
84
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None):
|
|
85
|
+
"""
|
|
86
|
+
Input properties used for looking up and filtering ConfigurationProfile resources.
|
|
87
|
+
:param pulumi.Input[_builtins.str] cluster_id: The identifier of the cluster.
|
|
88
|
+
:param pulumi.Input[_builtins.str] configuration: The configuration JSON provided as a plain string. This argument can only be specified if `reference_host_id` is not set.
|
|
89
|
+
:param pulumi.Input[_builtins.str] reference_host_id: The identifier of the host to use as a configuration source.
|
|
90
|
+
The host needs to be a member of the cluster identified by `cluster_id`. This argument can only be specified if
|
|
91
|
+
`configuration` is not set.
|
|
92
|
+
:param pulumi.Input[_builtins.str] schema: The JSON schema for the profile.
|
|
93
|
+
"""
|
|
94
|
+
if cluster_id is not None:
|
|
95
|
+
pulumi.set(__self__, "cluster_id", cluster_id)
|
|
96
|
+
if configuration is not None:
|
|
97
|
+
pulumi.set(__self__, "configuration", configuration)
|
|
98
|
+
if reference_host_id is not None:
|
|
99
|
+
pulumi.set(__self__, "reference_host_id", reference_host_id)
|
|
100
|
+
if schema is not None:
|
|
101
|
+
pulumi.set(__self__, "schema", schema)
|
|
102
|
+
|
|
103
|
+
@_builtins.property
|
|
104
|
+
@pulumi.getter(name="clusterId")
|
|
105
|
+
def cluster_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
106
|
+
"""
|
|
107
|
+
The identifier of the cluster.
|
|
108
|
+
"""
|
|
109
|
+
return pulumi.get(self, "cluster_id")
|
|
110
|
+
|
|
111
|
+
@cluster_id.setter
|
|
112
|
+
def cluster_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
113
|
+
pulumi.set(self, "cluster_id", value)
|
|
114
|
+
|
|
115
|
+
@_builtins.property
|
|
116
|
+
@pulumi.getter
|
|
117
|
+
def configuration(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
118
|
+
"""
|
|
119
|
+
The configuration JSON provided as a plain string. This argument can only be specified if `reference_host_id` is not set.
|
|
120
|
+
"""
|
|
121
|
+
return pulumi.get(self, "configuration")
|
|
122
|
+
|
|
123
|
+
@configuration.setter
|
|
124
|
+
def configuration(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
125
|
+
pulumi.set(self, "configuration", value)
|
|
126
|
+
|
|
127
|
+
@_builtins.property
|
|
128
|
+
@pulumi.getter(name="referenceHostId")
|
|
129
|
+
def reference_host_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
130
|
+
"""
|
|
131
|
+
The identifier of the host to use as a configuration source.
|
|
132
|
+
The host needs to be a member of the cluster identified by `cluster_id`. This argument can only be specified if
|
|
133
|
+
`configuration` is not set.
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "reference_host_id")
|
|
136
|
+
|
|
137
|
+
@reference_host_id.setter
|
|
138
|
+
def reference_host_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
139
|
+
pulumi.set(self, "reference_host_id", value)
|
|
140
|
+
|
|
141
|
+
@_builtins.property
|
|
142
|
+
@pulumi.getter
|
|
143
|
+
def schema(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
144
|
+
"""
|
|
145
|
+
The JSON schema for the profile.
|
|
146
|
+
"""
|
|
147
|
+
return pulumi.get(self, "schema")
|
|
148
|
+
|
|
149
|
+
@schema.setter
|
|
150
|
+
def schema(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
151
|
+
pulumi.set(self, "schema", value)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
@pulumi.type_token("vsphere:index/configurationProfile:ConfigurationProfile")
|
|
155
|
+
class ConfigurationProfile(pulumi.CustomResource):
|
|
156
|
+
@overload
|
|
157
|
+
def __init__(__self__,
|
|
158
|
+
resource_name: str,
|
|
159
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
160
|
+
cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
161
|
+
configuration: Optional[pulumi.Input[_builtins.str]] = None,
|
|
162
|
+
reference_host_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
163
|
+
__props__=None):
|
|
164
|
+
"""
|
|
165
|
+
Create a ConfigurationProfile resource with the given unique name, props, and options.
|
|
166
|
+
:param str resource_name: The name of the resource.
|
|
167
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
168
|
+
:param pulumi.Input[_builtins.str] cluster_id: The identifier of the cluster.
|
|
169
|
+
:param pulumi.Input[_builtins.str] configuration: The configuration JSON provided as a plain string. This argument can only be specified if `reference_host_id` is not set.
|
|
170
|
+
:param pulumi.Input[_builtins.str] reference_host_id: The identifier of the host to use as a configuration source.
|
|
171
|
+
The host needs to be a member of the cluster identified by `cluster_id`. This argument can only be specified if
|
|
172
|
+
`configuration` is not set.
|
|
173
|
+
"""
|
|
174
|
+
...
|
|
175
|
+
@overload
|
|
176
|
+
def __init__(__self__,
|
|
177
|
+
resource_name: str,
|
|
178
|
+
args: ConfigurationProfileArgs,
|
|
179
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
180
|
+
"""
|
|
181
|
+
Create a ConfigurationProfile resource with the given unique name, props, and options.
|
|
182
|
+
:param str resource_name: The name of the resource.
|
|
183
|
+
:param ConfigurationProfileArgs args: The arguments to use to populate this resource's properties.
|
|
184
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
185
|
+
"""
|
|
186
|
+
...
|
|
187
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
188
|
+
resource_args, opts = _utilities.get_resource_args_opts(ConfigurationProfileArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
189
|
+
if resource_args is not None:
|
|
190
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
191
|
+
else:
|
|
192
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
193
|
+
|
|
194
|
+
def _internal_init(__self__,
|
|
195
|
+
resource_name: str,
|
|
196
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
197
|
+
cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
198
|
+
configuration: Optional[pulumi.Input[_builtins.str]] = None,
|
|
199
|
+
reference_host_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
200
|
+
__props__=None):
|
|
201
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
202
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
203
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
204
|
+
if opts.id is None:
|
|
205
|
+
if __props__ is not None:
|
|
206
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
207
|
+
__props__ = ConfigurationProfileArgs.__new__(ConfigurationProfileArgs)
|
|
208
|
+
|
|
209
|
+
if cluster_id is None and not opts.urn:
|
|
210
|
+
raise TypeError("Missing required property 'cluster_id'")
|
|
211
|
+
__props__.__dict__["cluster_id"] = cluster_id
|
|
212
|
+
__props__.__dict__["configuration"] = configuration
|
|
213
|
+
__props__.__dict__["reference_host_id"] = reference_host_id
|
|
214
|
+
__props__.__dict__["schema"] = None
|
|
215
|
+
super(ConfigurationProfile, __self__).__init__(
|
|
216
|
+
'vsphere:index/configurationProfile:ConfigurationProfile',
|
|
217
|
+
resource_name,
|
|
218
|
+
__props__,
|
|
219
|
+
opts)
|
|
220
|
+
|
|
221
|
+
@staticmethod
|
|
222
|
+
def get(resource_name: str,
|
|
223
|
+
id: pulumi.Input[str],
|
|
224
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
225
|
+
cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
226
|
+
configuration: Optional[pulumi.Input[_builtins.str]] = None,
|
|
227
|
+
reference_host_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
228
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None) -> 'ConfigurationProfile':
|
|
229
|
+
"""
|
|
230
|
+
Get an existing ConfigurationProfile resource's state with the given name, id, and optional extra
|
|
231
|
+
properties used to qualify the lookup.
|
|
232
|
+
|
|
233
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
234
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
235
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
236
|
+
:param pulumi.Input[_builtins.str] cluster_id: The identifier of the cluster.
|
|
237
|
+
:param pulumi.Input[_builtins.str] configuration: The configuration JSON provided as a plain string. This argument can only be specified if `reference_host_id` is not set.
|
|
238
|
+
:param pulumi.Input[_builtins.str] reference_host_id: The identifier of the host to use as a configuration source.
|
|
239
|
+
The host needs to be a member of the cluster identified by `cluster_id`. This argument can only be specified if
|
|
240
|
+
`configuration` is not set.
|
|
241
|
+
:param pulumi.Input[_builtins.str] schema: The JSON schema for the profile.
|
|
242
|
+
"""
|
|
243
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
244
|
+
|
|
245
|
+
__props__ = _ConfigurationProfileState.__new__(_ConfigurationProfileState)
|
|
246
|
+
|
|
247
|
+
__props__.__dict__["cluster_id"] = cluster_id
|
|
248
|
+
__props__.__dict__["configuration"] = configuration
|
|
249
|
+
__props__.__dict__["reference_host_id"] = reference_host_id
|
|
250
|
+
__props__.__dict__["schema"] = schema
|
|
251
|
+
return ConfigurationProfile(resource_name, opts=opts, __props__=__props__)
|
|
252
|
+
|
|
253
|
+
@_builtins.property
|
|
254
|
+
@pulumi.getter(name="clusterId")
|
|
255
|
+
def cluster_id(self) -> pulumi.Output[_builtins.str]:
|
|
256
|
+
"""
|
|
257
|
+
The identifier of the cluster.
|
|
258
|
+
"""
|
|
259
|
+
return pulumi.get(self, "cluster_id")
|
|
260
|
+
|
|
261
|
+
@_builtins.property
|
|
262
|
+
@pulumi.getter
|
|
263
|
+
def configuration(self) -> pulumi.Output[_builtins.str]:
|
|
264
|
+
"""
|
|
265
|
+
The configuration JSON provided as a plain string. This argument can only be specified if `reference_host_id` is not set.
|
|
266
|
+
"""
|
|
267
|
+
return pulumi.get(self, "configuration")
|
|
268
|
+
|
|
269
|
+
@_builtins.property
|
|
270
|
+
@pulumi.getter(name="referenceHostId")
|
|
271
|
+
def reference_host_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
272
|
+
"""
|
|
273
|
+
The identifier of the host to use as a configuration source.
|
|
274
|
+
The host needs to be a member of the cluster identified by `cluster_id`. This argument can only be specified if
|
|
275
|
+
`configuration` is not set.
|
|
276
|
+
"""
|
|
277
|
+
return pulumi.get(self, "reference_host_id")
|
|
278
|
+
|
|
279
|
+
@_builtins.property
|
|
280
|
+
@pulumi.getter
|
|
281
|
+
def schema(self) -> pulumi.Output[_builtins.str]:
|
|
282
|
+
"""
|
|
283
|
+
The JSON schema for the profile.
|
|
284
|
+
"""
|
|
285
|
+
return pulumi.get(self, "schema")
|
|
286
|
+
|