pulumi-vsphere 4.11.4a1728462562__py3-none-any.whl → 4.12.0__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/_inputs.py +1135 -6
- pulumi_vsphere/_utilities.py +1 -1
- pulumi_vsphere/compute_cluster.py +5 -0
- pulumi_vsphere/compute_cluster_host_group.py +5 -0
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +5 -0
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +5 -0
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +5 -0
- pulumi_vsphere/compute_cluster_vm_group.py +5 -0
- pulumi_vsphere/compute_cluster_vm_host_rule.py +5 -0
- pulumi_vsphere/config/__init__.pyi +5 -0
- pulumi_vsphere/config/vars.py +5 -0
- pulumi_vsphere/content_library.py +5 -0
- pulumi_vsphere/content_library_item.py +5 -0
- pulumi_vsphere/custom_attribute.py +5 -0
- pulumi_vsphere/datacenter.py +5 -0
- pulumi_vsphere/datastore_cluster.py +5 -0
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +5 -0
- pulumi_vsphere/distributed_port_group.py +5 -0
- pulumi_vsphere/distributed_virtual_switch.py +5 -0
- pulumi_vsphere/dpm_host_override.py +5 -0
- pulumi_vsphere/drs_vm_override.py +5 -0
- pulumi_vsphere/entity_permissions.py +5 -0
- pulumi_vsphere/file.py +5 -0
- pulumi_vsphere/folder.py +5 -0
- pulumi_vsphere/get_compute_cluster.py +15 -4
- pulumi_vsphere/get_compute_cluster_host_group.py +15 -4
- pulumi_vsphere/get_content_library.py +12 -4
- pulumi_vsphere/get_content_library_item.py +16 -4
- pulumi_vsphere/get_custom_attribute.py +13 -4
- pulumi_vsphere/get_datacenter.py +29 -7
- pulumi_vsphere/get_datastore.py +16 -4
- pulumi_vsphere/get_datastore_cluster.py +30 -5
- pulumi_vsphere/get_datastore_stats.py +16 -4
- pulumi_vsphere/get_distributed_virtual_switch.py +15 -4
- pulumi_vsphere/get_dynamic.py +16 -4
- pulumi_vsphere/get_folder.py +12 -4
- pulumi_vsphere/get_guest_os_customization.py +17 -4
- pulumi_vsphere/get_host.py +15 -4
- pulumi_vsphere/get_host_base_images.py +11 -4
- pulumi_vsphere/get_host_pci_device.py +19 -4
- pulumi_vsphere/get_host_thumbprint.py +16 -4
- pulumi_vsphere/get_host_vgpu_profile.py +15 -4
- pulumi_vsphere/get_license.py +17 -4
- pulumi_vsphere/get_network.py +65 -5
- pulumi_vsphere/get_ovf_vm_template.py +55 -4
- pulumi_vsphere/get_policy.py +12 -4
- pulumi_vsphere/get_resource_pool.py +14 -4
- pulumi_vsphere/get_role.py +18 -4
- pulumi_vsphere/get_tag.py +15 -4
- pulumi_vsphere/get_tag_category.py +15 -4
- pulumi_vsphere/get_vapp_container.py +14 -4
- pulumi_vsphere/get_virtual_machine.py +145 -5
- pulumi_vsphere/get_vmfs_disks.py +17 -4
- pulumi_vsphere/guest_os_customization.py +5 -0
- pulumi_vsphere/ha_vm_override.py +5 -0
- pulumi_vsphere/host.py +5 -0
- pulumi_vsphere/host_port_group.py +5 -0
- pulumi_vsphere/host_virtual_switch.py +5 -0
- pulumi_vsphere/license.py +5 -0
- pulumi_vsphere/nas_datastore.py +5 -0
- pulumi_vsphere/offline_software_depot.py +5 -0
- pulumi_vsphere/outputs.py +45 -0
- pulumi_vsphere/provider.py +5 -0
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +5 -0
- pulumi_vsphere/role.py +5 -0
- pulumi_vsphere/storage_drs_vm_override.py +5 -0
- pulumi_vsphere/supervisor.py +5 -0
- pulumi_vsphere/tag.py +5 -0
- pulumi_vsphere/tag_category.py +5 -0
- pulumi_vsphere/vapp_container.py +5 -0
- pulumi_vsphere/vapp_entity.py +5 -0
- pulumi_vsphere/virtual_disk.py +5 -0
- pulumi_vsphere/virtual_machine.py +52 -0
- pulumi_vsphere/virtual_machine_class.py +5 -0
- pulumi_vsphere/virtual_machine_snapshot.py +5 -0
- pulumi_vsphere/vm_storage_policy.py +5 -0
- pulumi_vsphere/vmfs_datastore.py +5 -0
- pulumi_vsphere/vnic.py +5 -0
- {pulumi_vsphere-4.11.4a1728462562.dist-info → pulumi_vsphere-4.12.0.dist-info}/METADATA +3 -2
- pulumi_vsphere-4.12.0.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.11.4a1728462562.dist-info → pulumi_vsphere-4.12.0.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.11.4a1728462562.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.11.4a1728462562.dist-info → pulumi_vsphere-4.12.0.dist-info}/top_level.txt +0 -0
pulumi_vsphere/get_network.py
CHANGED
|
@@ -4,10 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
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
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
11
18
|
|
|
12
19
|
__all__ = [
|
|
13
20
|
'GetNetworkResult',
|
|
@@ -21,13 +28,16 @@ class GetNetworkResult:
|
|
|
21
28
|
"""
|
|
22
29
|
A collection of values returned by getNetwork.
|
|
23
30
|
"""
|
|
24
|
-
def __init__(__self__, datacenter_id=None, distributed_virtual_switch_uuid=None, id=None, name=None, type=None):
|
|
31
|
+
def __init__(__self__, datacenter_id=None, distributed_virtual_switch_uuid=None, filters=None, id=None, name=None, type=None):
|
|
25
32
|
if datacenter_id and not isinstance(datacenter_id, str):
|
|
26
33
|
raise TypeError("Expected argument 'datacenter_id' to be a str")
|
|
27
34
|
pulumi.set(__self__, "datacenter_id", datacenter_id)
|
|
28
35
|
if distributed_virtual_switch_uuid and not isinstance(distributed_virtual_switch_uuid, str):
|
|
29
36
|
raise TypeError("Expected argument 'distributed_virtual_switch_uuid' to be a str")
|
|
30
37
|
pulumi.set(__self__, "distributed_virtual_switch_uuid", distributed_virtual_switch_uuid)
|
|
38
|
+
if filters and not isinstance(filters, list):
|
|
39
|
+
raise TypeError("Expected argument 'filters' to be a list")
|
|
40
|
+
pulumi.set(__self__, "filters", filters)
|
|
31
41
|
if id and not isinstance(id, str):
|
|
32
42
|
raise TypeError("Expected argument 'id' to be a str")
|
|
33
43
|
pulumi.set(__self__, "id", id)
|
|
@@ -48,6 +58,11 @@ class GetNetworkResult:
|
|
|
48
58
|
def distributed_virtual_switch_uuid(self) -> Optional[str]:
|
|
49
59
|
return pulumi.get(self, "distributed_virtual_switch_uuid")
|
|
50
60
|
|
|
61
|
+
@property
|
|
62
|
+
@pulumi.getter
|
|
63
|
+
def filters(self) -> Optional[Sequence['outputs.GetNetworkFilterResult']]:
|
|
64
|
+
return pulumi.get(self, "filters")
|
|
65
|
+
|
|
51
66
|
@property
|
|
52
67
|
@pulumi.getter
|
|
53
68
|
def id(self) -> str:
|
|
@@ -81,6 +96,7 @@ class AwaitableGetNetworkResult(GetNetworkResult):
|
|
|
81
96
|
return GetNetworkResult(
|
|
82
97
|
datacenter_id=self.datacenter_id,
|
|
83
98
|
distributed_virtual_switch_uuid=self.distributed_virtual_switch_uuid,
|
|
99
|
+
filters=self.filters,
|
|
84
100
|
id=self.id,
|
|
85
101
|
name=self.name,
|
|
86
102
|
type=self.type)
|
|
@@ -88,6 +104,7 @@ class AwaitableGetNetworkResult(GetNetworkResult):
|
|
|
88
104
|
|
|
89
105
|
def get_network(datacenter_id: Optional[str] = None,
|
|
90
106
|
distributed_virtual_switch_uuid: Optional[str] = None,
|
|
107
|
+
filters: Optional[Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']]] = None,
|
|
91
108
|
name: Optional[str] = None,
|
|
92
109
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNetworkResult:
|
|
93
110
|
"""
|
|
@@ -108,6 +125,20 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
108
125
|
datacenter_id=datacenter.id)
|
|
109
126
|
```
|
|
110
127
|
|
|
128
|
+
### Additional Examples
|
|
129
|
+
|
|
130
|
+
```python
|
|
131
|
+
import pulumi
|
|
132
|
+
import pulumi_vsphere as vsphere
|
|
133
|
+
|
|
134
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
135
|
+
my_port_group = vsphere.get_network(datacenter_id=datacenter.id,
|
|
136
|
+
name="VM Network",
|
|
137
|
+
filters=[{
|
|
138
|
+
"network_type": "Network",
|
|
139
|
+
}])
|
|
140
|
+
```
|
|
141
|
+
|
|
111
142
|
|
|
112
143
|
:param str datacenter_id: The managed object reference ID
|
|
113
144
|
of the datacenter the network is located in. This can be omitted if the
|
|
@@ -117,11 +148,13 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
117
148
|
network objects, the ID of the distributed virtual switch for which the port
|
|
118
149
|
group belongs. It is useful to differentiate port groups with same name using
|
|
119
150
|
the distributed virtual switch ID.
|
|
151
|
+
:param Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']] filters: Apply a filter for the discovered network.
|
|
120
152
|
:param str name: The name of the network. This can be a name or path.
|
|
121
153
|
"""
|
|
122
154
|
__args__ = dict()
|
|
123
155
|
__args__['datacenterId'] = datacenter_id
|
|
124
156
|
__args__['distributedVirtualSwitchUuid'] = distributed_virtual_switch_uuid
|
|
157
|
+
__args__['filters'] = filters
|
|
125
158
|
__args__['name'] = name
|
|
126
159
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
127
160
|
__ret__ = pulumi.runtime.invoke('vsphere:index/getNetwork:getNetwork', __args__, opts=opts, typ=GetNetworkResult).value
|
|
@@ -129,14 +162,13 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
129
162
|
return AwaitableGetNetworkResult(
|
|
130
163
|
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
131
164
|
distributed_virtual_switch_uuid=pulumi.get(__ret__, 'distributed_virtual_switch_uuid'),
|
|
165
|
+
filters=pulumi.get(__ret__, 'filters'),
|
|
132
166
|
id=pulumi.get(__ret__, 'id'),
|
|
133
167
|
name=pulumi.get(__ret__, 'name'),
|
|
134
168
|
type=pulumi.get(__ret__, 'type'))
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
@_utilities.lift_output_func(get_network)
|
|
138
169
|
def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
139
170
|
distributed_virtual_switch_uuid: Optional[pulumi.Input[Optional[str]]] = None,
|
|
171
|
+
filters: Optional[pulumi.Input[Optional[Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']]]]] = None,
|
|
140
172
|
name: Optional[pulumi.Input[str]] = None,
|
|
141
173
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNetworkResult]:
|
|
142
174
|
"""
|
|
@@ -157,6 +189,20 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
157
189
|
datacenter_id=datacenter.id)
|
|
158
190
|
```
|
|
159
191
|
|
|
192
|
+
### Additional Examples
|
|
193
|
+
|
|
194
|
+
```python
|
|
195
|
+
import pulumi
|
|
196
|
+
import pulumi_vsphere as vsphere
|
|
197
|
+
|
|
198
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
199
|
+
my_port_group = vsphere.get_network(datacenter_id=datacenter.id,
|
|
200
|
+
name="VM Network",
|
|
201
|
+
filters=[{
|
|
202
|
+
"network_type": "Network",
|
|
203
|
+
}])
|
|
204
|
+
```
|
|
205
|
+
|
|
160
206
|
|
|
161
207
|
:param str datacenter_id: The managed object reference ID
|
|
162
208
|
of the datacenter the network is located in. This can be omitted if the
|
|
@@ -166,6 +212,20 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
166
212
|
network objects, the ID of the distributed virtual switch for which the port
|
|
167
213
|
group belongs. It is useful to differentiate port groups with same name using
|
|
168
214
|
the distributed virtual switch ID.
|
|
215
|
+
:param Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']] filters: Apply a filter for the discovered network.
|
|
169
216
|
:param str name: The name of the network. This can be a name or path.
|
|
170
217
|
"""
|
|
171
|
-
|
|
218
|
+
__args__ = dict()
|
|
219
|
+
__args__['datacenterId'] = datacenter_id
|
|
220
|
+
__args__['distributedVirtualSwitchUuid'] = distributed_virtual_switch_uuid
|
|
221
|
+
__args__['filters'] = filters
|
|
222
|
+
__args__['name'] = name
|
|
223
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
224
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getNetwork:getNetwork', __args__, opts=opts, typ=GetNetworkResult)
|
|
225
|
+
return __ret__.apply(lambda __response__: GetNetworkResult(
|
|
226
|
+
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
227
|
+
distributed_virtual_switch_uuid=pulumi.get(__response__, 'distributed_virtual_switch_uuid'),
|
|
228
|
+
filters=pulumi.get(__response__, 'filters'),
|
|
229
|
+
id=pulumi.get(__response__, 'id'),
|
|
230
|
+
name=pulumi.get(__response__, 'name'),
|
|
231
|
+
type=pulumi.get(__response__, 'type')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
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__ = [
|
|
@@ -468,9 +473,6 @@ def get_ovf_vm_template(allow_unverified_ssl_cert: Optional[bool] = None,
|
|
|
468
473
|
scsi_controller_count=pulumi.get(__ret__, 'scsi_controller_count'),
|
|
469
474
|
scsi_type=pulumi.get(__ret__, 'scsi_type'),
|
|
470
475
|
swap_placement_policy=pulumi.get(__ret__, 'swap_placement_policy'))
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
@_utilities.lift_output_func(get_ovf_vm_template)
|
|
474
476
|
def get_ovf_vm_template_output(allow_unverified_ssl_cert: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
475
477
|
datastore_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
476
478
|
deployment_option: Optional[pulumi.Input[Optional[str]]] = None,
|
|
@@ -523,4 +525,53 @@ def get_ovf_vm_template_output(allow_unverified_ssl_cert: Optional[pulumi.Input[
|
|
|
523
525
|
:param str resource_pool_id: The ID of a resource pool in which to place
|
|
524
526
|
the virtual machine.
|
|
525
527
|
"""
|
|
526
|
-
|
|
528
|
+
__args__ = dict()
|
|
529
|
+
__args__['allowUnverifiedSslCert'] = allow_unverified_ssl_cert
|
|
530
|
+
__args__['datastoreId'] = datastore_id
|
|
531
|
+
__args__['deploymentOption'] = deployment_option
|
|
532
|
+
__args__['diskProvisioning'] = disk_provisioning
|
|
533
|
+
__args__['enableHiddenProperties'] = enable_hidden_properties
|
|
534
|
+
__args__['folder'] = folder
|
|
535
|
+
__args__['hostSystemId'] = host_system_id
|
|
536
|
+
__args__['ipAllocationPolicy'] = ip_allocation_policy
|
|
537
|
+
__args__['ipProtocol'] = ip_protocol
|
|
538
|
+
__args__['localOvfPath'] = local_ovf_path
|
|
539
|
+
__args__['name'] = name
|
|
540
|
+
__args__['ovfNetworkMap'] = ovf_network_map
|
|
541
|
+
__args__['remoteOvfUrl'] = remote_ovf_url
|
|
542
|
+
__args__['resourcePoolId'] = resource_pool_id
|
|
543
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
544
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getOvfVmTemplate:getOvfVmTemplate', __args__, opts=opts, typ=GetOvfVmTemplateResult)
|
|
545
|
+
return __ret__.apply(lambda __response__: GetOvfVmTemplateResult(
|
|
546
|
+
allow_unverified_ssl_cert=pulumi.get(__response__, 'allow_unverified_ssl_cert'),
|
|
547
|
+
alternate_guest_name=pulumi.get(__response__, 'alternate_guest_name'),
|
|
548
|
+
annotation=pulumi.get(__response__, 'annotation'),
|
|
549
|
+
cpu_hot_add_enabled=pulumi.get(__response__, 'cpu_hot_add_enabled'),
|
|
550
|
+
cpu_hot_remove_enabled=pulumi.get(__response__, 'cpu_hot_remove_enabled'),
|
|
551
|
+
cpu_performance_counters_enabled=pulumi.get(__response__, 'cpu_performance_counters_enabled'),
|
|
552
|
+
datastore_id=pulumi.get(__response__, 'datastore_id'),
|
|
553
|
+
deployment_option=pulumi.get(__response__, 'deployment_option'),
|
|
554
|
+
disk_provisioning=pulumi.get(__response__, 'disk_provisioning'),
|
|
555
|
+
enable_hidden_properties=pulumi.get(__response__, 'enable_hidden_properties'),
|
|
556
|
+
firmware=pulumi.get(__response__, 'firmware'),
|
|
557
|
+
folder=pulumi.get(__response__, 'folder'),
|
|
558
|
+
guest_id=pulumi.get(__response__, 'guest_id'),
|
|
559
|
+
host_system_id=pulumi.get(__response__, 'host_system_id'),
|
|
560
|
+
id=pulumi.get(__response__, 'id'),
|
|
561
|
+
ide_controller_count=pulumi.get(__response__, 'ide_controller_count'),
|
|
562
|
+
ip_allocation_policy=pulumi.get(__response__, 'ip_allocation_policy'),
|
|
563
|
+
ip_protocol=pulumi.get(__response__, 'ip_protocol'),
|
|
564
|
+
local_ovf_path=pulumi.get(__response__, 'local_ovf_path'),
|
|
565
|
+
memory=pulumi.get(__response__, 'memory'),
|
|
566
|
+
memory_hot_add_enabled=pulumi.get(__response__, 'memory_hot_add_enabled'),
|
|
567
|
+
name=pulumi.get(__response__, 'name'),
|
|
568
|
+
nested_hv_enabled=pulumi.get(__response__, 'nested_hv_enabled'),
|
|
569
|
+
num_cores_per_socket=pulumi.get(__response__, 'num_cores_per_socket'),
|
|
570
|
+
num_cpus=pulumi.get(__response__, 'num_cpus'),
|
|
571
|
+
ovf_network_map=pulumi.get(__response__, 'ovf_network_map'),
|
|
572
|
+
remote_ovf_url=pulumi.get(__response__, 'remote_ovf_url'),
|
|
573
|
+
resource_pool_id=pulumi.get(__response__, 'resource_pool_id'),
|
|
574
|
+
sata_controller_count=pulumi.get(__response__, 'sata_controller_count'),
|
|
575
|
+
scsi_controller_count=pulumi.get(__response__, 'scsi_controller_count'),
|
|
576
|
+
scsi_type=pulumi.get(__response__, 'scsi_type'),
|
|
577
|
+
swap_placement_policy=pulumi.get(__response__, 'swap_placement_policy')))
|
pulumi_vsphere/get_policy.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
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__ = [
|
|
@@ -84,9 +89,6 @@ def get_policy(name: Optional[str] = None,
|
|
|
84
89
|
return AwaitableGetPolicyResult(
|
|
85
90
|
id=pulumi.get(__ret__, 'id'),
|
|
86
91
|
name=pulumi.get(__ret__, 'name'))
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
@_utilities.lift_output_func(get_policy)
|
|
90
92
|
def get_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
91
93
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPolicyResult]:
|
|
92
94
|
"""
|
|
@@ -110,4 +112,10 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
110
112
|
|
|
111
113
|
:param str name: The name of the storage policy.
|
|
112
114
|
"""
|
|
113
|
-
|
|
115
|
+
__args__ = dict()
|
|
116
|
+
__args__['name'] = name
|
|
117
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
118
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getPolicy:getPolicy', __args__, opts=opts, typ=GetPolicyResult)
|
|
119
|
+
return __ret__.apply(lambda __response__: GetPolicyResult(
|
|
120
|
+
id=pulumi.get(__response__, 'id'),
|
|
121
|
+
name=pulumi.get(__response__, 'name')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
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__ = [
|
|
@@ -129,9 +134,6 @@ def get_resource_pool(datacenter_id: Optional[str] = None,
|
|
|
129
134
|
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
130
135
|
id=pulumi.get(__ret__, 'id'),
|
|
131
136
|
name=pulumi.get(__ret__, 'name'))
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
@_utilities.lift_output_func(get_resource_pool)
|
|
135
137
|
def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
136
138
|
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
137
139
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetResourcePoolResult]:
|
|
@@ -189,4 +191,12 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
189
191
|
:param str name: The name of the resource pool. This can be a name or
|
|
190
192
|
path. This is required when using vCenter.
|
|
191
193
|
"""
|
|
192
|
-
|
|
194
|
+
__args__ = dict()
|
|
195
|
+
__args__['datacenterId'] = datacenter_id
|
|
196
|
+
__args__['name'] = name
|
|
197
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
198
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getResourcePool:getResourcePool', __args__, opts=opts, typ=GetResourcePoolResult)
|
|
199
|
+
return __ret__.apply(lambda __response__: GetResourcePoolResult(
|
|
200
|
+
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
201
|
+
id=pulumi.get(__response__, 'id'),
|
|
202
|
+
name=pulumi.get(__response__, 'name')))
|
pulumi_vsphere/get_role.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
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__ = [
|
|
@@ -126,9 +131,6 @@ def get_role(description: Optional[str] = None,
|
|
|
126
131
|
label=pulumi.get(__ret__, 'label'),
|
|
127
132
|
name=pulumi.get(__ret__, 'name'),
|
|
128
133
|
role_privileges=pulumi.get(__ret__, 'role_privileges'))
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
@_utilities.lift_output_func(get_role)
|
|
132
134
|
def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None,
|
|
133
135
|
label: Optional[pulumi.Input[str]] = None,
|
|
134
136
|
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
@@ -152,4 +154,16 @@ def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
152
154
|
:param str label: The label of the role.
|
|
153
155
|
:param Sequence[str] role_privileges: The privileges associated with the role.
|
|
154
156
|
"""
|
|
155
|
-
|
|
157
|
+
__args__ = dict()
|
|
158
|
+
__args__['description'] = description
|
|
159
|
+
__args__['label'] = label
|
|
160
|
+
__args__['name'] = name
|
|
161
|
+
__args__['rolePrivileges'] = role_privileges
|
|
162
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
163
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getRole:getRole', __args__, opts=opts, typ=GetRoleResult)
|
|
164
|
+
return __ret__.apply(lambda __response__: GetRoleResult(
|
|
165
|
+
description=pulumi.get(__response__, 'description'),
|
|
166
|
+
id=pulumi.get(__response__, 'id'),
|
|
167
|
+
label=pulumi.get(__response__, 'label'),
|
|
168
|
+
name=pulumi.get(__response__, 'name'),
|
|
169
|
+
role_privileges=pulumi.get(__response__, 'role_privileges')))
|
pulumi_vsphere/get_tag.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
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__ = [
|
|
@@ -111,9 +116,6 @@ def get_tag(category_id: Optional[str] = None,
|
|
|
111
116
|
description=pulumi.get(__ret__, 'description'),
|
|
112
117
|
id=pulumi.get(__ret__, 'id'),
|
|
113
118
|
name=pulumi.get(__ret__, 'name'))
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
@_utilities.lift_output_func(get_tag)
|
|
117
119
|
def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
|
|
118
120
|
name: Optional[pulumi.Input[str]] = None,
|
|
119
121
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTagResult]:
|
|
@@ -143,4 +145,13 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
|
|
|
143
145
|
located.
|
|
144
146
|
:param str name: The name of the tag.
|
|
145
147
|
"""
|
|
146
|
-
|
|
148
|
+
__args__ = dict()
|
|
149
|
+
__args__['categoryId'] = category_id
|
|
150
|
+
__args__['name'] = name
|
|
151
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
152
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getTag:getTag', __args__, opts=opts, typ=GetTagResult)
|
|
153
|
+
return __ret__.apply(lambda __response__: GetTagResult(
|
|
154
|
+
category_id=pulumi.get(__response__, 'category_id'),
|
|
155
|
+
description=pulumi.get(__response__, 'description'),
|
|
156
|
+
id=pulumi.get(__response__, 'id'),
|
|
157
|
+
name=pulumi.get(__response__, 'name')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
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__ = [
|
|
@@ -115,9 +120,6 @@ def get_tag_category(name: Optional[str] = None,
|
|
|
115
120
|
description=pulumi.get(__ret__, 'description'),
|
|
116
121
|
id=pulumi.get(__ret__, 'id'),
|
|
117
122
|
name=pulumi.get(__ret__, 'name'))
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
@_utilities.lift_output_func(get_tag_category)
|
|
121
123
|
def get_tag_category_output(name: Optional[pulumi.Input[str]] = None,
|
|
122
124
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTagCategoryResult]:
|
|
123
125
|
"""
|
|
@@ -142,4 +144,13 @@ def get_tag_category_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
142
144
|
|
|
143
145
|
:param str name: The name of the tag category.
|
|
144
146
|
"""
|
|
145
|
-
|
|
147
|
+
__args__ = dict()
|
|
148
|
+
__args__['name'] = name
|
|
149
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
150
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getTagCategory:getTagCategory', __args__, opts=opts, typ=GetTagCategoryResult)
|
|
151
|
+
return __ret__.apply(lambda __response__: GetTagCategoryResult(
|
|
152
|
+
associable_types=pulumi.get(__response__, 'associable_types'),
|
|
153
|
+
cardinality=pulumi.get(__response__, 'cardinality'),
|
|
154
|
+
description=pulumi.get(__response__, 'description'),
|
|
155
|
+
id=pulumi.get(__response__, 'id'),
|
|
156
|
+
name=pulumi.get(__response__, 'name')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
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__ = [
|
|
@@ -98,9 +103,6 @@ def get_vapp_container(datacenter_id: Optional[str] = None,
|
|
|
98
103
|
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
99
104
|
id=pulumi.get(__ret__, 'id'),
|
|
100
105
|
name=pulumi.get(__ret__, 'name'))
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
@_utilities.lift_output_func(get_vapp_container)
|
|
104
106
|
def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
105
107
|
name: Optional[pulumi.Input[str]] = None,
|
|
106
108
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetVappContainerResult]:
|
|
@@ -127,4 +129,12 @@ def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
|
127
129
|
:param str name: The name of the vApp container. This can be a name or
|
|
128
130
|
path.
|
|
129
131
|
"""
|
|
130
|
-
|
|
132
|
+
__args__ = dict()
|
|
133
|
+
__args__['datacenterId'] = datacenter_id
|
|
134
|
+
__args__['name'] = name
|
|
135
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
136
|
+
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getVappContainer:getVappContainer', __args__, opts=opts, typ=GetVappContainerResult)
|
|
137
|
+
return __ret__.apply(lambda __response__: GetVappContainerResult(
|
|
138
|
+
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
139
|
+
id=pulumi.get(__response__, 'id'),
|
|
140
|
+
name=pulumi.get(__response__, 'name')))
|