1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getInterfaceTemplate
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger

netbox.getInterfaceTemplate

netbox
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger

    An interface template of a device type or module type (dcim.interfacetemplate).

    From the official documentation:

    A template for a network interface that will be created on all instantiations of the parent device type. See the interface documentation for more detail.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getInterfaceTemplate({
        name: "test-interface_template",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_interface_template(name="test-interface_template")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := netbox.LookupInterfaceTemplate(ctx, &netbox.LookupInterfaceTemplateArgs{
    			Name: pulumi.StringRef("test-interface_template"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Netbox = Pulumi.Netbox;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Netbox.GetInterfaceTemplate.Invoke(new()
        {
            Name = "test-interface_template",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.NetboxFunctions;
    import com.pulumi.netbox.inputs.GetInterfaceTemplateArgs;
    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) {
            final var test = NetboxFunctions.getInterfaceTemplate(GetInterfaceTemplateArgs.builder()
                .name("test-interface_template")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getInterfaceTemplate
          arguments:
            name: test-interface_template
    
    Example coming soon!
    

    Using getInterfaceTemplate

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getInterfaceTemplate(args: GetInterfaceTemplateArgs, opts?: InvokeOptions): Promise<GetInterfaceTemplateResult>
    function getInterfaceTemplateOutput(args: GetInterfaceTemplateOutputArgs, opts?: InvokeOutputOptions): Output<GetInterfaceTemplateResult>
    def get_interface_template(bridge_id: Optional[float] = None,
                               created: Optional[str] = None,
                               description: Optional[str] = None,
                               device_type_id: Optional[float] = None,
                               enabled: Optional[bool] = None,
                               id: Optional[float] = None,
                               label: Optional[str] = None,
                               last_updated: Optional[str] = None,
                               mgmt_only: Optional[bool] = None,
                               module_type_id: Optional[float] = None,
                               name: Optional[str] = None,
                               poe_mode: Optional[str] = None,
                               poe_type: Optional[str] = None,
                               q: Optional[str] = None,
                               rf_role: Optional[str] = None,
                               type: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetInterfaceTemplateResult
    def get_interface_template_output(bridge_id: pulumi.Input[Optional[float]] = None,
                               created: pulumi.Input[Optional[str]] = None,
                               description: pulumi.Input[Optional[str]] = None,
                               device_type_id: pulumi.Input[Optional[float]] = None,
                               enabled: pulumi.Input[Optional[bool]] = None,
                               id: pulumi.Input[Optional[float]] = None,
                               label: pulumi.Input[Optional[str]] = None,
                               last_updated: pulumi.Input[Optional[str]] = None,
                               mgmt_only: pulumi.Input[Optional[bool]] = None,
                               module_type_id: pulumi.Input[Optional[float]] = None,
                               name: pulumi.Input[Optional[str]] = None,
                               poe_mode: pulumi.Input[Optional[str]] = None,
                               poe_type: pulumi.Input[Optional[str]] = None,
                               q: pulumi.Input[Optional[str]] = None,
                               rf_role: pulumi.Input[Optional[str]] = None,
                               type: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOutputOptions] = None) -> Output[GetInterfaceTemplateResult]
    func LookupInterfaceTemplate(ctx *Context, args *LookupInterfaceTemplateArgs, opts ...InvokeOption) (*LookupInterfaceTemplateResult, error)
    func LookupInterfaceTemplateOutput(ctx *Context, args *LookupInterfaceTemplateOutputArgs, opts ...InvokeOption) LookupInterfaceTemplateResultOutput

    > Note: This function is named LookupInterfaceTemplate in the Go SDK.

    public static class GetInterfaceTemplate 
    {
        public static Task<GetInterfaceTemplateResult> InvokeAsync(GetInterfaceTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetInterfaceTemplateResult> Invoke(GetInterfaceTemplateInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetInterfaceTemplateResult> Invoke(GetInterfaceTemplateInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetInterfaceTemplateResult> getInterfaceTemplate(GetInterfaceTemplateArgs args, InvokeOptions options)
    public static Output<GetInterfaceTemplateResult> getInterfaceTemplate(GetInterfaceTemplateArgs args, InvokeOptions options)
    public static Output<GetInterfaceTemplateResult> getInterfaceTemplate(GetInterfaceTemplateArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getInterfaceTemplate:getInterfaceTemplate
      arguments:
        # arguments dictionary
    data "netbox_get_interface_template" "name" {
        # arguments
    }

    The following arguments are supported:

    BridgeId double
    Id of the bridge interface template.
    Created string
    Description string
    DeviceTypeId double
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Enabled bool
    Whether the interface is enabled.
    Id double
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    MgmtOnly bool
    Whether the interface is used for out-of-band management only.
    ModuleTypeId double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    PoeMode string
    Power over Ethernet mode. One of: pd, pse.
    PoeType string
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RfRole string
    Wireless role. One of: ap, station.
    Type string
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).
    BridgeId float64
    Id of the bridge interface template.
    Created string
    Description string
    DeviceTypeId float64
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Enabled bool
    Whether the interface is enabled.
    Id float64
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    MgmtOnly bool
    Whether the interface is used for out-of-band management only.
    ModuleTypeId float64
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    PoeMode string
    Power over Ethernet mode. One of: pd, pse.
    PoeType string
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RfRole string
    Wireless role. One of: ap, station.
    Type string
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).
    bridge_id number
    Id of the bridge interface template.
    created string
    description string
    device_type_id number
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    enabled bool
    Whether the interface is enabled.
    id number
    NetBox id.
    label string
    Physical label.
    last_updated string
    mgmt_only bool
    Whether the interface is used for out-of-band management only.
    module_type_id number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name string
    poe_mode string
    Power over Ethernet mode. One of: pd, pse.
    poe_type string
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    q string
    Search term, matched against the fields NetBox searches for this object type.
    rf_role string
    Wireless role. One of: ap, station.
    type string
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).
    bridgeId Double
    Id of the bridge interface template.
    created String
    description String
    deviceTypeId Double
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    enabled Boolean
    Whether the interface is enabled.
    id Double
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    mgmtOnly Boolean
    Whether the interface is used for out-of-band management only.
    moduleTypeId Double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    poeMode String
    Power over Ethernet mode. One of: pd, pse.
    poeType String
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    q String
    Search term, matched against the fields NetBox searches for this object type.
    rfRole String
    Wireless role. One of: ap, station.
    type String
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).
    bridgeId number
    Id of the bridge interface template.
    created string
    description string
    deviceTypeId number
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    enabled boolean
    Whether the interface is enabled.
    id number
    NetBox id.
    label string
    Physical label.
    lastUpdated string
    mgmtOnly boolean
    Whether the interface is used for out-of-band management only.
    moduleTypeId number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name string
    poeMode string
    Power over Ethernet mode. One of: pd, pse.
    poeType string
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    q string
    Search term, matched against the fields NetBox searches for this object type.
    rfRole string
    Wireless role. One of: ap, station.
    type string
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).
    bridge_id float
    Id of the bridge interface template.
    created str
    description str
    device_type_id float
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    enabled bool
    Whether the interface is enabled.
    id float
    NetBox id.
    label str
    Physical label.
    last_updated str
    mgmt_only bool
    Whether the interface is used for out-of-band management only.
    module_type_id float
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name str
    poe_mode str
    Power over Ethernet mode. One of: pd, pse.
    poe_type str
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    q str
    Search term, matched against the fields NetBox searches for this object type.
    rf_role str
    Wireless role. One of: ap, station.
    type str
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).
    bridgeId Number
    Id of the bridge interface template.
    created String
    description String
    deviceTypeId Number
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    enabled Boolean
    Whether the interface is enabled.
    id Number
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    mgmtOnly Boolean
    Whether the interface is used for out-of-band management only.
    moduleTypeId Number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    poeMode String
    Power over Ethernet mode. One of: pd, pse.
    poeType String
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    q String
    Search term, matched against the fields NetBox searches for this object type.
    rfRole String
    Wireless role. One of: ap, station.
    type String
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).

    getInterfaceTemplate Result

    The following output properties are available:

    BridgeId double
    Id of the bridge interface template.
    Created string
    Description string
    DeviceTypeId double
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Enabled bool
    Whether the interface is enabled.
    Id double
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    MgmtOnly bool
    Whether the interface is used for out-of-band management only.
    ModuleTypeId double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    PoeMode string
    Power over Ethernet mode. One of: pd, pse.
    PoeType string
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    RfRole string
    Wireless role. One of: ap, station.
    Type string
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).
    Url string
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    BridgeId float64
    Id of the bridge interface template.
    Created string
    Description string
    DeviceTypeId float64
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Enabled bool
    Whether the interface is enabled.
    Id float64
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    MgmtOnly bool
    Whether the interface is used for out-of-band management only.
    ModuleTypeId float64
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    PoeMode string
    Power over Ethernet mode. One of: pd, pse.
    PoeType string
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    RfRole string
    Wireless role. One of: ap, station.
    Type string
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).
    Url string
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    bridge_id number
    Id of the bridge interface template.
    created string
    description string
    device_type_id number
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    enabled bool
    Whether the interface is enabled.
    id number
    NetBox id.
    label string
    Physical label.
    last_updated string
    mgmt_only bool
    Whether the interface is used for out-of-band management only.
    module_type_id number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name string
    poe_mode string
    Power over Ethernet mode. One of: pd, pse.
    poe_type string
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    rf_role string
    Wireless role. One of: ap, station.
    type string
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).
    url string
    q string
    Search term, matched against the fields NetBox searches for this object type.
    bridgeId Double
    Id of the bridge interface template.
    created String
    description String
    deviceTypeId Double
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    enabled Boolean
    Whether the interface is enabled.
    id Double
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    mgmtOnly Boolean
    Whether the interface is used for out-of-band management only.
    moduleTypeId Double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    poeMode String
    Power over Ethernet mode. One of: pd, pse.
    poeType String
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    rfRole String
    Wireless role. One of: ap, station.
    type String
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).
    url String
    q String
    Search term, matched against the fields NetBox searches for this object type.
    bridgeId number
    Id of the bridge interface template.
    created string
    description string
    deviceTypeId number
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    enabled boolean
    Whether the interface is enabled.
    id number
    NetBox id.
    label string
    Physical label.
    lastUpdated string
    mgmtOnly boolean
    Whether the interface is used for out-of-band management only.
    moduleTypeId number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name string
    poeMode string
    Power over Ethernet mode. One of: pd, pse.
    poeType string
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    rfRole string
    Wireless role. One of: ap, station.
    type string
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).
    url string
    q string
    Search term, matched against the fields NetBox searches for this object type.
    bridge_id float
    Id of the bridge interface template.
    created str
    description str
    device_type_id float
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    enabled bool
    Whether the interface is enabled.
    id float
    NetBox id.
    label str
    Physical label.
    last_updated str
    mgmt_only bool
    Whether the interface is used for out-of-band management only.
    module_type_id float
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name str
    poe_mode str
    Power over Ethernet mode. One of: pd, pse.
    poe_type str
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    rf_role str
    Wireless role. One of: ap, station.
    type str
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).
    url str
    q str
    Search term, matched against the fields NetBox searches for this object type.
    bridgeId Number
    Id of the bridge interface template.
    created String
    description String
    deviceTypeId Number
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    enabled Boolean
    Whether the interface is enabled.
    id Number
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    mgmtOnly Boolean
    Whether the interface is used for out-of-band management only.
    moduleTypeId Number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    poeMode String
    Power over Ethernet mode. One of: pd, pse.
    poeType String
    Power over Ethernet type as its NetBox slug, e.g. type1-ieee802.3af, type3-ieee802.3bt, passive-24v-2pair (any of NetBox's PoE type choices).
    rfRole String
    Wireless role. One of: ap, station.
    type String
    Interface type as its NetBox slug, e.g. virtual, lag, bridge, 1000base-t, 10gbase-x-sfpp (any of NetBox's interface type choices).
    url String
    q String
    Search term, matched against the fields NetBox searches for this object type.

    Package Details

    Repository
    netbox e-breuninger/terraform-provider-netbox
    License
    Notes
    This Pulumi package is based on the netbox Terraform Provider.
    netbox
    Viewing docs for netbox 6.0.1
    published on Monday, Nov 16, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial