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
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -16,48 +21,45 @@ __all__ = ['HostPortGroupArgs', 'HostPortGroup']
|
|
|
16
21
|
@pulumi.input_type
|
|
17
22
|
class HostPortGroupArgs:
|
|
18
23
|
def __init__(__self__, *,
|
|
19
|
-
host_system_id: pulumi.Input[str],
|
|
20
|
-
virtual_switch_name: pulumi.Input[str],
|
|
21
|
-
active_nics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
22
|
-
allow_forged_transmits: Optional[pulumi.Input[bool]] = None,
|
|
23
|
-
allow_mac_changes: Optional[pulumi.Input[bool]] = None,
|
|
24
|
-
allow_promiscuous: Optional[pulumi.Input[bool]] = None,
|
|
25
|
-
check_beacon: Optional[pulumi.Input[bool]] = None,
|
|
26
|
-
failback: Optional[pulumi.Input[bool]] = None,
|
|
27
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
28
|
-
notify_switches: Optional[pulumi.Input[bool]] = None,
|
|
29
|
-
shaping_average_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
30
|
-
shaping_burst_size: Optional[pulumi.Input[int]] = None,
|
|
31
|
-
shaping_enabled: Optional[pulumi.Input[bool]] = None,
|
|
32
|
-
shaping_peak_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
33
|
-
standby_nics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
34
|
-
teaming_policy: Optional[pulumi.Input[str]] = None,
|
|
35
|
-
vlan_id: Optional[pulumi.Input[int]] = None):
|
|
24
|
+
host_system_id: pulumi.Input[_builtins.str],
|
|
25
|
+
virtual_switch_name: pulumi.Input[_builtins.str],
|
|
26
|
+
active_nics: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
27
|
+
allow_forged_transmits: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
28
|
+
allow_mac_changes: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
29
|
+
allow_promiscuous: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
30
|
+
check_beacon: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
31
|
+
failback: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
32
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
33
|
+
notify_switches: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
34
|
+
shaping_average_bandwidth: Optional[pulumi.Input[_builtins.int]] = None,
|
|
35
|
+
shaping_burst_size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
36
|
+
shaping_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
37
|
+
shaping_peak_bandwidth: Optional[pulumi.Input[_builtins.int]] = None,
|
|
38
|
+
standby_nics: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
39
|
+
teaming_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
40
|
+
vlan_id: Optional[pulumi.Input[_builtins.int]] = None):
|
|
36
41
|
"""
|
|
37
42
|
The set of arguments for constructing a HostPortGroup resource.
|
|
38
|
-
:param pulumi.Input[str] host_system_id: The managed object ID of
|
|
43
|
+
:param pulumi.Input[_builtins.str] host_system_id: The managed object ID of
|
|
39
44
|
the host to set the port group up on. Forces a new resource if changed.
|
|
40
|
-
:param pulumi.Input[str] virtual_switch_name: The name of the virtual switch to bind
|
|
45
|
+
:param pulumi.Input[_builtins.str] virtual_switch_name: The name of the virtual switch to bind
|
|
41
46
|
this port group to. Forces a new resource if changed.
|
|
42
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] active_nics: List of active network adapters used for load balancing.
|
|
43
|
-
:param pulumi.Input[bool] allow_forged_transmits: Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than
|
|
44
|
-
|
|
45
|
-
:param pulumi.Input[bool]
|
|
46
|
-
:param pulumi.Input[bool]
|
|
47
|
-
:param pulumi.Input[bool]
|
|
48
|
-
|
|
49
|
-
:param pulumi.Input[bool] failback: If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
|
|
50
|
-
:param pulumi.Input[str] name: The name of the port group. Forces a new resource if
|
|
47
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] active_nics: List of active network adapters used for load balancing.
|
|
48
|
+
:param pulumi.Input[_builtins.bool] allow_forged_transmits: Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
|
|
49
|
+
:param pulumi.Input[_builtins.bool] allow_mac_changes: Controls whether or not the Media Access Control (MAC) address can be changed.
|
|
50
|
+
:param pulumi.Input[_builtins.bool] allow_promiscuous: Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
|
|
51
|
+
:param pulumi.Input[_builtins.bool] check_beacon: Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
|
|
52
|
+
:param pulumi.Input[_builtins.bool] failback: If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
|
|
53
|
+
:param pulumi.Input[_builtins.str] name: The name of the port group. Forces a new resource if
|
|
51
54
|
changed.
|
|
52
|
-
:param pulumi.Input[bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
53
|
-
:param pulumi.Input[int] shaping_average_bandwidth: The average bandwidth in bits per second if traffic shaping is enabled.
|
|
54
|
-
:param pulumi.Input[int] shaping_burst_size: The maximum burst size allowed in bytes if traffic shaping is enabled.
|
|
55
|
-
:param pulumi.Input[bool] shaping_enabled: Enable traffic shaping on this virtual switch or port group.
|
|
56
|
-
:param pulumi.Input[int] shaping_peak_bandwidth: The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
|
|
57
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] standby_nics: List of standby network adapters used for failover.
|
|
58
|
-
:param pulumi.Input[str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or
|
|
59
|
-
|
|
60
|
-
:param pulumi.Input[int] vlan_id: The VLAN ID/trunk mode for this port group. An ID of
|
|
55
|
+
:param pulumi.Input[_builtins.bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
56
|
+
:param pulumi.Input[_builtins.int] shaping_average_bandwidth: The average bandwidth in bits per second if traffic shaping is enabled.
|
|
57
|
+
:param pulumi.Input[_builtins.int] shaping_burst_size: The maximum burst size allowed in bytes if traffic shaping is enabled.
|
|
58
|
+
:param pulumi.Input[_builtins.bool] shaping_enabled: Enable traffic shaping on this virtual switch or port group.
|
|
59
|
+
:param pulumi.Input[_builtins.int] shaping_peak_bandwidth: The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
|
|
60
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] standby_nics: List of standby network adapters used for failover.
|
|
61
|
+
:param pulumi.Input[_builtins.str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
|
|
62
|
+
:param pulumi.Input[_builtins.int] vlan_id: The VLAN ID/trunk mode for this port group. An ID of
|
|
61
63
|
`0` denotes no tagging, an ID of `1`-`4094` tags with the specific ID, and an
|
|
62
64
|
ID of `4095` enables trunk mode, allowing the guest to manage its own
|
|
63
65
|
tagging. Default: `0`.
|
|
@@ -95,9 +97,9 @@ class HostPortGroupArgs:
|
|
|
95
97
|
if vlan_id is not None:
|
|
96
98
|
pulumi.set(__self__, "vlan_id", vlan_id)
|
|
97
99
|
|
|
98
|
-
@property
|
|
100
|
+
@_builtins.property
|
|
99
101
|
@pulumi.getter(name="hostSystemId")
|
|
100
|
-
def host_system_id(self) -> pulumi.Input[str]:
|
|
102
|
+
def host_system_id(self) -> pulumi.Input[_builtins.str]:
|
|
101
103
|
"""
|
|
102
104
|
The managed object ID of
|
|
103
105
|
the host to set the port group up on. Forces a new resource if changed.
|
|
@@ -105,12 +107,12 @@ class HostPortGroupArgs:
|
|
|
105
107
|
return pulumi.get(self, "host_system_id")
|
|
106
108
|
|
|
107
109
|
@host_system_id.setter
|
|
108
|
-
def host_system_id(self, value: pulumi.Input[str]):
|
|
110
|
+
def host_system_id(self, value: pulumi.Input[_builtins.str]):
|
|
109
111
|
pulumi.set(self, "host_system_id", value)
|
|
110
112
|
|
|
111
|
-
@property
|
|
113
|
+
@_builtins.property
|
|
112
114
|
@pulumi.getter(name="virtualSwitchName")
|
|
113
|
-
def virtual_switch_name(self) -> pulumi.Input[str]:
|
|
115
|
+
def virtual_switch_name(self) -> pulumi.Input[_builtins.str]:
|
|
114
116
|
"""
|
|
115
117
|
The name of the virtual switch to bind
|
|
116
118
|
this port group to. Forces a new resource if changed.
|
|
@@ -118,86 +120,84 @@ class HostPortGroupArgs:
|
|
|
118
120
|
return pulumi.get(self, "virtual_switch_name")
|
|
119
121
|
|
|
120
122
|
@virtual_switch_name.setter
|
|
121
|
-
def virtual_switch_name(self, value: pulumi.Input[str]):
|
|
123
|
+
def virtual_switch_name(self, value: pulumi.Input[_builtins.str]):
|
|
122
124
|
pulumi.set(self, "virtual_switch_name", value)
|
|
123
125
|
|
|
124
|
-
@property
|
|
126
|
+
@_builtins.property
|
|
125
127
|
@pulumi.getter(name="activeNics")
|
|
126
|
-
def active_nics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
128
|
+
def active_nics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
127
129
|
"""
|
|
128
130
|
List of active network adapters used for load balancing.
|
|
129
131
|
"""
|
|
130
132
|
return pulumi.get(self, "active_nics")
|
|
131
133
|
|
|
132
134
|
@active_nics.setter
|
|
133
|
-
def active_nics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
135
|
+
def active_nics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
134
136
|
pulumi.set(self, "active_nics", value)
|
|
135
137
|
|
|
136
|
-
@property
|
|
138
|
+
@_builtins.property
|
|
137
139
|
@pulumi.getter(name="allowForgedTransmits")
|
|
138
|
-
def allow_forged_transmits(self) -> Optional[pulumi.Input[bool]]:
|
|
140
|
+
def allow_forged_transmits(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
139
141
|
"""
|
|
140
|
-
Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than
|
|
141
|
-
that of its own.
|
|
142
|
+
Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
|
|
142
143
|
"""
|
|
143
144
|
return pulumi.get(self, "allow_forged_transmits")
|
|
144
145
|
|
|
145
146
|
@allow_forged_transmits.setter
|
|
146
|
-
def allow_forged_transmits(self, value: Optional[pulumi.Input[bool]]):
|
|
147
|
+
def allow_forged_transmits(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
147
148
|
pulumi.set(self, "allow_forged_transmits", value)
|
|
148
149
|
|
|
149
|
-
@property
|
|
150
|
+
@_builtins.property
|
|
150
151
|
@pulumi.getter(name="allowMacChanges")
|
|
151
|
-
def allow_mac_changes(self) -> Optional[pulumi.Input[bool]]:
|
|
152
|
+
def allow_mac_changes(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
152
153
|
"""
|
|
153
154
|
Controls whether or not the Media Access Control (MAC) address can be changed.
|
|
154
155
|
"""
|
|
155
156
|
return pulumi.get(self, "allow_mac_changes")
|
|
156
157
|
|
|
157
158
|
@allow_mac_changes.setter
|
|
158
|
-
def allow_mac_changes(self, value: Optional[pulumi.Input[bool]]):
|
|
159
|
+
def allow_mac_changes(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
159
160
|
pulumi.set(self, "allow_mac_changes", value)
|
|
160
161
|
|
|
161
|
-
@property
|
|
162
|
+
@_builtins.property
|
|
162
163
|
@pulumi.getter(name="allowPromiscuous")
|
|
163
|
-
def allow_promiscuous(self) -> Optional[pulumi.Input[bool]]:
|
|
164
|
+
def allow_promiscuous(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
164
165
|
"""
|
|
165
166
|
Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
|
|
166
167
|
"""
|
|
167
168
|
return pulumi.get(self, "allow_promiscuous")
|
|
168
169
|
|
|
169
170
|
@allow_promiscuous.setter
|
|
170
|
-
def allow_promiscuous(self, value: Optional[pulumi.Input[bool]]):
|
|
171
|
+
def allow_promiscuous(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
171
172
|
pulumi.set(self, "allow_promiscuous", value)
|
|
172
173
|
|
|
173
|
-
@property
|
|
174
|
+
@_builtins.property
|
|
174
175
|
@pulumi.getter(name="checkBeacon")
|
|
175
|
-
def check_beacon(self) -> Optional[pulumi.Input[bool]]:
|
|
176
|
+
def check_beacon(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
176
177
|
"""
|
|
177
|
-
Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used
|
|
178
|
-
only.
|
|
178
|
+
Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
|
|
179
179
|
"""
|
|
180
180
|
return pulumi.get(self, "check_beacon")
|
|
181
181
|
|
|
182
182
|
@check_beacon.setter
|
|
183
|
-
def check_beacon(self, value: Optional[pulumi.Input[bool]]):
|
|
183
|
+
def check_beacon(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
184
184
|
pulumi.set(self, "check_beacon", value)
|
|
185
185
|
|
|
186
|
-
@property
|
|
186
|
+
@_builtins.property
|
|
187
187
|
@pulumi.getter
|
|
188
|
-
def failback(self) -> Optional[pulumi.Input[bool]]:
|
|
188
|
+
def failback(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
189
189
|
"""
|
|
190
190
|
If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
|
|
191
191
|
"""
|
|
192
192
|
return pulumi.get(self, "failback")
|
|
193
193
|
|
|
194
194
|
@failback.setter
|
|
195
|
-
def failback(self, value: Optional[pulumi.Input[bool]]):
|
|
195
|
+
def failback(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
196
196
|
pulumi.set(self, "failback", value)
|
|
197
197
|
|
|
198
|
-
@property
|
|
198
|
+
@_builtins.property
|
|
199
199
|
@pulumi.getter
|
|
200
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
200
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
201
201
|
"""
|
|
202
202
|
The name of the port group. Forces a new resource if
|
|
203
203
|
changed.
|
|
@@ -205,97 +205,96 @@ class HostPortGroupArgs:
|
|
|
205
205
|
return pulumi.get(self, "name")
|
|
206
206
|
|
|
207
207
|
@name.setter
|
|
208
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
208
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
209
209
|
pulumi.set(self, "name", value)
|
|
210
210
|
|
|
211
|
-
@property
|
|
211
|
+
@_builtins.property
|
|
212
212
|
@pulumi.getter(name="notifySwitches")
|
|
213
|
-
def notify_switches(self) -> Optional[pulumi.Input[bool]]:
|
|
213
|
+
def notify_switches(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
214
214
|
"""
|
|
215
215
|
If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
216
216
|
"""
|
|
217
217
|
return pulumi.get(self, "notify_switches")
|
|
218
218
|
|
|
219
219
|
@notify_switches.setter
|
|
220
|
-
def notify_switches(self, value: Optional[pulumi.Input[bool]]):
|
|
220
|
+
def notify_switches(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
221
221
|
pulumi.set(self, "notify_switches", value)
|
|
222
222
|
|
|
223
|
-
@property
|
|
223
|
+
@_builtins.property
|
|
224
224
|
@pulumi.getter(name="shapingAverageBandwidth")
|
|
225
|
-
def shaping_average_bandwidth(self) -> Optional[pulumi.Input[int]]:
|
|
225
|
+
def shaping_average_bandwidth(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
226
226
|
"""
|
|
227
227
|
The average bandwidth in bits per second if traffic shaping is enabled.
|
|
228
228
|
"""
|
|
229
229
|
return pulumi.get(self, "shaping_average_bandwidth")
|
|
230
230
|
|
|
231
231
|
@shaping_average_bandwidth.setter
|
|
232
|
-
def shaping_average_bandwidth(self, value: Optional[pulumi.Input[int]]):
|
|
232
|
+
def shaping_average_bandwidth(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
233
233
|
pulumi.set(self, "shaping_average_bandwidth", value)
|
|
234
234
|
|
|
235
|
-
@property
|
|
235
|
+
@_builtins.property
|
|
236
236
|
@pulumi.getter(name="shapingBurstSize")
|
|
237
|
-
def shaping_burst_size(self) -> Optional[pulumi.Input[int]]:
|
|
237
|
+
def shaping_burst_size(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
238
238
|
"""
|
|
239
239
|
The maximum burst size allowed in bytes if traffic shaping is enabled.
|
|
240
240
|
"""
|
|
241
241
|
return pulumi.get(self, "shaping_burst_size")
|
|
242
242
|
|
|
243
243
|
@shaping_burst_size.setter
|
|
244
|
-
def shaping_burst_size(self, value: Optional[pulumi.Input[int]]):
|
|
244
|
+
def shaping_burst_size(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
245
245
|
pulumi.set(self, "shaping_burst_size", value)
|
|
246
246
|
|
|
247
|
-
@property
|
|
247
|
+
@_builtins.property
|
|
248
248
|
@pulumi.getter(name="shapingEnabled")
|
|
249
|
-
def shaping_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
249
|
+
def shaping_enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
250
250
|
"""
|
|
251
251
|
Enable traffic shaping on this virtual switch or port group.
|
|
252
252
|
"""
|
|
253
253
|
return pulumi.get(self, "shaping_enabled")
|
|
254
254
|
|
|
255
255
|
@shaping_enabled.setter
|
|
256
|
-
def shaping_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
256
|
+
def shaping_enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
257
257
|
pulumi.set(self, "shaping_enabled", value)
|
|
258
258
|
|
|
259
|
-
@property
|
|
259
|
+
@_builtins.property
|
|
260
260
|
@pulumi.getter(name="shapingPeakBandwidth")
|
|
261
|
-
def shaping_peak_bandwidth(self) -> Optional[pulumi.Input[int]]:
|
|
261
|
+
def shaping_peak_bandwidth(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
262
262
|
"""
|
|
263
263
|
The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
|
|
264
264
|
"""
|
|
265
265
|
return pulumi.get(self, "shaping_peak_bandwidth")
|
|
266
266
|
|
|
267
267
|
@shaping_peak_bandwidth.setter
|
|
268
|
-
def shaping_peak_bandwidth(self, value: Optional[pulumi.Input[int]]):
|
|
268
|
+
def shaping_peak_bandwidth(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
269
269
|
pulumi.set(self, "shaping_peak_bandwidth", value)
|
|
270
270
|
|
|
271
|
-
@property
|
|
271
|
+
@_builtins.property
|
|
272
272
|
@pulumi.getter(name="standbyNics")
|
|
273
|
-
def standby_nics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
273
|
+
def standby_nics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
274
274
|
"""
|
|
275
275
|
List of standby network adapters used for failover.
|
|
276
276
|
"""
|
|
277
277
|
return pulumi.get(self, "standby_nics")
|
|
278
278
|
|
|
279
279
|
@standby_nics.setter
|
|
280
|
-
def standby_nics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
280
|
+
def standby_nics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
281
281
|
pulumi.set(self, "standby_nics", value)
|
|
282
282
|
|
|
283
|
-
@property
|
|
283
|
+
@_builtins.property
|
|
284
284
|
@pulumi.getter(name="teamingPolicy")
|
|
285
|
-
def teaming_policy(self) -> Optional[pulumi.Input[str]]:
|
|
285
|
+
def teaming_policy(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
286
286
|
"""
|
|
287
|
-
The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or
|
|
288
|
-
failover_explicit.
|
|
287
|
+
The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
|
|
289
288
|
"""
|
|
290
289
|
return pulumi.get(self, "teaming_policy")
|
|
291
290
|
|
|
292
291
|
@teaming_policy.setter
|
|
293
|
-
def teaming_policy(self, value: Optional[pulumi.Input[str]]):
|
|
292
|
+
def teaming_policy(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
294
293
|
pulumi.set(self, "teaming_policy", value)
|
|
295
294
|
|
|
296
|
-
@property
|
|
295
|
+
@_builtins.property
|
|
297
296
|
@pulumi.getter(name="vlanId")
|
|
298
|
-
def vlan_id(self) -> Optional[pulumi.Input[int]]:
|
|
297
|
+
def vlan_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
299
298
|
"""
|
|
300
299
|
The VLAN ID/trunk mode for this port group. An ID of
|
|
301
300
|
`0` denotes no tagging, an ID of `1`-`4094` tags with the specific ID, and an
|
|
@@ -305,63 +304,60 @@ class HostPortGroupArgs:
|
|
|
305
304
|
return pulumi.get(self, "vlan_id")
|
|
306
305
|
|
|
307
306
|
@vlan_id.setter
|
|
308
|
-
def vlan_id(self, value: Optional[pulumi.Input[int]]):
|
|
307
|
+
def vlan_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
309
308
|
pulumi.set(self, "vlan_id", value)
|
|
310
309
|
|
|
311
310
|
|
|
312
311
|
@pulumi.input_type
|
|
313
312
|
class _HostPortGroupState:
|
|
314
313
|
def __init__(__self__, *,
|
|
315
|
-
active_nics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
316
|
-
allow_forged_transmits: Optional[pulumi.Input[bool]] = None,
|
|
317
|
-
allow_mac_changes: Optional[pulumi.Input[bool]] = None,
|
|
318
|
-
allow_promiscuous: Optional[pulumi.Input[bool]] = None,
|
|
319
|
-
check_beacon: Optional[pulumi.Input[bool]] = None,
|
|
320
|
-
computed_policy: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
321
|
-
failback: Optional[pulumi.Input[bool]] = None,
|
|
322
|
-
host_system_id: Optional[pulumi.Input[str]] = None,
|
|
323
|
-
key: Optional[pulumi.Input[str]] = None,
|
|
324
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
325
|
-
notify_switches: Optional[pulumi.Input[bool]] = None,
|
|
314
|
+
active_nics: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
315
|
+
allow_forged_transmits: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
316
|
+
allow_mac_changes: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
317
|
+
allow_promiscuous: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
318
|
+
check_beacon: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
319
|
+
computed_policy: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
320
|
+
failback: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
321
|
+
host_system_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
322
|
+
key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
323
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
324
|
+
notify_switches: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
326
325
|
ports: Optional[pulumi.Input[Sequence[pulumi.Input['HostPortGroupPortArgs']]]] = None,
|
|
327
|
-
shaping_average_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
328
|
-
shaping_burst_size: Optional[pulumi.Input[int]] = None,
|
|
329
|
-
shaping_enabled: Optional[pulumi.Input[bool]] = None,
|
|
330
|
-
shaping_peak_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
331
|
-
standby_nics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
332
|
-
teaming_policy: Optional[pulumi.Input[str]] = None,
|
|
333
|
-
virtual_switch_name: Optional[pulumi.Input[str]] = None,
|
|
334
|
-
vlan_id: Optional[pulumi.Input[int]] = None):
|
|
326
|
+
shaping_average_bandwidth: Optional[pulumi.Input[_builtins.int]] = None,
|
|
327
|
+
shaping_burst_size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
328
|
+
shaping_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
329
|
+
shaping_peak_bandwidth: Optional[pulumi.Input[_builtins.int]] = None,
|
|
330
|
+
standby_nics: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
331
|
+
teaming_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
332
|
+
virtual_switch_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
333
|
+
vlan_id: Optional[pulumi.Input[_builtins.int]] = None):
|
|
335
334
|
"""
|
|
336
335
|
Input properties used for looking up and filtering HostPortGroup resources.
|
|
337
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] active_nics: List of active network adapters used for load balancing.
|
|
338
|
-
:param pulumi.Input[bool] allow_forged_transmits: Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than
|
|
339
|
-
|
|
340
|
-
:param pulumi.Input[bool]
|
|
341
|
-
:param pulumi.Input[bool]
|
|
342
|
-
:param pulumi.Input[
|
|
343
|
-
only.
|
|
344
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] computed_policy: A map with a full set of the policy
|
|
336
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] active_nics: List of active network adapters used for load balancing.
|
|
337
|
+
:param pulumi.Input[_builtins.bool] allow_forged_transmits: Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
|
|
338
|
+
:param pulumi.Input[_builtins.bool] allow_mac_changes: Controls whether or not the Media Access Control (MAC) address can be changed.
|
|
339
|
+
:param pulumi.Input[_builtins.bool] allow_promiscuous: Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
|
|
340
|
+
:param pulumi.Input[_builtins.bool] check_beacon: Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
|
|
341
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] computed_policy: A map with a full set of the policy
|
|
345
342
|
options computed from defaults and overrides,
|
|
346
343
|
explaining the effective policy for this port group.
|
|
347
|
-
:param pulumi.Input[bool] failback: If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
|
|
348
|
-
:param pulumi.Input[str] host_system_id: The managed object ID of
|
|
344
|
+
:param pulumi.Input[_builtins.bool] failback: If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
|
|
345
|
+
:param pulumi.Input[_builtins.str] host_system_id: The managed object ID of
|
|
349
346
|
the host to set the port group up on. Forces a new resource if changed.
|
|
350
|
-
:param pulumi.Input[str] key: The key for this port group as returned from the vSphere API.
|
|
351
|
-
:param pulumi.Input[str] name: The name of the port group. Forces a new resource if
|
|
347
|
+
:param pulumi.Input[_builtins.str] key: The key for this port group as returned from the vSphere API.
|
|
348
|
+
:param pulumi.Input[_builtins.str] name: The name of the port group. Forces a new resource if
|
|
352
349
|
changed.
|
|
353
|
-
:param pulumi.Input[bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
350
|
+
:param pulumi.Input[_builtins.bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
354
351
|
:param pulumi.Input[Sequence[pulumi.Input['HostPortGroupPortArgs']]] ports: A list of ports that currently exist and are used on this port group.
|
|
355
|
-
:param pulumi.Input[int] shaping_average_bandwidth: The average bandwidth in bits per second if traffic shaping is enabled.
|
|
356
|
-
:param pulumi.Input[int] shaping_burst_size: The maximum burst size allowed in bytes if traffic shaping is enabled.
|
|
357
|
-
:param pulumi.Input[bool] shaping_enabled: Enable traffic shaping on this virtual switch or port group.
|
|
358
|
-
:param pulumi.Input[int] shaping_peak_bandwidth: The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
|
|
359
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] standby_nics: List of standby network adapters used for failover.
|
|
360
|
-
:param pulumi.Input[str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or
|
|
361
|
-
|
|
362
|
-
:param pulumi.Input[str] virtual_switch_name: The name of the virtual switch to bind
|
|
352
|
+
:param pulumi.Input[_builtins.int] shaping_average_bandwidth: The average bandwidth in bits per second if traffic shaping is enabled.
|
|
353
|
+
:param pulumi.Input[_builtins.int] shaping_burst_size: The maximum burst size allowed in bytes if traffic shaping is enabled.
|
|
354
|
+
:param pulumi.Input[_builtins.bool] shaping_enabled: Enable traffic shaping on this virtual switch or port group.
|
|
355
|
+
:param pulumi.Input[_builtins.int] shaping_peak_bandwidth: The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
|
|
356
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] standby_nics: List of standby network adapters used for failover.
|
|
357
|
+
:param pulumi.Input[_builtins.str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
|
|
358
|
+
:param pulumi.Input[_builtins.str] virtual_switch_name: The name of the virtual switch to bind
|
|
363
359
|
this port group to. Forces a new resource if changed.
|
|
364
|
-
:param pulumi.Input[int] vlan_id: The VLAN ID/trunk mode for this port group. An ID of
|
|
360
|
+
:param pulumi.Input[_builtins.int] vlan_id: The VLAN ID/trunk mode for this port group. An ID of
|
|
365
361
|
`0` denotes no tagging, an ID of `1`-`4094` tags with the specific ID, and an
|
|
366
362
|
ID of `4095` enables trunk mode, allowing the guest to manage its own
|
|
367
363
|
tagging. Default: `0`.
|
|
@@ -407,71 +403,69 @@ class _HostPortGroupState:
|
|
|
407
403
|
if vlan_id is not None:
|
|
408
404
|
pulumi.set(__self__, "vlan_id", vlan_id)
|
|
409
405
|
|
|
410
|
-
@property
|
|
406
|
+
@_builtins.property
|
|
411
407
|
@pulumi.getter(name="activeNics")
|
|
412
|
-
def active_nics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
408
|
+
def active_nics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
413
409
|
"""
|
|
414
410
|
List of active network adapters used for load balancing.
|
|
415
411
|
"""
|
|
416
412
|
return pulumi.get(self, "active_nics")
|
|
417
413
|
|
|
418
414
|
@active_nics.setter
|
|
419
|
-
def active_nics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
415
|
+
def active_nics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
420
416
|
pulumi.set(self, "active_nics", value)
|
|
421
417
|
|
|
422
|
-
@property
|
|
418
|
+
@_builtins.property
|
|
423
419
|
@pulumi.getter(name="allowForgedTransmits")
|
|
424
|
-
def allow_forged_transmits(self) -> Optional[pulumi.Input[bool]]:
|
|
420
|
+
def allow_forged_transmits(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
425
421
|
"""
|
|
426
|
-
Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than
|
|
427
|
-
that of its own.
|
|
422
|
+
Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
|
|
428
423
|
"""
|
|
429
424
|
return pulumi.get(self, "allow_forged_transmits")
|
|
430
425
|
|
|
431
426
|
@allow_forged_transmits.setter
|
|
432
|
-
def allow_forged_transmits(self, value: Optional[pulumi.Input[bool]]):
|
|
427
|
+
def allow_forged_transmits(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
433
428
|
pulumi.set(self, "allow_forged_transmits", value)
|
|
434
429
|
|
|
435
|
-
@property
|
|
430
|
+
@_builtins.property
|
|
436
431
|
@pulumi.getter(name="allowMacChanges")
|
|
437
|
-
def allow_mac_changes(self) -> Optional[pulumi.Input[bool]]:
|
|
432
|
+
def allow_mac_changes(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
438
433
|
"""
|
|
439
434
|
Controls whether or not the Media Access Control (MAC) address can be changed.
|
|
440
435
|
"""
|
|
441
436
|
return pulumi.get(self, "allow_mac_changes")
|
|
442
437
|
|
|
443
438
|
@allow_mac_changes.setter
|
|
444
|
-
def allow_mac_changes(self, value: Optional[pulumi.Input[bool]]):
|
|
439
|
+
def allow_mac_changes(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
445
440
|
pulumi.set(self, "allow_mac_changes", value)
|
|
446
441
|
|
|
447
|
-
@property
|
|
442
|
+
@_builtins.property
|
|
448
443
|
@pulumi.getter(name="allowPromiscuous")
|
|
449
|
-
def allow_promiscuous(self) -> Optional[pulumi.Input[bool]]:
|
|
444
|
+
def allow_promiscuous(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
450
445
|
"""
|
|
451
446
|
Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
|
|
452
447
|
"""
|
|
453
448
|
return pulumi.get(self, "allow_promiscuous")
|
|
454
449
|
|
|
455
450
|
@allow_promiscuous.setter
|
|
456
|
-
def allow_promiscuous(self, value: Optional[pulumi.Input[bool]]):
|
|
451
|
+
def allow_promiscuous(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
457
452
|
pulumi.set(self, "allow_promiscuous", value)
|
|
458
453
|
|
|
459
|
-
@property
|
|
454
|
+
@_builtins.property
|
|
460
455
|
@pulumi.getter(name="checkBeacon")
|
|
461
|
-
def check_beacon(self) -> Optional[pulumi.Input[bool]]:
|
|
456
|
+
def check_beacon(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
462
457
|
"""
|
|
463
|
-
Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used
|
|
464
|
-
only.
|
|
458
|
+
Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
|
|
465
459
|
"""
|
|
466
460
|
return pulumi.get(self, "check_beacon")
|
|
467
461
|
|
|
468
462
|
@check_beacon.setter
|
|
469
|
-
def check_beacon(self, value: Optional[pulumi.Input[bool]]):
|
|
463
|
+
def check_beacon(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
470
464
|
pulumi.set(self, "check_beacon", value)
|
|
471
465
|
|
|
472
|
-
@property
|
|
466
|
+
@_builtins.property
|
|
473
467
|
@pulumi.getter(name="computedPolicy")
|
|
474
|
-
def computed_policy(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
468
|
+
def computed_policy(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
475
469
|
"""
|
|
476
470
|
A map with a full set of the policy
|
|
477
471
|
options computed from defaults and overrides,
|
|
@@ -480,24 +474,24 @@ class _HostPortGroupState:
|
|
|
480
474
|
return pulumi.get(self, "computed_policy")
|
|
481
475
|
|
|
482
476
|
@computed_policy.setter
|
|
483
|
-
def computed_policy(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
477
|
+
def computed_policy(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
484
478
|
pulumi.set(self, "computed_policy", value)
|
|
485
479
|
|
|
486
|
-
@property
|
|
480
|
+
@_builtins.property
|
|
487
481
|
@pulumi.getter
|
|
488
|
-
def failback(self) -> Optional[pulumi.Input[bool]]:
|
|
482
|
+
def failback(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
489
483
|
"""
|
|
490
484
|
If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
|
|
491
485
|
"""
|
|
492
486
|
return pulumi.get(self, "failback")
|
|
493
487
|
|
|
494
488
|
@failback.setter
|
|
495
|
-
def failback(self, value: Optional[pulumi.Input[bool]]):
|
|
489
|
+
def failback(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
496
490
|
pulumi.set(self, "failback", value)
|
|
497
491
|
|
|
498
|
-
@property
|
|
492
|
+
@_builtins.property
|
|
499
493
|
@pulumi.getter(name="hostSystemId")
|
|
500
|
-
def host_system_id(self) -> Optional[pulumi.Input[str]]:
|
|
494
|
+
def host_system_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
501
495
|
"""
|
|
502
496
|
The managed object ID of
|
|
503
497
|
the host to set the port group up on. Forces a new resource if changed.
|
|
@@ -505,24 +499,24 @@ class _HostPortGroupState:
|
|
|
505
499
|
return pulumi.get(self, "host_system_id")
|
|
506
500
|
|
|
507
501
|
@host_system_id.setter
|
|
508
|
-
def host_system_id(self, value: Optional[pulumi.Input[str]]):
|
|
502
|
+
def host_system_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
509
503
|
pulumi.set(self, "host_system_id", value)
|
|
510
504
|
|
|
511
|
-
@property
|
|
505
|
+
@_builtins.property
|
|
512
506
|
@pulumi.getter
|
|
513
|
-
def key(self) -> Optional[pulumi.Input[str]]:
|
|
507
|
+
def key(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
514
508
|
"""
|
|
515
509
|
The key for this port group as returned from the vSphere API.
|
|
516
510
|
"""
|
|
517
511
|
return pulumi.get(self, "key")
|
|
518
512
|
|
|
519
513
|
@key.setter
|
|
520
|
-
def key(self, value: Optional[pulumi.Input[str]]):
|
|
514
|
+
def key(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
521
515
|
pulumi.set(self, "key", value)
|
|
522
516
|
|
|
523
|
-
@property
|
|
517
|
+
@_builtins.property
|
|
524
518
|
@pulumi.getter
|
|
525
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
519
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
526
520
|
"""
|
|
527
521
|
The name of the port group. Forces a new resource if
|
|
528
522
|
changed.
|
|
@@ -530,22 +524,22 @@ class _HostPortGroupState:
|
|
|
530
524
|
return pulumi.get(self, "name")
|
|
531
525
|
|
|
532
526
|
@name.setter
|
|
533
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
527
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
534
528
|
pulumi.set(self, "name", value)
|
|
535
529
|
|
|
536
|
-
@property
|
|
530
|
+
@_builtins.property
|
|
537
531
|
@pulumi.getter(name="notifySwitches")
|
|
538
|
-
def notify_switches(self) -> Optional[pulumi.Input[bool]]:
|
|
532
|
+
def notify_switches(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
539
533
|
"""
|
|
540
534
|
If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
541
535
|
"""
|
|
542
536
|
return pulumi.get(self, "notify_switches")
|
|
543
537
|
|
|
544
538
|
@notify_switches.setter
|
|
545
|
-
def notify_switches(self, value: Optional[pulumi.Input[bool]]):
|
|
539
|
+
def notify_switches(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
546
540
|
pulumi.set(self, "notify_switches", value)
|
|
547
541
|
|
|
548
|
-
@property
|
|
542
|
+
@_builtins.property
|
|
549
543
|
@pulumi.getter
|
|
550
544
|
def ports(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['HostPortGroupPortArgs']]]]:
|
|
551
545
|
"""
|
|
@@ -557,82 +551,81 @@ class _HostPortGroupState:
|
|
|
557
551
|
def ports(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['HostPortGroupPortArgs']]]]):
|
|
558
552
|
pulumi.set(self, "ports", value)
|
|
559
553
|
|
|
560
|
-
@property
|
|
554
|
+
@_builtins.property
|
|
561
555
|
@pulumi.getter(name="shapingAverageBandwidth")
|
|
562
|
-
def shaping_average_bandwidth(self) -> Optional[pulumi.Input[int]]:
|
|
556
|
+
def shaping_average_bandwidth(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
563
557
|
"""
|
|
564
558
|
The average bandwidth in bits per second if traffic shaping is enabled.
|
|
565
559
|
"""
|
|
566
560
|
return pulumi.get(self, "shaping_average_bandwidth")
|
|
567
561
|
|
|
568
562
|
@shaping_average_bandwidth.setter
|
|
569
|
-
def shaping_average_bandwidth(self, value: Optional[pulumi.Input[int]]):
|
|
563
|
+
def shaping_average_bandwidth(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
570
564
|
pulumi.set(self, "shaping_average_bandwidth", value)
|
|
571
565
|
|
|
572
|
-
@property
|
|
566
|
+
@_builtins.property
|
|
573
567
|
@pulumi.getter(name="shapingBurstSize")
|
|
574
|
-
def shaping_burst_size(self) -> Optional[pulumi.Input[int]]:
|
|
568
|
+
def shaping_burst_size(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
575
569
|
"""
|
|
576
570
|
The maximum burst size allowed in bytes if traffic shaping is enabled.
|
|
577
571
|
"""
|
|
578
572
|
return pulumi.get(self, "shaping_burst_size")
|
|
579
573
|
|
|
580
574
|
@shaping_burst_size.setter
|
|
581
|
-
def shaping_burst_size(self, value: Optional[pulumi.Input[int]]):
|
|
575
|
+
def shaping_burst_size(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
582
576
|
pulumi.set(self, "shaping_burst_size", value)
|
|
583
577
|
|
|
584
|
-
@property
|
|
578
|
+
@_builtins.property
|
|
585
579
|
@pulumi.getter(name="shapingEnabled")
|
|
586
|
-
def shaping_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
580
|
+
def shaping_enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
587
581
|
"""
|
|
588
582
|
Enable traffic shaping on this virtual switch or port group.
|
|
589
583
|
"""
|
|
590
584
|
return pulumi.get(self, "shaping_enabled")
|
|
591
585
|
|
|
592
586
|
@shaping_enabled.setter
|
|
593
|
-
def shaping_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
587
|
+
def shaping_enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
594
588
|
pulumi.set(self, "shaping_enabled", value)
|
|
595
589
|
|
|
596
|
-
@property
|
|
590
|
+
@_builtins.property
|
|
597
591
|
@pulumi.getter(name="shapingPeakBandwidth")
|
|
598
|
-
def shaping_peak_bandwidth(self) -> Optional[pulumi.Input[int]]:
|
|
592
|
+
def shaping_peak_bandwidth(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
599
593
|
"""
|
|
600
594
|
The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
|
|
601
595
|
"""
|
|
602
596
|
return pulumi.get(self, "shaping_peak_bandwidth")
|
|
603
597
|
|
|
604
598
|
@shaping_peak_bandwidth.setter
|
|
605
|
-
def shaping_peak_bandwidth(self, value: Optional[pulumi.Input[int]]):
|
|
599
|
+
def shaping_peak_bandwidth(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
606
600
|
pulumi.set(self, "shaping_peak_bandwidth", value)
|
|
607
601
|
|
|
608
|
-
@property
|
|
602
|
+
@_builtins.property
|
|
609
603
|
@pulumi.getter(name="standbyNics")
|
|
610
|
-
def standby_nics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
604
|
+
def standby_nics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
611
605
|
"""
|
|
612
606
|
List of standby network adapters used for failover.
|
|
613
607
|
"""
|
|
614
608
|
return pulumi.get(self, "standby_nics")
|
|
615
609
|
|
|
616
610
|
@standby_nics.setter
|
|
617
|
-
def standby_nics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
611
|
+
def standby_nics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
618
612
|
pulumi.set(self, "standby_nics", value)
|
|
619
613
|
|
|
620
|
-
@property
|
|
614
|
+
@_builtins.property
|
|
621
615
|
@pulumi.getter(name="teamingPolicy")
|
|
622
|
-
def teaming_policy(self) -> Optional[pulumi.Input[str]]:
|
|
616
|
+
def teaming_policy(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
623
617
|
"""
|
|
624
|
-
The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or
|
|
625
|
-
failover_explicit.
|
|
618
|
+
The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
|
|
626
619
|
"""
|
|
627
620
|
return pulumi.get(self, "teaming_policy")
|
|
628
621
|
|
|
629
622
|
@teaming_policy.setter
|
|
630
|
-
def teaming_policy(self, value: Optional[pulumi.Input[str]]):
|
|
623
|
+
def teaming_policy(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
631
624
|
pulumi.set(self, "teaming_policy", value)
|
|
632
625
|
|
|
633
|
-
@property
|
|
626
|
+
@_builtins.property
|
|
634
627
|
@pulumi.getter(name="virtualSwitchName")
|
|
635
|
-
def virtual_switch_name(self) -> Optional[pulumi.Input[str]]:
|
|
628
|
+
def virtual_switch_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
636
629
|
"""
|
|
637
630
|
The name of the virtual switch to bind
|
|
638
631
|
this port group to. Forces a new resource if changed.
|
|
@@ -640,12 +633,12 @@ class _HostPortGroupState:
|
|
|
640
633
|
return pulumi.get(self, "virtual_switch_name")
|
|
641
634
|
|
|
642
635
|
@virtual_switch_name.setter
|
|
643
|
-
def virtual_switch_name(self, value: Optional[pulumi.Input[str]]):
|
|
636
|
+
def virtual_switch_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
644
637
|
pulumi.set(self, "virtual_switch_name", value)
|
|
645
638
|
|
|
646
|
-
@property
|
|
639
|
+
@_builtins.property
|
|
647
640
|
@pulumi.getter(name="vlanId")
|
|
648
|
-
def vlan_id(self) -> Optional[pulumi.Input[int]]:
|
|
641
|
+
def vlan_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
649
642
|
"""
|
|
650
643
|
The VLAN ID/trunk mode for this port group. An ID of
|
|
651
644
|
`0` denotes no tagging, an ID of `1`-`4094` tags with the specific ID, and an
|
|
@@ -655,32 +648,33 @@ class _HostPortGroupState:
|
|
|
655
648
|
return pulumi.get(self, "vlan_id")
|
|
656
649
|
|
|
657
650
|
@vlan_id.setter
|
|
658
|
-
def vlan_id(self, value: Optional[pulumi.Input[int]]):
|
|
651
|
+
def vlan_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
659
652
|
pulumi.set(self, "vlan_id", value)
|
|
660
653
|
|
|
661
654
|
|
|
655
|
+
@pulumi.type_token("vsphere:index/hostPortGroup:HostPortGroup")
|
|
662
656
|
class HostPortGroup(pulumi.CustomResource):
|
|
663
657
|
@overload
|
|
664
658
|
def __init__(__self__,
|
|
665
659
|
resource_name: str,
|
|
666
660
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
667
|
-
active_nics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
668
|
-
allow_forged_transmits: Optional[pulumi.Input[bool]] = None,
|
|
669
|
-
allow_mac_changes: Optional[pulumi.Input[bool]] = None,
|
|
670
|
-
allow_promiscuous: Optional[pulumi.Input[bool]] = None,
|
|
671
|
-
check_beacon: Optional[pulumi.Input[bool]] = None,
|
|
672
|
-
failback: Optional[pulumi.Input[bool]] = None,
|
|
673
|
-
host_system_id: Optional[pulumi.Input[str]] = None,
|
|
674
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
675
|
-
notify_switches: Optional[pulumi.Input[bool]] = None,
|
|
676
|
-
shaping_average_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
677
|
-
shaping_burst_size: Optional[pulumi.Input[int]] = None,
|
|
678
|
-
shaping_enabled: Optional[pulumi.Input[bool]] = None,
|
|
679
|
-
shaping_peak_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
680
|
-
standby_nics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
681
|
-
teaming_policy: Optional[pulumi.Input[str]] = None,
|
|
682
|
-
virtual_switch_name: Optional[pulumi.Input[str]] = None,
|
|
683
|
-
vlan_id: Optional[pulumi.Input[int]] = None,
|
|
661
|
+
active_nics: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
662
|
+
allow_forged_transmits: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
663
|
+
allow_mac_changes: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
664
|
+
allow_promiscuous: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
665
|
+
check_beacon: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
666
|
+
failback: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
667
|
+
host_system_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
668
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
669
|
+
notify_switches: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
670
|
+
shaping_average_bandwidth: Optional[pulumi.Input[_builtins.int]] = None,
|
|
671
|
+
shaping_burst_size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
672
|
+
shaping_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
673
|
+
shaping_peak_bandwidth: Optional[pulumi.Input[_builtins.int]] = None,
|
|
674
|
+
standby_nics: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
675
|
+
teaming_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
676
|
+
virtual_switch_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
677
|
+
vlan_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
684
678
|
__props__=None):
|
|
685
679
|
"""
|
|
686
680
|
The `HostPortGroup` resource can be used to manage port groups on
|
|
@@ -690,7 +684,7 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
690
684
|
|
|
691
685
|
For an overview on vSphere networking concepts, see [the product documentation][ref-vsphere-net-concepts].
|
|
692
686
|
|
|
693
|
-
[ref-vsphere-net-concepts]: https://
|
|
687
|
+
[ref-vsphere-net-concepts]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-networking-8-0/introduction-to-vsphere-networking.html
|
|
694
688
|
|
|
695
689
|
## Example Usage
|
|
696
690
|
|
|
@@ -703,7 +697,8 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
703
697
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
704
698
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
705
699
|
datacenter_id=datacenter.id)
|
|
706
|
-
host_virtual_switch = vsphere.HostVirtualSwitch("
|
|
700
|
+
host_virtual_switch = vsphere.HostVirtualSwitch("host_virtual_switch",
|
|
701
|
+
name="switch-01",
|
|
707
702
|
host_system_id=host.id,
|
|
708
703
|
network_adapters=[
|
|
709
704
|
"vmnic0",
|
|
@@ -712,6 +707,7 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
712
707
|
active_nics=["vmnic0"],
|
|
713
708
|
standby_nics=["vmnic1"])
|
|
714
709
|
pg = vsphere.HostPortGroup("pg",
|
|
710
|
+
name="portgroup-01",
|
|
715
711
|
host_system_id=host.id,
|
|
716
712
|
virtual_switch_name=host_virtual_switch.name)
|
|
717
713
|
```
|
|
@@ -731,7 +727,8 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
731
727
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
732
728
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
733
729
|
datacenter_id=datacenter.id)
|
|
734
|
-
host_virtual_switch = vsphere.HostVirtualSwitch("
|
|
730
|
+
host_virtual_switch = vsphere.HostVirtualSwitch("host_virtual_switch",
|
|
731
|
+
name="switch-01",
|
|
735
732
|
host_system_id=host.id,
|
|
736
733
|
network_adapters=[
|
|
737
734
|
"vmnic0",
|
|
@@ -740,47 +737,47 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
740
737
|
active_nics=["vmnic0"],
|
|
741
738
|
standby_nics=["vmnic1"])
|
|
742
739
|
pg = vsphere.HostPortGroup("pg",
|
|
740
|
+
name="portgroup-01",
|
|
743
741
|
host_system_id=host.id,
|
|
744
742
|
virtual_switch_name=host_virtual_switch.name,
|
|
745
743
|
vlan_id=4095,
|
|
746
744
|
allow_promiscuous=True)
|
|
747
745
|
```
|
|
748
|
-
|
|
746
|
+
|
|
747
|
+
## Import
|
|
749
748
|
|
|
750
749
|
An existing host port group can be imported into this resource
|
|
750
|
+
|
|
751
751
|
using the host port group's ID. An example is below:
|
|
752
752
|
|
|
753
|
-
```
|
|
754
|
-
import
|
|
753
|
+
```sh
|
|
754
|
+
$ pulumi import vsphere:index/hostPortGroup:HostPortGroup management tf-HostPortGroup:host-123:management
|
|
755
755
|
```
|
|
756
756
|
|
|
757
757
|
The above would import the `management` host port group from host with ID `host-123`.
|
|
758
758
|
|
|
759
759
|
:param str resource_name: The name of the resource.
|
|
760
760
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
761
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] active_nics: List of active network adapters used for load balancing.
|
|
762
|
-
:param pulumi.Input[bool] allow_forged_transmits: Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than
|
|
763
|
-
|
|
764
|
-
:param pulumi.Input[bool]
|
|
765
|
-
:param pulumi.Input[bool]
|
|
766
|
-
:param pulumi.Input[bool]
|
|
767
|
-
|
|
768
|
-
:param pulumi.Input[bool] failback: If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
|
|
769
|
-
:param pulumi.Input[str] host_system_id: The managed object ID of
|
|
761
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] active_nics: List of active network adapters used for load balancing.
|
|
762
|
+
:param pulumi.Input[_builtins.bool] allow_forged_transmits: Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
|
|
763
|
+
:param pulumi.Input[_builtins.bool] allow_mac_changes: Controls whether or not the Media Access Control (MAC) address can be changed.
|
|
764
|
+
:param pulumi.Input[_builtins.bool] allow_promiscuous: Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
|
|
765
|
+
:param pulumi.Input[_builtins.bool] check_beacon: Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
|
|
766
|
+
:param pulumi.Input[_builtins.bool] failback: If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
|
|
767
|
+
:param pulumi.Input[_builtins.str] host_system_id: The managed object ID of
|
|
770
768
|
the host to set the port group up on. Forces a new resource if changed.
|
|
771
|
-
:param pulumi.Input[str] name: The name of the port group. Forces a new resource if
|
|
769
|
+
:param pulumi.Input[_builtins.str] name: The name of the port group. Forces a new resource if
|
|
772
770
|
changed.
|
|
773
|
-
:param pulumi.Input[bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
774
|
-
:param pulumi.Input[int] shaping_average_bandwidth: The average bandwidth in bits per second if traffic shaping is enabled.
|
|
775
|
-
:param pulumi.Input[int] shaping_burst_size: The maximum burst size allowed in bytes if traffic shaping is enabled.
|
|
776
|
-
:param pulumi.Input[bool] shaping_enabled: Enable traffic shaping on this virtual switch or port group.
|
|
777
|
-
:param pulumi.Input[int] shaping_peak_bandwidth: The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
|
|
778
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] standby_nics: List of standby network adapters used for failover.
|
|
779
|
-
:param pulumi.Input[str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or
|
|
780
|
-
|
|
781
|
-
:param pulumi.Input[str] virtual_switch_name: The name of the virtual switch to bind
|
|
771
|
+
:param pulumi.Input[_builtins.bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
772
|
+
:param pulumi.Input[_builtins.int] shaping_average_bandwidth: The average bandwidth in bits per second if traffic shaping is enabled.
|
|
773
|
+
:param pulumi.Input[_builtins.int] shaping_burst_size: The maximum burst size allowed in bytes if traffic shaping is enabled.
|
|
774
|
+
:param pulumi.Input[_builtins.bool] shaping_enabled: Enable traffic shaping on this virtual switch or port group.
|
|
775
|
+
:param pulumi.Input[_builtins.int] shaping_peak_bandwidth: The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
|
|
776
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] standby_nics: List of standby network adapters used for failover.
|
|
777
|
+
:param pulumi.Input[_builtins.str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
|
|
778
|
+
:param pulumi.Input[_builtins.str] virtual_switch_name: The name of the virtual switch to bind
|
|
782
779
|
this port group to. Forces a new resource if changed.
|
|
783
|
-
:param pulumi.Input[int] vlan_id: The VLAN ID/trunk mode for this port group. An ID of
|
|
780
|
+
:param pulumi.Input[_builtins.int] vlan_id: The VLAN ID/trunk mode for this port group. An ID of
|
|
784
781
|
`0` denotes no tagging, an ID of `1`-`4094` tags with the specific ID, and an
|
|
785
782
|
ID of `4095` enables trunk mode, allowing the guest to manage its own
|
|
786
783
|
tagging. Default: `0`.
|
|
@@ -799,7 +796,7 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
799
796
|
|
|
800
797
|
For an overview on vSphere networking concepts, see [the product documentation][ref-vsphere-net-concepts].
|
|
801
798
|
|
|
802
|
-
[ref-vsphere-net-concepts]: https://
|
|
799
|
+
[ref-vsphere-net-concepts]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-networking-8-0/introduction-to-vsphere-networking.html
|
|
803
800
|
|
|
804
801
|
## Example Usage
|
|
805
802
|
|
|
@@ -812,7 +809,8 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
812
809
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
813
810
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
814
811
|
datacenter_id=datacenter.id)
|
|
815
|
-
host_virtual_switch = vsphere.HostVirtualSwitch("
|
|
812
|
+
host_virtual_switch = vsphere.HostVirtualSwitch("host_virtual_switch",
|
|
813
|
+
name="switch-01",
|
|
816
814
|
host_system_id=host.id,
|
|
817
815
|
network_adapters=[
|
|
818
816
|
"vmnic0",
|
|
@@ -821,6 +819,7 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
821
819
|
active_nics=["vmnic0"],
|
|
822
820
|
standby_nics=["vmnic1"])
|
|
823
821
|
pg = vsphere.HostPortGroup("pg",
|
|
822
|
+
name="portgroup-01",
|
|
824
823
|
host_system_id=host.id,
|
|
825
824
|
virtual_switch_name=host_virtual_switch.name)
|
|
826
825
|
```
|
|
@@ -840,7 +839,8 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
840
839
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
841
840
|
host = vsphere.get_host(name="esxi-01.example.com",
|
|
842
841
|
datacenter_id=datacenter.id)
|
|
843
|
-
host_virtual_switch = vsphere.HostVirtualSwitch("
|
|
842
|
+
host_virtual_switch = vsphere.HostVirtualSwitch("host_virtual_switch",
|
|
843
|
+
name="switch-01",
|
|
844
844
|
host_system_id=host.id,
|
|
845
845
|
network_adapters=[
|
|
846
846
|
"vmnic0",
|
|
@@ -849,18 +849,21 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
849
849
|
active_nics=["vmnic0"],
|
|
850
850
|
standby_nics=["vmnic1"])
|
|
851
851
|
pg = vsphere.HostPortGroup("pg",
|
|
852
|
+
name="portgroup-01",
|
|
852
853
|
host_system_id=host.id,
|
|
853
854
|
virtual_switch_name=host_virtual_switch.name,
|
|
854
855
|
vlan_id=4095,
|
|
855
856
|
allow_promiscuous=True)
|
|
856
857
|
```
|
|
857
|
-
|
|
858
|
+
|
|
859
|
+
## Import
|
|
858
860
|
|
|
859
861
|
An existing host port group can be imported into this resource
|
|
862
|
+
|
|
860
863
|
using the host port group's ID. An example is below:
|
|
861
864
|
|
|
862
|
-
```
|
|
863
|
-
import
|
|
865
|
+
```sh
|
|
866
|
+
$ pulumi import vsphere:index/hostPortGroup:HostPortGroup management tf-HostPortGroup:host-123:management
|
|
864
867
|
```
|
|
865
868
|
|
|
866
869
|
The above would import the `management` host port group from host with ID `host-123`.
|
|
@@ -880,23 +883,23 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
880
883
|
def _internal_init(__self__,
|
|
881
884
|
resource_name: str,
|
|
882
885
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
883
|
-
active_nics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
884
|
-
allow_forged_transmits: Optional[pulumi.Input[bool]] = None,
|
|
885
|
-
allow_mac_changes: Optional[pulumi.Input[bool]] = None,
|
|
886
|
-
allow_promiscuous: Optional[pulumi.Input[bool]] = None,
|
|
887
|
-
check_beacon: Optional[pulumi.Input[bool]] = None,
|
|
888
|
-
failback: Optional[pulumi.Input[bool]] = None,
|
|
889
|
-
host_system_id: Optional[pulumi.Input[str]] = None,
|
|
890
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
891
|
-
notify_switches: Optional[pulumi.Input[bool]] = None,
|
|
892
|
-
shaping_average_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
893
|
-
shaping_burst_size: Optional[pulumi.Input[int]] = None,
|
|
894
|
-
shaping_enabled: Optional[pulumi.Input[bool]] = None,
|
|
895
|
-
shaping_peak_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
896
|
-
standby_nics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
897
|
-
teaming_policy: Optional[pulumi.Input[str]] = None,
|
|
898
|
-
virtual_switch_name: Optional[pulumi.Input[str]] = None,
|
|
899
|
-
vlan_id: Optional[pulumi.Input[int]] = None,
|
|
886
|
+
active_nics: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
887
|
+
allow_forged_transmits: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
888
|
+
allow_mac_changes: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
889
|
+
allow_promiscuous: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
890
|
+
check_beacon: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
891
|
+
failback: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
892
|
+
host_system_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
893
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
894
|
+
notify_switches: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
895
|
+
shaping_average_bandwidth: Optional[pulumi.Input[_builtins.int]] = None,
|
|
896
|
+
shaping_burst_size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
897
|
+
shaping_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
898
|
+
shaping_peak_bandwidth: Optional[pulumi.Input[_builtins.int]] = None,
|
|
899
|
+
standby_nics: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
900
|
+
teaming_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
901
|
+
virtual_switch_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
902
|
+
vlan_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
900
903
|
__props__=None):
|
|
901
904
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
902
905
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -940,26 +943,26 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
940
943
|
def get(resource_name: str,
|
|
941
944
|
id: pulumi.Input[str],
|
|
942
945
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
943
|
-
active_nics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
944
|
-
allow_forged_transmits: Optional[pulumi.Input[bool]] = None,
|
|
945
|
-
allow_mac_changes: Optional[pulumi.Input[bool]] = None,
|
|
946
|
-
allow_promiscuous: Optional[pulumi.Input[bool]] = None,
|
|
947
|
-
check_beacon: Optional[pulumi.Input[bool]] = None,
|
|
948
|
-
computed_policy: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
949
|
-
failback: Optional[pulumi.Input[bool]] = None,
|
|
950
|
-
host_system_id: Optional[pulumi.Input[str]] = None,
|
|
951
|
-
key: Optional[pulumi.Input[str]] = None,
|
|
952
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
953
|
-
notify_switches: Optional[pulumi.Input[bool]] = None,
|
|
954
|
-
ports: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
955
|
-
shaping_average_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
956
|
-
shaping_burst_size: Optional[pulumi.Input[int]] = None,
|
|
957
|
-
shaping_enabled: Optional[pulumi.Input[bool]] = None,
|
|
958
|
-
shaping_peak_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
959
|
-
standby_nics: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
960
|
-
teaming_policy: Optional[pulumi.Input[str]] = None,
|
|
961
|
-
virtual_switch_name: Optional[pulumi.Input[str]] = None,
|
|
962
|
-
vlan_id: Optional[pulumi.Input[int]] = None) -> 'HostPortGroup':
|
|
946
|
+
active_nics: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
947
|
+
allow_forged_transmits: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
948
|
+
allow_mac_changes: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
949
|
+
allow_promiscuous: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
950
|
+
check_beacon: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
951
|
+
computed_policy: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
952
|
+
failback: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
953
|
+
host_system_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
954
|
+
key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
955
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
956
|
+
notify_switches: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
957
|
+
ports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HostPortGroupPortArgs', 'HostPortGroupPortArgsDict']]]]] = None,
|
|
958
|
+
shaping_average_bandwidth: Optional[pulumi.Input[_builtins.int]] = None,
|
|
959
|
+
shaping_burst_size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
960
|
+
shaping_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
961
|
+
shaping_peak_bandwidth: Optional[pulumi.Input[_builtins.int]] = None,
|
|
962
|
+
standby_nics: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
963
|
+
teaming_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
964
|
+
virtual_switch_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
965
|
+
vlan_id: Optional[pulumi.Input[_builtins.int]] = None) -> 'HostPortGroup':
|
|
963
966
|
"""
|
|
964
967
|
Get an existing HostPortGroup resource's state with the given name, id, and optional extra
|
|
965
968
|
properties used to qualify the lookup.
|
|
@@ -967,34 +970,31 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
967
970
|
:param str resource_name: The unique name of the resulting resource.
|
|
968
971
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
969
972
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
970
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] active_nics: List of active network adapters used for load balancing.
|
|
971
|
-
:param pulumi.Input[bool] allow_forged_transmits: Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than
|
|
972
|
-
|
|
973
|
-
:param pulumi.Input[bool]
|
|
974
|
-
:param pulumi.Input[bool]
|
|
975
|
-
:param pulumi.Input[
|
|
976
|
-
only.
|
|
977
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] computed_policy: A map with a full set of the policy
|
|
973
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] active_nics: List of active network adapters used for load balancing.
|
|
974
|
+
:param pulumi.Input[_builtins.bool] allow_forged_transmits: Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
|
|
975
|
+
:param pulumi.Input[_builtins.bool] allow_mac_changes: Controls whether or not the Media Access Control (MAC) address can be changed.
|
|
976
|
+
:param pulumi.Input[_builtins.bool] allow_promiscuous: Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
|
|
977
|
+
:param pulumi.Input[_builtins.bool] check_beacon: Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
|
|
978
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] computed_policy: A map with a full set of the policy
|
|
978
979
|
options computed from defaults and overrides,
|
|
979
980
|
explaining the effective policy for this port group.
|
|
980
|
-
:param pulumi.Input[bool] failback: If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
|
|
981
|
-
:param pulumi.Input[str] host_system_id: The managed object ID of
|
|
981
|
+
:param pulumi.Input[_builtins.bool] failback: If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
|
|
982
|
+
:param pulumi.Input[_builtins.str] host_system_id: The managed object ID of
|
|
982
983
|
the host to set the port group up on. Forces a new resource if changed.
|
|
983
|
-
:param pulumi.Input[str] key: The key for this port group as returned from the vSphere API.
|
|
984
|
-
:param pulumi.Input[str] name: The name of the port group. Forces a new resource if
|
|
984
|
+
:param pulumi.Input[_builtins.str] key: The key for this port group as returned from the vSphere API.
|
|
985
|
+
:param pulumi.Input[_builtins.str] name: The name of the port group. Forces a new resource if
|
|
985
986
|
changed.
|
|
986
|
-
:param pulumi.Input[bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
987
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
988
|
-
:param pulumi.Input[int] shaping_average_bandwidth: The average bandwidth in bits per second if traffic shaping is enabled.
|
|
989
|
-
:param pulumi.Input[int] shaping_burst_size: The maximum burst size allowed in bytes if traffic shaping is enabled.
|
|
990
|
-
:param pulumi.Input[bool] shaping_enabled: Enable traffic shaping on this virtual switch or port group.
|
|
991
|
-
:param pulumi.Input[int] shaping_peak_bandwidth: The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
|
|
992
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] standby_nics: List of standby network adapters used for failover.
|
|
993
|
-
:param pulumi.Input[str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or
|
|
994
|
-
|
|
995
|
-
:param pulumi.Input[str] virtual_switch_name: The name of the virtual switch to bind
|
|
987
|
+
:param pulumi.Input[_builtins.bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
988
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['HostPortGroupPortArgs', 'HostPortGroupPortArgsDict']]]] ports: A list of ports that currently exist and are used on this port group.
|
|
989
|
+
:param pulumi.Input[_builtins.int] shaping_average_bandwidth: The average bandwidth in bits per second if traffic shaping is enabled.
|
|
990
|
+
:param pulumi.Input[_builtins.int] shaping_burst_size: The maximum burst size allowed in bytes if traffic shaping is enabled.
|
|
991
|
+
:param pulumi.Input[_builtins.bool] shaping_enabled: Enable traffic shaping on this virtual switch or port group.
|
|
992
|
+
:param pulumi.Input[_builtins.int] shaping_peak_bandwidth: The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
|
|
993
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] standby_nics: List of standby network adapters used for failover.
|
|
994
|
+
:param pulumi.Input[_builtins.str] teaming_policy: The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
|
|
995
|
+
:param pulumi.Input[_builtins.str] virtual_switch_name: The name of the virtual switch to bind
|
|
996
996
|
this port group to. Forces a new resource if changed.
|
|
997
|
-
:param pulumi.Input[int] vlan_id: The VLAN ID/trunk mode for this port group. An ID of
|
|
997
|
+
:param pulumi.Input[_builtins.int] vlan_id: The VLAN ID/trunk mode for this port group. An ID of
|
|
998
998
|
`0` denotes no tagging, an ID of `1`-`4094` tags with the specific ID, and an
|
|
999
999
|
ID of `4095` enables trunk mode, allowing the guest to manage its own
|
|
1000
1000
|
tagging. Default: `0`.
|
|
@@ -1025,51 +1025,49 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
1025
1025
|
__props__.__dict__["vlan_id"] = vlan_id
|
|
1026
1026
|
return HostPortGroup(resource_name, opts=opts, __props__=__props__)
|
|
1027
1027
|
|
|
1028
|
-
@property
|
|
1028
|
+
@_builtins.property
|
|
1029
1029
|
@pulumi.getter(name="activeNics")
|
|
1030
|
-
def active_nics(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1030
|
+
def active_nics(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1031
1031
|
"""
|
|
1032
1032
|
List of active network adapters used for load balancing.
|
|
1033
1033
|
"""
|
|
1034
1034
|
return pulumi.get(self, "active_nics")
|
|
1035
1035
|
|
|
1036
|
-
@property
|
|
1036
|
+
@_builtins.property
|
|
1037
1037
|
@pulumi.getter(name="allowForgedTransmits")
|
|
1038
|
-
def allow_forged_transmits(self) -> pulumi.Output[Optional[bool]]:
|
|
1038
|
+
def allow_forged_transmits(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1039
1039
|
"""
|
|
1040
|
-
Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than
|
|
1041
|
-
that of its own.
|
|
1040
|
+
Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
|
|
1042
1041
|
"""
|
|
1043
1042
|
return pulumi.get(self, "allow_forged_transmits")
|
|
1044
1043
|
|
|
1045
|
-
@property
|
|
1044
|
+
@_builtins.property
|
|
1046
1045
|
@pulumi.getter(name="allowMacChanges")
|
|
1047
|
-
def allow_mac_changes(self) -> pulumi.Output[Optional[bool]]:
|
|
1046
|
+
def allow_mac_changes(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1048
1047
|
"""
|
|
1049
1048
|
Controls whether or not the Media Access Control (MAC) address can be changed.
|
|
1050
1049
|
"""
|
|
1051
1050
|
return pulumi.get(self, "allow_mac_changes")
|
|
1052
1051
|
|
|
1053
|
-
@property
|
|
1052
|
+
@_builtins.property
|
|
1054
1053
|
@pulumi.getter(name="allowPromiscuous")
|
|
1055
|
-
def allow_promiscuous(self) -> pulumi.Output[Optional[bool]]:
|
|
1054
|
+
def allow_promiscuous(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1056
1055
|
"""
|
|
1057
1056
|
Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
|
|
1058
1057
|
"""
|
|
1059
1058
|
return pulumi.get(self, "allow_promiscuous")
|
|
1060
1059
|
|
|
1061
|
-
@property
|
|
1060
|
+
@_builtins.property
|
|
1062
1061
|
@pulumi.getter(name="checkBeacon")
|
|
1063
|
-
def check_beacon(self) -> pulumi.Output[Optional[bool]]:
|
|
1062
|
+
def check_beacon(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1064
1063
|
"""
|
|
1065
|
-
Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used
|
|
1066
|
-
only.
|
|
1064
|
+
Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
|
|
1067
1065
|
"""
|
|
1068
1066
|
return pulumi.get(self, "check_beacon")
|
|
1069
1067
|
|
|
1070
|
-
@property
|
|
1068
|
+
@_builtins.property
|
|
1071
1069
|
@pulumi.getter(name="computedPolicy")
|
|
1072
|
-
def computed_policy(self) -> pulumi.Output[Mapping[str, str]]:
|
|
1070
|
+
def computed_policy(self) -> pulumi.Output[Mapping[str, _builtins.str]]:
|
|
1073
1071
|
"""
|
|
1074
1072
|
A map with a full set of the policy
|
|
1075
1073
|
options computed from defaults and overrides,
|
|
@@ -1077,49 +1075,49 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
1077
1075
|
"""
|
|
1078
1076
|
return pulumi.get(self, "computed_policy")
|
|
1079
1077
|
|
|
1080
|
-
@property
|
|
1078
|
+
@_builtins.property
|
|
1081
1079
|
@pulumi.getter
|
|
1082
|
-
def failback(self) -> pulumi.Output[Optional[bool]]:
|
|
1080
|
+
def failback(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1083
1081
|
"""
|
|
1084
1082
|
If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
|
|
1085
1083
|
"""
|
|
1086
1084
|
return pulumi.get(self, "failback")
|
|
1087
1085
|
|
|
1088
|
-
@property
|
|
1086
|
+
@_builtins.property
|
|
1089
1087
|
@pulumi.getter(name="hostSystemId")
|
|
1090
|
-
def host_system_id(self) -> pulumi.Output[str]:
|
|
1088
|
+
def host_system_id(self) -> pulumi.Output[_builtins.str]:
|
|
1091
1089
|
"""
|
|
1092
1090
|
The managed object ID of
|
|
1093
1091
|
the host to set the port group up on. Forces a new resource if changed.
|
|
1094
1092
|
"""
|
|
1095
1093
|
return pulumi.get(self, "host_system_id")
|
|
1096
1094
|
|
|
1097
|
-
@property
|
|
1095
|
+
@_builtins.property
|
|
1098
1096
|
@pulumi.getter
|
|
1099
|
-
def key(self) -> pulumi.Output[str]:
|
|
1097
|
+
def key(self) -> pulumi.Output[_builtins.str]:
|
|
1100
1098
|
"""
|
|
1101
1099
|
The key for this port group as returned from the vSphere API.
|
|
1102
1100
|
"""
|
|
1103
1101
|
return pulumi.get(self, "key")
|
|
1104
1102
|
|
|
1105
|
-
@property
|
|
1103
|
+
@_builtins.property
|
|
1106
1104
|
@pulumi.getter
|
|
1107
|
-
def name(self) -> pulumi.Output[str]:
|
|
1105
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
1108
1106
|
"""
|
|
1109
1107
|
The name of the port group. Forces a new resource if
|
|
1110
1108
|
changed.
|
|
1111
1109
|
"""
|
|
1112
1110
|
return pulumi.get(self, "name")
|
|
1113
1111
|
|
|
1114
|
-
@property
|
|
1112
|
+
@_builtins.property
|
|
1115
1113
|
@pulumi.getter(name="notifySwitches")
|
|
1116
|
-
def notify_switches(self) -> pulumi.Output[Optional[bool]]:
|
|
1114
|
+
def notify_switches(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1117
1115
|
"""
|
|
1118
1116
|
If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
|
|
1119
1117
|
"""
|
|
1120
1118
|
return pulumi.get(self, "notify_switches")
|
|
1121
1119
|
|
|
1122
|
-
@property
|
|
1120
|
+
@_builtins.property
|
|
1123
1121
|
@pulumi.getter
|
|
1124
1122
|
def ports(self) -> pulumi.Output[Sequence['outputs.HostPortGroupPort']]:
|
|
1125
1123
|
"""
|
|
@@ -1127,67 +1125,66 @@ class HostPortGroup(pulumi.CustomResource):
|
|
|
1127
1125
|
"""
|
|
1128
1126
|
return pulumi.get(self, "ports")
|
|
1129
1127
|
|
|
1130
|
-
@property
|
|
1128
|
+
@_builtins.property
|
|
1131
1129
|
@pulumi.getter(name="shapingAverageBandwidth")
|
|
1132
|
-
def shaping_average_bandwidth(self) -> pulumi.Output[Optional[int]]:
|
|
1130
|
+
def shaping_average_bandwidth(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1133
1131
|
"""
|
|
1134
1132
|
The average bandwidth in bits per second if traffic shaping is enabled.
|
|
1135
1133
|
"""
|
|
1136
1134
|
return pulumi.get(self, "shaping_average_bandwidth")
|
|
1137
1135
|
|
|
1138
|
-
@property
|
|
1136
|
+
@_builtins.property
|
|
1139
1137
|
@pulumi.getter(name="shapingBurstSize")
|
|
1140
|
-
def shaping_burst_size(self) -> pulumi.Output[Optional[int]]:
|
|
1138
|
+
def shaping_burst_size(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1141
1139
|
"""
|
|
1142
1140
|
The maximum burst size allowed in bytes if traffic shaping is enabled.
|
|
1143
1141
|
"""
|
|
1144
1142
|
return pulumi.get(self, "shaping_burst_size")
|
|
1145
1143
|
|
|
1146
|
-
@property
|
|
1144
|
+
@_builtins.property
|
|
1147
1145
|
@pulumi.getter(name="shapingEnabled")
|
|
1148
|
-
def shaping_enabled(self) -> pulumi.Output[Optional[bool]]:
|
|
1146
|
+
def shaping_enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
1149
1147
|
"""
|
|
1150
1148
|
Enable traffic shaping on this virtual switch or port group.
|
|
1151
1149
|
"""
|
|
1152
1150
|
return pulumi.get(self, "shaping_enabled")
|
|
1153
1151
|
|
|
1154
|
-
@property
|
|
1152
|
+
@_builtins.property
|
|
1155
1153
|
@pulumi.getter(name="shapingPeakBandwidth")
|
|
1156
|
-
def shaping_peak_bandwidth(self) -> pulumi.Output[Optional[int]]:
|
|
1154
|
+
def shaping_peak_bandwidth(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1157
1155
|
"""
|
|
1158
1156
|
The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
|
|
1159
1157
|
"""
|
|
1160
1158
|
return pulumi.get(self, "shaping_peak_bandwidth")
|
|
1161
1159
|
|
|
1162
|
-
@property
|
|
1160
|
+
@_builtins.property
|
|
1163
1161
|
@pulumi.getter(name="standbyNics")
|
|
1164
|
-
def standby_nics(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1162
|
+
def standby_nics(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
1165
1163
|
"""
|
|
1166
1164
|
List of standby network adapters used for failover.
|
|
1167
1165
|
"""
|
|
1168
1166
|
return pulumi.get(self, "standby_nics")
|
|
1169
1167
|
|
|
1170
|
-
@property
|
|
1168
|
+
@_builtins.property
|
|
1171
1169
|
@pulumi.getter(name="teamingPolicy")
|
|
1172
|
-
def teaming_policy(self) -> pulumi.Output[Optional[str]]:
|
|
1170
|
+
def teaming_policy(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
1173
1171
|
"""
|
|
1174
|
-
The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or
|
|
1175
|
-
failover_explicit.
|
|
1172
|
+
The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
|
|
1176
1173
|
"""
|
|
1177
1174
|
return pulumi.get(self, "teaming_policy")
|
|
1178
1175
|
|
|
1179
|
-
@property
|
|
1176
|
+
@_builtins.property
|
|
1180
1177
|
@pulumi.getter(name="virtualSwitchName")
|
|
1181
|
-
def virtual_switch_name(self) -> pulumi.Output[str]:
|
|
1178
|
+
def virtual_switch_name(self) -> pulumi.Output[_builtins.str]:
|
|
1182
1179
|
"""
|
|
1183
1180
|
The name of the virtual switch to bind
|
|
1184
1181
|
this port group to. Forces a new resource if changed.
|
|
1185
1182
|
"""
|
|
1186
1183
|
return pulumi.get(self, "virtual_switch_name")
|
|
1187
1184
|
|
|
1188
|
-
@property
|
|
1185
|
+
@_builtins.property
|
|
1189
1186
|
@pulumi.getter(name="vlanId")
|
|
1190
|
-
def vlan_id(self) -> pulumi.Output[Optional[int]]:
|
|
1187
|
+
def vlan_id(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
1191
1188
|
"""
|
|
1192
1189
|
The VLAN ID/trunk mode for this port group. An ID of
|
|
1193
1190
|
`0` denotes no tagging, an ID of `1`-`4094` tags with the specific ID, and an
|