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,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__ = [
|
|
@@ -35,27 +40,27 @@ class GetContentLibraryItemResult:
|
|
|
35
40
|
raise TypeError("Expected argument 'type' to be a str")
|
|
36
41
|
pulumi.set(__self__, "type", type)
|
|
37
42
|
|
|
38
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
39
44
|
@pulumi.getter
|
|
40
|
-
def id(self) -> str:
|
|
45
|
+
def id(self) -> _builtins.str:
|
|
41
46
|
"""
|
|
42
47
|
The provider-assigned unique ID for this managed resource.
|
|
43
48
|
"""
|
|
44
49
|
return pulumi.get(self, "id")
|
|
45
50
|
|
|
46
|
-
@property
|
|
51
|
+
@_builtins.property
|
|
47
52
|
@pulumi.getter(name="libraryId")
|
|
48
|
-
def library_id(self) -> str:
|
|
53
|
+
def library_id(self) -> _builtins.str:
|
|
49
54
|
return pulumi.get(self, "library_id")
|
|
50
55
|
|
|
51
|
-
@property
|
|
56
|
+
@_builtins.property
|
|
52
57
|
@pulumi.getter
|
|
53
|
-
def name(self) -> str:
|
|
58
|
+
def name(self) -> _builtins.str:
|
|
54
59
|
return pulumi.get(self, "name")
|
|
55
60
|
|
|
56
|
-
@property
|
|
61
|
+
@_builtins.property
|
|
57
62
|
@pulumi.getter
|
|
58
|
-
def type(self) -> str:
|
|
63
|
+
def type(self) -> _builtins.str:
|
|
59
64
|
return pulumi.get(self, "type")
|
|
60
65
|
|
|
61
66
|
|
|
@@ -71,21 +76,23 @@ class AwaitableGetContentLibraryItemResult(GetContentLibraryItemResult):
|
|
|
71
76
|
type=self.type)
|
|
72
77
|
|
|
73
78
|
|
|
74
|
-
def get_content_library_item(library_id: Optional[str] = None,
|
|
75
|
-
name: Optional[str] = None,
|
|
76
|
-
type: Optional[str] = None,
|
|
79
|
+
def get_content_library_item(library_id: Optional[_builtins.str] = None,
|
|
80
|
+
name: Optional[_builtins.str] = None,
|
|
81
|
+
type: Optional[_builtins.str] = None,
|
|
77
82
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetContentLibraryItemResult:
|
|
78
83
|
"""
|
|
79
84
|
The `ContentLibraryItem` data source can be used to discover the ID
|
|
80
85
|
of a content library item.
|
|
81
86
|
|
|
82
|
-
> **NOTE:** This resource requires vCenter
|
|
83
|
-
|
|
87
|
+
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
88
|
+
host connections.
|
|
84
89
|
|
|
85
90
|
|
|
86
|
-
:param str library_id: The ID of the content library in which the item
|
|
87
|
-
|
|
88
|
-
:param str
|
|
91
|
+
:param _builtins.str library_id: The ID of the content library in which the item
|
|
92
|
+
exists.
|
|
93
|
+
:param _builtins.str name: The name of the content library item.
|
|
94
|
+
:param _builtins.str type: The type for the content library item. One of `ovf`,
|
|
95
|
+
`vm-template`, or `iso`
|
|
89
96
|
"""
|
|
90
97
|
__args__ = dict()
|
|
91
98
|
__args__['libraryId'] = library_id
|
|
@@ -99,23 +106,32 @@ def get_content_library_item(library_id: Optional[str] = None,
|
|
|
99
106
|
library_id=pulumi.get(__ret__, 'library_id'),
|
|
100
107
|
name=pulumi.get(__ret__, 'name'),
|
|
101
108
|
type=pulumi.get(__ret__, 'type'))
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
107
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
108
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetContentLibraryItemResult]:
|
|
109
|
+
def get_content_library_item_output(library_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
110
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
111
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
112
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetContentLibraryItemResult]:
|
|
109
113
|
"""
|
|
110
114
|
The `ContentLibraryItem` data source can be used to discover the ID
|
|
111
115
|
of a content library item.
|
|
112
116
|
|
|
113
|
-
> **NOTE:** This resource requires vCenter
|
|
114
|
-
|
|
117
|
+
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
118
|
+
host connections.
|
|
115
119
|
|
|
116
120
|
|
|
117
|
-
:param str library_id: The ID of the content library in which the item
|
|
118
|
-
|
|
119
|
-
:param str
|
|
121
|
+
:param _builtins.str library_id: The ID of the content library in which the item
|
|
122
|
+
exists.
|
|
123
|
+
:param _builtins.str name: The name of the content library item.
|
|
124
|
+
:param _builtins.str type: The type for the content library item. One of `ovf`,
|
|
125
|
+
`vm-template`, or `iso`
|
|
120
126
|
"""
|
|
121
|
-
|
|
127
|
+
__args__ = dict()
|
|
128
|
+
__args__['libraryId'] = library_id
|
|
129
|
+
__args__['name'] = name
|
|
130
|
+
__args__['type'] = type
|
|
131
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
132
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getContentLibraryItem:getContentLibraryItem', __args__, opts=opts, typ=GetContentLibraryItemResult)
|
|
133
|
+
return __ret__.apply(lambda __response__: GetContentLibraryItemResult(
|
|
134
|
+
id=pulumi.get(__response__, 'id'),
|
|
135
|
+
library_id=pulumi.get(__response__, 'library_id'),
|
|
136
|
+
name=pulumi.get(__response__, 'name'),
|
|
137
|
+
type=pulumi.get(__response__, 'type')))
|
|
@@ -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__ = [
|
|
@@ -32,22 +37,22 @@ class GetCustomAttributeResult:
|
|
|
32
37
|
raise TypeError("Expected argument 'name' to be a str")
|
|
33
38
|
pulumi.set(__self__, "name", name)
|
|
34
39
|
|
|
35
|
-
@property
|
|
40
|
+
@_builtins.property
|
|
36
41
|
@pulumi.getter
|
|
37
|
-
def id(self) -> str:
|
|
42
|
+
def id(self) -> _builtins.str:
|
|
38
43
|
"""
|
|
39
44
|
The provider-assigned unique ID for this managed resource.
|
|
40
45
|
"""
|
|
41
46
|
return pulumi.get(self, "id")
|
|
42
47
|
|
|
43
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
44
49
|
@pulumi.getter(name="managedObjectType")
|
|
45
|
-
def managed_object_type(self) -> str:
|
|
50
|
+
def managed_object_type(self) -> _builtins.str:
|
|
46
51
|
return pulumi.get(self, "managed_object_type")
|
|
47
52
|
|
|
48
|
-
@property
|
|
53
|
+
@_builtins.property
|
|
49
54
|
@pulumi.getter
|
|
50
|
-
def name(self) -> str:
|
|
55
|
+
def name(self) -> _builtins.str:
|
|
51
56
|
return pulumi.get(self, "name")
|
|
52
57
|
|
|
53
58
|
|
|
@@ -62,7 +67,7 @@ class AwaitableGetCustomAttributeResult(GetCustomAttributeResult):
|
|
|
62
67
|
name=self.name)
|
|
63
68
|
|
|
64
69
|
|
|
65
|
-
def get_custom_attribute(name: Optional[str] = None,
|
|
70
|
+
def get_custom_attribute(name: Optional[_builtins.str] = None,
|
|
66
71
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCustomAttributeResult:
|
|
67
72
|
"""
|
|
68
73
|
The `CustomAttribute` data source can be used to reference custom
|
|
@@ -84,7 +89,7 @@ def get_custom_attribute(name: Optional[str] = None,
|
|
|
84
89
|
```
|
|
85
90
|
|
|
86
91
|
|
|
87
|
-
:param str name: The name of the custom attribute.
|
|
92
|
+
:param _builtins.str name: The name of the custom attribute.
|
|
88
93
|
"""
|
|
89
94
|
__args__ = dict()
|
|
90
95
|
__args__['name'] = name
|
|
@@ -95,11 +100,8 @@ def get_custom_attribute(name: Optional[str] = None,
|
|
|
95
100
|
id=pulumi.get(__ret__, 'id'),
|
|
96
101
|
managed_object_type=pulumi.get(__ret__, 'managed_object_type'),
|
|
97
102
|
name=pulumi.get(__ret__, 'name'))
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
@_utilities.lift_output_func(get_custom_attribute)
|
|
101
|
-
def get_custom_attribute_output(name: Optional[pulumi.Input[str]] = None,
|
|
102
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCustomAttributeResult]:
|
|
103
|
+
def get_custom_attribute_output(name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
104
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCustomAttributeResult]:
|
|
103
105
|
"""
|
|
104
106
|
The `CustomAttribute` data source can be used to reference custom
|
|
105
107
|
attributes that are not managed by this provider. Its attributes are exactly the
|
|
@@ -120,6 +122,13 @@ def get_custom_attribute_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
120
122
|
```
|
|
121
123
|
|
|
122
124
|
|
|
123
|
-
:param str name: The name of the custom attribute.
|
|
125
|
+
:param _builtins.str name: The name of the custom attribute.
|
|
124
126
|
"""
|
|
125
|
-
|
|
127
|
+
__args__ = dict()
|
|
128
|
+
__args__['name'] = name
|
|
129
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
130
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getCustomAttribute:getCustomAttribute', __args__, opts=opts, typ=GetCustomAttributeResult)
|
|
131
|
+
return __ret__.apply(lambda __response__: GetCustomAttributeResult(
|
|
132
|
+
id=pulumi.get(__response__, 'id'),
|
|
133
|
+
managed_object_type=pulumi.get(__response__, 'managed_object_type'),
|
|
134
|
+
name=pulumi.get(__response__, 'name')))
|
pulumi_vsphere/get_datacenter.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__ = [
|
|
@@ -21,27 +26,38 @@ class GetDatacenterResult:
|
|
|
21
26
|
"""
|
|
22
27
|
A collection of values returned by getDatacenter.
|
|
23
28
|
"""
|
|
24
|
-
def __init__(__self__, id=None, name=None):
|
|
29
|
+
def __init__(__self__, id=None, name=None, virtual_machines=None):
|
|
25
30
|
if id and not isinstance(id, str):
|
|
26
31
|
raise TypeError("Expected argument 'id' to be a str")
|
|
27
32
|
pulumi.set(__self__, "id", id)
|
|
28
33
|
if name and not isinstance(name, str):
|
|
29
34
|
raise TypeError("Expected argument 'name' to be a str")
|
|
30
35
|
pulumi.set(__self__, "name", name)
|
|
36
|
+
if virtual_machines and not isinstance(virtual_machines, list):
|
|
37
|
+
raise TypeError("Expected argument 'virtual_machines' to be a list")
|
|
38
|
+
pulumi.set(__self__, "virtual_machines", virtual_machines)
|
|
31
39
|
|
|
32
|
-
@property
|
|
40
|
+
@_builtins.property
|
|
33
41
|
@pulumi.getter
|
|
34
|
-
def id(self) -> str:
|
|
42
|
+
def id(self) -> _builtins.str:
|
|
35
43
|
"""
|
|
36
44
|
The provider-assigned unique ID for this managed resource.
|
|
37
45
|
"""
|
|
38
46
|
return pulumi.get(self, "id")
|
|
39
47
|
|
|
40
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
41
49
|
@pulumi.getter
|
|
42
|
-
def name(self) -> Optional[str]:
|
|
50
|
+
def name(self) -> Optional[_builtins.str]:
|
|
43
51
|
return pulumi.get(self, "name")
|
|
44
52
|
|
|
53
|
+
@_builtins.property
|
|
54
|
+
@pulumi.getter(name="virtualMachines")
|
|
55
|
+
def virtual_machines(self) -> Sequence[_builtins.str]:
|
|
56
|
+
"""
|
|
57
|
+
List of all virtual machines included in the vSphere datacenter object.
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "virtual_machines")
|
|
60
|
+
|
|
45
61
|
|
|
46
62
|
class AwaitableGetDatacenterResult(GetDatacenterResult):
|
|
47
63
|
# pylint: disable=using-constant-test
|
|
@@ -50,10 +66,11 @@ class AwaitableGetDatacenterResult(GetDatacenterResult):
|
|
|
50
66
|
yield self
|
|
51
67
|
return GetDatacenterResult(
|
|
52
68
|
id=self.id,
|
|
53
|
-
name=self.name
|
|
69
|
+
name=self.name,
|
|
70
|
+
virtual_machines=self.virtual_machines)
|
|
54
71
|
|
|
55
72
|
|
|
56
|
-
def get_datacenter(name: Optional[str] = None,
|
|
73
|
+
def get_datacenter(name: Optional[_builtins.str] = None,
|
|
57
74
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatacenterResult:
|
|
58
75
|
"""
|
|
59
76
|
The `Datacenter` data source can be used to discover the ID of a
|
|
@@ -71,7 +88,7 @@ def get_datacenter(name: Optional[str] = None,
|
|
|
71
88
|
```
|
|
72
89
|
|
|
73
90
|
|
|
74
|
-
:param str name: The name of the datacenter. This can be a name or path.
|
|
91
|
+
:param _builtins.str name: The name of the datacenter. This can be a name or path.
|
|
75
92
|
Can be omitted if there is only one datacenter in the inventory.
|
|
76
93
|
|
|
77
94
|
> **NOTE:** When used with an ESXi host, this data source _always_ returns the
|
|
@@ -86,12 +103,10 @@ def get_datacenter(name: Optional[str] = None,
|
|
|
86
103
|
|
|
87
104
|
return AwaitableGetDatacenterResult(
|
|
88
105
|
id=pulumi.get(__ret__, 'id'),
|
|
89
|
-
name=pulumi.get(__ret__, 'name')
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
def get_datacenter_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
94
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatacenterResult]:
|
|
106
|
+
name=pulumi.get(__ret__, 'name'),
|
|
107
|
+
virtual_machines=pulumi.get(__ret__, 'virtual_machines'))
|
|
108
|
+
def get_datacenter_output(name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
109
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatacenterResult]:
|
|
95
110
|
"""
|
|
96
111
|
The `Datacenter` data source can be used to discover the ID of a
|
|
97
112
|
vSphere datacenter object. This can then be used with resources or data sources
|
|
@@ -108,7 +123,7 @@ def get_datacenter_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
108
123
|
```
|
|
109
124
|
|
|
110
125
|
|
|
111
|
-
:param str name: The name of the datacenter. This can be a name or path.
|
|
126
|
+
:param _builtins.str name: The name of the datacenter. This can be a name or path.
|
|
112
127
|
Can be omitted if there is only one datacenter in the inventory.
|
|
113
128
|
|
|
114
129
|
> **NOTE:** When used with an ESXi host, this data source _always_ returns the
|
|
@@ -116,4 +131,11 @@ def get_datacenter_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
116
131
|
datacenters that exist in the vSphere inventory when managed by a vCenter Server
|
|
117
132
|
instance. Hence, the `name` attribute is completely ignored.
|
|
118
133
|
"""
|
|
119
|
-
|
|
134
|
+
__args__ = dict()
|
|
135
|
+
__args__['name'] = name
|
|
136
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
137
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatacenter:getDatacenter', __args__, opts=opts, typ=GetDatacenterResult)
|
|
138
|
+
return __ret__.apply(lambda __response__: GetDatacenterResult(
|
|
139
|
+
id=pulumi.get(__response__, 'id'),
|
|
140
|
+
name=pulumi.get(__response__, 'name'),
|
|
141
|
+
virtual_machines=pulumi.get(__response__, 'virtual_machines')))
|
pulumi_vsphere/get_datastore.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__ = [
|
|
@@ -21,7 +26,7 @@ class GetDatastoreResult:
|
|
|
21
26
|
"""
|
|
22
27
|
A collection of values returned by getDatastore.
|
|
23
28
|
"""
|
|
24
|
-
def __init__(__self__, datacenter_id=None, id=None, name=None):
|
|
29
|
+
def __init__(__self__, datacenter_id=None, id=None, name=None, stats=None):
|
|
25
30
|
if datacenter_id and not isinstance(datacenter_id, str):
|
|
26
31
|
raise TypeError("Expected argument 'datacenter_id' to be a str")
|
|
27
32
|
pulumi.set(__self__, "datacenter_id", datacenter_id)
|
|
@@ -31,25 +36,38 @@ class GetDatastoreResult:
|
|
|
31
36
|
if name and not isinstance(name, str):
|
|
32
37
|
raise TypeError("Expected argument 'name' to be a str")
|
|
33
38
|
pulumi.set(__self__, "name", name)
|
|
39
|
+
if stats and not isinstance(stats, dict):
|
|
40
|
+
raise TypeError("Expected argument 'stats' to be a dict")
|
|
41
|
+
pulumi.set(__self__, "stats", stats)
|
|
34
42
|
|
|
35
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
36
44
|
@pulumi.getter(name="datacenterId")
|
|
37
|
-
def datacenter_id(self) -> Optional[str]:
|
|
45
|
+
def datacenter_id(self) -> Optional[_builtins.str]:
|
|
38
46
|
return pulumi.get(self, "datacenter_id")
|
|
39
47
|
|
|
40
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
41
49
|
@pulumi.getter
|
|
42
|
-
def id(self) -> str:
|
|
50
|
+
def id(self) -> _builtins.str:
|
|
43
51
|
"""
|
|
44
52
|
The provider-assigned unique ID for this managed resource.
|
|
45
53
|
"""
|
|
46
54
|
return pulumi.get(self, "id")
|
|
47
55
|
|
|
48
|
-
@property
|
|
56
|
+
@_builtins.property
|
|
49
57
|
@pulumi.getter
|
|
50
|
-
def name(self) -> str:
|
|
58
|
+
def name(self) -> _builtins.str:
|
|
51
59
|
return pulumi.get(self, "name")
|
|
52
60
|
|
|
61
|
+
@_builtins.property
|
|
62
|
+
@pulumi.getter
|
|
63
|
+
def stats(self) -> Optional[Mapping[str, _builtins.str]]:
|
|
64
|
+
"""
|
|
65
|
+
The disk space usage statistics for the specific datastore. The
|
|
66
|
+
total datastore capacity is represented as `capacity` and the free remaining
|
|
67
|
+
disk is represented as `free`.
|
|
68
|
+
"""
|
|
69
|
+
return pulumi.get(self, "stats")
|
|
70
|
+
|
|
53
71
|
|
|
54
72
|
class AwaitableGetDatastoreResult(GetDatastoreResult):
|
|
55
73
|
# pylint: disable=using-constant-test
|
|
@@ -59,11 +77,13 @@ class AwaitableGetDatastoreResult(GetDatastoreResult):
|
|
|
59
77
|
return GetDatastoreResult(
|
|
60
78
|
datacenter_id=self.datacenter_id,
|
|
61
79
|
id=self.id,
|
|
62
|
-
name=self.name
|
|
80
|
+
name=self.name,
|
|
81
|
+
stats=self.stats)
|
|
63
82
|
|
|
64
83
|
|
|
65
|
-
def get_datastore(datacenter_id: Optional[str] = None,
|
|
66
|
-
name: Optional[str] = None,
|
|
84
|
+
def get_datastore(datacenter_id: Optional[_builtins.str] = None,
|
|
85
|
+
name: Optional[_builtins.str] = None,
|
|
86
|
+
stats: Optional[Mapping[str, _builtins.str]] = None,
|
|
67
87
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreResult:
|
|
68
88
|
"""
|
|
69
89
|
The `get_datastore` data source can be used to discover the ID of a
|
|
@@ -83,28 +103,31 @@ def get_datastore(datacenter_id: Optional[str] = None,
|
|
|
83
103
|
```
|
|
84
104
|
|
|
85
105
|
|
|
86
|
-
:param str datacenter_id: The managed object reference ID
|
|
106
|
+
:param _builtins.str datacenter_id: The managed object reference ID
|
|
87
107
|
of the datacenter the datastore is located in. This can be omitted if the
|
|
88
108
|
search path used in `name` is an absolute path. For default datacenters, use
|
|
89
109
|
the `id` attribute from an empty `Datacenter` data source.
|
|
90
|
-
:param str name: The name of the datastore. This can be a name or path.
|
|
110
|
+
:param _builtins.str name: The name of the datastore. This can be a name or path.
|
|
111
|
+
:param Mapping[str, _builtins.str] stats: The disk space usage statistics for the specific datastore. The
|
|
112
|
+
total datastore capacity is represented as `capacity` and the free remaining
|
|
113
|
+
disk is represented as `free`.
|
|
91
114
|
"""
|
|
92
115
|
__args__ = dict()
|
|
93
116
|
__args__['datacenterId'] = datacenter_id
|
|
94
117
|
__args__['name'] = name
|
|
118
|
+
__args__['stats'] = stats
|
|
95
119
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
96
120
|
__ret__ = pulumi.runtime.invoke('vsphere:index/getDatastore:getDatastore', __args__, opts=opts, typ=GetDatastoreResult).value
|
|
97
121
|
|
|
98
122
|
return AwaitableGetDatastoreResult(
|
|
99
123
|
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
100
124
|
id=pulumi.get(__ret__, 'id'),
|
|
101
|
-
name=pulumi.get(__ret__, 'name')
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreResult]:
|
|
125
|
+
name=pulumi.get(__ret__, 'name'),
|
|
126
|
+
stats=pulumi.get(__ret__, 'stats'))
|
|
127
|
+
def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
128
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
129
|
+
stats: Optional[pulumi.Input[Optional[Mapping[str, _builtins.str]]]] = None,
|
|
130
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatastoreResult]:
|
|
108
131
|
"""
|
|
109
132
|
The `get_datastore` data source can be used to discover the ID of a
|
|
110
133
|
vSphere datastore object. This can then be used with resources or data sources
|
|
@@ -123,10 +146,23 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
|
|
|
123
146
|
```
|
|
124
147
|
|
|
125
148
|
|
|
126
|
-
:param str datacenter_id: The managed object reference ID
|
|
149
|
+
:param _builtins.str datacenter_id: The managed object reference ID
|
|
127
150
|
of the datacenter the datastore is located in. This can be omitted if the
|
|
128
151
|
search path used in `name` is an absolute path. For default datacenters, use
|
|
129
152
|
the `id` attribute from an empty `Datacenter` data source.
|
|
130
|
-
:param str name: The name of the datastore. This can be a name or path.
|
|
153
|
+
:param _builtins.str name: The name of the datastore. This can be a name or path.
|
|
154
|
+
:param Mapping[str, _builtins.str] stats: The disk space usage statistics for the specific datastore. The
|
|
155
|
+
total datastore capacity is represented as `capacity` and the free remaining
|
|
156
|
+
disk is represented as `free`.
|
|
131
157
|
"""
|
|
132
|
-
|
|
158
|
+
__args__ = dict()
|
|
159
|
+
__args__['datacenterId'] = datacenter_id
|
|
160
|
+
__args__['name'] = name
|
|
161
|
+
__args__['stats'] = stats
|
|
162
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
163
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatastore:getDatastore', __args__, opts=opts, typ=GetDatastoreResult)
|
|
164
|
+
return __ret__.apply(lambda __response__: GetDatastoreResult(
|
|
165
|
+
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
166
|
+
id=pulumi.get(__response__, 'id'),
|
|
167
|
+
name=pulumi.get(__response__, 'name'),
|
|
168
|
+
stats=pulumi.get(__response__, 'stats')))
|
|
@@ -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__ = [
|
|
@@ -21,10 +26,13 @@ class GetDatastoreClusterResult:
|
|
|
21
26
|
"""
|
|
22
27
|
A collection of values returned by getDatastoreCluster.
|
|
23
28
|
"""
|
|
24
|
-
def __init__(__self__, datacenter_id=None, id=None, name=None):
|
|
29
|
+
def __init__(__self__, datacenter_id=None, datastores=None, id=None, name=None):
|
|
25
30
|
if datacenter_id and not isinstance(datacenter_id, str):
|
|
26
31
|
raise TypeError("Expected argument 'datacenter_id' to be a str")
|
|
27
32
|
pulumi.set(__self__, "datacenter_id", datacenter_id)
|
|
33
|
+
if datastores and not isinstance(datastores, list):
|
|
34
|
+
raise TypeError("Expected argument 'datastores' to be a list")
|
|
35
|
+
pulumi.set(__self__, "datastores", datastores)
|
|
28
36
|
if id and not isinstance(id, str):
|
|
29
37
|
raise TypeError("Expected argument 'id' to be a str")
|
|
30
38
|
pulumi.set(__self__, "id", id)
|
|
@@ -32,22 +40,31 @@ class GetDatastoreClusterResult:
|
|
|
32
40
|
raise TypeError("Expected argument 'name' to be a str")
|
|
33
41
|
pulumi.set(__self__, "name", name)
|
|
34
42
|
|
|
35
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
36
44
|
@pulumi.getter(name="datacenterId")
|
|
37
|
-
def datacenter_id(self) -> Optional[str]:
|
|
45
|
+
def datacenter_id(self) -> Optional[_builtins.str]:
|
|
38
46
|
return pulumi.get(self, "datacenter_id")
|
|
39
47
|
|
|
40
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
41
49
|
@pulumi.getter
|
|
42
|
-
def
|
|
50
|
+
def datastores(self) -> Sequence[_builtins.str]:
|
|
51
|
+
"""
|
|
52
|
+
(Optional) The names of the datastores included in the specific
|
|
53
|
+
cluster.
|
|
54
|
+
"""
|
|
55
|
+
return pulumi.get(self, "datastores")
|
|
56
|
+
|
|
57
|
+
@_builtins.property
|
|
58
|
+
@pulumi.getter
|
|
59
|
+
def id(self) -> _builtins.str:
|
|
43
60
|
"""
|
|
44
61
|
The provider-assigned unique ID for this managed resource.
|
|
45
62
|
"""
|
|
46
63
|
return pulumi.get(self, "id")
|
|
47
64
|
|
|
48
|
-
@property
|
|
65
|
+
@_builtins.property
|
|
49
66
|
@pulumi.getter
|
|
50
|
-
def name(self) -> str:
|
|
67
|
+
def name(self) -> _builtins.str:
|
|
51
68
|
return pulumi.get(self, "name")
|
|
52
69
|
|
|
53
70
|
|
|
@@ -58,12 +75,13 @@ class AwaitableGetDatastoreClusterResult(GetDatastoreClusterResult):
|
|
|
58
75
|
yield self
|
|
59
76
|
return GetDatastoreClusterResult(
|
|
60
77
|
datacenter_id=self.datacenter_id,
|
|
78
|
+
datastores=self.datastores,
|
|
61
79
|
id=self.id,
|
|
62
80
|
name=self.name)
|
|
63
81
|
|
|
64
82
|
|
|
65
|
-
def get_datastore_cluster(datacenter_id: Optional[str] = None,
|
|
66
|
-
name: Optional[str] = None,
|
|
83
|
+
def get_datastore_cluster(datacenter_id: Optional[_builtins.str] = None,
|
|
84
|
+
name: Optional[_builtins.str] = None,
|
|
67
85
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreClusterResult:
|
|
68
86
|
"""
|
|
69
87
|
The `DatastoreCluster` data source can be used to discover the ID of a
|
|
@@ -83,12 +101,12 @@ def get_datastore_cluster(datacenter_id: Optional[str] = None,
|
|
|
83
101
|
```
|
|
84
102
|
|
|
85
103
|
|
|
86
|
-
:param str datacenter_id: The managed object reference
|
|
104
|
+
:param _builtins.str datacenter_id: The managed object reference
|
|
87
105
|
ID of the datacenter the datastore cluster is located in.
|
|
88
106
|
This can be omitted if the search path used in `name` is an absolute path.
|
|
89
107
|
For default datacenters, use the id attribute from an empty
|
|
90
108
|
`Datacenter` data source.
|
|
91
|
-
:param str name: The name or absolute path to the datastore cluster.
|
|
109
|
+
:param _builtins.str name: The name or absolute path to the datastore cluster.
|
|
92
110
|
"""
|
|
93
111
|
__args__ = dict()
|
|
94
112
|
__args__['datacenterId'] = datacenter_id
|
|
@@ -98,14 +116,12 @@ def get_datastore_cluster(datacenter_id: Optional[str] = None,
|
|
|
98
116
|
|
|
99
117
|
return AwaitableGetDatastoreClusterResult(
|
|
100
118
|
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
119
|
+
datastores=pulumi.get(__ret__, 'datastores'),
|
|
101
120
|
id=pulumi.get(__ret__, 'id'),
|
|
102
121
|
name=pulumi.get(__ret__, 'name'))
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
107
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
108
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreClusterResult]:
|
|
122
|
+
def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
123
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
124
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatastoreClusterResult]:
|
|
109
125
|
"""
|
|
110
126
|
The `DatastoreCluster` data source can be used to discover the ID of a
|
|
111
127
|
vSphere datastore cluster object. This can then be used with resources or data sources
|
|
@@ -124,11 +140,20 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s
|
|
|
124
140
|
```
|
|
125
141
|
|
|
126
142
|
|
|
127
|
-
:param str datacenter_id: The managed object reference
|
|
143
|
+
:param _builtins.str datacenter_id: The managed object reference
|
|
128
144
|
ID of the datacenter the datastore cluster is located in.
|
|
129
145
|
This can be omitted if the search path used in `name` is an absolute path.
|
|
130
146
|
For default datacenters, use the id attribute from an empty
|
|
131
147
|
`Datacenter` data source.
|
|
132
|
-
:param str name: The name or absolute path to the datastore cluster.
|
|
148
|
+
:param _builtins.str name: The name or absolute path to the datastore cluster.
|
|
133
149
|
"""
|
|
134
|
-
|
|
150
|
+
__args__ = dict()
|
|
151
|
+
__args__['datacenterId'] = datacenter_id
|
|
152
|
+
__args__['name'] = name
|
|
153
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
154
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatastoreCluster:getDatastoreCluster', __args__, opts=opts, typ=GetDatastoreClusterResult)
|
|
155
|
+
return __ret__.apply(lambda __response__: GetDatastoreClusterResult(
|
|
156
|
+
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
157
|
+
datastores=pulumi.get(__response__, 'datastores'),
|
|
158
|
+
id=pulumi.get(__response__, 'id'),
|
|
159
|
+
name=pulumi.get(__response__, 'name')))
|