pulumi-vsphere 4.11.5__py3-none-any.whl → 4.12.0a1725603256__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 +5 -1066
- pulumi_vsphere/_utilities.py +1 -1
- pulumi_vsphere/compute_cluster.py +2 -181
- pulumi_vsphere/compute_cluster_host_group.py +2 -67
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +2 -29
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +2 -41
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +2 -205
- pulumi_vsphere/compute_cluster_vm_group.py +2 -198
- pulumi_vsphere/compute_cluster_vm_host_rule.py +2 -73
- pulumi_vsphere/config/__init__.pyi +0 -5
- pulumi_vsphere/config/vars.py +0 -5
- pulumi_vsphere/content_library.py +2 -103
- pulumi_vsphere/content_library_item.py +2 -143
- pulumi_vsphere/custom_attribute.py +2 -77
- pulumi_vsphere/datacenter.py +4 -19
- pulumi_vsphere/datastore_cluster.py +2 -63
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +2 -159
- pulumi_vsphere/distributed_port_group.py +2 -285
- pulumi_vsphere/distributed_virtual_switch.py +2 -261
- pulumi_vsphere/dpm_host_override.py +2 -63
- pulumi_vsphere/drs_vm_override.py +2 -67
- pulumi_vsphere/entity_permissions.py +0 -5
- pulumi_vsphere/file.py +0 -5
- pulumi_vsphere/folder.py +2 -141
- pulumi_vsphere/get_compute_cluster.py +4 -15
- pulumi_vsphere/get_compute_cluster_host_group.py +6 -17
- pulumi_vsphere/get_content_library.py +4 -12
- pulumi_vsphere/get_content_library_item.py +4 -16
- pulumi_vsphere/get_custom_attribute.py +4 -13
- pulumi_vsphere/get_datacenter.py +4 -12
- pulumi_vsphere/get_datastore.py +4 -16
- pulumi_vsphere/get_datastore_cluster.py +4 -14
- pulumi_vsphere/get_datastore_stats.py +4 -16
- pulumi_vsphere/get_distributed_virtual_switch.py +4 -15
- pulumi_vsphere/get_dynamic.py +4 -16
- pulumi_vsphere/get_folder.py +4 -12
- pulumi_vsphere/get_guest_os_customization.py +4 -17
- pulumi_vsphere/get_host.py +4 -15
- pulumi_vsphere/get_host_base_images.py +4 -11
- pulumi_vsphere/get_host_pci_device.py +4 -19
- pulumi_vsphere/get_host_thumbprint.py +14 -34
- pulumi_vsphere/get_host_vgpu_profile.py +4 -15
- pulumi_vsphere/get_license.py +4 -17
- pulumi_vsphere/get_network.py +4 -17
- pulumi_vsphere/get_ovf_vm_template.py +4 -55
- pulumi_vsphere/get_policy.py +4 -12
- pulumi_vsphere/get_resource_pool.py +4 -14
- pulumi_vsphere/get_role.py +4 -18
- pulumi_vsphere/get_tag.py +4 -15
- pulumi_vsphere/get_tag_category.py +4 -15
- pulumi_vsphere/get_vapp_container.py +4 -14
- pulumi_vsphere/get_virtual_machine.py +4 -130
- pulumi_vsphere/get_vmfs_disks.py +4 -17
- pulumi_vsphere/guest_os_customization.py +0 -5
- pulumi_vsphere/ha_vm_override.py +2 -163
- pulumi_vsphere/host.py +12 -203
- pulumi_vsphere/host_port_group.py +2 -17
- pulumi_vsphere/host_virtual_switch.py +2 -69
- pulumi_vsphere/license.py +0 -5
- pulumi_vsphere/nas_datastore.py +2 -67
- pulumi_vsphere/offline_software_depot.py +0 -5
- pulumi_vsphere/outputs.py +0 -5
- pulumi_vsphere/provider.py +0 -5
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +437 -168
- pulumi_vsphere/role.py +2 -33
- pulumi_vsphere/storage_drs_vm_override.py +2 -133
- pulumi_vsphere/supervisor.py +0 -5
- pulumi_vsphere/tag.py +2 -159
- pulumi_vsphere/tag_category.py +2 -83
- pulumi_vsphere/vapp_container.py +2 -163
- pulumi_vsphere/vapp_entity.py +2 -147
- pulumi_vsphere/virtual_disk.py +2 -81
- pulumi_vsphere/virtual_machine.py +2 -53
- pulumi_vsphere/virtual_machine_class.py +0 -5
- pulumi_vsphere/virtual_machine_snapshot.py +0 -5
- pulumi_vsphere/vm_storage_policy.py +0 -5
- pulumi_vsphere/vmfs_datastore.py +2 -271
- pulumi_vsphere/vnic.py +4 -19
- {pulumi_vsphere-4.11.5.dist-info → pulumi_vsphere-4.12.0a1725603256.dist-info}/METADATA +2 -3
- pulumi_vsphere-4.12.0a1725603256.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.11.5.dist-info → pulumi_vsphere-4.12.0a1725603256.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.11.5.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.11.5.dist-info → pulumi_vsphere-4.12.0a1725603256.dist-info}/top_level.txt +0 -0
pulumi_vsphere/get_role.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = [
|
|
@@ -131,6 +126,9 @@ def get_role(description: Optional[str] = None,
|
|
|
131
126
|
label=pulumi.get(__ret__, 'label'),
|
|
132
127
|
name=pulumi.get(__ret__, 'name'),
|
|
133
128
|
role_privileges=pulumi.get(__ret__, 'role_privileges'))
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
@_utilities.lift_output_func(get_role)
|
|
134
132
|
def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None,
|
|
135
133
|
label: Optional[pulumi.Input[str]] = None,
|
|
136
134
|
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
@@ -154,16 +152,4 @@ def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
154
152
|
:param str label: The label of the role.
|
|
155
153
|
:param Sequence[str] role_privileges: The privileges associated with the role.
|
|
156
154
|
"""
|
|
157
|
-
|
|
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')))
|
|
155
|
+
...
|
pulumi_vsphere/get_tag.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = [
|
|
@@ -116,6 +111,9 @@ def get_tag(category_id: Optional[str] = None,
|
|
|
116
111
|
description=pulumi.get(__ret__, 'description'),
|
|
117
112
|
id=pulumi.get(__ret__, 'id'),
|
|
118
113
|
name=pulumi.get(__ret__, 'name'))
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
@_utilities.lift_output_func(get_tag)
|
|
119
117
|
def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
|
|
120
118
|
name: Optional[pulumi.Input[str]] = None,
|
|
121
119
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTagResult]:
|
|
@@ -145,13 +143,4 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
|
|
|
145
143
|
located.
|
|
146
144
|
:param str name: The name of the tag.
|
|
147
145
|
"""
|
|
148
|
-
|
|
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')))
|
|
146
|
+
...
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = [
|
|
@@ -120,6 +115,9 @@ def get_tag_category(name: Optional[str] = None,
|
|
|
120
115
|
description=pulumi.get(__ret__, 'description'),
|
|
121
116
|
id=pulumi.get(__ret__, 'id'),
|
|
122
117
|
name=pulumi.get(__ret__, 'name'))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
@_utilities.lift_output_func(get_tag_category)
|
|
123
121
|
def get_tag_category_output(name: Optional[pulumi.Input[str]] = None,
|
|
124
122
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTagCategoryResult]:
|
|
125
123
|
"""
|
|
@@ -144,13 +142,4 @@ def get_tag_category_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
144
142
|
|
|
145
143
|
:param str name: The name of the tag category.
|
|
146
144
|
"""
|
|
147
|
-
|
|
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')))
|
|
145
|
+
...
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = [
|
|
@@ -103,6 +98,9 @@ def get_vapp_container(datacenter_id: Optional[str] = None,
|
|
|
103
98
|
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
104
99
|
id=pulumi.get(__ret__, 'id'),
|
|
105
100
|
name=pulumi.get(__ret__, 'name'))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
@_utilities.lift_output_func(get_vapp_container)
|
|
106
104
|
def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
107
105
|
name: Optional[pulumi.Input[str]] = None,
|
|
108
106
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetVappContainerResult]:
|
|
@@ -129,12 +127,4 @@ def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
|
129
127
|
:param str name: The name of the vApp container. This can be a name or
|
|
130
128
|
path.
|
|
131
129
|
"""
|
|
132
|
-
|
|
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')))
|
|
130
|
+
...
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
from ._inputs import *
|
|
@@ -966,6 +961,9 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
966
961
|
vapp_transports=pulumi.get(__ret__, 'vapp_transports'),
|
|
967
962
|
vbs_enabled=pulumi.get(__ret__, 'vbs_enabled'),
|
|
968
963
|
vvtd_enabled=pulumi.get(__ret__, 'vvtd_enabled'))
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
@_utilities.lift_output_func(get_virtual_machine)
|
|
969
967
|
def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
970
968
|
annotation: Optional[pulumi.Input[Optional[str]]] = None,
|
|
971
969
|
boot_delay: Optional[pulumi.Input[Optional[int]]] = None,
|
|
@@ -1091,128 +1089,4 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1091
1089
|
:param str uuid: Specify this field for a UUID lookup, `name` and `datacenter_id`
|
|
1092
1090
|
are not required if this is specified.
|
|
1093
1091
|
"""
|
|
1094
|
-
|
|
1095
|
-
__args__['alternateGuestName'] = alternate_guest_name
|
|
1096
|
-
__args__['annotation'] = annotation
|
|
1097
|
-
__args__['bootDelay'] = boot_delay
|
|
1098
|
-
__args__['bootRetryDelay'] = boot_retry_delay
|
|
1099
|
-
__args__['bootRetryEnabled'] = boot_retry_enabled
|
|
1100
|
-
__args__['cpuHotAddEnabled'] = cpu_hot_add_enabled
|
|
1101
|
-
__args__['cpuHotRemoveEnabled'] = cpu_hot_remove_enabled
|
|
1102
|
-
__args__['cpuLimit'] = cpu_limit
|
|
1103
|
-
__args__['cpuPerformanceCountersEnabled'] = cpu_performance_counters_enabled
|
|
1104
|
-
__args__['cpuReservation'] = cpu_reservation
|
|
1105
|
-
__args__['cpuShareCount'] = cpu_share_count
|
|
1106
|
-
__args__['cpuShareLevel'] = cpu_share_level
|
|
1107
|
-
__args__['datacenterId'] = datacenter_id
|
|
1108
|
-
__args__['efiSecureBootEnabled'] = efi_secure_boot_enabled
|
|
1109
|
-
__args__['enableDiskUuid'] = enable_disk_uuid
|
|
1110
|
-
__args__['enableLogging'] = enable_logging
|
|
1111
|
-
__args__['eptRviMode'] = ept_rvi_mode
|
|
1112
|
-
__args__['extraConfig'] = extra_config
|
|
1113
|
-
__args__['extraConfigRebootRequired'] = extra_config_reboot_required
|
|
1114
|
-
__args__['firmware'] = firmware
|
|
1115
|
-
__args__['folder'] = folder
|
|
1116
|
-
__args__['guestId'] = guest_id
|
|
1117
|
-
__args__['hardwareVersion'] = hardware_version
|
|
1118
|
-
__args__['hvMode'] = hv_mode
|
|
1119
|
-
__args__['ideControllerScanCount'] = ide_controller_scan_count
|
|
1120
|
-
__args__['latencySensitivity'] = latency_sensitivity
|
|
1121
|
-
__args__['memory'] = memory
|
|
1122
|
-
__args__['memoryHotAddEnabled'] = memory_hot_add_enabled
|
|
1123
|
-
__args__['memoryLimit'] = memory_limit
|
|
1124
|
-
__args__['memoryReservation'] = memory_reservation
|
|
1125
|
-
__args__['memoryReservationLockedToMax'] = memory_reservation_locked_to_max
|
|
1126
|
-
__args__['memoryShareCount'] = memory_share_count
|
|
1127
|
-
__args__['memoryShareLevel'] = memory_share_level
|
|
1128
|
-
__args__['moid'] = moid
|
|
1129
|
-
__args__['name'] = name
|
|
1130
|
-
__args__['nestedHvEnabled'] = nested_hv_enabled
|
|
1131
|
-
__args__['numCoresPerSocket'] = num_cores_per_socket
|
|
1132
|
-
__args__['numCpus'] = num_cpus
|
|
1133
|
-
__args__['replaceTrigger'] = replace_trigger
|
|
1134
|
-
__args__['runToolsScriptsAfterPowerOn'] = run_tools_scripts_after_power_on
|
|
1135
|
-
__args__['runToolsScriptsAfterResume'] = run_tools_scripts_after_resume
|
|
1136
|
-
__args__['runToolsScriptsBeforeGuestReboot'] = run_tools_scripts_before_guest_reboot
|
|
1137
|
-
__args__['runToolsScriptsBeforeGuestShutdown'] = run_tools_scripts_before_guest_shutdown
|
|
1138
|
-
__args__['runToolsScriptsBeforeGuestStandby'] = run_tools_scripts_before_guest_standby
|
|
1139
|
-
__args__['sataControllerScanCount'] = sata_controller_scan_count
|
|
1140
|
-
__args__['scsiControllerScanCount'] = scsi_controller_scan_count
|
|
1141
|
-
__args__['storagePolicyId'] = storage_policy_id
|
|
1142
|
-
__args__['swapPlacementPolicy'] = swap_placement_policy
|
|
1143
|
-
__args__['syncTimeWithHost'] = sync_time_with_host
|
|
1144
|
-
__args__['syncTimeWithHostPeriodically'] = sync_time_with_host_periodically
|
|
1145
|
-
__args__['toolsUpgradePolicy'] = tools_upgrade_policy
|
|
1146
|
-
__args__['uuid'] = uuid
|
|
1147
|
-
__args__['vapp'] = vapp
|
|
1148
|
-
__args__['vbsEnabled'] = vbs_enabled
|
|
1149
|
-
__args__['vvtdEnabled'] = vvtd_enabled
|
|
1150
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
1151
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getVirtualMachine:getVirtualMachine', __args__, opts=opts, typ=GetVirtualMachineResult)
|
|
1152
|
-
return __ret__.apply(lambda __response__: GetVirtualMachineResult(
|
|
1153
|
-
alternate_guest_name=pulumi.get(__response__, 'alternate_guest_name'),
|
|
1154
|
-
annotation=pulumi.get(__response__, 'annotation'),
|
|
1155
|
-
boot_delay=pulumi.get(__response__, 'boot_delay'),
|
|
1156
|
-
boot_retry_delay=pulumi.get(__response__, 'boot_retry_delay'),
|
|
1157
|
-
boot_retry_enabled=pulumi.get(__response__, 'boot_retry_enabled'),
|
|
1158
|
-
change_version=pulumi.get(__response__, 'change_version'),
|
|
1159
|
-
cpu_hot_add_enabled=pulumi.get(__response__, 'cpu_hot_add_enabled'),
|
|
1160
|
-
cpu_hot_remove_enabled=pulumi.get(__response__, 'cpu_hot_remove_enabled'),
|
|
1161
|
-
cpu_limit=pulumi.get(__response__, 'cpu_limit'),
|
|
1162
|
-
cpu_performance_counters_enabled=pulumi.get(__response__, 'cpu_performance_counters_enabled'),
|
|
1163
|
-
cpu_reservation=pulumi.get(__response__, 'cpu_reservation'),
|
|
1164
|
-
cpu_share_count=pulumi.get(__response__, 'cpu_share_count'),
|
|
1165
|
-
cpu_share_level=pulumi.get(__response__, 'cpu_share_level'),
|
|
1166
|
-
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
1167
|
-
default_ip_address=pulumi.get(__response__, 'default_ip_address'),
|
|
1168
|
-
disks=pulumi.get(__response__, 'disks'),
|
|
1169
|
-
efi_secure_boot_enabled=pulumi.get(__response__, 'efi_secure_boot_enabled'),
|
|
1170
|
-
enable_disk_uuid=pulumi.get(__response__, 'enable_disk_uuid'),
|
|
1171
|
-
enable_logging=pulumi.get(__response__, 'enable_logging'),
|
|
1172
|
-
ept_rvi_mode=pulumi.get(__response__, 'ept_rvi_mode'),
|
|
1173
|
-
extra_config=pulumi.get(__response__, 'extra_config'),
|
|
1174
|
-
extra_config_reboot_required=pulumi.get(__response__, 'extra_config_reboot_required'),
|
|
1175
|
-
firmware=pulumi.get(__response__, 'firmware'),
|
|
1176
|
-
folder=pulumi.get(__response__, 'folder'),
|
|
1177
|
-
guest_id=pulumi.get(__response__, 'guest_id'),
|
|
1178
|
-
guest_ip_addresses=pulumi.get(__response__, 'guest_ip_addresses'),
|
|
1179
|
-
hardware_version=pulumi.get(__response__, 'hardware_version'),
|
|
1180
|
-
hv_mode=pulumi.get(__response__, 'hv_mode'),
|
|
1181
|
-
id=pulumi.get(__response__, 'id'),
|
|
1182
|
-
ide_controller_scan_count=pulumi.get(__response__, 'ide_controller_scan_count'),
|
|
1183
|
-
instance_uuid=pulumi.get(__response__, 'instance_uuid'),
|
|
1184
|
-
latency_sensitivity=pulumi.get(__response__, 'latency_sensitivity'),
|
|
1185
|
-
memory=pulumi.get(__response__, 'memory'),
|
|
1186
|
-
memory_hot_add_enabled=pulumi.get(__response__, 'memory_hot_add_enabled'),
|
|
1187
|
-
memory_limit=pulumi.get(__response__, 'memory_limit'),
|
|
1188
|
-
memory_reservation=pulumi.get(__response__, 'memory_reservation'),
|
|
1189
|
-
memory_reservation_locked_to_max=pulumi.get(__response__, 'memory_reservation_locked_to_max'),
|
|
1190
|
-
memory_share_count=pulumi.get(__response__, 'memory_share_count'),
|
|
1191
|
-
memory_share_level=pulumi.get(__response__, 'memory_share_level'),
|
|
1192
|
-
moid=pulumi.get(__response__, 'moid'),
|
|
1193
|
-
name=pulumi.get(__response__, 'name'),
|
|
1194
|
-
nested_hv_enabled=pulumi.get(__response__, 'nested_hv_enabled'),
|
|
1195
|
-
network_interface_types=pulumi.get(__response__, 'network_interface_types'),
|
|
1196
|
-
network_interfaces=pulumi.get(__response__, 'network_interfaces'),
|
|
1197
|
-
num_cores_per_socket=pulumi.get(__response__, 'num_cores_per_socket'),
|
|
1198
|
-
num_cpus=pulumi.get(__response__, 'num_cpus'),
|
|
1199
|
-
replace_trigger=pulumi.get(__response__, 'replace_trigger'),
|
|
1200
|
-
run_tools_scripts_after_power_on=pulumi.get(__response__, 'run_tools_scripts_after_power_on'),
|
|
1201
|
-
run_tools_scripts_after_resume=pulumi.get(__response__, 'run_tools_scripts_after_resume'),
|
|
1202
|
-
run_tools_scripts_before_guest_reboot=pulumi.get(__response__, 'run_tools_scripts_before_guest_reboot'),
|
|
1203
|
-
run_tools_scripts_before_guest_shutdown=pulumi.get(__response__, 'run_tools_scripts_before_guest_shutdown'),
|
|
1204
|
-
run_tools_scripts_before_guest_standby=pulumi.get(__response__, 'run_tools_scripts_before_guest_standby'),
|
|
1205
|
-
sata_controller_scan_count=pulumi.get(__response__, 'sata_controller_scan_count'),
|
|
1206
|
-
scsi_bus_sharing=pulumi.get(__response__, 'scsi_bus_sharing'),
|
|
1207
|
-
scsi_controller_scan_count=pulumi.get(__response__, 'scsi_controller_scan_count'),
|
|
1208
|
-
scsi_type=pulumi.get(__response__, 'scsi_type'),
|
|
1209
|
-
storage_policy_id=pulumi.get(__response__, 'storage_policy_id'),
|
|
1210
|
-
swap_placement_policy=pulumi.get(__response__, 'swap_placement_policy'),
|
|
1211
|
-
sync_time_with_host=pulumi.get(__response__, 'sync_time_with_host'),
|
|
1212
|
-
sync_time_with_host_periodically=pulumi.get(__response__, 'sync_time_with_host_periodically'),
|
|
1213
|
-
tools_upgrade_policy=pulumi.get(__response__, 'tools_upgrade_policy'),
|
|
1214
|
-
uuid=pulumi.get(__response__, 'uuid'),
|
|
1215
|
-
vapp=pulumi.get(__response__, 'vapp'),
|
|
1216
|
-
vapp_transports=pulumi.get(__response__, 'vapp_transports'),
|
|
1217
|
-
vbs_enabled=pulumi.get(__response__, 'vbs_enabled'),
|
|
1218
|
-
vvtd_enabled=pulumi.get(__response__, 'vvtd_enabled')))
|
|
1092
|
+
...
|
pulumi_vsphere/get_vmfs_disks.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = [
|
|
@@ -139,6 +134,9 @@ def get_vmfs_disks(filter: Optional[str] = None,
|
|
|
139
134
|
host_system_id=pulumi.get(__ret__, 'host_system_id'),
|
|
140
135
|
id=pulumi.get(__ret__, 'id'),
|
|
141
136
|
rescan=pulumi.get(__ret__, 'rescan'))
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
@_utilities.lift_output_func(get_vmfs_disks)
|
|
142
140
|
def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
143
141
|
host_system_id: Optional[pulumi.Input[str]] = None,
|
|
144
142
|
rescan: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
@@ -176,15 +174,4 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
176
174
|
searching for disks. This may lengthen the time it takes to perform the
|
|
177
175
|
search. Default: `false`.
|
|
178
176
|
"""
|
|
179
|
-
|
|
180
|
-
__args__['filter'] = filter
|
|
181
|
-
__args__['hostSystemId'] = host_system_id
|
|
182
|
-
__args__['rescan'] = rescan
|
|
183
|
-
opts = pulumi.InvokeOptions.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')))
|
|
177
|
+
...
|
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
from . import outputs
|
|
17
12
|
from ._inputs import *
|
pulumi_vsphere/ha_vm_override.py
CHANGED
|
@@ -4,14 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
-
import sys
|
|
8
7
|
import pulumi
|
|
9
8
|
import pulumi.runtime
|
|
10
9
|
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
10
|
from . import _utilities
|
|
16
11
|
|
|
17
12
|
__all__ = ['HaVmOverrideArgs', 'HaVmOverride']
|
|
@@ -580,85 +575,7 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
580
575
|
virtual_machine_id: Optional[pulumi.Input[str]] = None,
|
|
581
576
|
__props__=None):
|
|
582
577
|
"""
|
|
583
|
-
|
|
584
|
-
vSphere HA settings on a cluster for a specific virtual machine. With this
|
|
585
|
-
resource, one can control specific HA settings so that they are different than
|
|
586
|
-
the cluster default, accommodating the needs of that specific virtual machine,
|
|
587
|
-
while not affecting the rest of the cluster.
|
|
588
|
-
|
|
589
|
-
For more information on vSphere HA, see [this page][ref-vsphere-ha-clusters].
|
|
590
|
-
|
|
591
|
-
[ref-vsphere-ha-clusters]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-availability/GUID-5432CA24-14F1-44E3-87FB-61D937831CF6.html
|
|
592
|
-
|
|
593
|
-
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
594
|
-
connections.
|
|
595
|
-
|
|
596
|
-
## Example Usage
|
|
597
|
-
|
|
598
|
-
The example below creates a virtual machine in a cluster using the
|
|
599
|
-
`VirtualMachine` resource, creating the
|
|
600
|
-
virtual machine in the cluster looked up by the
|
|
601
|
-
`ComputeCluster` data source.
|
|
602
|
-
|
|
603
|
-
Considering a scenario where this virtual machine is of high value to the
|
|
604
|
-
application or organization for which it does its work, it's been determined in
|
|
605
|
-
the event of a host failure, that this should be one of the first virtual
|
|
606
|
-
machines to be started by vSphere HA during recovery. Hence, it
|
|
607
|
-
`ha_vm_restart_priority` has been set to `highest`,
|
|
608
|
-
which, assuming that the default restart priority is `medium` and no other
|
|
609
|
-
virtual machine has been assigned the `highest` priority, will mean that this
|
|
610
|
-
VM will be started before any other virtual machine in the event of host
|
|
611
|
-
failure.
|
|
612
|
-
|
|
613
|
-
```python
|
|
614
|
-
import pulumi
|
|
615
|
-
import pulumi_vsphere as vsphere
|
|
616
|
-
|
|
617
|
-
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
618
|
-
datastore = vsphere.get_datastore(name="datastore1",
|
|
619
|
-
datacenter_id=datacenter.id)
|
|
620
|
-
cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
621
|
-
datacenter_id=datacenter.id)
|
|
622
|
-
network = vsphere.get_network(name="network1",
|
|
623
|
-
datacenter_id=datacenter.id)
|
|
624
|
-
vm = vsphere.VirtualMachine("vm",
|
|
625
|
-
name="test",
|
|
626
|
-
resource_pool_id=cluster.resource_pool_id,
|
|
627
|
-
datastore_id=datastore.id,
|
|
628
|
-
num_cpus=2,
|
|
629
|
-
memory=2048,
|
|
630
|
-
guest_id="otherLinux64Guest",
|
|
631
|
-
network_interfaces=[{
|
|
632
|
-
"network_id": network.id,
|
|
633
|
-
}],
|
|
634
|
-
disks=[{
|
|
635
|
-
"label": "disk0",
|
|
636
|
-
"size": 20,
|
|
637
|
-
}])
|
|
638
|
-
ha_vm_override = vsphere.HaVmOverride("ha_vm_override",
|
|
639
|
-
compute_cluster_id=cluster.id,
|
|
640
|
-
virtual_machine_id=vm.id,
|
|
641
|
-
ha_vm_restart_priority="highest")
|
|
642
|
-
```
|
|
643
|
-
|
|
644
|
-
## Import
|
|
645
|
-
|
|
646
|
-
An existing override can be imported into this resource by
|
|
647
|
-
|
|
648
|
-
supplying both the path to the cluster, and the path to the virtual machine, to
|
|
649
|
-
|
|
650
|
-
`pulumi import`. If no override exists, an error will be given. An example
|
|
651
|
-
|
|
652
|
-
is below:
|
|
653
|
-
|
|
654
|
-
```sh
|
|
655
|
-
$ pulumi import vsphere:index/haVmOverride:HaVmOverride ha_vm_override \\
|
|
656
|
-
```
|
|
657
|
-
|
|
658
|
-
'{"compute_cluster_path": "/dc1/host/cluster1", \\
|
|
659
|
-
|
|
660
|
-
"virtual_machine_path": "/dc1/vm/srv1"}'
|
|
661
|
-
|
|
578
|
+
Create a HaVmOverride resource with the given unique name, props, and options.
|
|
662
579
|
:param str resource_name: The name of the resource.
|
|
663
580
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
664
581
|
:param pulumi.Input[str] compute_cluster_id: The managed object ID of the cluster.
|
|
@@ -696,85 +613,7 @@ class HaVmOverride(pulumi.CustomResource):
|
|
|
696
613
|
args: HaVmOverrideArgs,
|
|
697
614
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
698
615
|
"""
|
|
699
|
-
|
|
700
|
-
vSphere HA settings on a cluster for a specific virtual machine. With this
|
|
701
|
-
resource, one can control specific HA settings so that they are different than
|
|
702
|
-
the cluster default, accommodating the needs of that specific virtual machine,
|
|
703
|
-
while not affecting the rest of the cluster.
|
|
704
|
-
|
|
705
|
-
For more information on vSphere HA, see [this page][ref-vsphere-ha-clusters].
|
|
706
|
-
|
|
707
|
-
[ref-vsphere-ha-clusters]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-availability/GUID-5432CA24-14F1-44E3-87FB-61D937831CF6.html
|
|
708
|
-
|
|
709
|
-
> **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
710
|
-
connections.
|
|
711
|
-
|
|
712
|
-
## Example Usage
|
|
713
|
-
|
|
714
|
-
The example below creates a virtual machine in a cluster using the
|
|
715
|
-
`VirtualMachine` resource, creating the
|
|
716
|
-
virtual machine in the cluster looked up by the
|
|
717
|
-
`ComputeCluster` data source.
|
|
718
|
-
|
|
719
|
-
Considering a scenario where this virtual machine is of high value to the
|
|
720
|
-
application or organization for which it does its work, it's been determined in
|
|
721
|
-
the event of a host failure, that this should be one of the first virtual
|
|
722
|
-
machines to be started by vSphere HA during recovery. Hence, it
|
|
723
|
-
`ha_vm_restart_priority` has been set to `highest`,
|
|
724
|
-
which, assuming that the default restart priority is `medium` and no other
|
|
725
|
-
virtual machine has been assigned the `highest` priority, will mean that this
|
|
726
|
-
VM will be started before any other virtual machine in the event of host
|
|
727
|
-
failure.
|
|
728
|
-
|
|
729
|
-
```python
|
|
730
|
-
import pulumi
|
|
731
|
-
import pulumi_vsphere as vsphere
|
|
732
|
-
|
|
733
|
-
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
734
|
-
datastore = vsphere.get_datastore(name="datastore1",
|
|
735
|
-
datacenter_id=datacenter.id)
|
|
736
|
-
cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
737
|
-
datacenter_id=datacenter.id)
|
|
738
|
-
network = vsphere.get_network(name="network1",
|
|
739
|
-
datacenter_id=datacenter.id)
|
|
740
|
-
vm = vsphere.VirtualMachine("vm",
|
|
741
|
-
name="test",
|
|
742
|
-
resource_pool_id=cluster.resource_pool_id,
|
|
743
|
-
datastore_id=datastore.id,
|
|
744
|
-
num_cpus=2,
|
|
745
|
-
memory=2048,
|
|
746
|
-
guest_id="otherLinux64Guest",
|
|
747
|
-
network_interfaces=[{
|
|
748
|
-
"network_id": network.id,
|
|
749
|
-
}],
|
|
750
|
-
disks=[{
|
|
751
|
-
"label": "disk0",
|
|
752
|
-
"size": 20,
|
|
753
|
-
}])
|
|
754
|
-
ha_vm_override = vsphere.HaVmOverride("ha_vm_override",
|
|
755
|
-
compute_cluster_id=cluster.id,
|
|
756
|
-
virtual_machine_id=vm.id,
|
|
757
|
-
ha_vm_restart_priority="highest")
|
|
758
|
-
```
|
|
759
|
-
|
|
760
|
-
## Import
|
|
761
|
-
|
|
762
|
-
An existing override can be imported into this resource by
|
|
763
|
-
|
|
764
|
-
supplying both the path to the cluster, and the path to the virtual machine, to
|
|
765
|
-
|
|
766
|
-
`pulumi import`. If no override exists, an error will be given. An example
|
|
767
|
-
|
|
768
|
-
is below:
|
|
769
|
-
|
|
770
|
-
```sh
|
|
771
|
-
$ pulumi import vsphere:index/haVmOverride:HaVmOverride ha_vm_override \\
|
|
772
|
-
```
|
|
773
|
-
|
|
774
|
-
'{"compute_cluster_path": "/dc1/host/cluster1", \\
|
|
775
|
-
|
|
776
|
-
"virtual_machine_path": "/dc1/vm/srv1"}'
|
|
777
|
-
|
|
616
|
+
Create a HaVmOverride resource with the given unique name, props, and options.
|
|
778
617
|
:param str resource_name: The name of the resource.
|
|
779
618
|
:param HaVmOverrideArgs args: The arguments to use to populate this resource's properties.
|
|
780
619
|
:param pulumi.ResourceOptions opts: Options for the resource.
|