nxos.PhysicalInterface
This resource can manage a physical interface.
- API Documentation: l1PhysIf
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nxos = Lbrlabs.PulumiPackage.Nxos;
return await Deployment.RunAsync(() => 
{
    var example = new Nxos.PhysicalInterface("example", new()
    {
        AccessVlan = "unknown",
        AdminState = "up",
        AutoNegotiation = "on",
        Bandwidth = 1000,
        Delay = 10,
        Description = "My Description",
        Duplex = "auto",
        FecMode = "auto",
        InterfaceId = "eth1/10",
        Layer = "Layer3",
        LinkDebounceDown = 200,
        LinkDebounceUp = 0,
        LinkLogging = "enable",
        Medium = "broadcast",
        Mode = "access",
        Mtu = 1500,
        NativeVlan = "unknown",
        Speed = "auto",
        SpeedGroup = "auto",
        TrunkVlans = "1-4094",
        UniDirectionalEthernet = "disable",
        UserConfiguredFlags = "admin_layer,admin_mtu,admin_state",
    });
});
package main
import (
	"github.com/lbrlabs/pulumi-nxos/sdk/go/nxos"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nxos.NewPhysicalInterface(ctx, "example", &nxos.PhysicalInterfaceArgs{
			AccessVlan:             pulumi.String("unknown"),
			AdminState:             pulumi.String("up"),
			AutoNegotiation:        pulumi.String("on"),
			Bandwidth:              pulumi.Int(1000),
			Delay:                  pulumi.Int(10),
			Description:            pulumi.String("My Description"),
			Duplex:                 pulumi.String("auto"),
			FecMode:                pulumi.String("auto"),
			InterfaceId:            pulumi.String("eth1/10"),
			Layer:                  pulumi.String("Layer3"),
			LinkDebounceDown:       pulumi.Int(200),
			LinkDebounceUp:         pulumi.Int(0),
			LinkLogging:            pulumi.String("enable"),
			Medium:                 pulumi.String("broadcast"),
			Mode:                   pulumi.String("access"),
			Mtu:                    pulumi.Int(1500),
			NativeVlan:             pulumi.String("unknown"),
			Speed:                  pulumi.String("auto"),
			SpeedGroup:             pulumi.String("auto"),
			TrunkVlans:             pulumi.String("1-4094"),
			UniDirectionalEthernet: pulumi.String("disable"),
			UserConfiguredFlags:    pulumi.String("admin_layer,admin_mtu,admin_state"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nxos.PhysicalInterface;
import com.pulumi.nxos.PhysicalInterfaceArgs;
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 example = new PhysicalInterface("example", PhysicalInterfaceArgs.builder()        
            .accessVlan("unknown")
            .adminState("up")
            .autoNegotiation("on")
            .bandwidth(1000)
            .delay(10)
            .description("My Description")
            .duplex("auto")
            .fecMode("auto")
            .interfaceId("eth1/10")
            .layer("Layer3")
            .linkDebounceDown(200)
            .linkDebounceUp(0)
            .linkLogging("enable")
            .medium("broadcast")
            .mode("access")
            .mtu(1500)
            .nativeVlan("unknown")
            .speed("auto")
            .speedGroup("auto")
            .trunkVlans("1-4094")
            .uniDirectionalEthernet("disable")
            .userConfiguredFlags("admin_layer,admin_mtu,admin_state")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as nxos from "@lbrlabs/pulumi-nxos";
const example = new nxos.PhysicalInterface("example", {
    accessVlan: "unknown",
    adminState: "up",
    autoNegotiation: "on",
    bandwidth: 1000,
    delay: 10,
    description: "My Description",
    duplex: "auto",
    fecMode: "auto",
    interfaceId: "eth1/10",
    layer: "Layer3",
    linkDebounceDown: 200,
    linkDebounceUp: 0,
    linkLogging: "enable",
    medium: "broadcast",
    mode: "access",
    mtu: 1500,
    nativeVlan: "unknown",
    speed: "auto",
    speedGroup: "auto",
    trunkVlans: "1-4094",
    uniDirectionalEthernet: "disable",
    userConfiguredFlags: "admin_layer,admin_mtu,admin_state",
});
import pulumi
import lbrlabs_pulumi_nxos as nxos
example = nxos.PhysicalInterface("example",
    access_vlan="unknown",
    admin_state="up",
    auto_negotiation="on",
    bandwidth=1000,
    delay=10,
    description="My Description",
    duplex="auto",
    fec_mode="auto",
    interface_id="eth1/10",
    layer="Layer3",
    link_debounce_down=200,
    link_debounce_up=0,
    link_logging="enable",
    medium="broadcast",
    mode="access",
    mtu=1500,
    native_vlan="unknown",
    speed="auto",
    speed_group="auto",
    trunk_vlans="1-4094",
    uni_directional_ethernet="disable",
    user_configured_flags="admin_layer,admin_mtu,admin_state")
resources:
  example:
    type: nxos:PhysicalInterface
    properties:
      accessVlan: unknown
      adminState: up
      autoNegotiation: on
      bandwidth: 1000
      delay: 10
      description: My Description
      duplex: auto
      fecMode: auto
      interfaceId: eth1/10
      layer: Layer3
      linkDebounceDown: 200
      linkDebounceUp: 0
      linkLogging: enable
      medium: broadcast
      mode: access
      mtu: 1500
      nativeVlan: unknown
      speed: auto
      speedGroup: auto
      trunkVlans: 1-4094
      uniDirectionalEthernet: disable
      userConfiguredFlags: admin_layer,admin_mtu,admin_state
Create PhysicalInterface Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PhysicalInterface(name: string, args: PhysicalInterfaceArgs, opts?: CustomResourceOptions);@overload
def PhysicalInterface(resource_name: str,
                      args: PhysicalInterfaceArgs,
                      opts: Optional[ResourceOptions] = None)
@overload
def PhysicalInterface(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      interface_id: Optional[str] = None,
                      layer: Optional[str] = None,
                      link_debounce_up: Optional[int] = None,
                      bandwidth: Optional[int] = None,
                      delay: Optional[int] = None,
                      description: Optional[str] = None,
                      device: Optional[str] = None,
                      duplex: Optional[str] = None,
                      fec_mode: Optional[str] = None,
                      admin_state: Optional[str] = None,
                      link_logging: Optional[str] = None,
                      auto_negotiation: Optional[str] = None,
                      link_debounce_down: Optional[int] = None,
                      access_vlan: Optional[str] = None,
                      medium: Optional[str] = None,
                      mode: Optional[str] = None,
                      mtu: Optional[int] = None,
                      native_vlan: Optional[str] = None,
                      speed: Optional[str] = None,
                      speed_group: Optional[str] = None,
                      trunk_vlans: Optional[str] = None,
                      uni_directional_ethernet: Optional[str] = None,
                      user_configured_flags: Optional[str] = None)func NewPhysicalInterface(ctx *Context, name string, args PhysicalInterfaceArgs, opts ...ResourceOption) (*PhysicalInterface, error)public PhysicalInterface(string name, PhysicalInterfaceArgs args, CustomResourceOptions? opts = null)
public PhysicalInterface(String name, PhysicalInterfaceArgs args)
public PhysicalInterface(String name, PhysicalInterfaceArgs args, CustomResourceOptions options)
type: nxos:PhysicalInterface
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 PhysicalInterfaceArgs
- 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 PhysicalInterfaceArgs
- 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 PhysicalInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PhysicalInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PhysicalInterfaceArgs
- 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 physicalInterfaceResource = new Nxos.PhysicalInterface("physicalInterfaceResource", new()
{
    InterfaceId = "string",
    Layer = "string",
    LinkDebounceUp = 0,
    Bandwidth = 0,
    Delay = 0,
    Description = "string",
    Device = "string",
    Duplex = "string",
    FecMode = "string",
    AdminState = "string",
    LinkLogging = "string",
    AutoNegotiation = "string",
    LinkDebounceDown = 0,
    AccessVlan = "string",
    Medium = "string",
    Mode = "string",
    Mtu = 0,
    NativeVlan = "string",
    Speed = "string",
    SpeedGroup = "string",
    TrunkVlans = "string",
    UniDirectionalEthernet = "string",
    UserConfiguredFlags = "string",
});
example, err := nxos.NewPhysicalInterface(ctx, "physicalInterfaceResource", &nxos.PhysicalInterfaceArgs{
	InterfaceId:            pulumi.String("string"),
	Layer:                  pulumi.String("string"),
	LinkDebounceUp:         pulumi.Int(0),
	Bandwidth:              pulumi.Int(0),
	Delay:                  pulumi.Int(0),
	Description:            pulumi.String("string"),
	Device:                 pulumi.String("string"),
	Duplex:                 pulumi.String("string"),
	FecMode:                pulumi.String("string"),
	AdminState:             pulumi.String("string"),
	LinkLogging:            pulumi.String("string"),
	AutoNegotiation:        pulumi.String("string"),
	LinkDebounceDown:       pulumi.Int(0),
	AccessVlan:             pulumi.String("string"),
	Medium:                 pulumi.String("string"),
	Mode:                   pulumi.String("string"),
	Mtu:                    pulumi.Int(0),
	NativeVlan:             pulumi.String("string"),
	Speed:                  pulumi.String("string"),
	SpeedGroup:             pulumi.String("string"),
	TrunkVlans:             pulumi.String("string"),
	UniDirectionalEthernet: pulumi.String("string"),
	UserConfiguredFlags:    pulumi.String("string"),
})
var physicalInterfaceResource = new PhysicalInterface("physicalInterfaceResource", PhysicalInterfaceArgs.builder()
    .interfaceId("string")
    .layer("string")
    .linkDebounceUp(0)
    .bandwidth(0)
    .delay(0)
    .description("string")
    .device("string")
    .duplex("string")
    .fecMode("string")
    .adminState("string")
    .linkLogging("string")
    .autoNegotiation("string")
    .linkDebounceDown(0)
    .accessVlan("string")
    .medium("string")
    .mode("string")
    .mtu(0)
    .nativeVlan("string")
    .speed("string")
    .speedGroup("string")
    .trunkVlans("string")
    .uniDirectionalEthernet("string")
    .userConfiguredFlags("string")
    .build());
physical_interface_resource = nxos.PhysicalInterface("physicalInterfaceResource",
    interface_id="string",
    layer="string",
    link_debounce_up=0,
    bandwidth=0,
    delay=0,
    description="string",
    device="string",
    duplex="string",
    fec_mode="string",
    admin_state="string",
    link_logging="string",
    auto_negotiation="string",
    link_debounce_down=0,
    access_vlan="string",
    medium="string",
    mode="string",
    mtu=0,
    native_vlan="string",
    speed="string",
    speed_group="string",
    trunk_vlans="string",
    uni_directional_ethernet="string",
    user_configured_flags="string")
const physicalInterfaceResource = new nxos.PhysicalInterface("physicalInterfaceResource", {
    interfaceId: "string",
    layer: "string",
    linkDebounceUp: 0,
    bandwidth: 0,
    delay: 0,
    description: "string",
    device: "string",
    duplex: "string",
    fecMode: "string",
    adminState: "string",
    linkLogging: "string",
    autoNegotiation: "string",
    linkDebounceDown: 0,
    accessVlan: "string",
    medium: "string",
    mode: "string",
    mtu: 0,
    nativeVlan: "string",
    speed: "string",
    speedGroup: "string",
    trunkVlans: "string",
    uniDirectionalEthernet: "string",
    userConfiguredFlags: "string",
});
type: nxos:PhysicalInterface
properties:
    accessVlan: string
    adminState: string
    autoNegotiation: string
    bandwidth: 0
    delay: 0
    description: string
    device: string
    duplex: string
    fecMode: string
    interfaceId: string
    layer: string
    linkDebounceDown: 0
    linkDebounceUp: 0
    linkLogging: string
    medium: string
    mode: string
    mtu: 0
    nativeVlan: string
    speed: string
    speedGroup: string
    trunkVlans: string
    uniDirectionalEthernet: string
    userConfiguredFlags: string
PhysicalInterface 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 PhysicalInterface resource accepts the following input properties:
- InterfaceId string
- Must match first field in the output of show intf brief. Example:eth1/1.
- AccessVlan string
- Access VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- AdminState string
- Administrative port state. - Choices: up,down- Default value:up
- AutoNegotiation string
- Administrative port auto-negotiation. - Choices: on,off,25G- Default value:on
- Bandwidth int
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: 0-3200000000- Default value:0
- Delay int
- The administrative port delay time. - Range: 1-16777215- Default value:1
- Description string
- Interface description.
- Device string
- A device name from the provider configuration.
- Duplex string
- Duplex. - Choices: auto,full,half- Default value:auto
- FecMode string
- FEC mode. - Choices: fc-fec,rs-fec,fec-off,auto,rs-ieee,rs-cons16,kp-fec- Default value:auto
- Layer string
- Administrative port layer. - Choices: Layer2,Layer3- Default value:Layer2
- LinkDebounce intDown 
- Administrative port link debounce interval. - Range: 0-20000- Default value:100
- LinkDebounce intUp 
- Link Debounce Interval - LinkUp Event. - Range: 0-20000- Default value:0
- LinkLogging string
- Administrative link logging. - Choices: default,enable,disable- Default value:default
- Medium string
- The administrative port medium type. - Choices: broadcast,p2p- Default value:broadcast
- Mode string
- Administrative port mode. - Choices: access,trunk,fex-fabric,dot1q-tunnel,promiscuous,host,trunk_secondary,trunk_promiscuous,vntag- Default value:access
- Mtu int
- Administrative port MTU. - Range: 576-9216- Default value:1500
- NativeVlan string
- Native VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- Speed string
- Administrative port speed. - Choices: unknown,100M,1G,10G,40G,auto,auto 100M,auto 100M 1G,100G,25G,10M,50G,200G,400G,2.5G,5G,auto 2.5G 5G 10G,auto 100M 1G 2.5G 5G- Default value:auto
- SpeedGroup string
- Speed group. - Choices: unknown,1000,10000,40000,auto,25000- Default value:auto
- TrunkVlans string
- List of trunk VLANs. - Default value: 1-4094
- UniDirectional stringEthernet 
- UDE (Uni-Directional Ethernet). - Choices: disable,send-only,receive-only- Default value:disable
- UserConfigured stringFlags 
- Port User Config Flags.
- InterfaceId string
- Must match first field in the output of show intf brief. Example:eth1/1.
- AccessVlan string
- Access VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- AdminState string
- Administrative port state. - Choices: up,down- Default value:up
- AutoNegotiation string
- Administrative port auto-negotiation. - Choices: on,off,25G- Default value:on
- Bandwidth int
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: 0-3200000000- Default value:0
- Delay int
- The administrative port delay time. - Range: 1-16777215- Default value:1
- Description string
- Interface description.
- Device string
- A device name from the provider configuration.
- Duplex string
- Duplex. - Choices: auto,full,half- Default value:auto
- FecMode string
- FEC mode. - Choices: fc-fec,rs-fec,fec-off,auto,rs-ieee,rs-cons16,kp-fec- Default value:auto
- Layer string
- Administrative port layer. - Choices: Layer2,Layer3- Default value:Layer2
- LinkDebounce intDown 
- Administrative port link debounce interval. - Range: 0-20000- Default value:100
- LinkDebounce intUp 
- Link Debounce Interval - LinkUp Event. - Range: 0-20000- Default value:0
- LinkLogging string
- Administrative link logging. - Choices: default,enable,disable- Default value:default
- Medium string
- The administrative port medium type. - Choices: broadcast,p2p- Default value:broadcast
- Mode string
- Administrative port mode. - Choices: access,trunk,fex-fabric,dot1q-tunnel,promiscuous,host,trunk_secondary,trunk_promiscuous,vntag- Default value:access
- Mtu int
- Administrative port MTU. - Range: 576-9216- Default value:1500
- NativeVlan string
- Native VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- Speed string
- Administrative port speed. - Choices: unknown,100M,1G,10G,40G,auto,auto 100M,auto 100M 1G,100G,25G,10M,50G,200G,400G,2.5G,5G,auto 2.5G 5G 10G,auto 100M 1G 2.5G 5G- Default value:auto
- SpeedGroup string
- Speed group. - Choices: unknown,1000,10000,40000,auto,25000- Default value:auto
- TrunkVlans string
- List of trunk VLANs. - Default value: 1-4094
- UniDirectional stringEthernet 
- UDE (Uni-Directional Ethernet). - Choices: disable,send-only,receive-only- Default value:disable
- UserConfigured stringFlags 
- Port User Config Flags.
- interfaceId String
- Must match first field in the output of show intf brief. Example:eth1/1.
- accessVlan String
- Access VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- adminState String
- Administrative port state. - Choices: up,down- Default value:up
- autoNegotiation String
- Administrative port auto-negotiation. - Choices: on,off,25G- Default value:on
- bandwidth Integer
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: 0-3200000000- Default value:0
- delay Integer
- The administrative port delay time. - Range: 1-16777215- Default value:1
- description String
- Interface description.
- device String
- A device name from the provider configuration.
- duplex String
- Duplex. - Choices: auto,full,half- Default value:auto
- fecMode String
- FEC mode. - Choices: fc-fec,rs-fec,fec-off,auto,rs-ieee,rs-cons16,kp-fec- Default value:auto
- layer String
- Administrative port layer. - Choices: Layer2,Layer3- Default value:Layer2
- linkDebounce IntegerDown 
- Administrative port link debounce interval. - Range: 0-20000- Default value:100
- linkDebounce IntegerUp 
- Link Debounce Interval - LinkUp Event. - Range: 0-20000- Default value:0
- linkLogging String
- Administrative link logging. - Choices: default,enable,disable- Default value:default
- medium String
- The administrative port medium type. - Choices: broadcast,p2p- Default value:broadcast
- mode String
- Administrative port mode. - Choices: access,trunk,fex-fabric,dot1q-tunnel,promiscuous,host,trunk_secondary,trunk_promiscuous,vntag- Default value:access
- mtu Integer
- Administrative port MTU. - Range: 576-9216- Default value:1500
- nativeVlan String
- Native VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- speed String
- Administrative port speed. - Choices: unknown,100M,1G,10G,40G,auto,auto 100M,auto 100M 1G,100G,25G,10M,50G,200G,400G,2.5G,5G,auto 2.5G 5G 10G,auto 100M 1G 2.5G 5G- Default value:auto
- speedGroup String
- Speed group. - Choices: unknown,1000,10000,40000,auto,25000- Default value:auto
- trunkVlans String
- List of trunk VLANs. - Default value: 1-4094
- uniDirectional StringEthernet 
- UDE (Uni-Directional Ethernet). - Choices: disable,send-only,receive-only- Default value:disable
- userConfigured StringFlags 
- Port User Config Flags.
- interfaceId string
- Must match first field in the output of show intf brief. Example:eth1/1.
- accessVlan string
- Access VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- adminState string
- Administrative port state. - Choices: up,down- Default value:up
- autoNegotiation string
- Administrative port auto-negotiation. - Choices: on,off,25G- Default value:on
- bandwidth number
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: 0-3200000000- Default value:0
- delay number
- The administrative port delay time. - Range: 1-16777215- Default value:1
- description string
- Interface description.
- device string
- A device name from the provider configuration.
- duplex string
- Duplex. - Choices: auto,full,half- Default value:auto
- fecMode string
- FEC mode. - Choices: fc-fec,rs-fec,fec-off,auto,rs-ieee,rs-cons16,kp-fec- Default value:auto
- layer string
- Administrative port layer. - Choices: Layer2,Layer3- Default value:Layer2
- linkDebounce numberDown 
- Administrative port link debounce interval. - Range: 0-20000- Default value:100
- linkDebounce numberUp 
- Link Debounce Interval - LinkUp Event. - Range: 0-20000- Default value:0
- linkLogging string
- Administrative link logging. - Choices: default,enable,disable- Default value:default
- medium string
- The administrative port medium type. - Choices: broadcast,p2p- Default value:broadcast
- mode string
- Administrative port mode. - Choices: access,trunk,fex-fabric,dot1q-tunnel,promiscuous,host,trunk_secondary,trunk_promiscuous,vntag- Default value:access
- mtu number
- Administrative port MTU. - Range: 576-9216- Default value:1500
- nativeVlan string
- Native VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- speed string
- Administrative port speed. - Choices: unknown,100M,1G,10G,40G,auto,auto 100M,auto 100M 1G,100G,25G,10M,50G,200G,400G,2.5G,5G,auto 2.5G 5G 10G,auto 100M 1G 2.5G 5G- Default value:auto
- speedGroup string
- Speed group. - Choices: unknown,1000,10000,40000,auto,25000- Default value:auto
- trunkVlans string
- List of trunk VLANs. - Default value: 1-4094
- uniDirectional stringEthernet 
- UDE (Uni-Directional Ethernet). - Choices: disable,send-only,receive-only- Default value:disable
- userConfigured stringFlags 
- Port User Config Flags.
- interface_id str
- Must match first field in the output of show intf brief. Example:eth1/1.
- access_vlan str
- Access VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- admin_state str
- Administrative port state. - Choices: up,down- Default value:up
- auto_negotiation str
- Administrative port auto-negotiation. - Choices: on,off,25G- Default value:on
- bandwidth int
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: 0-3200000000- Default value:0
- delay int
- The administrative port delay time. - Range: 1-16777215- Default value:1
- description str
- Interface description.
- device str
- A device name from the provider configuration.
- duplex str
- Duplex. - Choices: auto,full,half- Default value:auto
- fec_mode str
- FEC mode. - Choices: fc-fec,rs-fec,fec-off,auto,rs-ieee,rs-cons16,kp-fec- Default value:auto
- layer str
- Administrative port layer. - Choices: Layer2,Layer3- Default value:Layer2
- link_debounce_ intdown 
- Administrative port link debounce interval. - Range: 0-20000- Default value:100
- link_debounce_ intup 
- Link Debounce Interval - LinkUp Event. - Range: 0-20000- Default value:0
- link_logging str
- Administrative link logging. - Choices: default,enable,disable- Default value:default
- medium str
- The administrative port medium type. - Choices: broadcast,p2p- Default value:broadcast
- mode str
- Administrative port mode. - Choices: access,trunk,fex-fabric,dot1q-tunnel,promiscuous,host,trunk_secondary,trunk_promiscuous,vntag- Default value:access
- mtu int
- Administrative port MTU. - Range: 576-9216- Default value:1500
- native_vlan str
- Native VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- speed str
- Administrative port speed. - Choices: unknown,100M,1G,10G,40G,auto,auto 100M,auto 100M 1G,100G,25G,10M,50G,200G,400G,2.5G,5G,auto 2.5G 5G 10G,auto 100M 1G 2.5G 5G- Default value:auto
- speed_group str
- Speed group. - Choices: unknown,1000,10000,40000,auto,25000- Default value:auto
- trunk_vlans str
- List of trunk VLANs. - Default value: 1-4094
- uni_directional_ strethernet 
- UDE (Uni-Directional Ethernet). - Choices: disable,send-only,receive-only- Default value:disable
- user_configured_ strflags 
- Port User Config Flags.
- interfaceId String
- Must match first field in the output of show intf brief. Example:eth1/1.
- accessVlan String
- Access VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- adminState String
- Administrative port state. - Choices: up,down- Default value:up
- autoNegotiation String
- Administrative port auto-negotiation. - Choices: on,off,25G- Default value:on
- bandwidth Number
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: 0-3200000000- Default value:0
- delay Number
- The administrative port delay time. - Range: 1-16777215- Default value:1
- description String
- Interface description.
- device String
- A device name from the provider configuration.
- duplex String
- Duplex. - Choices: auto,full,half- Default value:auto
- fecMode String
- FEC mode. - Choices: fc-fec,rs-fec,fec-off,auto,rs-ieee,rs-cons16,kp-fec- Default value:auto
- layer String
- Administrative port layer. - Choices: Layer2,Layer3- Default value:Layer2
- linkDebounce NumberDown 
- Administrative port link debounce interval. - Range: 0-20000- Default value:100
- linkDebounce NumberUp 
- Link Debounce Interval - LinkUp Event. - Range: 0-20000- Default value:0
- linkLogging String
- Administrative link logging. - Choices: default,enable,disable- Default value:default
- medium String
- The administrative port medium type. - Choices: broadcast,p2p- Default value:broadcast
- mode String
- Administrative port mode. - Choices: access,trunk,fex-fabric,dot1q-tunnel,promiscuous,host,trunk_secondary,trunk_promiscuous,vntag- Default value:access
- mtu Number
- Administrative port MTU. - Range: 576-9216- Default value:1500
- nativeVlan String
- Native VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- speed String
- Administrative port speed. - Choices: unknown,100M,1G,10G,40G,auto,auto 100M,auto 100M 1G,100G,25G,10M,50G,200G,400G,2.5G,5G,auto 2.5G 5G 10G,auto 100M 1G 2.5G 5G- Default value:auto
- speedGroup String
- Speed group. - Choices: unknown,1000,10000,40000,auto,25000- Default value:auto
- trunkVlans String
- List of trunk VLANs. - Default value: 1-4094
- uniDirectional StringEthernet 
- UDE (Uni-Directional Ethernet). - Choices: disable,send-only,receive-only- Default value:disable
- userConfigured StringFlags 
- Port User Config Flags.
Outputs
All input properties are implicitly available as output properties. Additionally, the PhysicalInterface resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing PhysicalInterface Resource
Get an existing PhysicalInterface 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?: PhysicalInterfaceState, opts?: CustomResourceOptions): PhysicalInterface@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_vlan: Optional[str] = None,
        admin_state: Optional[str] = None,
        auto_negotiation: Optional[str] = None,
        bandwidth: Optional[int] = None,
        delay: Optional[int] = None,
        description: Optional[str] = None,
        device: Optional[str] = None,
        duplex: Optional[str] = None,
        fec_mode: Optional[str] = None,
        interface_id: Optional[str] = None,
        layer: Optional[str] = None,
        link_debounce_down: Optional[int] = None,
        link_debounce_up: Optional[int] = None,
        link_logging: Optional[str] = None,
        medium: Optional[str] = None,
        mode: Optional[str] = None,
        mtu: Optional[int] = None,
        native_vlan: Optional[str] = None,
        speed: Optional[str] = None,
        speed_group: Optional[str] = None,
        trunk_vlans: Optional[str] = None,
        uni_directional_ethernet: Optional[str] = None,
        user_configured_flags: Optional[str] = None) -> PhysicalInterfacefunc GetPhysicalInterface(ctx *Context, name string, id IDInput, state *PhysicalInterfaceState, opts ...ResourceOption) (*PhysicalInterface, error)public static PhysicalInterface Get(string name, Input<string> id, PhysicalInterfaceState? state, CustomResourceOptions? opts = null)public static PhysicalInterface get(String name, Output<String> id, PhysicalInterfaceState state, CustomResourceOptions options)resources:  _:    type: nxos:PhysicalInterface    get:      id: ${id}- 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.
- AccessVlan string
- Access VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- AdminState string
- Administrative port state. - Choices: up,down- Default value:up
- AutoNegotiation string
- Administrative port auto-negotiation. - Choices: on,off,25G- Default value:on
- Bandwidth int
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: 0-3200000000- Default value:0
- Delay int
- The administrative port delay time. - Range: 1-16777215- Default value:1
- Description string
- Interface description.
- Device string
- A device name from the provider configuration.
- Duplex string
- Duplex. - Choices: auto,full,half- Default value:auto
- FecMode string
- FEC mode. - Choices: fc-fec,rs-fec,fec-off,auto,rs-ieee,rs-cons16,kp-fec- Default value:auto
- InterfaceId string
- Must match first field in the output of show intf brief. Example:eth1/1.
- Layer string
- Administrative port layer. - Choices: Layer2,Layer3- Default value:Layer2
- LinkDebounce intDown 
- Administrative port link debounce interval. - Range: 0-20000- Default value:100
- LinkDebounce intUp 
- Link Debounce Interval - LinkUp Event. - Range: 0-20000- Default value:0
- LinkLogging string
- Administrative link logging. - Choices: default,enable,disable- Default value:default
- Medium string
- The administrative port medium type. - Choices: broadcast,p2p- Default value:broadcast
- Mode string
- Administrative port mode. - Choices: access,trunk,fex-fabric,dot1q-tunnel,promiscuous,host,trunk_secondary,trunk_promiscuous,vntag- Default value:access
- Mtu int
- Administrative port MTU. - Range: 576-9216- Default value:1500
- NativeVlan string
- Native VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- Speed string
- Administrative port speed. - Choices: unknown,100M,1G,10G,40G,auto,auto 100M,auto 100M 1G,100G,25G,10M,50G,200G,400G,2.5G,5G,auto 2.5G 5G 10G,auto 100M 1G 2.5G 5G- Default value:auto
- SpeedGroup string
- Speed group. - Choices: unknown,1000,10000,40000,auto,25000- Default value:auto
- TrunkVlans string
- List of trunk VLANs. - Default value: 1-4094
- UniDirectional stringEthernet 
- UDE (Uni-Directional Ethernet). - Choices: disable,send-only,receive-only- Default value:disable
- UserConfigured stringFlags 
- Port User Config Flags.
- AccessVlan string
- Access VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- AdminState string
- Administrative port state. - Choices: up,down- Default value:up
- AutoNegotiation string
- Administrative port auto-negotiation. - Choices: on,off,25G- Default value:on
- Bandwidth int
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: 0-3200000000- Default value:0
- Delay int
- The administrative port delay time. - Range: 1-16777215- Default value:1
- Description string
- Interface description.
- Device string
- A device name from the provider configuration.
- Duplex string
- Duplex. - Choices: auto,full,half- Default value:auto
- FecMode string
- FEC mode. - Choices: fc-fec,rs-fec,fec-off,auto,rs-ieee,rs-cons16,kp-fec- Default value:auto
- InterfaceId string
- Must match first field in the output of show intf brief. Example:eth1/1.
- Layer string
- Administrative port layer. - Choices: Layer2,Layer3- Default value:Layer2
- LinkDebounce intDown 
- Administrative port link debounce interval. - Range: 0-20000- Default value:100
- LinkDebounce intUp 
- Link Debounce Interval - LinkUp Event. - Range: 0-20000- Default value:0
- LinkLogging string
- Administrative link logging. - Choices: default,enable,disable- Default value:default
- Medium string
- The administrative port medium type. - Choices: broadcast,p2p- Default value:broadcast
- Mode string
- Administrative port mode. - Choices: access,trunk,fex-fabric,dot1q-tunnel,promiscuous,host,trunk_secondary,trunk_promiscuous,vntag- Default value:access
- Mtu int
- Administrative port MTU. - Range: 576-9216- Default value:1500
- NativeVlan string
- Native VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- Speed string
- Administrative port speed. - Choices: unknown,100M,1G,10G,40G,auto,auto 100M,auto 100M 1G,100G,25G,10M,50G,200G,400G,2.5G,5G,auto 2.5G 5G 10G,auto 100M 1G 2.5G 5G- Default value:auto
- SpeedGroup string
- Speed group. - Choices: unknown,1000,10000,40000,auto,25000- Default value:auto
- TrunkVlans string
- List of trunk VLANs. - Default value: 1-4094
- UniDirectional stringEthernet 
- UDE (Uni-Directional Ethernet). - Choices: disable,send-only,receive-only- Default value:disable
- UserConfigured stringFlags 
- Port User Config Flags.
- accessVlan String
- Access VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- adminState String
- Administrative port state. - Choices: up,down- Default value:up
- autoNegotiation String
- Administrative port auto-negotiation. - Choices: on,off,25G- Default value:on
- bandwidth Integer
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: 0-3200000000- Default value:0
- delay Integer
- The administrative port delay time. - Range: 1-16777215- Default value:1
- description String
- Interface description.
- device String
- A device name from the provider configuration.
- duplex String
- Duplex. - Choices: auto,full,half- Default value:auto
- fecMode String
- FEC mode. - Choices: fc-fec,rs-fec,fec-off,auto,rs-ieee,rs-cons16,kp-fec- Default value:auto
- interfaceId String
- Must match first field in the output of show intf brief. Example:eth1/1.
- layer String
- Administrative port layer. - Choices: Layer2,Layer3- Default value:Layer2
- linkDebounce IntegerDown 
- Administrative port link debounce interval. - Range: 0-20000- Default value:100
- linkDebounce IntegerUp 
- Link Debounce Interval - LinkUp Event. - Range: 0-20000- Default value:0
- linkLogging String
- Administrative link logging. - Choices: default,enable,disable- Default value:default
- medium String
- The administrative port medium type. - Choices: broadcast,p2p- Default value:broadcast
- mode String
- Administrative port mode. - Choices: access,trunk,fex-fabric,dot1q-tunnel,promiscuous,host,trunk_secondary,trunk_promiscuous,vntag- Default value:access
- mtu Integer
- Administrative port MTU. - Range: 576-9216- Default value:1500
- nativeVlan String
- Native VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- speed String
- Administrative port speed. - Choices: unknown,100M,1G,10G,40G,auto,auto 100M,auto 100M 1G,100G,25G,10M,50G,200G,400G,2.5G,5G,auto 2.5G 5G 10G,auto 100M 1G 2.5G 5G- Default value:auto
- speedGroup String
- Speed group. - Choices: unknown,1000,10000,40000,auto,25000- Default value:auto
- trunkVlans String
- List of trunk VLANs. - Default value: 1-4094
- uniDirectional StringEthernet 
- UDE (Uni-Directional Ethernet). - Choices: disable,send-only,receive-only- Default value:disable
- userConfigured StringFlags 
- Port User Config Flags.
- accessVlan string
- Access VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- adminState string
- Administrative port state. - Choices: up,down- Default value:up
- autoNegotiation string
- Administrative port auto-negotiation. - Choices: on,off,25G- Default value:on
- bandwidth number
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: 0-3200000000- Default value:0
- delay number
- The administrative port delay time. - Range: 1-16777215- Default value:1
- description string
- Interface description.
- device string
- A device name from the provider configuration.
- duplex string
- Duplex. - Choices: auto,full,half- Default value:auto
- fecMode string
- FEC mode. - Choices: fc-fec,rs-fec,fec-off,auto,rs-ieee,rs-cons16,kp-fec- Default value:auto
- interfaceId string
- Must match first field in the output of show intf brief. Example:eth1/1.
- layer string
- Administrative port layer. - Choices: Layer2,Layer3- Default value:Layer2
- linkDebounce numberDown 
- Administrative port link debounce interval. - Range: 0-20000- Default value:100
- linkDebounce numberUp 
- Link Debounce Interval - LinkUp Event. - Range: 0-20000- Default value:0
- linkLogging string
- Administrative link logging. - Choices: default,enable,disable- Default value:default
- medium string
- The administrative port medium type. - Choices: broadcast,p2p- Default value:broadcast
- mode string
- Administrative port mode. - Choices: access,trunk,fex-fabric,dot1q-tunnel,promiscuous,host,trunk_secondary,trunk_promiscuous,vntag- Default value:access
- mtu number
- Administrative port MTU. - Range: 576-9216- Default value:1500
- nativeVlan string
- Native VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- speed string
- Administrative port speed. - Choices: unknown,100M,1G,10G,40G,auto,auto 100M,auto 100M 1G,100G,25G,10M,50G,200G,400G,2.5G,5G,auto 2.5G 5G 10G,auto 100M 1G 2.5G 5G- Default value:auto
- speedGroup string
- Speed group. - Choices: unknown,1000,10000,40000,auto,25000- Default value:auto
- trunkVlans string
- List of trunk VLANs. - Default value: 1-4094
- uniDirectional stringEthernet 
- UDE (Uni-Directional Ethernet). - Choices: disable,send-only,receive-only- Default value:disable
- userConfigured stringFlags 
- Port User Config Flags.
- access_vlan str
- Access VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- admin_state str
- Administrative port state. - Choices: up,down- Default value:up
- auto_negotiation str
- Administrative port auto-negotiation. - Choices: on,off,25G- Default value:on
- bandwidth int
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: 0-3200000000- Default value:0
- delay int
- The administrative port delay time. - Range: 1-16777215- Default value:1
- description str
- Interface description.
- device str
- A device name from the provider configuration.
- duplex str
- Duplex. - Choices: auto,full,half- Default value:auto
- fec_mode str
- FEC mode. - Choices: fc-fec,rs-fec,fec-off,auto,rs-ieee,rs-cons16,kp-fec- Default value:auto
- interface_id str
- Must match first field in the output of show intf brief. Example:eth1/1.
- layer str
- Administrative port layer. - Choices: Layer2,Layer3- Default value:Layer2
- link_debounce_ intdown 
- Administrative port link debounce interval. - Range: 0-20000- Default value:100
- link_debounce_ intup 
- Link Debounce Interval - LinkUp Event. - Range: 0-20000- Default value:0
- link_logging str
- Administrative link logging. - Choices: default,enable,disable- Default value:default
- medium str
- The administrative port medium type. - Choices: broadcast,p2p- Default value:broadcast
- mode str
- Administrative port mode. - Choices: access,trunk,fex-fabric,dot1q-tunnel,promiscuous,host,trunk_secondary,trunk_promiscuous,vntag- Default value:access
- mtu int
- Administrative port MTU. - Range: 576-9216- Default value:1500
- native_vlan str
- Native VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- speed str
- Administrative port speed. - Choices: unknown,100M,1G,10G,40G,auto,auto 100M,auto 100M 1G,100G,25G,10M,50G,200G,400G,2.5G,5G,auto 2.5G 5G 10G,auto 100M 1G 2.5G 5G- Default value:auto
- speed_group str
- Speed group. - Choices: unknown,1000,10000,40000,auto,25000- Default value:auto
- trunk_vlans str
- List of trunk VLANs. - Default value: 1-4094
- uni_directional_ strethernet 
- UDE (Uni-Directional Ethernet). - Choices: disable,send-only,receive-only- Default value:disable
- user_configured_ strflags 
- Port User Config Flags.
- accessVlan String
- Access VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- adminState String
- Administrative port state. - Choices: up,down- Default value:up
- autoNegotiation String
- Administrative port auto-negotiation. - Choices: on,off,25G- Default value:on
- bandwidth Number
- The bandwidth parameter for a routed interface, port channel, or subinterface. - Range: 0-3200000000- Default value:0
- delay Number
- The administrative port delay time. - Range: 1-16777215- Default value:1
- description String
- Interface description.
- device String
- A device name from the provider configuration.
- duplex String
- Duplex. - Choices: auto,full,half- Default value:auto
- fecMode String
- FEC mode. - Choices: fc-fec,rs-fec,fec-off,auto,rs-ieee,rs-cons16,kp-fec- Default value:auto
- interfaceId String
- Must match first field in the output of show intf brief. Example:eth1/1.
- layer String
- Administrative port layer. - Choices: Layer2,Layer3- Default value:Layer2
- linkDebounce NumberDown 
- Administrative port link debounce interval. - Range: 0-20000- Default value:100
- linkDebounce NumberUp 
- Link Debounce Interval - LinkUp Event. - Range: 0-20000- Default value:0
- linkLogging String
- Administrative link logging. - Choices: default,enable,disable- Default value:default
- medium String
- The administrative port medium type. - Choices: broadcast,p2p- Default value:broadcast
- mode String
- Administrative port mode. - Choices: access,trunk,fex-fabric,dot1q-tunnel,promiscuous,host,trunk_secondary,trunk_promiscuous,vntag- Default value:access
- mtu Number
- Administrative port MTU. - Range: 576-9216- Default value:1500
- nativeVlan String
- Native VLAN. Possible values are unknown,vlan-XXorvxlan-XX. - Default value:vlan-1
- speed String
- Administrative port speed. - Choices: unknown,100M,1G,10G,40G,auto,auto 100M,auto 100M 1G,100G,25G,10M,50G,200G,400G,2.5G,5G,auto 2.5G 5G 10G,auto 100M 1G 2.5G 5G- Default value:auto
- speedGroup String
- Speed group. - Choices: unknown,1000,10000,40000,auto,25000- Default value:auto
- trunkVlans String
- List of trunk VLANs. - Default value: 1-4094
- uniDirectional StringEthernet 
- UDE (Uni-Directional Ethernet). - Choices: disable,send-only,receive-only- Default value:disable
- userConfigured StringFlags 
- Port User Config Flags.
Import
 $ pulumi import nxos:index/physicalInterface:PhysicalInterface example "sys/intf/phys-[eth1/10]"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- nxos lbrlabs/pulumi-nxos
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the nxosTerraform Provider.
