1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getConsoleServerPortTemplate
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger

netbox.getConsoleServerPortTemplate

netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger

    A console server port template of a device type or module type (dcim.consoleserverporttemplate).

    From the official documentation:

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getConsoleServerPortTemplate({
        name: "test-console_server_port_template",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_console_server_port_template(name="test-console_server_port_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.LookupConsoleServerPortTemplate(ctx, &netbox.LookupConsoleServerPortTemplateArgs{
    			Name: pulumi.StringRef("test-console_server_port_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.GetConsoleServerPortTemplate.Invoke(new()
        {
            Name = "test-console_server_port_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.GetConsoleServerPortTemplateArgs;
    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.getConsoleServerPortTemplate(GetConsoleServerPortTemplateArgs.builder()
                .name("test-console_server_port_template")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getConsoleServerPortTemplate
          arguments:
            name: test-console_server_port_template
    
    Example coming soon!
    

    Using getConsoleServerPortTemplate

    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 getConsoleServerPortTemplate(args: GetConsoleServerPortTemplateArgs, opts?: InvokeOptions): Promise<GetConsoleServerPortTemplateResult>
    function getConsoleServerPortTemplateOutput(args: GetConsoleServerPortTemplateOutputArgs, opts?: InvokeOutputOptions): Output<GetConsoleServerPortTemplateResult>
    def get_console_server_port_template(id: Optional[float] = None,
                                         module_type_id: Optional[float] = None,
                                         name: Optional[str] = None,
                                         type: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetConsoleServerPortTemplateResult
    def get_console_server_port_template_output(id: pulumi.Input[Optional[float]] = None,
                                         module_type_id: pulumi.Input[Optional[float]] = None,
                                         name: pulumi.Input[Optional[str]] = None,
                                         type: pulumi.Input[Optional[str]] = None,
                                         opts: Optional[InvokeOutputOptions] = None) -> Output[GetConsoleServerPortTemplateResult]
    func LookupConsoleServerPortTemplate(ctx *Context, args *LookupConsoleServerPortTemplateArgs, opts ...InvokeOption) (*LookupConsoleServerPortTemplateResult, error)
    func LookupConsoleServerPortTemplateOutput(ctx *Context, args *LookupConsoleServerPortTemplateOutputArgs, opts ...InvokeOption) LookupConsoleServerPortTemplateResultOutput

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

    public static class GetConsoleServerPortTemplate 
    {
        public static Task<GetConsoleServerPortTemplateResult> InvokeAsync(GetConsoleServerPortTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetConsoleServerPortTemplateResult> Invoke(GetConsoleServerPortTemplateInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetConsoleServerPortTemplateResult> Invoke(GetConsoleServerPortTemplateInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetConsoleServerPortTemplateResult> getConsoleServerPortTemplate(GetConsoleServerPortTemplateArgs args, InvokeOptions options)
    public static Output<GetConsoleServerPortTemplateResult> getConsoleServerPortTemplate(GetConsoleServerPortTemplateArgs args, InvokeOptions options)
    public static Output<GetConsoleServerPortTemplateResult> getConsoleServerPortTemplate(GetConsoleServerPortTemplateArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getConsoleServerPortTemplate:getConsoleServerPortTemplate
      arguments:
        # arguments dictionary
    data "netbox_get_console_server_port_template" "name" {
        # arguments
    }

    The following arguments are supported:

    Id double
    NetBox id.
    ModuleTypeId double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    Type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).
    Id float64
    NetBox id.
    ModuleTypeId float64
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    Type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).
    id number
    NetBox id.
    module_type_id number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name string
    type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).
    id Double
    NetBox id.
    moduleTypeId Double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    type String
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).
    id number
    NetBox id.
    moduleTypeId number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name string
    type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).
    id float
    NetBox id.
    module_type_id float
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name str
    type str
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).
    id Number
    NetBox id.
    moduleTypeId Number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    type String
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).

    getConsoleServerPortTemplate Result

    The following output properties are available:

    Created string
    Description string
    DeviceTypeId double
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Id double
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    ModuleTypeId double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    Type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).
    Url string
    Created string
    Description string
    DeviceTypeId float64
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Id float64
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    ModuleTypeId float64
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    Name string
    Type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).
    Url string
    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.
    id number
    NetBox id.
    label string
    Physical label.
    last_updated string
    module_type_id number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name string
    type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).
    url string
    created String
    description String
    deviceTypeId Double
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    id Double
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    moduleTypeId Double
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    type String
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).
    url String
    created string
    description string
    deviceTypeId number
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    id number
    NetBox id.
    label string
    Physical label.
    lastUpdated string
    moduleTypeId number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name string
    type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).
    url string
    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.
    id float
    NetBox id.
    label str
    Physical label.
    last_updated str
    module_type_id float
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name str
    type str
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).
    url str
    created String
    description String
    deviceTypeId Number
    Id of the device type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    id Number
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    moduleTypeId Number
    Id of the module type. Set exactly one of devicetypeid and moduletypeid; NetBox rejects both and neither.
    name String
    type String
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console port type choices).
    url String

    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.0
    published on Wednesday, Nov 4, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial