HostPortGroup
The vsphere..HostPortGroup resource can be used to manage vSphere standard
port groups on an ESXi host. These port groups are connected to standard
virtual switches, which can be managed by the
vsphere..HostVirtualSwitch resource.
For an overview on vSphere networking concepts, see this page.
Example Usage
Create a virtual switch and bind a port group to it
using Pulumi;
using VSphere = Pulumi.VSphere;
class MyStack : Stack
{
public MyStack()
{
var datacenter = Output.Create(VSphere.GetDatacenter.InvokeAsync(new VSphere.GetDatacenterArgs
{
Name = "dc1",
}));
var esxiHost = datacenter.Apply(datacenter => Output.Create(VSphere.GetHost.InvokeAsync(new VSphere.GetHostArgs
{
DatacenterId = datacenter.Id,
Name = "esxi1",
})));
var @switch = new VSphere.HostVirtualSwitch("switch", new VSphere.HostVirtualSwitchArgs
{
ActiveNics =
{
"vmnic0",
},
HostSystemId = esxiHost.Apply(esxiHost => esxiHost.Id),
NetworkAdapters =
{
"vmnic0",
"vmnic1",
},
StandbyNics =
{
"vmnic1",
},
});
var pg = new VSphere.HostPortGroup("pg", new VSphere.HostPortGroupArgs
{
HostSystemId = esxiHost.Apply(esxiHost => esxiHost.Id),
VirtualSwitchName = @switch.Name,
});
}
}
Coming soon!
import pulumi
import pulumi_vsphere as vsphere
datacenter = vsphere.get_datacenter(name="dc1")
esxi_host = vsphere.get_host(datacenter_id=datacenter.id,
name="esxi1")
switch = vsphere.HostVirtualSwitch("switch",
active_nics=["vmnic0"],
host_system_id=esxi_host.id,
network_adapters=[
"vmnic0",
"vmnic1",
],
standby_nics=["vmnic1"])
pg = vsphere.HostPortGroup("pg",
host_system_id=esxi_host.id,
virtual_switch_name=switch.name)import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const datacenter = pulumi.output(vsphere.getDatacenter({
name: "dc1",
}, { async: true }));
const esxiHost = datacenter.apply(datacenter => vsphere.getHost({
datacenterId: datacenter.id,
name: "esxi1",
}, { async: true }));
const switchHostVirtualSwitch = new vsphere.HostVirtualSwitch("switch", {
activeNics: ["vmnic0"],
hostSystemId: esxiHost.id,
networkAdapters: [
"vmnic0",
"vmnic1",
],
standbyNics: ["vmnic1"],
});
const pg = new vsphere.HostPortGroup("pg", {
hostSystemId: esxiHost.id,
virtualSwitchName: switchHostVirtualSwitch.name,
});Create a port group with VLAN set and some overrides
using Pulumi;
using VSphere = Pulumi.VSphere;
class MyStack : Stack
{
public MyStack()
{
var datacenter = Output.Create(VSphere.GetDatacenter.InvokeAsync(new VSphere.GetDatacenterArgs
{
Name = "dc1",
}));
var esxiHost = datacenter.Apply(datacenter => Output.Create(VSphere.GetHost.InvokeAsync(new VSphere.GetHostArgs
{
DatacenterId = datacenter.Id,
Name = "esxi1",
})));
var @switch = new VSphere.HostVirtualSwitch("switch", new VSphere.HostVirtualSwitchArgs
{
ActiveNics =
{
"vmnic0",
},
HostSystemId = esxiHost.Apply(esxiHost => esxiHost.Id),
NetworkAdapters =
{
"vmnic0",
"vmnic1",
},
StandbyNics =
{
"vmnic1",
},
});
var pg = new VSphere.HostPortGroup("pg", new VSphere.HostPortGroupArgs
{
AllowPromiscuous = true,
HostSystemId = esxiHost.Apply(esxiHost => esxiHost.Id),
VirtualSwitchName = @switch.Name,
VlanId = 4095,
});
}
}
Coming soon!
import pulumi
import pulumi_vsphere as vsphere
datacenter = vsphere.get_datacenter(name="dc1")
esxi_host = vsphere.get_host(datacenter_id=datacenter.id,
name="esxi1")
switch = vsphere.HostVirtualSwitch("switch",
active_nics=["vmnic0"],
host_system_id=esxi_host.id,
network_adapters=[
"vmnic0",
"vmnic1",
],
standby_nics=["vmnic1"])
pg = vsphere.HostPortGroup("pg",
allow_promiscuous=True,
host_system_id=esxi_host.id,
virtual_switch_name=switch.name,
vlan_id=4095)import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const datacenter = pulumi.output(vsphere.getDatacenter({
name: "dc1",
}, { async: true }));
const esxiHost = datacenter.apply(datacenter => vsphere.getHost({
datacenterId: datacenter.id,
name: "esxi1",
}, { async: true }));
const switchHostVirtualSwitch = new vsphere.HostVirtualSwitch("switch", {
activeNics: ["vmnic0"],
hostSystemId: esxiHost.id,
networkAdapters: [
"vmnic0",
"vmnic1",
],
standbyNics: ["vmnic1"],
});
const pg = new vsphere.HostPortGroup("pg", {
allowPromiscuous: true,
hostSystemId: esxiHost.id,
virtualSwitchName: switchHostVirtualSwitch.name,
vlanId: 4095,
});Create a HostPortGroup Resource
new HostPortGroup(name: string, args: HostPortGroupArgs, opts?: CustomResourceOptions);def HostPortGroup(resource_name, opts=None, active_nics=None, allow_forged_transmits=None, allow_mac_changes=None, allow_promiscuous=None, check_beacon=None, failback=None, host_system_id=None, name=None, notify_switches=None, shaping_average_bandwidth=None, shaping_burst_size=None, shaping_enabled=None, shaping_peak_bandwidth=None, standby_nics=None, teaming_policy=None, virtual_switch_name=None, vlan_id=None, __props__=None);func NewHostPortGroup(ctx *Context, name string, args HostPortGroupArgs, opts ...ResourceOption) (*HostPortGroup, error)public HostPortGroup(string name, HostPortGroupArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args HostPortGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HostPortGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HostPortGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
HostPortGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The HostPortGroup resource accepts the following input properties:
- Host
System stringId The managed object ID of the host to set the port group up on. Forces a new resource if changed.
- Virtual
Switch stringName The name of the virtual switch to bind this port group to. Forces a new resource if changed.
- Active
Nics List<string> List of active network adapters used for load balancing.
- Allow
Forged boolTransmits Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- Allow
Mac boolChanges Controls whether or not the Media Access Control (MAC) address can be changed.
- Allow
Promiscuous bool Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- Check
Beacon bool Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- Failback bool
If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- Name string
The name of the port group. Forces a new resource if changed.
- Notify
Switches bool If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- Shaping
Average intBandwidth The average bandwidth in bits per second if traffic shaping is enabled.
- Shaping
Burst intSize The maximum burst size allowed in bytes if traffic shaping is enabled.
- Shaping
Enabled bool Enable traffic shaping on this virtual switch or port group.
- Shaping
Peak intBandwidth The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- Standby
Nics List<string> List of standby network adapters used for failover.
- Teaming
Policy string The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- Vlan
Id int The VLAN ID/trunk mode for this port group. An ID of
0denotes no tagging, an ID of1-4094tags with the specific ID, and an ID of4095enables trunk mode, allowing the guest to manage its own tagging. Default:0.
- Host
System stringId The managed object ID of the host to set the port group up on. Forces a new resource if changed.
- Virtual
Switch stringName The name of the virtual switch to bind this port group to. Forces a new resource if changed.
- Active
Nics []string List of active network adapters used for load balancing.
- Allow
Forged boolTransmits Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- Allow
Mac boolChanges Controls whether or not the Media Access Control (MAC) address can be changed.
- Allow
Promiscuous bool Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- Check
Beacon bool Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- Failback bool
If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- Name string
The name of the port group. Forces a new resource if changed.
- Notify
Switches bool If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- Shaping
Average intBandwidth The average bandwidth in bits per second if traffic shaping is enabled.
- Shaping
Burst intSize The maximum burst size allowed in bytes if traffic shaping is enabled.
- Shaping
Enabled bool Enable traffic shaping on this virtual switch or port group.
- Shaping
Peak intBandwidth The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- Standby
Nics []string List of standby network adapters used for failover.
- Teaming
Policy string The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- Vlan
Id int The VLAN ID/trunk mode for this port group. An ID of
0denotes no tagging, an ID of1-4094tags with the specific ID, and an ID of4095enables trunk mode, allowing the guest to manage its own tagging. Default:0.
- host
System stringId The managed object ID of the host to set the port group up on. Forces a new resource if changed.
- virtual
Switch stringName The name of the virtual switch to bind this port group to. Forces a new resource if changed.
- active
Nics string[] List of active network adapters used for load balancing.
- allow
Forged booleanTransmits Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow
Mac booleanChanges Controls whether or not the Media Access Control (MAC) address can be changed.
- allow
Promiscuous boolean Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- check
Beacon boolean Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- failback boolean
If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- name string
The name of the port group. Forces a new resource if changed.
- notify
Switches boolean If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- shaping
Average numberBandwidth The average bandwidth in bits per second if traffic shaping is enabled.
- shaping
Burst numberSize The maximum burst size allowed in bytes if traffic shaping is enabled.
- shaping
Enabled boolean Enable traffic shaping on this virtual switch or port group.
- shaping
Peak numberBandwidth The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- standby
Nics string[] List of standby network adapters used for failover.
- teaming
Policy string The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- vlan
Id number The VLAN ID/trunk mode for this port group. An ID of
0denotes no tagging, an ID of1-4094tags with the specific ID, and an ID of4095enables trunk mode, allowing the guest to manage its own tagging. Default:0.
- host_
system_ strid The managed object ID of the host to set the port group up on. Forces a new resource if changed.
- virtual_
switch_ strname The name of the virtual switch to bind this port group to. Forces a new resource if changed.
- active_
nics List[str] List of active network adapters used for load balancing.
- allow_
forged_ booltransmits Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow_
mac_ boolchanges Controls whether or not the Media Access Control (MAC) address can be changed.
- allow_
promiscuous bool Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- check_
beacon bool Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- failback bool
If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- name str
The name of the port group. Forces a new resource if changed.
- notify_
switches bool If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- shaping_
average_ floatbandwidth The average bandwidth in bits per second if traffic shaping is enabled.
- shaping_
burst_ floatsize The maximum burst size allowed in bytes if traffic shaping is enabled.
- shaping_
enabled bool Enable traffic shaping on this virtual switch or port group.
- shaping_
peak_ floatbandwidth The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- standby_
nics List[str] List of standby network adapters used for failover.
- teaming_
policy str The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- vlan_
id float The VLAN ID/trunk mode for this port group. An ID of
0denotes no tagging, an ID of1-4094tags with the specific ID, and an ID of4095enables trunk mode, allowing the guest to manage its own tagging. Default:0.
Outputs
All input properties are implicitly available as output properties. Additionally, the HostPortGroup resource produces the following output properties:
- Computed
Policy Dictionary<string, string> A map with a full set of the policy options computed from defaults and overrides, explaining the effective policy for this port group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
The key for this port group as returned from the vSphere API.
- Ports
Pulumi.
VSphere. Outputs. Host Port Group Ports A list of ports that currently exist and are used on this port group.
- Computed
Policy map[string]string A map with a full set of the policy options computed from defaults and overrides, explaining the effective policy for this port group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
The key for this port group as returned from the vSphere API.
- Ports
Host
Port Group Ports A list of ports that currently exist and are used on this port group.
- computed
Policy {[key: string]: string} A map with a full set of the policy options computed from defaults and overrides, explaining the effective policy for this port group.
- id string
- The provider-assigned unique ID for this managed resource.
- key string
The key for this port group as returned from the vSphere API.
- ports
Host
Port Group Ports A list of ports that currently exist and are used on this port group.
- computed_
policy Dict[str, str] A map with a full set of the policy options computed from defaults and overrides, explaining the effective policy for this port group.
- id str
- The provider-assigned unique ID for this managed resource.
- key str
The key for this port group as returned from the vSphere API.
- ports
Dict[Host
Port Group Ports] A list of ports that currently exist and are used on this port group.
Look up an Existing HostPortGroup Resource
Get an existing HostPortGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HostPortGroupState, opts?: CustomResourceOptions): HostPortGroupstatic get(resource_name, id, opts=None, active_nics=None, allow_forged_transmits=None, allow_mac_changes=None, allow_promiscuous=None, check_beacon=None, computed_policy=None, failback=None, host_system_id=None, key=None, name=None, notify_switches=None, ports=None, shaping_average_bandwidth=None, shaping_burst_size=None, shaping_enabled=None, shaping_peak_bandwidth=None, standby_nics=None, teaming_policy=None, virtual_switch_name=None, vlan_id=None, __props__=None);func GetHostPortGroup(ctx *Context, name string, id IDInput, state *HostPortGroupState, opts ...ResourceOption) (*HostPortGroup, error)public static HostPortGroup Get(string name, Input<string> id, HostPortGroupState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Active
Nics List<string> List of active network adapters used for load balancing.
- Allow
Forged boolTransmits Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- Allow
Mac boolChanges Controls whether or not the Media Access Control (MAC) address can be changed.
- Allow
Promiscuous bool Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- Check
Beacon bool Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- Computed
Policy Dictionary<string, string> A map with a full set of the policy options computed from defaults and overrides, explaining the effective policy for this port group.
- Failback bool
If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- Host
System stringId The managed object ID of the host to set the port group up on. Forces a new resource if changed.
- Key string
The key for this port group as returned from the vSphere API.
- Name string
The name of the port group. Forces a new resource if changed.
- Notify
Switches bool If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- Ports
Pulumi.
VSphere. Inputs. Host Port Group Ports Args A list of ports that currently exist and are used on this port group.
- Shaping
Average intBandwidth The average bandwidth in bits per second if traffic shaping is enabled.
- Shaping
Burst intSize The maximum burst size allowed in bytes if traffic shaping is enabled.
- Shaping
Enabled bool Enable traffic shaping on this virtual switch or port group.
- Shaping
Peak intBandwidth The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- Standby
Nics List<string> List of standby network adapters used for failover.
- Teaming
Policy string The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- Virtual
Switch stringName The name of the virtual switch to bind this port group to. Forces a new resource if changed.
- Vlan
Id int The VLAN ID/trunk mode for this port group. An ID of
0denotes no tagging, an ID of1-4094tags with the specific ID, and an ID of4095enables trunk mode, allowing the guest to manage its own tagging. Default:0.
- Active
Nics []string List of active network adapters used for load balancing.
- Allow
Forged boolTransmits Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- Allow
Mac boolChanges Controls whether or not the Media Access Control (MAC) address can be changed.
- Allow
Promiscuous bool Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- Check
Beacon bool Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- Computed
Policy map[string]string A map with a full set of the policy options computed from defaults and overrides, explaining the effective policy for this port group.
- Failback bool
If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- Host
System stringId The managed object ID of the host to set the port group up on. Forces a new resource if changed.
- Key string
The key for this port group as returned from the vSphere API.
- Name string
The name of the port group. Forces a new resource if changed.
- Notify
Switches bool If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- Ports
Host
Port Group Ports A list of ports that currently exist and are used on this port group.
- Shaping
Average intBandwidth The average bandwidth in bits per second if traffic shaping is enabled.
- Shaping
Burst intSize The maximum burst size allowed in bytes if traffic shaping is enabled.
- Shaping
Enabled bool Enable traffic shaping on this virtual switch or port group.
- Shaping
Peak intBandwidth The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- Standby
Nics []string List of standby network adapters used for failover.
- Teaming
Policy string The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- Virtual
Switch stringName The name of the virtual switch to bind this port group to. Forces a new resource if changed.
- Vlan
Id int The VLAN ID/trunk mode for this port group. An ID of
0denotes no tagging, an ID of1-4094tags with the specific ID, and an ID of4095enables trunk mode, allowing the guest to manage its own tagging. Default:0.
- active
Nics string[] List of active network adapters used for load balancing.
- allow
Forged booleanTransmits Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow
Mac booleanChanges Controls whether or not the Media Access Control (MAC) address can be changed.
- allow
Promiscuous boolean Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- check
Beacon boolean Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- computed
Policy {[key: string]: string} A map with a full set of the policy options computed from defaults and overrides, explaining the effective policy for this port group.
- failback boolean
If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- host
System stringId The managed object ID of the host to set the port group up on. Forces a new resource if changed.
- key string
The key for this port group as returned from the vSphere API.
- name string
The name of the port group. Forces a new resource if changed.
- notify
Switches boolean If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- ports
Host
Port Group Ports A list of ports that currently exist and are used on this port group.
- shaping
Average numberBandwidth The average bandwidth in bits per second if traffic shaping is enabled.
- shaping
Burst numberSize The maximum burst size allowed in bytes if traffic shaping is enabled.
- shaping
Enabled boolean Enable traffic shaping on this virtual switch or port group.
- shaping
Peak numberBandwidth The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- standby
Nics string[] List of standby network adapters used for failover.
- teaming
Policy string The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- virtual
Switch stringName The name of the virtual switch to bind this port group to. Forces a new resource if changed.
- vlan
Id number The VLAN ID/trunk mode for this port group. An ID of
0denotes no tagging, an ID of1-4094tags with the specific ID, and an ID of4095enables trunk mode, allowing the guest to manage its own tagging. Default:0.
- active_
nics List[str] List of active network adapters used for load balancing.
- allow_
forged_ booltransmits Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
- allow_
mac_ boolchanges Controls whether or not the Media Access Control (MAC) address can be changed.
- allow_
promiscuous bool Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
- check_
beacon bool Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
- computed_
policy Dict[str, str] A map with a full set of the policy options computed from defaults and overrides, explaining the effective policy for this port group.
- failback bool
If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- host_
system_ strid The managed object ID of the host to set the port group up on. Forces a new resource if changed.
- key str
The key for this port group as returned from the vSphere API.
- name str
The name of the port group. Forces a new resource if changed.
- notify_
switches bool If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- ports
Dict[Host
Port Group Ports] A list of ports that currently exist and are used on this port group.
- shaping_
average_ floatbandwidth The average bandwidth in bits per second if traffic shaping is enabled.
- shaping_
burst_ floatsize The maximum burst size allowed in bytes if traffic shaping is enabled.
- shaping_
enabled bool Enable traffic shaping on this virtual switch or port group.
- shaping_
peak_ floatbandwidth The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
- standby_
nics List[str] List of standby network adapters used for failover.
- teaming_
policy str The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
- virtual_
switch_ strname The name of the virtual switch to bind this port group to. Forces a new resource if changed.
- vlan_
id float The VLAN ID/trunk mode for this port group. An ID of
0denotes no tagging, an ID of1-4094tags with the specific ID, and an ID of4095enables trunk mode, allowing the guest to manage its own tagging. Default:0.
Supporting Types
HostPortGroupPorts
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Key string
The key for this port group as returned from the vSphere API.
- Mac
Addresses List<string> - Type string
Package Details
- Repository
- https://github.com/pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphereTerraform Provider.