vsphere.DistributedPortGroup
Explore with Pulumi AI
The vsphere.DistributedPortGroup
resource can be used to manage
distributed port groups connected to vSphere Distributed Switches (VDS).
A vSphere Distributed Switch can be managed by the
vsphere.DistributedVirtualSwitch
resource.
Distributed port groups can be used as networks for virtual machines, allowing the virtual machines to use the networking supplied by a vSphere Distributed Switch, with a set of policies that apply to that individual network, if desired.
For an overview on vSphere networking concepts, refer to the vSphere product documentation.
For more information on distributed port groups, refer to the vSphere product documentation.
NOTE: This resource requires vCenter and is not available on direct ESXi host connections.
Example Usage
The configuration below builds on the example given in the
vsphere.DistributedVirtualSwitch
resource by
adding the vsphere.DistributedPortGroup
resource, attaching itself to the
vSphere Distributed Switch and assigning VLAN ID 1000.
import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const config = new pulumi.Config();
const hosts = config.getObject("hosts") || [
"esxi-01.example.com",
"esxi-02.example.com",
"esxi-03.example.com",
];
const networkInterfaces = config.getObject("networkInterfaces") || [
"vmnic0",
"vmnic1",
"vmnic2",
"vmnic3",
];
const datacenter = vsphere.getDatacenter({
name: "dc-01",
});
const host = (new Array(hosts.length)).map((_, i) => i).map(__index => (vsphere.getHost({
name: hosts[__index],
datacenterId: _arg0_.id,
})));
const vds = new vsphere.DistributedVirtualSwitch("vds", {
name: "vds-01",
datacenterId: datacenter.then(datacenter => datacenter.id),
uplinks: [
"uplink1",
"uplink2",
"uplink3",
"uplink4",
],
activeUplinks: [
"uplink1",
"uplink2",
],
standbyUplinks: [
"uplink3",
"uplink4",
],
hosts: [
{
hostSystemId: host[0].then(host => host.id),
devices: [networkInterfaces],
},
{
hostSystemId: host[1].then(host => host.id),
devices: [networkInterfaces],
},
{
hostSystemId: host[2].then(host => host.id),
devices: [networkInterfaces],
},
],
});
const pg = new vsphere.DistributedPortGroup("pg", {
name: "pg-01",
distributedVirtualSwitchUuid: vds.id,
vlanId: 1000,
});
import pulumi
import pulumi_vsphere as vsphere
config = pulumi.Config()
hosts = config.get_object("hosts")
if hosts is None:
hosts = [
"esxi-01.example.com",
"esxi-02.example.com",
"esxi-03.example.com",
]
network_interfaces = config.get_object("networkInterfaces")
if network_interfaces is None:
network_interfaces = [
"vmnic0",
"vmnic1",
"vmnic2",
"vmnic3",
]
datacenter = vsphere.get_datacenter(name="dc-01")
host = [vsphere.get_host(name=hosts[__index],
datacenter_id=datacenter.id) for __index in range(len(hosts))]
vds = vsphere.DistributedVirtualSwitch("vds",
name="vds-01",
datacenter_id=datacenter.id,
uplinks=[
"uplink1",
"uplink2",
"uplink3",
"uplink4",
],
active_uplinks=[
"uplink1",
"uplink2",
],
standby_uplinks=[
"uplink3",
"uplink4",
],
hosts=[
{
"host_system_id": host[0].id,
"devices": [network_interfaces],
},
{
"host_system_id": host[1].id,
"devices": [network_interfaces],
},
{
"host_system_id": host[2].id,
"devices": [network_interfaces],
},
])
pg = vsphere.DistributedPortGroup("pg",
name="pg-01",
distributed_virtual_switch_uuid=vds.id,
vlan_id=1000)
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Overriding VDS policies
All of the default port policies available in the
vsphere.DistributedVirtualSwitch
resource can be overridden on the port
group level by specifying new settings for them.
As an example, we also take this example from the
vsphere.DistributedVirtualSwitch
resource where we manually specify our
uplink count and uplink order. While the vSphere Distributed Switch has a
default policy of using the first uplink as an active uplink and the second
one as a standby, the overridden port group policy means that both uplinks
will be used as active uplinks in this specific port group.
import * as pulumi from "@pulumi/pulumi";
import * as vsphere from "@pulumi/vsphere";
const vds = new vsphere.DistributedVirtualSwitch("vds", {
name: "vds-01",
datacenterId: datacenter.id,
uplinks: [
"uplink1",
"uplink2",
],
activeUplinks: ["uplink1"],
standbyUplinks: ["uplink2"],
});
const pg = new vsphere.DistributedPortGroup("pg", {
name: "pg-01",
distributedVirtualSwitchUuid: vds.id,
vlanId: 1000,
activeUplinks: [
"uplink1",
"uplink2",
],
standbyUplinks: [],
});
import pulumi
import pulumi_vsphere as vsphere
vds = vsphere.DistributedVirtualSwitch("vds",
name="vds-01",
datacenter_id=datacenter["id"],
uplinks=[
"uplink1",
"uplink2",
],
active_uplinks=["uplink1"],
standby_uplinks=["uplink2"])
pg = vsphere.DistributedPortGroup("pg",
name="pg-01",
distributed_virtual_switch_uuid=vds.id,
vlan_id=1000,
active_uplinks=[
"uplink1",
"uplink2",
],
standby_uplinks=[])
package main
import (
"github.com/pulumi/pulumi-vsphere/sdk/v4/go/vsphere"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
vds, err := vsphere.NewDistributedVirtualSwitch(ctx, "vds", &vsphere.DistributedVirtualSwitchArgs{
Name: pulumi.String("vds-01"),
DatacenterId: pulumi.Any(datacenter.Id),
Uplinks: pulumi.StringArray{
pulumi.String("uplink1"),
pulumi.String("uplink2"),
},
ActiveUplinks: pulumi.StringArray{
pulumi.String("uplink1"),
},
StandbyUplinks: pulumi.StringArray{
pulumi.String("uplink2"),
},
})
if err != nil {
return err
}
_, err = vsphere.NewDistributedPortGroup(ctx, "pg", &vsphere.DistributedPortGroupArgs{
Name: pulumi.String("pg-01"),
DistributedVirtualSwitchUuid: vds.ID(),
VlanId: pulumi.Int(1000),
ActiveUplinks: pulumi.StringArray{
pulumi.String("uplink1"),
pulumi.String("uplink2"),
},
StandbyUplinks: pulumi.StringArray{},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using VSphere = Pulumi.VSphere;
return await Deployment.RunAsync(() =>
{
var vds = new VSphere.DistributedVirtualSwitch("vds", new()
{
Name = "vds-01",
DatacenterId = datacenter.Id,
Uplinks = new[]
{
"uplink1",
"uplink2",
},
ActiveUplinks = new[]
{
"uplink1",
},
StandbyUplinks = new[]
{
"uplink2",
},
});
var pg = new VSphere.DistributedPortGroup("pg", new()
{
Name = "pg-01",
DistributedVirtualSwitchUuid = vds.Id,
VlanId = 1000,
ActiveUplinks = new[]
{
"uplink1",
"uplink2",
},
StandbyUplinks = new[] {},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vsphere.DistributedVirtualSwitch;
import com.pulumi.vsphere.DistributedVirtualSwitchArgs;
import com.pulumi.vsphere.DistributedPortGroup;
import com.pulumi.vsphere.DistributedPortGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var vds = new DistributedVirtualSwitch("vds", DistributedVirtualSwitchArgs.builder()
.name("vds-01")
.datacenterId(datacenter.id())
.uplinks(
"uplink1",
"uplink2")
.activeUplinks("uplink1")
.standbyUplinks("uplink2")
.build());
var pg = new DistributedPortGroup("pg", DistributedPortGroupArgs.builder()
.name("pg-01")
.distributedVirtualSwitchUuid(vds.id())
.vlanId(1000)
.activeUplinks(
"uplink1",
"uplink2")
.standbyUplinks()
.build());
}
}
resources:
vds:
type: vsphere:DistributedVirtualSwitch
properties:
name: vds-01
datacenterId: ${datacenter.id}
uplinks:
- uplink1
- uplink2
activeUplinks:
- uplink1
standbyUplinks:
- uplink2
pg:
type: vsphere:DistributedPortGroup
properties:
name: pg-01
distributedVirtualSwitchUuid: ${vds.id}
vlanId: 1000
activeUplinks:
- uplink1
- uplink2
standbyUplinks: []
Create DistributedPortGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DistributedPortGroup(name: string, args: DistributedPortGroupArgs, opts?: CustomResourceOptions);
@overload
def DistributedPortGroup(resource_name: str,
args: DistributedPortGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DistributedPortGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
distributed_virtual_switch_uuid: Optional[str] = None,
lacp_mode: Optional[str] = None,
vlan_override_allowed: Optional[bool] = None,
allow_promiscuous: Optional[bool] = None,
live_port_moving_allowed: Optional[bool] = None,
block_all_ports: Optional[bool] = None,
block_override_allowed: Optional[bool] = None,
check_beacon: Optional[bool] = None,
custom_attributes: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
directpath_gen2_allowed: Optional[bool] = None,
allow_forged_transmits: Optional[bool] = None,
egress_shaping_average_bandwidth: Optional[int] = None,
egress_shaping_burst_size: Optional[int] = None,
egress_shaping_enabled: Optional[bool] = None,
egress_shaping_peak_bandwidth: Optional[int] = None,
failback: Optional[bool] = None,
ingress_shaping_average_bandwidth: Optional[int] = None,
netflow_enabled: Optional[bool] = None,
ingress_shaping_enabled: Optional[bool] = None,
ingress_shaping_peak_bandwidth: Optional[int] = None,
lacp_enabled: Optional[bool] = None,
active_uplinks: Optional[Sequence[str]] = None,
auto_expand: Optional[bool] = None,
allow_mac_changes: Optional[bool] = None,
ingress_shaping_burst_size: Optional[int] = None,
netflow_override_allowed: Optional[bool] = None,
network_resource_pool_key: Optional[str] = None,
network_resource_pool_override_allowed: Optional[bool] = None,
notify_switches: Optional[bool] = None,
number_of_ports: Optional[int] = None,
port_config_reset_at_disconnect: Optional[bool] = None,
port_name_format: Optional[str] = None,
port_private_secondary_vlan_id: Optional[int] = None,
security_policy_override_allowed: Optional[bool] = None,
shaping_override_allowed: Optional[bool] = None,
standby_uplinks: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
teaming_policy: Optional[str] = None,
traffic_filter_override_allowed: Optional[bool] = None,
tx_uplink: Optional[bool] = None,
type: Optional[str] = None,
uplink_teaming_override_allowed: Optional[bool] = None,
vlan_id: Optional[int] = None,
name: Optional[str] = None,
vlan_ranges: Optional[Sequence[DistributedPortGroupVlanRangeArgs]] = None)
func NewDistributedPortGroup(ctx *Context, name string, args DistributedPortGroupArgs, opts ...ResourceOption) (*DistributedPortGroup, error)
public DistributedPortGroup(string name, DistributedPortGroupArgs args, CustomResourceOptions? opts = null)
public DistributedPortGroup(String name, DistributedPortGroupArgs args)
public DistributedPortGroup(String name, DistributedPortGroupArgs args, CustomResourceOptions options)
type: vsphere:DistributedPortGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DistributedPortGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DistributedPortGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DistributedPortGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DistributedPortGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DistributedPortGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var distributedPortGroupResource = new VSphere.DistributedPortGroup("distributedPortGroupResource", new()
{
DistributedVirtualSwitchUuid = "string",
LacpMode = "string",
VlanOverrideAllowed = false,
AllowPromiscuous = false,
LivePortMovingAllowed = false,
BlockAllPorts = false,
BlockOverrideAllowed = false,
CheckBeacon = false,
CustomAttributes =
{
{ "string", "string" },
},
Description = "string",
DirectpathGen2Allowed = false,
AllowForgedTransmits = false,
EgressShapingAverageBandwidth = 0,
EgressShapingBurstSize = 0,
EgressShapingEnabled = false,
EgressShapingPeakBandwidth = 0,
Failback = false,
IngressShapingAverageBandwidth = 0,
NetflowEnabled = false,
IngressShapingEnabled = false,
IngressShapingPeakBandwidth = 0,
LacpEnabled = false,
ActiveUplinks = new[]
{
"string",
},
AutoExpand = false,
AllowMacChanges = false,
IngressShapingBurstSize = 0,
NetflowOverrideAllowed = false,
NetworkResourcePoolKey = "string",
NetworkResourcePoolOverrideAllowed = false,
NotifySwitches = false,
NumberOfPorts = 0,
PortConfigResetAtDisconnect = false,
PortNameFormat = "string",
PortPrivateSecondaryVlanId = 0,
SecurityPolicyOverrideAllowed = false,
ShapingOverrideAllowed = false,
StandbyUplinks = new[]
{
"string",
},
Tags = new[]
{
"string",
},
TeamingPolicy = "string",
TrafficFilterOverrideAllowed = false,
TxUplink = false,
Type = "string",
UplinkTeamingOverrideAllowed = false,
VlanId = 0,
Name = "string",
VlanRanges = new[]
{
new VSphere.Inputs.DistributedPortGroupVlanRangeArgs
{
MaxVlan = 0,
MinVlan = 0,
},
},
});
example, err := vsphere.NewDistributedPortGroup(ctx, "distributedPortGroupResource", &vsphere.DistributedPortGroupArgs{
DistributedVirtualSwitchUuid: pulumi.String("string"),
LacpMode: pulumi.String("string"),
VlanOverrideAllowed: pulumi.Bool(false),
AllowPromiscuous: pulumi.Bool(false),
LivePortMovingAllowed: pulumi.Bool(false),
BlockAllPorts: pulumi.Bool(false),
BlockOverrideAllowed: pulumi.Bool(false),
CheckBeacon: pulumi.Bool(false),
CustomAttributes: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
DirectpathGen2Allowed: pulumi.Bool(false),
AllowForgedTransmits: pulumi.Bool(false),
EgressShapingAverageBandwidth: pulumi.Int(0),
EgressShapingBurstSize: pulumi.Int(0),
EgressShapingEnabled: pulumi.Bool(false),
EgressShapingPeakBandwidth: pulumi.Int(0),
Failback: pulumi.Bool(false),
IngressShapingAverageBandwidth: pulumi.Int(0),
NetflowEnabled: pulumi.Bool(false),
IngressShapingEnabled: pulumi.Bool(false),
IngressShapingPeakBandwidth: pulumi.Int(0),
LacpEnabled: pulumi.Bool(false),
ActiveUplinks: pulumi.StringArray{
pulumi.String("string"),
},
AutoExpand: pulumi.Bool(false),
AllowMacChanges: pulumi.Bool(false),
IngressShapingBurstSize: pulumi.Int(0),
NetflowOverrideAllowed: pulumi.Bool(false),
NetworkResourcePoolKey: pulumi.String("string"),
NetworkResourcePoolOverrideAllowed: pulumi.Bool(false),
NotifySwitches: pulumi.Bool(false),
NumberOfPorts: pulumi.Int(0),
PortConfigResetAtDisconnect: pulumi.Bool(false),
PortNameFormat: pulumi.String("string"),
PortPrivateSecondaryVlanId: pulumi.Int(0),
SecurityPolicyOverrideAllowed: pulumi.Bool(false),
ShapingOverrideAllowed: pulumi.Bool(false),
StandbyUplinks: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TeamingPolicy: pulumi.String("string"),
TrafficFilterOverrideAllowed: pulumi.Bool(false),
TxUplink: pulumi.Bool(false),
Type: pulumi.String("string"),
UplinkTeamingOverrideAllowed: pulumi.Bool(false),
VlanId: pulumi.Int(0),
Name: pulumi.String("string"),
VlanRanges: vsphere.DistributedPortGroupVlanRangeArray{
&vsphere.DistributedPortGroupVlanRangeArgs{
MaxVlan: pulumi.Int(0),
MinVlan: pulumi.Int(0),
},
},
})
var distributedPortGroupResource = new DistributedPortGroup("distributedPortGroupResource", DistributedPortGroupArgs.builder()
.distributedVirtualSwitchUuid("string")
.lacpMode("string")
.vlanOverrideAllowed(false)
.allowPromiscuous(false)
.livePortMovingAllowed(false)
.blockAllPorts(false)
.blockOverrideAllowed(false)
.checkBeacon(false)
.customAttributes(Map.of("string", "string"))
.description("string")
.directpathGen2Allowed(false)
.allowForgedTransmits(false)
.egressShapingAverageBandwidth(0)
.egressShapingBurstSize(0)
.egressShapingEnabled(false)
.egressShapingPeakBandwidth(0)
.failback(false)
.ingressShapingAverageBandwidth(0)
.netflowEnabled(false)
.ingressShapingEnabled(false)
.ingressShapingPeakBandwidth(0)
.lacpEnabled(false)
.activeUplinks("string")
.autoExpand(false)
.allowMacChanges(false)
.ingressShapingBurstSize(0)
.netflowOverrideAllowed(false)
.networkResourcePoolKey("string")
.networkResourcePoolOverrideAllowed(false)
.notifySwitches(false)
.numberOfPorts(0)
.portConfigResetAtDisconnect(false)
.portNameFormat("string")
.portPrivateSecondaryVlanId(0)
.securityPolicyOverrideAllowed(false)
.shapingOverrideAllowed(false)
.standbyUplinks("string")
.tags("string")
.teamingPolicy("string")
.trafficFilterOverrideAllowed(false)
.txUplink(false)
.type("string")
.uplinkTeamingOverrideAllowed(false)
.vlanId(0)
.name("string")
.vlanRanges(DistributedPortGroupVlanRangeArgs.builder()
.maxVlan(0)
.minVlan(0)
.build())
.build());
distributed_port_group_resource = vsphere.DistributedPortGroup("distributedPortGroupResource",
distributed_virtual_switch_uuid="string",
lacp_mode="string",
vlan_override_allowed=False,
allow_promiscuous=False,
live_port_moving_allowed=False,
block_all_ports=False,
block_override_allowed=False,
check_beacon=False,
custom_attributes={
"string": "string",
},
description="string",
directpath_gen2_allowed=False,
allow_forged_transmits=False,
egress_shaping_average_bandwidth=0,
egress_shaping_burst_size=0,
egress_shaping_enabled=False,
egress_shaping_peak_bandwidth=0,
failback=False,
ingress_shaping_average_bandwidth=0,
netflow_enabled=False,
ingress_shaping_enabled=False,
ingress_shaping_peak_bandwidth=0,
lacp_enabled=False,
active_uplinks=["string"],
auto_expand=False,
allow_mac_changes=False,
ingress_shaping_burst_size=0,
netflow_override_allowed=False,
network_resource_pool_key="string",
network_resource_pool_override_allowed=False,
notify_switches=False,
number_of_ports=0,
port_config_reset_at_disconnect=False,
port_name_format="string",
port_private_secondary_vlan_id=0,
security_policy_override_allowed=False,
shaping_override_allowed=False,
standby_uplinks=["string"],
tags=["string"],
teaming_policy="string",
traffic_filter_override_allowed=False,
tx_uplink=False,
type="string",
uplink_teaming_override_allowed=False,
vlan_id=0,
name="string",
vlan_ranges=[{
"max_vlan": 0,
"min_vlan": 0,
}])
const distributedPortGroupResource = new vsphere.DistributedPortGroup("distributedPortGroupResource", {
distributedVirtualSwitchUuid: "string",
lacpMode: "string",
vlanOverrideAllowed: false,
allowPromiscuous: false,
livePortMovingAllowed: false,
blockAllPorts: false,
blockOverrideAllowed: false,
checkBeacon: false,
customAttributes: {
string: "string",
},
description: "string",
directpathGen2Allowed: false,
allowForgedTransmits: false,
egressShapingAverageBandwidth: 0,
egressShapingBurstSize: 0,
egressShapingEnabled: false,
egressShapingPeakBandwidth: 0,
failback: false,
ingressShapingAverageBandwidth: 0,
netflowEnabled: false,
ingressShapingEnabled: false,
ingressShapingPeakBandwidth: 0,
lacpEnabled: false,
activeUplinks: ["string"],
autoExpand: false,
allowMacChanges: false,
ingressShapingBurstSize: 0,
netflowOverrideAllowed: false,
networkResourcePoolKey: "string",
networkResourcePoolOverrideAllowed: false,
notifySwitches: false,
numberOfPorts: 0,
portConfigResetAtDisconnect: false,
portNameFormat: "string",
portPrivateSecondaryVlanId: 0,
securityPolicyOverrideAllowed: false,
shapingOverrideAllowed: false,
standbyUplinks: ["string"],
tags: ["string"],
teamingPolicy: "string",
trafficFilterOverrideAllowed: false,
txUplink: false,
type: "string",
uplinkTeamingOverrideAllowed: false,
vlanId: 0,
name: "string",
vlanRanges: [{
maxVlan: 0,
minVlan: 0,
}],
});
type: vsphere:DistributedPortGroup
properties:
activeUplinks:
- string
allowForgedTransmits: false
allowMacChanges: false
allowPromiscuous: false
autoExpand: false
blockAllPorts: false
blockOverrideAllowed: false
checkBeacon: false
customAttributes:
string: string
description: string
directpathGen2Allowed: false
distributedVirtualSwitchUuid: string
egressShapingAverageBandwidth: 0
egressShapingBurstSize: 0
egressShapingEnabled: false
egressShapingPeakBandwidth: 0
failback: false
ingressShapingAverageBandwidth: 0
ingressShapingBurstSize: 0
ingressShapingEnabled: false
ingressShapingPeakBandwidth: 0
lacpEnabled: false
lacpMode: string
livePortMovingAllowed: false
name: string
netflowEnabled: false
netflowOverrideAllowed: false
networkResourcePoolKey: string
networkResourcePoolOverrideAllowed: false
notifySwitches: false
numberOfPorts: 0
portConfigResetAtDisconnect: false
portNameFormat: string
portPrivateSecondaryVlanId: 0
securityPolicyOverrideAllowed: false
shapingOverrideAllowed: false
standbyUplinks:
- string
tags:
- string
teamingPolicy: string
trafficFilterOverrideAllowed: false
txUplink: false
type: string
uplinkTeamingOverrideAllowed: false
vlanId: 0
vlanOverrideAllowed: false
vlanRanges:
- maxVlan: 0
minVlan: 0
DistributedPortGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DistributedPortGroup resource accepts the following input properties:
- Distributed
Virtual stringSwitch Uuid - The ID of the VDS to add the port group to. Forces a new resource if changed.
- Active
Uplinks List<string> - List of active uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- 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.
- Auto
Expand bool Allows the port group to create additional ports past the limit specified in
number_of_ports
if necessary. Default:true
.NOTE: Using
auto_expand
with a statically definednumber_of_ports
may lead to errors when the port count grows past the amount specified. If you specifynumber_of_ports
, you may wish to setauto_expand
tofalse
.- Block
All boolPorts - Indicates whether to block all ports by default.
- Block
Override boolAllowed - Allow the blocked setting of an individual port to override the setting in the portgroup.
- Check
Beacon bool - Enable beacon probing on the ports this policy applies to.
- Custom
Attributes Dictionary<string, string> Map of custom attribute ids to attribute <<<<<<< HEAD value string to set for port group. See here for a reference on how to set values for custom attributes.
======= value string to set for port group.
69c6e040 (fork)
NOTE: Custom attributes are not supported on direct ESXi host connections and require vCenter Server.
- Description string
- An optional description for the port group.
- Directpath
Gen2Allowed bool - Allow VMDirectPath Gen2 on the ports this policy applies to.
- Egress
Shaping intAverage Bandwidth - The average egress bandwidth in bits per second if egress shaping is enabled on the port.
- Egress
Shaping intBurst Size - The maximum egress burst size allowed in bytes if egress shaping is enabled on the port.
- Egress
Shaping boolEnabled - True if the traffic shaper is enabled for egress traffic on the port.
- Egress
Shaping intPeak Bandwidth - The peak egress bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- Failback bool
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- Ingress
Shaping intAverage Bandwidth - The average ingress bandwidth in bits per second if ingress shaping is enabled on the port.
- Ingress
Shaping intBurst Size - The maximum ingress burst size allowed in bytes if ingress shaping is enabled on the port.
- Ingress
Shaping boolEnabled - True if the traffic shaper is enabled for ingress traffic on the port.
- Ingress
Shaping intPeak Bandwidth - The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- Lacp
Enabled bool - Whether or not to enable LACP on all uplink ports.
- Lacp
Mode string - The uplink LACP mode to use. Can be one of active or passive.
- Live
Port boolMoving Allowed - Allow a live port to be moved in and out of the portgroup.
- Name string
- The name of the port group.
- Netflow
Enabled bool - Indicates whether to enable netflow on all ports.
- Netflow
Override boolAllowed - Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
- Network
Resource stringPool Key - The key of a network resource pool
to associate with this port group. The default is
-1
, which implies no association. - Network
Resource boolPool Override Allowed - Allow the network resource pool of an individual port to override the setting in the portgroup.
- Notify
Switches bool - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- Number
Of intPorts - The number of ports available on this port group. Cannot be decreased below the amount of used ports on the port group.
- Port
Config boolReset At Disconnect - Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
- Port
Name stringFormat - An optional formatting policy for naming of
the ports in this port group. See the
portNameFormat
attribute listed here for details on the format syntax. - Port
Private intSecondary Vlan Id - The secondary VLAN ID for this port.
- Security
Policy boolOverride Allowed - Allow security policy settings on a port to override those on the portgroup.
- Shaping
Override boolAllowed - Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
- Standby
Uplinks List<string> - List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- List<string>
- A list of tag IDs to apply to this object.
- Teaming
Policy string - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, failover_explicit, or loadbalance_loadbased.
- Traffic
Filter boolOverride Allowed - Allow any filter policies set on the individual port to override those in the portgroup.
- Tx
Uplink bool - If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet forwarded done by the switch.
- Type string
- The port group type. Can be one of
earlyBinding
(static binding) orephemeral
. Default:earlyBinding
. - Uplink
Teaming boolOverride Allowed - Allow the uplink teaming policies on a port to override those on the portgroup.
- Vlan
Id int - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- Vlan
Override boolAllowed - Allow the VLAN configuration on a port to override those on the portgroup.
- Vlan
Ranges List<Pulumi.VSphere. Inputs. Distributed Port Group Vlan Range> - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- Distributed
Virtual stringSwitch Uuid - The ID of the VDS to add the port group to. Forces a new resource if changed.
- Active
Uplinks []string - List of active uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- 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.
- Auto
Expand bool Allows the port group to create additional ports past the limit specified in
number_of_ports
if necessary. Default:true
.NOTE: Using
auto_expand
with a statically definednumber_of_ports
may lead to errors when the port count grows past the amount specified. If you specifynumber_of_ports
, you may wish to setauto_expand
tofalse
.- Block
All boolPorts - Indicates whether to block all ports by default.
- Block
Override boolAllowed - Allow the blocked setting of an individual port to override the setting in the portgroup.
- Check
Beacon bool - Enable beacon probing on the ports this policy applies to.
- Custom
Attributes map[string]string Map of custom attribute ids to attribute <<<<<<< HEAD value string to set for port group. See here for a reference on how to set values for custom attributes.
======= value string to set for port group.
69c6e040 (fork)
NOTE: Custom attributes are not supported on direct ESXi host connections and require vCenter Server.
- Description string
- An optional description for the port group.
- Directpath
Gen2Allowed bool - Allow VMDirectPath Gen2 on the ports this policy applies to.
- Egress
Shaping intAverage Bandwidth - The average egress bandwidth in bits per second if egress shaping is enabled on the port.
- Egress
Shaping intBurst Size - The maximum egress burst size allowed in bytes if egress shaping is enabled on the port.
- Egress
Shaping boolEnabled - True if the traffic shaper is enabled for egress traffic on the port.
- Egress
Shaping intPeak Bandwidth - The peak egress bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- Failback bool
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- Ingress
Shaping intAverage Bandwidth - The average ingress bandwidth in bits per second if ingress shaping is enabled on the port.
- Ingress
Shaping intBurst Size - The maximum ingress burst size allowed in bytes if ingress shaping is enabled on the port.
- Ingress
Shaping boolEnabled - True if the traffic shaper is enabled for ingress traffic on the port.
- Ingress
Shaping intPeak Bandwidth - The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- Lacp
Enabled bool - Whether or not to enable LACP on all uplink ports.
- Lacp
Mode string - The uplink LACP mode to use. Can be one of active or passive.
- Live
Port boolMoving Allowed - Allow a live port to be moved in and out of the portgroup.
- Name string
- The name of the port group.
- Netflow
Enabled bool - Indicates whether to enable netflow on all ports.
- Netflow
Override boolAllowed - Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
- Network
Resource stringPool Key - The key of a network resource pool
to associate with this port group. The default is
-1
, which implies no association. - Network
Resource boolPool Override Allowed - Allow the network resource pool of an individual port to override the setting in the portgroup.
- Notify
Switches bool - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- Number
Of intPorts - The number of ports available on this port group. Cannot be decreased below the amount of used ports on the port group.
- Port
Config boolReset At Disconnect - Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
- Port
Name stringFormat - An optional formatting policy for naming of
the ports in this port group. See the
portNameFormat
attribute listed here for details on the format syntax. - Port
Private intSecondary Vlan Id - The secondary VLAN ID for this port.
- Security
Policy boolOverride Allowed - Allow security policy settings on a port to override those on the portgroup.
- Shaping
Override boolAllowed - Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
- Standby
Uplinks []string - List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- []string
- A list of tag IDs to apply to this object.
- Teaming
Policy string - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, failover_explicit, or loadbalance_loadbased.
- Traffic
Filter boolOverride Allowed - Allow any filter policies set on the individual port to override those in the portgroup.
- Tx
Uplink bool - If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet forwarded done by the switch.
- Type string
- The port group type. Can be one of
earlyBinding
(static binding) orephemeral
. Default:earlyBinding
. - Uplink
Teaming boolOverride Allowed - Allow the uplink teaming policies on a port to override those on the portgroup.
- Vlan
Id int - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- Vlan
Override boolAllowed - Allow the VLAN configuration on a port to override those on the portgroup.
- Vlan
Ranges []DistributedPort Group Vlan Range Args - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- distributed
Virtual StringSwitch Uuid - The ID of the VDS to add the port group to. Forces a new resource if changed.
- active
Uplinks List<String> - List of active uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- 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.
- auto
Expand Boolean Allows the port group to create additional ports past the limit specified in
number_of_ports
if necessary. Default:true
.NOTE: Using
auto_expand
with a statically definednumber_of_ports
may lead to errors when the port count grows past the amount specified. If you specifynumber_of_ports
, you may wish to setauto_expand
tofalse
.- block
All BooleanPorts - Indicates whether to block all ports by default.
- block
Override BooleanAllowed - Allow the blocked setting of an individual port to override the setting in the portgroup.
- check
Beacon Boolean - Enable beacon probing on the ports this policy applies to.
- custom
Attributes Map<String,String> Map of custom attribute ids to attribute <<<<<<< HEAD value string to set for port group. See here for a reference on how to set values for custom attributes.
======= value string to set for port group.
69c6e040 (fork)
NOTE: Custom attributes are not supported on direct ESXi host connections and require vCenter Server.
- description String
- An optional description for the port group.
- directpath
Gen2Allowed Boolean - Allow VMDirectPath Gen2 on the ports this policy applies to.
- egress
Shaping IntegerAverage Bandwidth - The average egress bandwidth in bits per second if egress shaping is enabled on the port.
- egress
Shaping IntegerBurst Size - The maximum egress burst size allowed in bytes if egress shaping is enabled on the port.
- egress
Shaping BooleanEnabled - True if the traffic shaper is enabled for egress traffic on the port.
- egress
Shaping IntegerPeak Bandwidth - The peak egress bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- failback Boolean
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- ingress
Shaping IntegerAverage Bandwidth - The average ingress bandwidth in bits per second if ingress shaping is enabled on the port.
- ingress
Shaping IntegerBurst Size - The maximum ingress burst size allowed in bytes if ingress shaping is enabled on the port.
- ingress
Shaping BooleanEnabled - True if the traffic shaper is enabled for ingress traffic on the port.
- ingress
Shaping IntegerPeak Bandwidth - The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- lacp
Enabled Boolean - Whether or not to enable LACP on all uplink ports.
- lacp
Mode String - The uplink LACP mode to use. Can be one of active or passive.
- live
Port BooleanMoving Allowed - Allow a live port to be moved in and out of the portgroup.
- name String
- The name of the port group.
- netflow
Enabled Boolean - Indicates whether to enable netflow on all ports.
- netflow
Override BooleanAllowed - Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
- network
Resource StringPool Key - The key of a network resource pool
to associate with this port group. The default is
-1
, which implies no association. - network
Resource BooleanPool Override Allowed - Allow the network resource pool of an individual port to override the setting in the portgroup.
- notify
Switches Boolean - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number
Of IntegerPorts - The number of ports available on this port group. Cannot be decreased below the amount of used ports on the port group.
- port
Config BooleanReset At Disconnect - Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
- port
Name StringFormat - An optional formatting policy for naming of
the ports in this port group. See the
portNameFormat
attribute listed here for details on the format syntax. - port
Private IntegerSecondary Vlan Id - The secondary VLAN ID for this port.
- security
Policy BooleanOverride Allowed - Allow security policy settings on a port to override those on the portgroup.
- shaping
Override BooleanAllowed - Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
- standby
Uplinks List<String> - List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- List<String>
- A list of tag IDs to apply to this object.
- teaming
Policy String - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, failover_explicit, or loadbalance_loadbased.
- traffic
Filter BooleanOverride Allowed - Allow any filter policies set on the individual port to override those in the portgroup.
- tx
Uplink Boolean - If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet forwarded done by the switch.
- type String
- The port group type. Can be one of
earlyBinding
(static binding) orephemeral
. Default:earlyBinding
. - uplink
Teaming BooleanOverride Allowed - Allow the uplink teaming policies on a port to override those on the portgroup.
- vlan
Id Integer - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- vlan
Override BooleanAllowed - Allow the VLAN configuration on a port to override those on the portgroup.
- vlan
Ranges List<DistributedPort Group Vlan Range> - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- distributed
Virtual stringSwitch Uuid - The ID of the VDS to add the port group to. Forces a new resource if changed.
- active
Uplinks string[] - List of active uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- 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.
- auto
Expand boolean Allows the port group to create additional ports past the limit specified in
number_of_ports
if necessary. Default:true
.NOTE: Using
auto_expand
with a statically definednumber_of_ports
may lead to errors when the port count grows past the amount specified. If you specifynumber_of_ports
, you may wish to setauto_expand
tofalse
.- block
All booleanPorts - Indicates whether to block all ports by default.
- block
Override booleanAllowed - Allow the blocked setting of an individual port to override the setting in the portgroup.
- check
Beacon boolean - Enable beacon probing on the ports this policy applies to.
- custom
Attributes {[key: string]: string} Map of custom attribute ids to attribute <<<<<<< HEAD value string to set for port group. See here for a reference on how to set values for custom attributes.
======= value string to set for port group.
69c6e040 (fork)
NOTE: Custom attributes are not supported on direct ESXi host connections and require vCenter Server.
- description string
- An optional description for the port group.
- directpath
Gen2Allowed boolean - Allow VMDirectPath Gen2 on the ports this policy applies to.
- egress
Shaping numberAverage Bandwidth - The average egress bandwidth in bits per second if egress shaping is enabled on the port.
- egress
Shaping numberBurst Size - The maximum egress burst size allowed in bytes if egress shaping is enabled on the port.
- egress
Shaping booleanEnabled - True if the traffic shaper is enabled for egress traffic on the port.
- egress
Shaping numberPeak Bandwidth - The peak egress bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- failback boolean
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- ingress
Shaping numberAverage Bandwidth - The average ingress bandwidth in bits per second if ingress shaping is enabled on the port.
- ingress
Shaping numberBurst Size - The maximum ingress burst size allowed in bytes if ingress shaping is enabled on the port.
- ingress
Shaping booleanEnabled - True if the traffic shaper is enabled for ingress traffic on the port.
- ingress
Shaping numberPeak Bandwidth - The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- lacp
Enabled boolean - Whether or not to enable LACP on all uplink ports.
- lacp
Mode string - The uplink LACP mode to use. Can be one of active or passive.
- live
Port booleanMoving Allowed - Allow a live port to be moved in and out of the portgroup.
- name string
- The name of the port group.
- netflow
Enabled boolean - Indicates whether to enable netflow on all ports.
- netflow
Override booleanAllowed - Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
- network
Resource stringPool Key - The key of a network resource pool
to associate with this port group. The default is
-1
, which implies no association. - network
Resource booleanPool Override Allowed - Allow the network resource pool of an individual port to override the setting in the portgroup.
- notify
Switches boolean - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number
Of numberPorts - The number of ports available on this port group. Cannot be decreased below the amount of used ports on the port group.
- port
Config booleanReset At Disconnect - Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
- port
Name stringFormat - An optional formatting policy for naming of
the ports in this port group. See the
portNameFormat
attribute listed here for details on the format syntax. - port
Private numberSecondary Vlan Id - The secondary VLAN ID for this port.
- security
Policy booleanOverride Allowed - Allow security policy settings on a port to override those on the portgroup.
- shaping
Override booleanAllowed - Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
- standby
Uplinks string[] - List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- string[]
- A list of tag IDs to apply to this object.
- teaming
Policy string - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, failover_explicit, or loadbalance_loadbased.
- traffic
Filter booleanOverride Allowed - Allow any filter policies set on the individual port to override those in the portgroup.
- tx
Uplink boolean - If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet forwarded done by the switch.
- type string
- The port group type. Can be one of
earlyBinding
(static binding) orephemeral
. Default:earlyBinding
. - uplink
Teaming booleanOverride Allowed - Allow the uplink teaming policies on a port to override those on the portgroup.
- vlan
Id number - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- vlan
Override booleanAllowed - Allow the VLAN configuration on a port to override those on the portgroup.
- vlan
Ranges DistributedPort Group Vlan Range[] - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- distributed_
virtual_ strswitch_ uuid - The ID of the VDS to add the port group to. Forces a new resource if changed.
- active_
uplinks Sequence[str] - List of active uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- 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.
- auto_
expand bool Allows the port group to create additional ports past the limit specified in
number_of_ports
if necessary. Default:true
.NOTE: Using
auto_expand
with a statically definednumber_of_ports
may lead to errors when the port count grows past the amount specified. If you specifynumber_of_ports
, you may wish to setauto_expand
tofalse
.- block_
all_ boolports - Indicates whether to block all ports by default.
- block_
override_ boolallowed - Allow the blocked setting of an individual port to override the setting in the portgroup.
- check_
beacon bool - Enable beacon probing on the ports this policy applies to.
- custom_
attributes Mapping[str, str] Map of custom attribute ids to attribute <<<<<<< HEAD value string to set for port group. See here for a reference on how to set values for custom attributes.
======= value string to set for port group.
69c6e040 (fork)
NOTE: Custom attributes are not supported on direct ESXi host connections and require vCenter Server.
- description str
- An optional description for the port group.
- directpath_
gen2_ boolallowed - Allow VMDirectPath Gen2 on the ports this policy applies to.
- egress_
shaping_ intaverage_ bandwidth - The average egress bandwidth in bits per second if egress shaping is enabled on the port.
- egress_
shaping_ intburst_ size - The maximum egress burst size allowed in bytes if egress shaping is enabled on the port.
- egress_
shaping_ boolenabled - True if the traffic shaper is enabled for egress traffic on the port.
- egress_
shaping_ intpeak_ bandwidth - The peak egress bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- failback bool
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- ingress_
shaping_ intaverage_ bandwidth - The average ingress bandwidth in bits per second if ingress shaping is enabled on the port.
- ingress_
shaping_ intburst_ size - The maximum ingress burst size allowed in bytes if ingress shaping is enabled on the port.
- ingress_
shaping_ boolenabled - True if the traffic shaper is enabled for ingress traffic on the port.
- ingress_
shaping_ intpeak_ bandwidth - The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- lacp_
enabled bool - Whether or not to enable LACP on all uplink ports.
- lacp_
mode str - The uplink LACP mode to use. Can be one of active or passive.
- live_
port_ boolmoving_ allowed - Allow a live port to be moved in and out of the portgroup.
- name str
- The name of the port group.
- netflow_
enabled bool - Indicates whether to enable netflow on all ports.
- netflow_
override_ boolallowed - Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
- network_
resource_ strpool_ key - The key of a network resource pool
to associate with this port group. The default is
-1
, which implies no association. - network_
resource_ boolpool_ override_ allowed - Allow the network resource pool of an individual port to override the setting in the portgroup.
- notify_
switches bool - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number_
of_ intports - The number of ports available on this port group. Cannot be decreased below the amount of used ports on the port group.
- port_
config_ boolreset_ at_ disconnect - Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
- port_
name_ strformat - An optional formatting policy for naming of
the ports in this port group. See the
portNameFormat
attribute listed here for details on the format syntax. - port_
private_ intsecondary_ vlan_ id - The secondary VLAN ID for this port.
- security_
policy_ booloverride_ allowed - Allow security policy settings on a port to override those on the portgroup.
- shaping_
override_ boolallowed - Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
- standby_
uplinks Sequence[str] - List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- Sequence[str]
- A list of tag IDs to apply to this object.
- teaming_
policy str - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, failover_explicit, or loadbalance_loadbased.
- traffic_
filter_ booloverride_ allowed - Allow any filter policies set on the individual port to override those in the portgroup.
- tx_
uplink bool - If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet forwarded done by the switch.
- type str
- The port group type. Can be one of
earlyBinding
(static binding) orephemeral
. Default:earlyBinding
. - uplink_
teaming_ booloverride_ allowed - Allow the uplink teaming policies on a port to override those on the portgroup.
- vlan_
id int - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- vlan_
override_ boolallowed - Allow the VLAN configuration on a port to override those on the portgroup.
- vlan_
ranges Sequence[DistributedPort Group Vlan Range Args] - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- distributed
Virtual StringSwitch Uuid - The ID of the VDS to add the port group to. Forces a new resource if changed.
- active
Uplinks List<String> - List of active uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- 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.
- auto
Expand Boolean Allows the port group to create additional ports past the limit specified in
number_of_ports
if necessary. Default:true
.NOTE: Using
auto_expand
with a statically definednumber_of_ports
may lead to errors when the port count grows past the amount specified. If you specifynumber_of_ports
, you may wish to setauto_expand
tofalse
.- block
All BooleanPorts - Indicates whether to block all ports by default.
- block
Override BooleanAllowed - Allow the blocked setting of an individual port to override the setting in the portgroup.
- check
Beacon Boolean - Enable beacon probing on the ports this policy applies to.
- custom
Attributes Map<String> Map of custom attribute ids to attribute <<<<<<< HEAD value string to set for port group. See here for a reference on how to set values for custom attributes.
======= value string to set for port group.
69c6e040 (fork)
NOTE: Custom attributes are not supported on direct ESXi host connections and require vCenter Server.
- description String
- An optional description for the port group.
- directpath
Gen2Allowed Boolean - Allow VMDirectPath Gen2 on the ports this policy applies to.
- egress
Shaping NumberAverage Bandwidth - The average egress bandwidth in bits per second if egress shaping is enabled on the port.
- egress
Shaping NumberBurst Size - The maximum egress burst size allowed in bytes if egress shaping is enabled on the port.
- egress
Shaping BooleanEnabled - True if the traffic shaper is enabled for egress traffic on the port.
- egress
Shaping NumberPeak Bandwidth - The peak egress bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- failback Boolean
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- ingress
Shaping NumberAverage Bandwidth - The average ingress bandwidth in bits per second if ingress shaping is enabled on the port.
- ingress
Shaping NumberBurst Size - The maximum ingress burst size allowed in bytes if ingress shaping is enabled on the port.
- ingress
Shaping BooleanEnabled - True if the traffic shaper is enabled for ingress traffic on the port.
- ingress
Shaping NumberPeak Bandwidth - The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- lacp
Enabled Boolean - Whether or not to enable LACP on all uplink ports.
- lacp
Mode String - The uplink LACP mode to use. Can be one of active or passive.
- live
Port BooleanMoving Allowed - Allow a live port to be moved in and out of the portgroup.
- name String
- The name of the port group.
- netflow
Enabled Boolean - Indicates whether to enable netflow on all ports.
- netflow
Override BooleanAllowed - Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
- network
Resource StringPool Key - The key of a network resource pool
to associate with this port group. The default is
-1
, which implies no association. - network
Resource BooleanPool Override Allowed - Allow the network resource pool of an individual port to override the setting in the portgroup.
- notify
Switches Boolean - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number
Of NumberPorts - The number of ports available on this port group. Cannot be decreased below the amount of used ports on the port group.
- port
Config BooleanReset At Disconnect - Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
- port
Name StringFormat - An optional formatting policy for naming of
the ports in this port group. See the
portNameFormat
attribute listed here for details on the format syntax. - port
Private NumberSecondary Vlan Id - The secondary VLAN ID for this port.
- security
Policy BooleanOverride Allowed - Allow security policy settings on a port to override those on the portgroup.
- shaping
Override BooleanAllowed - Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
- standby
Uplinks List<String> - List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- List<String>
- A list of tag IDs to apply to this object.
- teaming
Policy String - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, failover_explicit, or loadbalance_loadbased.
- traffic
Filter BooleanOverride Allowed - Allow any filter policies set on the individual port to override those in the portgroup.
- tx
Uplink Boolean - If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet forwarded done by the switch.
- type String
- The port group type. Can be one of
earlyBinding
(static binding) orephemeral
. Default:earlyBinding
. - uplink
Teaming BooleanOverride Allowed - Allow the uplink teaming policies on a port to override those on the portgroup.
- vlan
Id Number - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- vlan
Override BooleanAllowed - Allow the VLAN configuration on a port to override those on the portgroup.
- vlan
Ranges List<Property Map> - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
Outputs
All input properties are implicitly available as output properties. Additionally, the DistributedPortGroup resource produces the following output properties:
- Config
Version string - The current version of the port group configuration, incremented by subsequent updates to the port group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- The generated UUID of the port group.
- Config
Version string - The current version of the port group configuration, incremented by subsequent updates to the port group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- The generated UUID of the port group.
- config
Version String - The current version of the port group configuration, incremented by subsequent updates to the port group.
- id String
- The provider-assigned unique ID for this managed resource.
- key String
- The generated UUID of the port group.
- config
Version string - The current version of the port group configuration, incremented by subsequent updates to the port group.
- id string
- The provider-assigned unique ID for this managed resource.
- key string
- The generated UUID of the port group.
- config_
version str - The current version of the port group configuration, incremented by subsequent updates to the port group.
- id str
- The provider-assigned unique ID for this managed resource.
- key str
- The generated UUID of the port group.
- config
Version String - The current version of the port group configuration, incremented by subsequent updates to the port group.
- id String
- The provider-assigned unique ID for this managed resource.
- key String
- The generated UUID of the port group.
Look up Existing DistributedPortGroup Resource
Get an existing DistributedPortGroup 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?: DistributedPortGroupState, opts?: CustomResourceOptions): DistributedPortGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active_uplinks: Optional[Sequence[str]] = None,
allow_forged_transmits: Optional[bool] = None,
allow_mac_changes: Optional[bool] = None,
allow_promiscuous: Optional[bool] = None,
auto_expand: Optional[bool] = None,
block_all_ports: Optional[bool] = None,
block_override_allowed: Optional[bool] = None,
check_beacon: Optional[bool] = None,
config_version: Optional[str] = None,
custom_attributes: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
directpath_gen2_allowed: Optional[bool] = None,
distributed_virtual_switch_uuid: Optional[str] = None,
egress_shaping_average_bandwidth: Optional[int] = None,
egress_shaping_burst_size: Optional[int] = None,
egress_shaping_enabled: Optional[bool] = None,
egress_shaping_peak_bandwidth: Optional[int] = None,
failback: Optional[bool] = None,
ingress_shaping_average_bandwidth: Optional[int] = None,
ingress_shaping_burst_size: Optional[int] = None,
ingress_shaping_enabled: Optional[bool] = None,
ingress_shaping_peak_bandwidth: Optional[int] = None,
key: Optional[str] = None,
lacp_enabled: Optional[bool] = None,
lacp_mode: Optional[str] = None,
live_port_moving_allowed: Optional[bool] = None,
name: Optional[str] = None,
netflow_enabled: Optional[bool] = None,
netflow_override_allowed: Optional[bool] = None,
network_resource_pool_key: Optional[str] = None,
network_resource_pool_override_allowed: Optional[bool] = None,
notify_switches: Optional[bool] = None,
number_of_ports: Optional[int] = None,
port_config_reset_at_disconnect: Optional[bool] = None,
port_name_format: Optional[str] = None,
port_private_secondary_vlan_id: Optional[int] = None,
security_policy_override_allowed: Optional[bool] = None,
shaping_override_allowed: Optional[bool] = None,
standby_uplinks: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
teaming_policy: Optional[str] = None,
traffic_filter_override_allowed: Optional[bool] = None,
tx_uplink: Optional[bool] = None,
type: Optional[str] = None,
uplink_teaming_override_allowed: Optional[bool] = None,
vlan_id: Optional[int] = None,
vlan_override_allowed: Optional[bool] = None,
vlan_ranges: Optional[Sequence[DistributedPortGroupVlanRangeArgs]] = None) -> DistributedPortGroup
func GetDistributedPortGroup(ctx *Context, name string, id IDInput, state *DistributedPortGroupState, opts ...ResourceOption) (*DistributedPortGroup, error)
public static DistributedPortGroup Get(string name, Input<string> id, DistributedPortGroupState? state, CustomResourceOptions? opts = null)
public static DistributedPortGroup get(String name, Output<String> id, DistributedPortGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Active
Uplinks List<string> - List of active uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- 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.
- Auto
Expand bool Allows the port group to create additional ports past the limit specified in
number_of_ports
if necessary. Default:true
.NOTE: Using
auto_expand
with a statically definednumber_of_ports
may lead to errors when the port count grows past the amount specified. If you specifynumber_of_ports
, you may wish to setauto_expand
tofalse
.- Block
All boolPorts - Indicates whether to block all ports by default.
- Block
Override boolAllowed - Allow the blocked setting of an individual port to override the setting in the portgroup.
- Check
Beacon bool - Enable beacon probing on the ports this policy applies to.
- Config
Version string - The current version of the port group configuration, incremented by subsequent updates to the port group.
- Custom
Attributes Dictionary<string, string> Map of custom attribute ids to attribute <<<<<<< HEAD value string to set for port group. See here for a reference on how to set values for custom attributes.
======= value string to set for port group.
69c6e040 (fork)
NOTE: Custom attributes are not supported on direct ESXi host connections and require vCenter Server.
- Description string
- An optional description for the port group.
- Directpath
Gen2Allowed bool - Allow VMDirectPath Gen2 on the ports this policy applies to.
- Distributed
Virtual stringSwitch Uuid - The ID of the VDS to add the port group to. Forces a new resource if changed.
- Egress
Shaping intAverage Bandwidth - The average egress bandwidth in bits per second if egress shaping is enabled on the port.
- Egress
Shaping intBurst Size - The maximum egress burst size allowed in bytes if egress shaping is enabled on the port.
- Egress
Shaping boolEnabled - True if the traffic shaper is enabled for egress traffic on the port.
- Egress
Shaping intPeak Bandwidth - The peak egress bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- Failback bool
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- Ingress
Shaping intAverage Bandwidth - The average ingress bandwidth in bits per second if ingress shaping is enabled on the port.
- Ingress
Shaping intBurst Size - The maximum ingress burst size allowed in bytes if ingress shaping is enabled on the port.
- Ingress
Shaping boolEnabled - True if the traffic shaper is enabled for ingress traffic on the port.
- Ingress
Shaping intPeak Bandwidth - The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- Key string
- The generated UUID of the port group.
- Lacp
Enabled bool - Whether or not to enable LACP on all uplink ports.
- Lacp
Mode string - The uplink LACP mode to use. Can be one of active or passive.
- Live
Port boolMoving Allowed - Allow a live port to be moved in and out of the portgroup.
- Name string
- The name of the port group.
- Netflow
Enabled bool - Indicates whether to enable netflow on all ports.
- Netflow
Override boolAllowed - Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
- Network
Resource stringPool Key - The key of a network resource pool
to associate with this port group. The default is
-1
, which implies no association. - Network
Resource boolPool Override Allowed - Allow the network resource pool of an individual port to override the setting in the portgroup.
- Notify
Switches bool - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- Number
Of intPorts - The number of ports available on this port group. Cannot be decreased below the amount of used ports on the port group.
- Port
Config boolReset At Disconnect - Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
- Port
Name stringFormat - An optional formatting policy for naming of
the ports in this port group. See the
portNameFormat
attribute listed here for details on the format syntax. - Port
Private intSecondary Vlan Id - The secondary VLAN ID for this port.
- Security
Policy boolOverride Allowed - Allow security policy settings on a port to override those on the portgroup.
- Shaping
Override boolAllowed - Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
- Standby
Uplinks List<string> - List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- List<string>
- A list of tag IDs to apply to this object.
- Teaming
Policy string - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, failover_explicit, or loadbalance_loadbased.
- Traffic
Filter boolOverride Allowed - Allow any filter policies set on the individual port to override those in the portgroup.
- Tx
Uplink bool - If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet forwarded done by the switch.
- Type string
- The port group type. Can be one of
earlyBinding
(static binding) orephemeral
. Default:earlyBinding
. - Uplink
Teaming boolOverride Allowed - Allow the uplink teaming policies on a port to override those on the portgroup.
- Vlan
Id int - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- Vlan
Override boolAllowed - Allow the VLAN configuration on a port to override those on the portgroup.
- Vlan
Ranges List<Pulumi.VSphere. Inputs. Distributed Port Group Vlan Range> - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- Active
Uplinks []string - List of active uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- 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.
- Auto
Expand bool Allows the port group to create additional ports past the limit specified in
number_of_ports
if necessary. Default:true
.NOTE: Using
auto_expand
with a statically definednumber_of_ports
may lead to errors when the port count grows past the amount specified. If you specifynumber_of_ports
, you may wish to setauto_expand
tofalse
.- Block
All boolPorts - Indicates whether to block all ports by default.
- Block
Override boolAllowed - Allow the blocked setting of an individual port to override the setting in the portgroup.
- Check
Beacon bool - Enable beacon probing on the ports this policy applies to.
- Config
Version string - The current version of the port group configuration, incremented by subsequent updates to the port group.
- Custom
Attributes map[string]string Map of custom attribute ids to attribute <<<<<<< HEAD value string to set for port group. See here for a reference on how to set values for custom attributes.
======= value string to set for port group.
69c6e040 (fork)
NOTE: Custom attributes are not supported on direct ESXi host connections and require vCenter Server.
- Description string
- An optional description for the port group.
- Directpath
Gen2Allowed bool - Allow VMDirectPath Gen2 on the ports this policy applies to.
- Distributed
Virtual stringSwitch Uuid - The ID of the VDS to add the port group to. Forces a new resource if changed.
- Egress
Shaping intAverage Bandwidth - The average egress bandwidth in bits per second if egress shaping is enabled on the port.
- Egress
Shaping intBurst Size - The maximum egress burst size allowed in bytes if egress shaping is enabled on the port.
- Egress
Shaping boolEnabled - True if the traffic shaper is enabled for egress traffic on the port.
- Egress
Shaping intPeak Bandwidth - The peak egress bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- Failback bool
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- Ingress
Shaping intAverage Bandwidth - The average ingress bandwidth in bits per second if ingress shaping is enabled on the port.
- Ingress
Shaping intBurst Size - The maximum ingress burst size allowed in bytes if ingress shaping is enabled on the port.
- Ingress
Shaping boolEnabled - True if the traffic shaper is enabled for ingress traffic on the port.
- Ingress
Shaping intPeak Bandwidth - The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- Key string
- The generated UUID of the port group.
- Lacp
Enabled bool - Whether or not to enable LACP on all uplink ports.
- Lacp
Mode string - The uplink LACP mode to use. Can be one of active or passive.
- Live
Port boolMoving Allowed - Allow a live port to be moved in and out of the portgroup.
- Name string
- The name of the port group.
- Netflow
Enabled bool - Indicates whether to enable netflow on all ports.
- Netflow
Override boolAllowed - Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
- Network
Resource stringPool Key - The key of a network resource pool
to associate with this port group. The default is
-1
, which implies no association. - Network
Resource boolPool Override Allowed - Allow the network resource pool of an individual port to override the setting in the portgroup.
- Notify
Switches bool - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- Number
Of intPorts - The number of ports available on this port group. Cannot be decreased below the amount of used ports on the port group.
- Port
Config boolReset At Disconnect - Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
- Port
Name stringFormat - An optional formatting policy for naming of
the ports in this port group. See the
portNameFormat
attribute listed here for details on the format syntax. - Port
Private intSecondary Vlan Id - The secondary VLAN ID for this port.
- Security
Policy boolOverride Allowed - Allow security policy settings on a port to override those on the portgroup.
- Shaping
Override boolAllowed - Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
- Standby
Uplinks []string - List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- []string
- A list of tag IDs to apply to this object.
- Teaming
Policy string - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, failover_explicit, or loadbalance_loadbased.
- Traffic
Filter boolOverride Allowed - Allow any filter policies set on the individual port to override those in the portgroup.
- Tx
Uplink bool - If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet forwarded done by the switch.
- Type string
- The port group type. Can be one of
earlyBinding
(static binding) orephemeral
. Default:earlyBinding
. - Uplink
Teaming boolOverride Allowed - Allow the uplink teaming policies on a port to override those on the portgroup.
- Vlan
Id int - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- Vlan
Override boolAllowed - Allow the VLAN configuration on a port to override those on the portgroup.
- Vlan
Ranges []DistributedPort Group Vlan Range Args - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- active
Uplinks List<String> - List of active uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- 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.
- auto
Expand Boolean Allows the port group to create additional ports past the limit specified in
number_of_ports
if necessary. Default:true
.NOTE: Using
auto_expand
with a statically definednumber_of_ports
may lead to errors when the port count grows past the amount specified. If you specifynumber_of_ports
, you may wish to setauto_expand
tofalse
.- block
All BooleanPorts - Indicates whether to block all ports by default.
- block
Override BooleanAllowed - Allow the blocked setting of an individual port to override the setting in the portgroup.
- check
Beacon Boolean - Enable beacon probing on the ports this policy applies to.
- config
Version String - The current version of the port group configuration, incremented by subsequent updates to the port group.
- custom
Attributes Map<String,String> Map of custom attribute ids to attribute <<<<<<< HEAD value string to set for port group. See here for a reference on how to set values for custom attributes.
======= value string to set for port group.
69c6e040 (fork)
NOTE: Custom attributes are not supported on direct ESXi host connections and require vCenter Server.
- description String
- An optional description for the port group.
- directpath
Gen2Allowed Boolean - Allow VMDirectPath Gen2 on the ports this policy applies to.
- distributed
Virtual StringSwitch Uuid - The ID of the VDS to add the port group to. Forces a new resource if changed.
- egress
Shaping IntegerAverage Bandwidth - The average egress bandwidth in bits per second if egress shaping is enabled on the port.
- egress
Shaping IntegerBurst Size - The maximum egress burst size allowed in bytes if egress shaping is enabled on the port.
- egress
Shaping BooleanEnabled - True if the traffic shaper is enabled for egress traffic on the port.
- egress
Shaping IntegerPeak Bandwidth - The peak egress bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- failback Boolean
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- ingress
Shaping IntegerAverage Bandwidth - The average ingress bandwidth in bits per second if ingress shaping is enabled on the port.
- ingress
Shaping IntegerBurst Size - The maximum ingress burst size allowed in bytes if ingress shaping is enabled on the port.
- ingress
Shaping BooleanEnabled - True if the traffic shaper is enabled for ingress traffic on the port.
- ingress
Shaping IntegerPeak Bandwidth - The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- key String
- The generated UUID of the port group.
- lacp
Enabled Boolean - Whether or not to enable LACP on all uplink ports.
- lacp
Mode String - The uplink LACP mode to use. Can be one of active or passive.
- live
Port BooleanMoving Allowed - Allow a live port to be moved in and out of the portgroup.
- name String
- The name of the port group.
- netflow
Enabled Boolean - Indicates whether to enable netflow on all ports.
- netflow
Override BooleanAllowed - Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
- network
Resource StringPool Key - The key of a network resource pool
to associate with this port group. The default is
-1
, which implies no association. - network
Resource BooleanPool Override Allowed - Allow the network resource pool of an individual port to override the setting in the portgroup.
- notify
Switches Boolean - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number
Of IntegerPorts - The number of ports available on this port group. Cannot be decreased below the amount of used ports on the port group.
- port
Config BooleanReset At Disconnect - Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
- port
Name StringFormat - An optional formatting policy for naming of
the ports in this port group. See the
portNameFormat
attribute listed here for details on the format syntax. - port
Private IntegerSecondary Vlan Id - The secondary VLAN ID for this port.
- security
Policy BooleanOverride Allowed - Allow security policy settings on a port to override those on the portgroup.
- shaping
Override BooleanAllowed - Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
- standby
Uplinks List<String> - List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- List<String>
- A list of tag IDs to apply to this object.
- teaming
Policy String - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, failover_explicit, or loadbalance_loadbased.
- traffic
Filter BooleanOverride Allowed - Allow any filter policies set on the individual port to override those in the portgroup.
- tx
Uplink Boolean - If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet forwarded done by the switch.
- type String
- The port group type. Can be one of
earlyBinding
(static binding) orephemeral
. Default:earlyBinding
. - uplink
Teaming BooleanOverride Allowed - Allow the uplink teaming policies on a port to override those on the portgroup.
- vlan
Id Integer - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- vlan
Override BooleanAllowed - Allow the VLAN configuration on a port to override those on the portgroup.
- vlan
Ranges List<DistributedPort Group Vlan Range> - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- active
Uplinks string[] - List of active uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- 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.
- auto
Expand boolean Allows the port group to create additional ports past the limit specified in
number_of_ports
if necessary. Default:true
.NOTE: Using
auto_expand
with a statically definednumber_of_ports
may lead to errors when the port count grows past the amount specified. If you specifynumber_of_ports
, you may wish to setauto_expand
tofalse
.- block
All booleanPorts - Indicates whether to block all ports by default.
- block
Override booleanAllowed - Allow the blocked setting of an individual port to override the setting in the portgroup.
- check
Beacon boolean - Enable beacon probing on the ports this policy applies to.
- config
Version string - The current version of the port group configuration, incremented by subsequent updates to the port group.
- custom
Attributes {[key: string]: string} Map of custom attribute ids to attribute <<<<<<< HEAD value string to set for port group. See here for a reference on how to set values for custom attributes.
======= value string to set for port group.
69c6e040 (fork)
NOTE: Custom attributes are not supported on direct ESXi host connections and require vCenter Server.
- description string
- An optional description for the port group.
- directpath
Gen2Allowed boolean - Allow VMDirectPath Gen2 on the ports this policy applies to.
- distributed
Virtual stringSwitch Uuid - The ID of the VDS to add the port group to. Forces a new resource if changed.
- egress
Shaping numberAverage Bandwidth - The average egress bandwidth in bits per second if egress shaping is enabled on the port.
- egress
Shaping numberBurst Size - The maximum egress burst size allowed in bytes if egress shaping is enabled on the port.
- egress
Shaping booleanEnabled - True if the traffic shaper is enabled for egress traffic on the port.
- egress
Shaping numberPeak Bandwidth - The peak egress bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- failback boolean
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- ingress
Shaping numberAverage Bandwidth - The average ingress bandwidth in bits per second if ingress shaping is enabled on the port.
- ingress
Shaping numberBurst Size - The maximum ingress burst size allowed in bytes if ingress shaping is enabled on the port.
- ingress
Shaping booleanEnabled - True if the traffic shaper is enabled for ingress traffic on the port.
- ingress
Shaping numberPeak Bandwidth - The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- key string
- The generated UUID of the port group.
- lacp
Enabled boolean - Whether or not to enable LACP on all uplink ports.
- lacp
Mode string - The uplink LACP mode to use. Can be one of active or passive.
- live
Port booleanMoving Allowed - Allow a live port to be moved in and out of the portgroup.
- name string
- The name of the port group.
- netflow
Enabled boolean - Indicates whether to enable netflow on all ports.
- netflow
Override booleanAllowed - Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
- network
Resource stringPool Key - The key of a network resource pool
to associate with this port group. The default is
-1
, which implies no association. - network
Resource booleanPool Override Allowed - Allow the network resource pool of an individual port to override the setting in the portgroup.
- notify
Switches boolean - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number
Of numberPorts - The number of ports available on this port group. Cannot be decreased below the amount of used ports on the port group.
- port
Config booleanReset At Disconnect - Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
- port
Name stringFormat - An optional formatting policy for naming of
the ports in this port group. See the
portNameFormat
attribute listed here for details on the format syntax. - port
Private numberSecondary Vlan Id - The secondary VLAN ID for this port.
- security
Policy booleanOverride Allowed - Allow security policy settings on a port to override those on the portgroup.
- shaping
Override booleanAllowed - Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
- standby
Uplinks string[] - List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- string[]
- A list of tag IDs to apply to this object.
- teaming
Policy string - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, failover_explicit, or loadbalance_loadbased.
- traffic
Filter booleanOverride Allowed - Allow any filter policies set on the individual port to override those in the portgroup.
- tx
Uplink boolean - If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet forwarded done by the switch.
- type string
- The port group type. Can be one of
earlyBinding
(static binding) orephemeral
. Default:earlyBinding
. - uplink
Teaming booleanOverride Allowed - Allow the uplink teaming policies on a port to override those on the portgroup.
- vlan
Id number - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- vlan
Override booleanAllowed - Allow the VLAN configuration on a port to override those on the portgroup.
- vlan
Ranges DistributedPort Group Vlan Range[] - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- active_
uplinks Sequence[str] - List of active uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- 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.
- auto_
expand bool Allows the port group to create additional ports past the limit specified in
number_of_ports
if necessary. Default:true
.NOTE: Using
auto_expand
with a statically definednumber_of_ports
may lead to errors when the port count grows past the amount specified. If you specifynumber_of_ports
, you may wish to setauto_expand
tofalse
.- block_
all_ boolports - Indicates whether to block all ports by default.
- block_
override_ boolallowed - Allow the blocked setting of an individual port to override the setting in the portgroup.
- check_
beacon bool - Enable beacon probing on the ports this policy applies to.
- config_
version str - The current version of the port group configuration, incremented by subsequent updates to the port group.
- custom_
attributes Mapping[str, str] Map of custom attribute ids to attribute <<<<<<< HEAD value string to set for port group. See here for a reference on how to set values for custom attributes.
======= value string to set for port group.
69c6e040 (fork)
NOTE: Custom attributes are not supported on direct ESXi host connections and require vCenter Server.
- description str
- An optional description for the port group.
- directpath_
gen2_ boolallowed - Allow VMDirectPath Gen2 on the ports this policy applies to.
- distributed_
virtual_ strswitch_ uuid - The ID of the VDS to add the port group to. Forces a new resource if changed.
- egress_
shaping_ intaverage_ bandwidth - The average egress bandwidth in bits per second if egress shaping is enabled on the port.
- egress_
shaping_ intburst_ size - The maximum egress burst size allowed in bytes if egress shaping is enabled on the port.
- egress_
shaping_ boolenabled - True if the traffic shaper is enabled for egress traffic on the port.
- egress_
shaping_ intpeak_ bandwidth - The peak egress bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- failback bool
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- ingress_
shaping_ intaverage_ bandwidth - The average ingress bandwidth in bits per second if ingress shaping is enabled on the port.
- ingress_
shaping_ intburst_ size - The maximum ingress burst size allowed in bytes if ingress shaping is enabled on the port.
- ingress_
shaping_ boolenabled - True if the traffic shaper is enabled for ingress traffic on the port.
- ingress_
shaping_ intpeak_ bandwidth - The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- key str
- The generated UUID of the port group.
- lacp_
enabled bool - Whether or not to enable LACP on all uplink ports.
- lacp_
mode str - The uplink LACP mode to use. Can be one of active or passive.
- live_
port_ boolmoving_ allowed - Allow a live port to be moved in and out of the portgroup.
- name str
- The name of the port group.
- netflow_
enabled bool - Indicates whether to enable netflow on all ports.
- netflow_
override_ boolallowed - Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
- network_
resource_ strpool_ key - The key of a network resource pool
to associate with this port group. The default is
-1
, which implies no association. - network_
resource_ boolpool_ override_ allowed - Allow the network resource pool of an individual port to override the setting in the portgroup.
- notify_
switches bool - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number_
of_ intports - The number of ports available on this port group. Cannot be decreased below the amount of used ports on the port group.
- port_
config_ boolreset_ at_ disconnect - Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
- port_
name_ strformat - An optional formatting policy for naming of
the ports in this port group. See the
portNameFormat
attribute listed here for details on the format syntax. - port_
private_ intsecondary_ vlan_ id - The secondary VLAN ID for this port.
- security_
policy_ booloverride_ allowed - Allow security policy settings on a port to override those on the portgroup.
- shaping_
override_ boolallowed - Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
- standby_
uplinks Sequence[str] - List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- Sequence[str]
- A list of tag IDs to apply to this object.
- teaming_
policy str - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, failover_explicit, or loadbalance_loadbased.
- traffic_
filter_ booloverride_ allowed - Allow any filter policies set on the individual port to override those in the portgroup.
- tx_
uplink bool - If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet forwarded done by the switch.
- type str
- The port group type. Can be one of
earlyBinding
(static binding) orephemeral
. Default:earlyBinding
. - uplink_
teaming_ booloverride_ allowed - Allow the uplink teaming policies on a port to override those on the portgroup.
- vlan_
id int - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- vlan_
override_ boolallowed - Allow the VLAN configuration on a port to override those on the portgroup.
- vlan_
ranges Sequence[DistributedPort Group Vlan Range Args] - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- active
Uplinks List<String> - List of active uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- 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.
- auto
Expand Boolean Allows the port group to create additional ports past the limit specified in
number_of_ports
if necessary. Default:true
.NOTE: Using
auto_expand
with a statically definednumber_of_ports
may lead to errors when the port count grows past the amount specified. If you specifynumber_of_ports
, you may wish to setauto_expand
tofalse
.- block
All BooleanPorts - Indicates whether to block all ports by default.
- block
Override BooleanAllowed - Allow the blocked setting of an individual port to override the setting in the portgroup.
- check
Beacon Boolean - Enable beacon probing on the ports this policy applies to.
- config
Version String - The current version of the port group configuration, incremented by subsequent updates to the port group.
- custom
Attributes Map<String> Map of custom attribute ids to attribute <<<<<<< HEAD value string to set for port group. See here for a reference on how to set values for custom attributes.
======= value string to set for port group.
69c6e040 (fork)
NOTE: Custom attributes are not supported on direct ESXi host connections and require vCenter Server.
- description String
- An optional description for the port group.
- directpath
Gen2Allowed Boolean - Allow VMDirectPath Gen2 on the ports this policy applies to.
- distributed
Virtual StringSwitch Uuid - The ID of the VDS to add the port group to. Forces a new resource if changed.
- egress
Shaping NumberAverage Bandwidth - The average egress bandwidth in bits per second if egress shaping is enabled on the port.
- egress
Shaping NumberBurst Size - The maximum egress burst size allowed in bytes if egress shaping is enabled on the port.
- egress
Shaping BooleanEnabled - True if the traffic shaper is enabled for egress traffic on the port.
- egress
Shaping NumberPeak Bandwidth - The peak egress bandwidth during bursts in bits per second if egress traffic shaping is enabled on the port.
- failback Boolean
- If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
- ingress
Shaping NumberAverage Bandwidth - The average ingress bandwidth in bits per second if ingress shaping is enabled on the port.
- ingress
Shaping NumberBurst Size - The maximum ingress burst size allowed in bytes if ingress shaping is enabled on the port.
- ingress
Shaping BooleanEnabled - True if the traffic shaper is enabled for ingress traffic on the port.
- ingress
Shaping NumberPeak Bandwidth - The peak ingress bandwidth during bursts in bits per second if ingress traffic shaping is enabled on the port.
- key String
- The generated UUID of the port group.
- lacp
Enabled Boolean - Whether or not to enable LACP on all uplink ports.
- lacp
Mode String - The uplink LACP mode to use. Can be one of active or passive.
- live
Port BooleanMoving Allowed - Allow a live port to be moved in and out of the portgroup.
- name String
- The name of the port group.
- netflow
Enabled Boolean - Indicates whether to enable netflow on all ports.
- netflow
Override BooleanAllowed - Allow the enabling or disabling of Netflow on a port, contrary to the policy in the portgroup.
- network
Resource StringPool Key - The key of a network resource pool
to associate with this port group. The default is
-1
, which implies no association. - network
Resource BooleanPool Override Allowed - Allow the network resource pool of an individual port to override the setting in the portgroup.
- notify
Switches Boolean - If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
- number
Of NumberPorts - The number of ports available on this port group. Cannot be decreased below the amount of used ports on the port group.
- port
Config BooleanReset At Disconnect - Reset the setting of any ports in this portgroup back to the default setting when the port disconnects.
- port
Name StringFormat - An optional formatting policy for naming of
the ports in this port group. See the
portNameFormat
attribute listed here for details on the format syntax. - port
Private NumberSecondary Vlan Id - The secondary VLAN ID for this port.
- security
Policy BooleanOverride Allowed - Allow security policy settings on a port to override those on the portgroup.
- shaping
Override BooleanAllowed - Allow the traffic shaping policies of an individual port to override the settings in the portgroup.
- standby
Uplinks List<String> - List of standby uplinks used for load balancing, matching the names of the uplinks assigned in the DVS.
- List<String>
- A list of tag IDs to apply to this object.
- teaming
Policy String - The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, failover_explicit, or loadbalance_loadbased.
- traffic
Filter BooleanOverride Allowed - Allow any filter policies set on the individual port to override those in the portgroup.
- tx
Uplink Boolean - If true, a copy of packets sent to the switch will always be forwarded to an uplink in addition to the regular packet forwarded done by the switch.
- type String
- The port group type. Can be one of
earlyBinding
(static binding) orephemeral
. Default:earlyBinding
. - uplink
Teaming BooleanOverride Allowed - Allow the uplink teaming policies on a port to override those on the portgroup.
- vlan
Id Number - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
- vlan
Override BooleanAllowed - Allow the VLAN configuration on a port to override those on the portgroup.
- vlan
Ranges List<Property Map> - The VLAN ID for single VLAN mode. 0 denotes no VLAN.
Supporting Types
DistributedPortGroupVlanRange, DistributedPortGroupVlanRangeArgs
Import
An existing port group can be imported into this resource using
the managed object id of the port group, via the following command:
$ pulumi import vsphere:index/distributedPortGroup:DistributedPortGroup pg /dc-01/network/pg-01
The above would import the port group named pg-01
that is located in the dc-01
datacenter.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.