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

    A device console server port (dcim.consoleserverport).

    From the official documentation:

    A console server is a device which provides remote access to the local consoles of connected devices. They are typically used to provide remote out-of-band access to network devices, and generally connect to console ports.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getDeviceConsoleServerPort({
        name: "test-device_console_server_port",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_device_console_server_port(name="test-device_console_server_port")
    
    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.LookupDeviceConsoleServerPort(ctx, &netbox.LookupDeviceConsoleServerPortArgs{
    			Name: pulumi.StringRef("test-device_console_server_port"),
    		}, 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.GetDeviceConsoleServerPort.Invoke(new()
        {
            Name = "test-device_console_server_port",
        });
    
    });
    
    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.GetDeviceConsoleServerPortArgs;
    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.getDeviceConsoleServerPort(GetDeviceConsoleServerPortArgs.builder()
                .name("test-device_console_server_port")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getDeviceConsoleServerPort
          arguments:
            name: test-device_console_server_port
    
    Example coming soon!
    

    Using getDeviceConsoleServerPort

    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 getDeviceConsoleServerPort(args: GetDeviceConsoleServerPortArgs, opts?: InvokeOptions): Promise<GetDeviceConsoleServerPortResult>
    function getDeviceConsoleServerPortOutput(args: GetDeviceConsoleServerPortOutputArgs, opts?: InvokeOutputOptions): Output<GetDeviceConsoleServerPortResult>
    def get_device_console_server_port(cable_connector: Optional[float] = None,
                                       cable_end: Optional[str] = None,
                                       cable_id: Optional[float] = None,
                                       cabled: Optional[bool] = None,
                                       connected: Optional[bool] = None,
                                       created: Optional[str] = None,
                                       custom_field_filters: Optional[Mapping[str, str]] = None,
                                       description: Optional[str] = None,
                                       device_id: Optional[float] = None,
                                       device_name: Optional[str] = None,
                                       device_role_id: Optional[float] = None,
                                       device_role_slug: Optional[str] = None,
                                       device_status: Optional[str] = None,
                                       device_type_id: Optional[float] = None,
                                       device_type_model: Optional[str] = None,
                                       id: Optional[float] = None,
                                       label: Optional[str] = None,
                                       last_updated: Optional[str] = None,
                                       location_id: Optional[float] = None,
                                       location_slug: Optional[str] = None,
                                       mark_connected: Optional[bool] = None,
                                       module_id: Optional[float] = None,
                                       name: Optional[str] = None,
                                       occupied: Optional[bool] = None,
                                       owner_group_id: Optional[float] = None,
                                       owner_group_name: Optional[str] = None,
                                       owner_id: Optional[float] = None,
                                       owner_name: Optional[str] = None,
                                       q: Optional[str] = None,
                                       rack_id: Optional[float] = None,
                                       rack_name: Optional[str] = None,
                                       region_id: Optional[str] = None,
                                       region_slug: Optional[str] = None,
                                       site_group_id: Optional[str] = None,
                                       site_group_slug: Optional[str] = None,
                                       site_id: Optional[float] = None,
                                       site_slug: Optional[str] = None,
                                       speed: Optional[float] = None,
                                       tag_id: Optional[float] = None,
                                       tag_slug: Optional[str] = None,
                                       tenant_id: Optional[float] = None,
                                       tenant_slug: Optional[str] = None,
                                       type: Optional[str] = None,
                                       virtual_chassis: Optional[str] = None,
                                       virtual_chassis_id: Optional[float] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetDeviceConsoleServerPortResult
    def get_device_console_server_port_output(cable_connector: pulumi.Input[Optional[float]] = None,
                                       cable_end: pulumi.Input[Optional[str]] = None,
                                       cable_id: pulumi.Input[Optional[float]] = None,
                                       cabled: pulumi.Input[Optional[bool]] = None,
                                       connected: pulumi.Input[Optional[bool]] = None,
                                       created: pulumi.Input[Optional[str]] = None,
                                       custom_field_filters: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                                       description: pulumi.Input[Optional[str]] = None,
                                       device_id: pulumi.Input[Optional[float]] = None,
                                       device_name: pulumi.Input[Optional[str]] = None,
                                       device_role_id: pulumi.Input[Optional[float]] = None,
                                       device_role_slug: pulumi.Input[Optional[str]] = None,
                                       device_status: pulumi.Input[Optional[str]] = None,
                                       device_type_id: pulumi.Input[Optional[float]] = None,
                                       device_type_model: pulumi.Input[Optional[str]] = None,
                                       id: pulumi.Input[Optional[float]] = None,
                                       label: pulumi.Input[Optional[str]] = None,
                                       last_updated: pulumi.Input[Optional[str]] = None,
                                       location_id: pulumi.Input[Optional[float]] = None,
                                       location_slug: pulumi.Input[Optional[str]] = None,
                                       mark_connected: pulumi.Input[Optional[bool]] = None,
                                       module_id: pulumi.Input[Optional[float]] = None,
                                       name: pulumi.Input[Optional[str]] = None,
                                       occupied: pulumi.Input[Optional[bool]] = None,
                                       owner_group_id: pulumi.Input[Optional[float]] = None,
                                       owner_group_name: pulumi.Input[Optional[str]] = None,
                                       owner_id: pulumi.Input[Optional[float]] = None,
                                       owner_name: pulumi.Input[Optional[str]] = None,
                                       q: pulumi.Input[Optional[str]] = None,
                                       rack_id: pulumi.Input[Optional[float]] = None,
                                       rack_name: pulumi.Input[Optional[str]] = None,
                                       region_id: pulumi.Input[Optional[str]] = None,
                                       region_slug: pulumi.Input[Optional[str]] = None,
                                       site_group_id: pulumi.Input[Optional[str]] = None,
                                       site_group_slug: pulumi.Input[Optional[str]] = None,
                                       site_id: pulumi.Input[Optional[float]] = None,
                                       site_slug: pulumi.Input[Optional[str]] = None,
                                       speed: pulumi.Input[Optional[float]] = None,
                                       tag_id: pulumi.Input[Optional[float]] = None,
                                       tag_slug: pulumi.Input[Optional[str]] = None,
                                       tenant_id: pulumi.Input[Optional[float]] = None,
                                       tenant_slug: pulumi.Input[Optional[str]] = None,
                                       type: pulumi.Input[Optional[str]] = None,
                                       virtual_chassis: pulumi.Input[Optional[str]] = None,
                                       virtual_chassis_id: pulumi.Input[Optional[float]] = None,
                                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetDeviceConsoleServerPortResult]
    func LookupDeviceConsoleServerPort(ctx *Context, args *LookupDeviceConsoleServerPortArgs, opts ...InvokeOption) (*LookupDeviceConsoleServerPortResult, error)
    func LookupDeviceConsoleServerPortOutput(ctx *Context, args *LookupDeviceConsoleServerPortOutputArgs, opts ...InvokeOption) LookupDeviceConsoleServerPortResultOutput

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

    public static class GetDeviceConsoleServerPort 
    {
        public static Task<GetDeviceConsoleServerPortResult> InvokeAsync(GetDeviceConsoleServerPortArgs args, InvokeOptions? opts = null)
        public static Output<GetDeviceConsoleServerPortResult> Invoke(GetDeviceConsoleServerPortInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetDeviceConsoleServerPortResult> Invoke(GetDeviceConsoleServerPortInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetDeviceConsoleServerPortResult> getDeviceConsoleServerPort(GetDeviceConsoleServerPortArgs args, InvokeOptions options)
    public static Output<GetDeviceConsoleServerPortResult> getDeviceConsoleServerPort(GetDeviceConsoleServerPortArgs args, InvokeOptions options)
    public static Output<GetDeviceConsoleServerPortResult> getDeviceConsoleServerPort(GetDeviceConsoleServerPortArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getDeviceConsoleServerPort:getDeviceConsoleServerPort
      arguments:
        # arguments dictionary
    data "netbox_get_device_console_server_port" "name" {
        # arguments
    }

    The following arguments are supported:

    CableConnector double
    Cable connector to match.
    CableEnd string
    Cable end. One of: A, B.
    CableId double
    Id of the cable.
    Cabled bool
    Whether cabled is set.
    Connected bool
    Whether connected is set.
    Created string
    CustomFieldFilters Dictionary<string, string>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    Description string
    DeviceId double
    Id of the device.
    DeviceName string
    Name of the device.
    DeviceRoleId double
    Id of the device role.
    DeviceRoleSlug string
    Slug of the device role.
    DeviceStatus string
    Device status to match.
    DeviceTypeId double
    Id of the device type.
    DeviceTypeModel string
    Model of the device type.
    Id double
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    LocationId double
    Id of the location.
    LocationSlug string
    Slug of the location.
    MarkConnected bool
    Treat as if a cable is connected.
    ModuleId double
    Id of the installed module this component belongs to.
    Name string
    Occupied bool
    Whether occupied is set.
    OwnerGroupId double
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerId double
    Id of the owner the object is assigned to.
    OwnerName string
    Name of the owner.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RackId double
    Id of the rack.
    RackName string
    Name of the rack.
    RegionId string
    Id of the region.
    RegionSlug string
    Slug of the region.
    SiteGroupId string
    Id of the site group.
    SiteGroupSlug string
    Slug of the site group.
    SiteId double
    Id of the site.
    SiteSlug string
    Slug of the site.
    Speed double
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    TagId double
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    TenantId double
    Id of the tenant.
    TenantSlug string
    Slug of the tenant.
    Type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    VirtualChassis string
    Virtual Chassis.
    VirtualChassisId double
    Id of the virtual chassis.
    CableConnector float64
    Cable connector to match.
    CableEnd string
    Cable end. One of: A, B.
    CableId float64
    Id of the cable.
    Cabled bool
    Whether cabled is set.
    Connected bool
    Whether connected is set.
    Created string
    CustomFieldFilters map[string]string
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    Description string
    DeviceId float64
    Id of the device.
    DeviceName string
    Name of the device.
    DeviceRoleId float64
    Id of the device role.
    DeviceRoleSlug string
    Slug of the device role.
    DeviceStatus string
    Device status to match.
    DeviceTypeId float64
    Id of the device type.
    DeviceTypeModel string
    Model of the device type.
    Id float64
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    LocationId float64
    Id of the location.
    LocationSlug string
    Slug of the location.
    MarkConnected bool
    Treat as if a cable is connected.
    ModuleId float64
    Id of the installed module this component belongs to.
    Name string
    Occupied bool
    Whether occupied is set.
    OwnerGroupId float64
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerId float64
    Id of the owner the object is assigned to.
    OwnerName string
    Name of the owner.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RackId float64
    Id of the rack.
    RackName string
    Name of the rack.
    RegionId string
    Id of the region.
    RegionSlug string
    Slug of the region.
    SiteGroupId string
    Id of the site group.
    SiteGroupSlug string
    Slug of the site group.
    SiteId float64
    Id of the site.
    SiteSlug string
    Slug of the site.
    Speed float64
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    TagId float64
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    TenantId float64
    Id of the tenant.
    TenantSlug string
    Slug of the tenant.
    Type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    VirtualChassis string
    Virtual Chassis.
    VirtualChassisId float64
    Id of the virtual chassis.
    cable_connector number
    Cable connector to match.
    cable_end string
    Cable end. One of: A, B.
    cable_id number
    Id of the cable.
    cabled bool
    Whether cabled is set.
    connected bool
    Whether connected is set.
    created string
    custom_field_filters map(string)
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    description string
    device_id number
    Id of the device.
    device_name string
    Name of the device.
    device_role_id number
    Id of the device role.
    device_role_slug string
    Slug of the device role.
    device_status string
    Device status to match.
    device_type_id number
    Id of the device type.
    device_type_model string
    Model of the device type.
    id number
    NetBox id.
    label string
    Physical label.
    last_updated string
    location_id number
    Id of the location.
    location_slug string
    Slug of the location.
    mark_connected bool
    Treat as if a cable is connected.
    module_id number
    Id of the installed module this component belongs to.
    name string
    occupied bool
    Whether occupied is set.
    owner_group_id number
    Id of the owner group.
    owner_group_name string
    Name of the owner group.
    owner_id number
    Id of the owner the object is assigned to.
    owner_name string
    Name of the owner.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    rack_id number
    Id of the rack.
    rack_name string
    Name of the rack.
    region_id string
    Id of the region.
    region_slug string
    Slug of the region.
    site_group_id string
    Id of the site group.
    site_group_slug string
    Slug of the site group.
    site_id number
    Id of the site.
    site_slug string
    Slug of the site.
    speed number
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    tag_id number
    Id of a tag the object carries.
    tag_slug string
    Slug of a tag the object carries.
    tenant_id number
    Id of the tenant.
    tenant_slug string
    Slug of the tenant.
    type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    virtual_chassis string
    Virtual Chassis.
    virtual_chassis_id number
    Id of the virtual chassis.
    cableConnector Double
    Cable connector to match.
    cableEnd String
    Cable end. One of: A, B.
    cableId Double
    Id of the cable.
    cabled Boolean
    Whether cabled is set.
    connected Boolean
    Whether connected is set.
    created String
    customFieldFilters Map<String,String>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    description String
    deviceId Double
    Id of the device.
    deviceName String
    Name of the device.
    deviceRoleId Double
    Id of the device role.
    deviceRoleSlug String
    Slug of the device role.
    deviceStatus String
    Device status to match.
    deviceTypeId Double
    Id of the device type.
    deviceTypeModel String
    Model of the device type.
    id Double
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    locationId Double
    Id of the location.
    locationSlug String
    Slug of the location.
    markConnected Boolean
    Treat as if a cable is connected.
    moduleId Double
    Id of the installed module this component belongs to.
    name String
    occupied Boolean
    Whether occupied is set.
    ownerGroupId Double
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerId Double
    Id of the owner the object is assigned to.
    ownerName String
    Name of the owner.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    rackId Double
    Id of the rack.
    rackName String
    Name of the rack.
    regionId String
    Id of the region.
    regionSlug String
    Slug of the region.
    siteGroupId String
    Id of the site group.
    siteGroupSlug String
    Slug of the site group.
    siteId Double
    Id of the site.
    siteSlug String
    Slug of the site.
    speed Double
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    tagId Double
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    tenantId Double
    Id of the tenant.
    tenantSlug String
    Slug of the tenant.
    type String
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    virtualChassis String
    Virtual Chassis.
    virtualChassisId Double
    Id of the virtual chassis.
    cableConnector number
    Cable connector to match.
    cableEnd string
    Cable end. One of: A, B.
    cableId number
    Id of the cable.
    cabled boolean
    Whether cabled is set.
    connected boolean
    Whether connected is set.
    created string
    customFieldFilters {[key: string]: string}
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    description string
    deviceId number
    Id of the device.
    deviceName string
    Name of the device.
    deviceRoleId number
    Id of the device role.
    deviceRoleSlug string
    Slug of the device role.
    deviceStatus string
    Device status to match.
    deviceTypeId number
    Id of the device type.
    deviceTypeModel string
    Model of the device type.
    id number
    NetBox id.
    label string
    Physical label.
    lastUpdated string
    locationId number
    Id of the location.
    locationSlug string
    Slug of the location.
    markConnected boolean
    Treat as if a cable is connected.
    moduleId number
    Id of the installed module this component belongs to.
    name string
    occupied boolean
    Whether occupied is set.
    ownerGroupId number
    Id of the owner group.
    ownerGroupName string
    Name of the owner group.
    ownerId number
    Id of the owner the object is assigned to.
    ownerName string
    Name of the owner.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    rackId number
    Id of the rack.
    rackName string
    Name of the rack.
    regionId string
    Id of the region.
    regionSlug string
    Slug of the region.
    siteGroupId string
    Id of the site group.
    siteGroupSlug string
    Slug of the site group.
    siteId number
    Id of the site.
    siteSlug string
    Slug of the site.
    speed number
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    tagId number
    Id of a tag the object carries.
    tagSlug string
    Slug of a tag the object carries.
    tenantId number
    Id of the tenant.
    tenantSlug string
    Slug of the tenant.
    type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    virtualChassis string
    Virtual Chassis.
    virtualChassisId number
    Id of the virtual chassis.
    cable_connector float
    Cable connector to match.
    cable_end str
    Cable end. One of: A, B.
    cable_id float
    Id of the cable.
    cabled bool
    Whether cabled is set.
    connected bool
    Whether connected is set.
    created str
    custom_field_filters Mapping[str, str]
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    description str
    device_id float
    Id of the device.
    device_name str
    Name of the device.
    device_role_id float
    Id of the device role.
    device_role_slug str
    Slug of the device role.
    device_status str
    Device status to match.
    device_type_id float
    Id of the device type.
    device_type_model str
    Model of the device type.
    id float
    NetBox id.
    label str
    Physical label.
    last_updated str
    location_id float
    Id of the location.
    location_slug str
    Slug of the location.
    mark_connected bool
    Treat as if a cable is connected.
    module_id float
    Id of the installed module this component belongs to.
    name str
    occupied bool
    Whether occupied is set.
    owner_group_id float
    Id of the owner group.
    owner_group_name str
    Name of the owner group.
    owner_id float
    Id of the owner the object is assigned to.
    owner_name str
    Name of the owner.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    rack_id float
    Id of the rack.
    rack_name str
    Name of the rack.
    region_id str
    Id of the region.
    region_slug str
    Slug of the region.
    site_group_id str
    Id of the site group.
    site_group_slug str
    Slug of the site group.
    site_id float
    Id of the site.
    site_slug str
    Slug of the site.
    speed float
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    tag_id float
    Id of a tag the object carries.
    tag_slug str
    Slug of a tag the object carries.
    tenant_id float
    Id of the tenant.
    tenant_slug str
    Slug of the tenant.
    type str
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    virtual_chassis str
    Virtual Chassis.
    virtual_chassis_id float
    Id of the virtual chassis.
    cableConnector Number
    Cable connector to match.
    cableEnd String
    Cable end. One of: A, B.
    cableId Number
    Id of the cable.
    cabled Boolean
    Whether cabled is set.
    connected Boolean
    Whether connected is set.
    created String
    customFieldFilters Map<String>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    description String
    deviceId Number
    Id of the device.
    deviceName String
    Name of the device.
    deviceRoleId Number
    Id of the device role.
    deviceRoleSlug String
    Slug of the device role.
    deviceStatus String
    Device status to match.
    deviceTypeId Number
    Id of the device type.
    deviceTypeModel String
    Model of the device type.
    id Number
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    locationId Number
    Id of the location.
    locationSlug String
    Slug of the location.
    markConnected Boolean
    Treat as if a cable is connected.
    moduleId Number
    Id of the installed module this component belongs to.
    name String
    occupied Boolean
    Whether occupied is set.
    ownerGroupId Number
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerId Number
    Id of the owner the object is assigned to.
    ownerName String
    Name of the owner.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    rackId Number
    Id of the rack.
    rackName String
    Name of the rack.
    regionId String
    Id of the region.
    regionSlug String
    Slug of the region.
    siteGroupId String
    Id of the site group.
    siteGroupSlug String
    Slug of the site group.
    siteId Number
    Id of the site.
    siteSlug String
    Slug of the site.
    speed Number
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    tagId Number
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    tenantId Number
    Id of the tenant.
    tenantSlug String
    Slug of the tenant.
    type String
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    virtualChassis String
    Virtual Chassis.
    virtualChassisId Number
    Id of the virtual chassis.

    getDeviceConsoleServerPort Result

    The following output properties are available:

    Created string
    CustomFields Dictionary<string, string>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    Description string
    DeviceId double
    Id of the device.
    Id double
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    MarkConnected bool
    Treat as if a cable is connected.
    ModuleId double
    Id of the installed module this component belongs to.
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    Speed double
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    Type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    Url string
    CableConnector double
    Cable connector to match.
    CableEnd string
    Cable end. One of: A, B.
    CableId double
    Id of the cable.
    Cabled bool
    Whether cabled is set.
    Connected bool
    Whether connected is set.
    CustomFieldFilters Dictionary<string, string>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    DeviceName string
    Name of the device.
    DeviceRoleId double
    Id of the device role.
    DeviceRoleSlug string
    Slug of the device role.
    DeviceStatus string
    Device status to match.
    DeviceTypeId double
    Id of the device type.
    DeviceTypeModel string
    Model of the device type.
    LocationId double
    Id of the location.
    LocationSlug string
    Slug of the location.
    Occupied bool
    Whether occupied is set.
    OwnerGroupId double
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerName string
    Name of the owner.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RackId double
    Id of the rack.
    RackName string
    Name of the rack.
    RegionId string
    Id of the region.
    RegionSlug string
    Slug of the region.
    SiteGroupId string
    Id of the site group.
    SiteGroupSlug string
    Slug of the site group.
    SiteId double
    Id of the site.
    SiteSlug string
    Slug of the site.
    TagId double
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    TenantId double
    Id of the tenant.
    TenantSlug string
    Slug of the tenant.
    VirtualChassis string
    Virtual Chassis.
    VirtualChassisId double
    Id of the virtual chassis.
    Created string
    CustomFields map[string]string
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    Description string
    DeviceId float64
    Id of the device.
    Id float64
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    MarkConnected bool
    Treat as if a cable is connected.
    ModuleId float64
    Id of the installed module this component belongs to.
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    Speed float64
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    Type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    Url string
    CableConnector float64
    Cable connector to match.
    CableEnd string
    Cable end. One of: A, B.
    CableId float64
    Id of the cable.
    Cabled bool
    Whether cabled is set.
    Connected bool
    Whether connected is set.
    CustomFieldFilters map[string]string
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    DeviceName string
    Name of the device.
    DeviceRoleId float64
    Id of the device role.
    DeviceRoleSlug string
    Slug of the device role.
    DeviceStatus string
    Device status to match.
    DeviceTypeId float64
    Id of the device type.
    DeviceTypeModel string
    Model of the device type.
    LocationId float64
    Id of the location.
    LocationSlug string
    Slug of the location.
    Occupied bool
    Whether occupied is set.
    OwnerGroupId float64
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerName string
    Name of the owner.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RackId float64
    Id of the rack.
    RackName string
    Name of the rack.
    RegionId string
    Id of the region.
    RegionSlug string
    Slug of the region.
    SiteGroupId string
    Id of the site group.
    SiteGroupSlug string
    Slug of the site group.
    SiteId float64
    Id of the site.
    SiteSlug string
    Slug of the site.
    TagId float64
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    TenantId float64
    Id of the tenant.
    TenantSlug string
    Slug of the tenant.
    VirtualChassis string
    Virtual Chassis.
    VirtualChassisId float64
    Id of the virtual chassis.
    created string
    custom_fields map(string)
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description string
    device_id number
    Id of the device.
    id number
    NetBox id.
    label string
    Physical label.
    last_updated string
    mark_connected bool
    Treat as if a cable is connected.
    module_id number
    Id of the installed module this component belongs to.
    name string
    owner_id number
    Id of the owner the object is assigned to.
    speed number
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    url string
    cable_connector number
    Cable connector to match.
    cable_end string
    Cable end. One of: A, B.
    cable_id number
    Id of the cable.
    cabled bool
    Whether cabled is set.
    connected bool
    Whether connected is set.
    custom_field_filters map(string)
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    device_name string
    Name of the device.
    device_role_id number
    Id of the device role.
    device_role_slug string
    Slug of the device role.
    device_status string
    Device status to match.
    device_type_id number
    Id of the device type.
    device_type_model string
    Model of the device type.
    location_id number
    Id of the location.
    location_slug string
    Slug of the location.
    occupied bool
    Whether occupied is set.
    owner_group_id number
    Id of the owner group.
    owner_group_name string
    Name of the owner group.
    owner_name string
    Name of the owner.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    rack_id number
    Id of the rack.
    rack_name string
    Name of the rack.
    region_id string
    Id of the region.
    region_slug string
    Slug of the region.
    site_group_id string
    Id of the site group.
    site_group_slug string
    Slug of the site group.
    site_id number
    Id of the site.
    site_slug string
    Slug of the site.
    tag_id number
    Id of a tag the object carries.
    tag_slug string
    Slug of a tag the object carries.
    tenant_id number
    Id of the tenant.
    tenant_slug string
    Slug of the tenant.
    virtual_chassis string
    Virtual Chassis.
    virtual_chassis_id number
    Id of the virtual chassis.
    created String
    customFields Map<String,String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description String
    deviceId Double
    Id of the device.
    id Double
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    markConnected Boolean
    Treat as if a cable is connected.
    moduleId Double
    Id of the installed module this component belongs to.
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    speed Double
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    type String
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    url String
    cableConnector Double
    Cable connector to match.
    cableEnd String
    Cable end. One of: A, B.
    cableId Double
    Id of the cable.
    cabled Boolean
    Whether cabled is set.
    connected Boolean
    Whether connected is set.
    customFieldFilters Map<String,String>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    deviceName String
    Name of the device.
    deviceRoleId Double
    Id of the device role.
    deviceRoleSlug String
    Slug of the device role.
    deviceStatus String
    Device status to match.
    deviceTypeId Double
    Id of the device type.
    deviceTypeModel String
    Model of the device type.
    locationId Double
    Id of the location.
    locationSlug String
    Slug of the location.
    occupied Boolean
    Whether occupied is set.
    ownerGroupId Double
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerName String
    Name of the owner.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    rackId Double
    Id of the rack.
    rackName String
    Name of the rack.
    regionId String
    Id of the region.
    regionSlug String
    Slug of the region.
    siteGroupId String
    Id of the site group.
    siteGroupSlug String
    Slug of the site group.
    siteId Double
    Id of the site.
    siteSlug String
    Slug of the site.
    tagId Double
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    tenantId Double
    Id of the tenant.
    tenantSlug String
    Slug of the tenant.
    virtualChassis String
    Virtual Chassis.
    virtualChassisId Double
    Id of the virtual chassis.
    created string
    customFields {[key: string]: string}
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description string
    deviceId number
    Id of the device.
    id number
    NetBox id.
    label string
    Physical label.
    lastUpdated string
    markConnected boolean
    Treat as if a cable is connected.
    moduleId number
    Id of the installed module this component belongs to.
    name string
    ownerId number
    Id of the owner the object is assigned to.
    speed number
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    type string
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    url string
    cableConnector number
    Cable connector to match.
    cableEnd string
    Cable end. One of: A, B.
    cableId number
    Id of the cable.
    cabled boolean
    Whether cabled is set.
    connected boolean
    Whether connected is set.
    customFieldFilters {[key: string]: string}
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    deviceName string
    Name of the device.
    deviceRoleId number
    Id of the device role.
    deviceRoleSlug string
    Slug of the device role.
    deviceStatus string
    Device status to match.
    deviceTypeId number
    Id of the device type.
    deviceTypeModel string
    Model of the device type.
    locationId number
    Id of the location.
    locationSlug string
    Slug of the location.
    occupied boolean
    Whether occupied is set.
    ownerGroupId number
    Id of the owner group.
    ownerGroupName string
    Name of the owner group.
    ownerName string
    Name of the owner.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    rackId number
    Id of the rack.
    rackName string
    Name of the rack.
    regionId string
    Id of the region.
    regionSlug string
    Slug of the region.
    siteGroupId string
    Id of the site group.
    siteGroupSlug string
    Slug of the site group.
    siteId number
    Id of the site.
    siteSlug string
    Slug of the site.
    tagId number
    Id of a tag the object carries.
    tagSlug string
    Slug of a tag the object carries.
    tenantId number
    Id of the tenant.
    tenantSlug string
    Slug of the tenant.
    virtualChassis string
    Virtual Chassis.
    virtualChassisId number
    Id of the virtual chassis.
    created str
    custom_fields Mapping[str, str]
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description str
    device_id float
    Id of the device.
    id float
    NetBox id.
    label str
    Physical label.
    last_updated str
    mark_connected bool
    Treat as if a cable is connected.
    module_id float
    Id of the installed module this component belongs to.
    name str
    owner_id float
    Id of the owner the object is assigned to.
    speed float
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    type str
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    url str
    cable_connector float
    Cable connector to match.
    cable_end str
    Cable end. One of: A, B.
    cable_id float
    Id of the cable.
    cabled bool
    Whether cabled is set.
    connected bool
    Whether connected is set.
    custom_field_filters Mapping[str, str]
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    device_name str
    Name of the device.
    device_role_id float
    Id of the device role.
    device_role_slug str
    Slug of the device role.
    device_status str
    Device status to match.
    device_type_id float
    Id of the device type.
    device_type_model str
    Model of the device type.
    location_id float
    Id of the location.
    location_slug str
    Slug of the location.
    occupied bool
    Whether occupied is set.
    owner_group_id float
    Id of the owner group.
    owner_group_name str
    Name of the owner group.
    owner_name str
    Name of the owner.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    rack_id float
    Id of the rack.
    rack_name str
    Name of the rack.
    region_id str
    Id of the region.
    region_slug str
    Slug of the region.
    site_group_id str
    Id of the site group.
    site_group_slug str
    Slug of the site group.
    site_id float
    Id of the site.
    site_slug str
    Slug of the site.
    tag_id float
    Id of a tag the object carries.
    tag_slug str
    Slug of a tag the object carries.
    tenant_id float
    Id of the tenant.
    tenant_slug str
    Slug of the tenant.
    virtual_chassis str
    Virtual Chassis.
    virtual_chassis_id float
    Id of the virtual chassis.
    created String
    customFields Map<String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description String
    deviceId Number
    Id of the device.
    id Number
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    markConnected Boolean
    Treat as if a cable is connected.
    moduleId Number
    Id of the installed module this component belongs to.
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    speed Number
    Port speed in bps. One of: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    type String
    Port type as its NetBox slug, e.g. de-9, rj-45, usb-a (any of NetBox's console server port type choices).
    url String
    cableConnector Number
    Cable connector to match.
    cableEnd String
    Cable end. One of: A, B.
    cableId Number
    Id of the cable.
    cabled Boolean
    Whether cabled is set.
    connected Boolean
    Whether connected is set.
    customFieldFilters Map<String>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    deviceName String
    Name of the device.
    deviceRoleId Number
    Id of the device role.
    deviceRoleSlug String
    Slug of the device role.
    deviceStatus String
    Device status to match.
    deviceTypeId Number
    Id of the device type.
    deviceTypeModel String
    Model of the device type.
    locationId Number
    Id of the location.
    locationSlug String
    Slug of the location.
    occupied Boolean
    Whether occupied is set.
    ownerGroupId Number
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerName String
    Name of the owner.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    rackId Number
    Id of the rack.
    rackName String
    Name of the rack.
    regionId String
    Id of the region.
    regionSlug String
    Slug of the region.
    siteGroupId String
    Id of the site group.
    siteGroupSlug String
    Slug of the site group.
    siteId Number
    Id of the site.
    siteSlug String
    Slug of the site.
    tagId Number
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    tenantId Number
    Id of the tenant.
    tenantSlug String
    Slug of the tenant.
    virtualChassis String
    Virtual Chassis.
    virtualChassisId Number
    Id of the virtual chassis.

    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