1. Packages
  2. Cisco NX OS Resource Provider
  3. API Docs
  4. PhysicalInterface
Cisco NX-OS v0.0.2 published on Friday, Sep 29, 2023 by lbrlabs

nxos.PhysicalInterface

Explore with Pulumi AI

nxos logo
Cisco NX-OS v0.0.2 published on Friday, Sep 29, 2023 by lbrlabs

    This resource can manage a physical interface.

    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 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")
    
    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",
    });
    
    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,
                          bandwidth: Optional[int] = None,
                          link_debounce_up: Optional[int] = None,
                          delay: Optional[int] = None,
                          description: Optional[str] = None,
                          device: Optional[str] = None,
                          duplex: Optional[str] = None,
                          fec_mode: Optional[str] = None,
                          link_logging: Optional[str] = None,
                          access_vlan: Optional[str] = None,
                          user_configured_flags: Optional[str] = None,
                          auto_negotiation: Optional[str] = None,
                          admin_state: 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,
                          link_debounce_down: Optional[int] = 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.

    Example

    The following reference example uses placeholder values for all input properties.

    var physicalInterfaceResource = new Nxos.PhysicalInterface("physicalInterfaceResource", new()
    {
        InterfaceId = "string",
        Layer = "string",
        Bandwidth = 0,
        LinkDebounceUp = 0,
        Delay = 0,
        Description = "string",
        Device = "string",
        Duplex = "string",
        FecMode = "string",
        LinkLogging = "string",
        AccessVlan = "string",
        UserConfiguredFlags = "string",
        AutoNegotiation = "string",
        AdminState = "string",
        Medium = "string",
        Mode = "string",
        Mtu = 0,
        NativeVlan = "string",
        Speed = "string",
        SpeedGroup = "string",
        TrunkVlans = "string",
        UniDirectionalEthernet = "string",
        LinkDebounceDown = 0,
    });
    
    example, err := nxos.NewPhysicalInterface(ctx, "physicalInterfaceResource", &nxos.PhysicalInterfaceArgs{
    	InterfaceId:            pulumi.String("string"),
    	Layer:                  pulumi.String("string"),
    	Bandwidth:              pulumi.Int(0),
    	LinkDebounceUp:         pulumi.Int(0),
    	Delay:                  pulumi.Int(0),
    	Description:            pulumi.String("string"),
    	Device:                 pulumi.String("string"),
    	Duplex:                 pulumi.String("string"),
    	FecMode:                pulumi.String("string"),
    	LinkLogging:            pulumi.String("string"),
    	AccessVlan:             pulumi.String("string"),
    	UserConfiguredFlags:    pulumi.String("string"),
    	AutoNegotiation:        pulumi.String("string"),
    	AdminState:             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"),
    	LinkDebounceDown:       pulumi.Int(0),
    })
    
    var physicalInterfaceResource = new PhysicalInterface("physicalInterfaceResource", PhysicalInterfaceArgs.builder()
        .interfaceId("string")
        .layer("string")
        .bandwidth(0)
        .linkDebounceUp(0)
        .delay(0)
        .description("string")
        .device("string")
        .duplex("string")
        .fecMode("string")
        .linkLogging("string")
        .accessVlan("string")
        .userConfiguredFlags("string")
        .autoNegotiation("string")
        .adminState("string")
        .medium("string")
        .mode("string")
        .mtu(0)
        .nativeVlan("string")
        .speed("string")
        .speedGroup("string")
        .trunkVlans("string")
        .uniDirectionalEthernet("string")
        .linkDebounceDown(0)
        .build());
    
    physical_interface_resource = nxos.PhysicalInterface("physicalInterfaceResource",
        interface_id="string",
        layer="string",
        bandwidth=0,
        link_debounce_up=0,
        delay=0,
        description="string",
        device="string",
        duplex="string",
        fec_mode="string",
        link_logging="string",
        access_vlan="string",
        user_configured_flags="string",
        auto_negotiation="string",
        admin_state="string",
        medium="string",
        mode="string",
        mtu=0,
        native_vlan="string",
        speed="string",
        speed_group="string",
        trunk_vlans="string",
        uni_directional_ethernet="string",
        link_debounce_down=0)
    
    const physicalInterfaceResource = new nxos.PhysicalInterface("physicalInterfaceResource", {
        interfaceId: "string",
        layer: "string",
        bandwidth: 0,
        linkDebounceUp: 0,
        delay: 0,
        description: "string",
        device: "string",
        duplex: "string",
        fecMode: "string",
        linkLogging: "string",
        accessVlan: "string",
        userConfiguredFlags: "string",
        autoNegotiation: "string",
        adminState: "string",
        medium: "string",
        mode: "string",
        mtu: 0,
        nativeVlan: "string",
        speed: "string",
        speedGroup: "string",
        trunkVlans: "string",
        uniDirectionalEthernet: "string",
        linkDebounceDown: 0,
    });
    
    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

    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-XX or vxlan-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
    LinkDebounceDown int
    Administrative port link debounce interval. - Range: 0-20000 - Default value: 100
    LinkDebounceUp int
    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-XX or vxlan-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
    UniDirectionalEthernet string
    UDE (Uni-Directional Ethernet). - Choices: disable, send-only, receive-only - Default value: disable
    UserConfiguredFlags string
    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-XX or vxlan-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
    LinkDebounceDown int
    Administrative port link debounce interval. - Range: 0-20000 - Default value: 100
    LinkDebounceUp int
    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-XX or vxlan-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
    UniDirectionalEthernet string
    UDE (Uni-Directional Ethernet). - Choices: disable, send-only, receive-only - Default value: disable
    UserConfiguredFlags string
    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-XX or vxlan-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
    linkDebounceDown Integer
    Administrative port link debounce interval. - Range: 0-20000 - Default value: 100
    linkDebounceUp Integer
    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-XX or vxlan-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
    uniDirectionalEthernet String
    UDE (Uni-Directional Ethernet). - Choices: disable, send-only, receive-only - Default value: disable
    userConfiguredFlags String
    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-XX or vxlan-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
    linkDebounceDown number
    Administrative port link debounce interval. - Range: 0-20000 - Default value: 100
    linkDebounceUp number
    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-XX or vxlan-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
    uniDirectionalEthernet string
    UDE (Uni-Directional Ethernet). - Choices: disable, send-only, receive-only - Default value: disable
    userConfiguredFlags string
    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-XX or vxlan-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_down int
    Administrative port link debounce interval. - Range: 0-20000 - Default value: 100
    link_debounce_up int
    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-XX or vxlan-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_ethernet str
    UDE (Uni-Directional Ethernet). - Choices: disable, send-only, receive-only - Default value: disable
    user_configured_flags str
    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-XX or vxlan-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
    linkDebounceDown Number
    Administrative port link debounce interval. - Range: 0-20000 - Default value: 100
    linkDebounceUp Number
    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-XX or vxlan-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
    uniDirectionalEthernet String
    UDE (Uni-Directional Ethernet). - Choices: disable, send-only, receive-only - Default value: disable
    userConfiguredFlags String
    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) -> PhysicalInterface
    func 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)
    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.
    The following state arguments are supported:
    AccessVlan string
    Access VLAN. Possible values are unknown, vlan-XX or vxlan-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
    LinkDebounceDown int
    Administrative port link debounce interval. - Range: 0-20000 - Default value: 100
    LinkDebounceUp int
    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-XX or vxlan-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
    UniDirectionalEthernet string
    UDE (Uni-Directional Ethernet). - Choices: disable, send-only, receive-only - Default value: disable
    UserConfiguredFlags string
    Port User Config Flags.
    AccessVlan string
    Access VLAN. Possible values are unknown, vlan-XX or vxlan-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
    LinkDebounceDown int
    Administrative port link debounce interval. - Range: 0-20000 - Default value: 100
    LinkDebounceUp int
    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-XX or vxlan-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
    UniDirectionalEthernet string
    UDE (Uni-Directional Ethernet). - Choices: disable, send-only, receive-only - Default value: disable
    UserConfiguredFlags string
    Port User Config Flags.
    accessVlan String
    Access VLAN. Possible values are unknown, vlan-XX or vxlan-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
    linkDebounceDown Integer
    Administrative port link debounce interval. - Range: 0-20000 - Default value: 100
    linkDebounceUp Integer
    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-XX or vxlan-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
    uniDirectionalEthernet String
    UDE (Uni-Directional Ethernet). - Choices: disable, send-only, receive-only - Default value: disable
    userConfiguredFlags String
    Port User Config Flags.
    accessVlan string
    Access VLAN. Possible values are unknown, vlan-XX or vxlan-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
    linkDebounceDown number
    Administrative port link debounce interval. - Range: 0-20000 - Default value: 100
    linkDebounceUp number
    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-XX or vxlan-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
    uniDirectionalEthernet string
    UDE (Uni-Directional Ethernet). - Choices: disable, send-only, receive-only - Default value: disable
    userConfiguredFlags string
    Port User Config Flags.
    access_vlan str
    Access VLAN. Possible values are unknown, vlan-XX or vxlan-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_down int
    Administrative port link debounce interval. - Range: 0-20000 - Default value: 100
    link_debounce_up int
    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-XX or vxlan-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_ethernet str
    UDE (Uni-Directional Ethernet). - Choices: disable, send-only, receive-only - Default value: disable
    user_configured_flags str
    Port User Config Flags.
    accessVlan String
    Access VLAN. Possible values are unknown, vlan-XX or vxlan-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
    linkDebounceDown Number
    Administrative port link debounce interval. - Range: 0-20000 - Default value: 100
    linkDebounceUp Number
    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-XX or vxlan-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
    uniDirectionalEthernet String
    UDE (Uni-Directional Ethernet). - Choices: disable, send-only, receive-only - Default value: disable
    userConfiguredFlags String
    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 nxos Terraform Provider.
    nxos logo
    Cisco NX-OS v0.0.2 published on Friday, Sep 29, 2023 by lbrlabs