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

    A device type (dcim.devicetype): a hardware model made by a manufacturer.

    From the official documentation:

    A device type represents a particular make and model of hardware that exists in the real world. Device types define the physical attributes of a device (rack height and depth) and its individual components (console, power, network interfaces, and so on).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = new netbox.Manufacturer("test", {name: "test-manufacturer"});
    const testDeviceType = new netbox.DeviceType("test", {
        manufacturerId: test.manufacturerId,
        model: "test-device-type",
        slug: "test-device-type",
        partNumber: "test-part-number",
        uHeight: 1,
        isFullDepth: false,
        airflow: "front-to-rear",
        weight: 12.5,
        weightUnit: "kg",
        description: "test-description",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.Manufacturer("test", name="test-manufacturer")
    test_device_type = netbox.DeviceType("test",
        manufacturer_id=test.manufacturer_id,
        model="test-device-type",
        slug="test-device-type",
        part_number="test-part-number",
        u_height=1,
        is_full_depth=False,
        airflow="front-to-rear",
        weight=12.5,
        weight_unit="kg",
        description="test-description")
    
    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 {
    		test, err := netbox.NewManufacturer(ctx, "test", &netbox.ManufacturerArgs{
    			Name: pulumi.String("test-manufacturer"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = netbox.NewDeviceType(ctx, "test", &netbox.DeviceTypeArgs{
    			ManufacturerId: test.ManufacturerId,
    			Model:          pulumi.String("test-device-type"),
    			Slug:           pulumi.String("test-device-type"),
    			PartNumber:     pulumi.String("test-part-number"),
    			UHeight:        pulumi.Float64(1),
    			IsFullDepth:    pulumi.Bool(false),
    			Airflow:        pulumi.String("front-to-rear"),
    			Weight:         pulumi.Float64(12.5),
    			WeightUnit:     pulumi.String("kg"),
    			Description:    pulumi.String("test-description"),
    		})
    		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 = new Netbox.Manufacturer("test", new()
        {
            Name = "test-manufacturer",
        });
    
        var testDeviceType = new Netbox.DeviceType("test", new()
        {
            ManufacturerId = test.ManufacturerId,
            Model = "test-device-type",
            Slug = "test-device-type",
            PartNumber = "test-part-number",
            UHeight = 1,
            IsFullDepth = false,
            Airflow = "front-to-rear",
            Weight = 12.5,
            WeightUnit = "kg",
            Description = "test-description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.Manufacturer;
    import com.pulumi.netbox.ManufacturerArgs;
    import com.pulumi.netbox.DeviceType;
    import com.pulumi.netbox.DeviceTypeArgs;
    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 test = new Manufacturer("test", ManufacturerArgs.builder()
                .name("test-manufacturer")
                .build());
    
            var testDeviceType = new DeviceType("testDeviceType", DeviceTypeArgs.builder()
                .manufacturerId(test.manufacturerId())
                .model("test-device-type")
                .slug("test-device-type")
                .partNumber("test-part-number")
                .uHeight(1.0)
                .isFullDepth(false)
                .airflow("front-to-rear")
                .weight(12.5)
                .weightUnit("kg")
                .description("test-description")
                .build());
    
        }
    }
    
    resources:
      test:
        type: netbox:Manufacturer
        properties:
          name: test-manufacturer
      testDeviceType:
        type: netbox:DeviceType
        name: test
        properties:
          manufacturerId: ${test.manufacturerId}
          model: test-device-type
          slug: test-device-type
          partNumber: test-part-number
          uHeight: 1
          isFullDepth: false
          airflow: front-to-rear
          weight: 12.5
          weightUnit: kg
          description: test-description
    
    Example coming soon!
    

    Create DeviceType Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DeviceType(name: string, args: DeviceTypeArgs, opts?: CustomResourceOptions);
    @overload
    def DeviceType(resource_name: str,
                   args: DeviceTypeArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def DeviceType(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   manufacturer_id: Optional[float] = None,
                   model: Optional[str] = None,
                   description: Optional[str] = None,
                   owner_id: Optional[float] = None,
                   airflow: Optional[str] = None,
                   exclude_from_utilization: Optional[bool] = None,
                   is_full_depth: Optional[bool] = None,
                   custom_fields: Optional[Mapping[str, str]] = None,
                   comments: Optional[str] = None,
                   default_platform_id: Optional[float] = None,
                   part_number: Optional[str] = None,
                   slug: Optional[str] = None,
                   subdevice_role: Optional[str] = None,
                   tags: Optional[Sequence[str]] = None,
                   u_height: Optional[float] = None,
                   weight: Optional[float] = None,
                   weight_unit: Optional[str] = None)
    func NewDeviceType(ctx *Context, name string, args DeviceTypeArgs, opts ...ResourceOption) (*DeviceType, error)
    public DeviceType(string name, DeviceTypeArgs args, CustomResourceOptions? opts = null)
    public DeviceType(String name, DeviceTypeArgs args)
    public DeviceType(String name, DeviceTypeArgs args, CustomResourceOptions options)
    
    type: netbox:DeviceType
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "netbox_device_type" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args DeviceTypeArgs
    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 DeviceTypeArgs
    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 DeviceTypeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DeviceTypeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DeviceTypeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var deviceTypeResource = new Netbox.DeviceType("deviceTypeResource", new()
    {
        ManufacturerId = 0.0,
        Model = "string",
        Description = "string",
        OwnerId = 0.0,
        Airflow = "string",
        ExcludeFromUtilization = false,
        IsFullDepth = false,
        CustomFields = 
        {
            { "string", "string" },
        },
        Comments = "string",
        DefaultPlatformId = 0.0,
        PartNumber = "string",
        Slug = "string",
        SubdeviceRole = "string",
        Tags = new[]
        {
            "string",
        },
        UHeight = 0.0,
        Weight = 0.0,
        WeightUnit = "string",
    });
    
    example, err := netbox.NewDeviceType(ctx, "deviceTypeResource", &netbox.DeviceTypeArgs{
    	ManufacturerId:         pulumi.Float64(0),
    	Model:                  pulumi.String("string"),
    	Description:            pulumi.String("string"),
    	OwnerId:                pulumi.Float64(0),
    	Airflow:                pulumi.String("string"),
    	ExcludeFromUtilization: pulumi.Bool(false),
    	IsFullDepth:            pulumi.Bool(false),
    	CustomFields: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Comments:          pulumi.String("string"),
    	DefaultPlatformId: pulumi.Float64(0),
    	PartNumber:        pulumi.String("string"),
    	Slug:              pulumi.String("string"),
    	SubdeviceRole:     pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	UHeight:    pulumi.Float64(0),
    	Weight:     pulumi.Float64(0),
    	WeightUnit: pulumi.String("string"),
    })
    
    resource "netbox_device_type" "deviceTypeResource" {
      lifecycle {
        create_before_destroy = true
      }
      manufacturer_id          = 0
      model                    = "string"
      description              = "string"
      owner_id                 = 0
      airflow                  = "string"
      exclude_from_utilization = false
      is_full_depth            = false
      custom_fields = {
        "string" = "string"
      }
      comments            = "string"
      default_platform_id = 0
      part_number         = "string"
      slug                = "string"
      subdevice_role      = "string"
      tags                = ["string"]
      u_height            = 0
      weight              = 0
      weight_unit         = "string"
    }
    
    var deviceTypeResource = new DeviceType("deviceTypeResource", DeviceTypeArgs.builder()
        .manufacturerId(0.0)
        .model("string")
        .description("string")
        .ownerId(0.0)
        .airflow("string")
        .excludeFromUtilization(false)
        .isFullDepth(false)
        .customFields(Map.of("string", "string"))
        .comments("string")
        .defaultPlatformId(0.0)
        .partNumber("string")
        .slug("string")
        .subdeviceRole("string")
        .tags("string")
        .uHeight(0.0)
        .weight(0.0)
        .weightUnit("string")
        .build());
    
    device_type_resource = netbox.DeviceType("deviceTypeResource",
        manufacturer_id=float(0),
        model="string",
        description="string",
        owner_id=float(0),
        airflow="string",
        exclude_from_utilization=False,
        is_full_depth=False,
        custom_fields={
            "string": "string",
        },
        comments="string",
        default_platform_id=float(0),
        part_number="string",
        slug="string",
        subdevice_role="string",
        tags=["string"],
        u_height=float(0),
        weight=float(0),
        weight_unit="string")
    
    const deviceTypeResource = new netbox.DeviceType("deviceTypeResource", {
        manufacturerId: 0,
        model: "string",
        description: "string",
        ownerId: 0,
        airflow: "string",
        excludeFromUtilization: false,
        isFullDepth: false,
        customFields: {
            string: "string",
        },
        comments: "string",
        defaultPlatformId: 0,
        partNumber: "string",
        slug: "string",
        subdeviceRole: "string",
        tags: ["string"],
        uHeight: 0,
        weight: 0,
        weightUnit: "string",
    });
    
    type: netbox:DeviceType
    properties:
        airflow: string
        comments: string
        customFields:
            string: string
        defaultPlatformId: 0
        description: string
        excludeFromUtilization: false
        isFullDepth: false
        manufacturerId: 0
        model: string
        ownerId: 0
        partNumber: string
        slug: string
        subdeviceRole: string
        tags:
            - string
        uHeight: 0
        weight: 0
        weightUnit: string
    

    DeviceType Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DeviceType resource accepts the following input properties:

    ManufacturerId double
    Id of the manufacturer.
    Model string
    Model name (unique per manufacturer).
    Airflow string
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    Comments 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).
    DefaultPlatformId double
    Id of the platform assigned to new devices of this type.
    Description string
    ExcludeFromUtilization bool
    Whether devices of this type are left out of the rack utilization.
    IsFullDepth bool
    Device consumes both the front and rear rack faces.
    OwnerId double
    Id of the owner the object is assigned to.
    PartNumber string
    Discrete part number.
    Slug string
    URL-friendly unique shorthand; derived from model when not set.
    SubdeviceRole string
    Parent devices house child devices in device bays. One of: parent, child.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    UHeight double
    Height in rack units (0.5 steps).
    Weight double
    Weight of the device type (requires weight_unit).
    WeightUnit string
    Unit of weight. One of: kg, g, lb, oz.
    ManufacturerId float64
    Id of the manufacturer.
    Model string
    Model name (unique per manufacturer).
    Airflow string
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    Comments 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).
    DefaultPlatformId float64
    Id of the platform assigned to new devices of this type.
    Description string
    ExcludeFromUtilization bool
    Whether devices of this type are left out of the rack utilization.
    IsFullDepth bool
    Device consumes both the front and rear rack faces.
    OwnerId float64
    Id of the owner the object is assigned to.
    PartNumber string
    Discrete part number.
    Slug string
    URL-friendly unique shorthand; derived from model when not set.
    SubdeviceRole string
    Parent devices house child devices in device bays. One of: parent, child.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    UHeight float64
    Height in rack units (0.5 steps).
    Weight float64
    Weight of the device type (requires weight_unit).
    WeightUnit string
    Unit of weight. One of: kg, g, lb, oz.
    manufacturer_id number
    Id of the manufacturer.
    model string
    Model name (unique per manufacturer).
    airflow string
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    comments 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).
    default_platform_id number
    Id of the platform assigned to new devices of this type.
    description string
    exclude_from_utilization bool
    Whether devices of this type are left out of the rack utilization.
    is_full_depth bool
    Device consumes both the front and rear rack faces.
    owner_id number
    Id of the owner the object is assigned to.
    part_number string
    Discrete part number.
    slug string
    URL-friendly unique shorthand; derived from model when not set.
    subdevice_role string
    Parent devices house child devices in device bays. One of: parent, child.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    u_height number
    Height in rack units (0.5 steps).
    weight number
    Weight of the device type (requires weight_unit).
    weight_unit string
    Unit of weight. One of: kg, g, lb, oz.
    manufacturerId Double
    Id of the manufacturer.
    model String
    Model name (unique per manufacturer).
    airflow String
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    comments 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).
    defaultPlatformId Double
    Id of the platform assigned to new devices of this type.
    description String
    excludeFromUtilization Boolean
    Whether devices of this type are left out of the rack utilization.
    isFullDepth Boolean
    Device consumes both the front and rear rack faces.
    ownerId Double
    Id of the owner the object is assigned to.
    partNumber String
    Discrete part number.
    slug String
    URL-friendly unique shorthand; derived from model when not set.
    subdeviceRole String
    Parent devices house child devices in device bays. One of: parent, child.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    uHeight Double
    Height in rack units (0.5 steps).
    weight Double
    Weight of the device type (requires weight_unit).
    weightUnit String
    Unit of weight. One of: kg, g, lb, oz.
    manufacturerId number
    Id of the manufacturer.
    model string
    Model name (unique per manufacturer).
    airflow string
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    comments 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).
    defaultPlatformId number
    Id of the platform assigned to new devices of this type.
    description string
    excludeFromUtilization boolean
    Whether devices of this type are left out of the rack utilization.
    isFullDepth boolean
    Device consumes both the front and rear rack faces.
    ownerId number
    Id of the owner the object is assigned to.
    partNumber string
    Discrete part number.
    slug string
    URL-friendly unique shorthand; derived from model when not set.
    subdeviceRole string
    Parent devices house child devices in device bays. One of: parent, child.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    uHeight number
    Height in rack units (0.5 steps).
    weight number
    Weight of the device type (requires weight_unit).
    weightUnit string
    Unit of weight. One of: kg, g, lb, oz.
    manufacturer_id float
    Id of the manufacturer.
    model str
    Model name (unique per manufacturer).
    airflow str
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    comments 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).
    default_platform_id float
    Id of the platform assigned to new devices of this type.
    description str
    exclude_from_utilization bool
    Whether devices of this type are left out of the rack utilization.
    is_full_depth bool
    Device consumes both the front and rear rack faces.
    owner_id float
    Id of the owner the object is assigned to.
    part_number str
    Discrete part number.
    slug str
    URL-friendly unique shorthand; derived from model when not set.
    subdevice_role str
    Parent devices house child devices in device bays. One of: parent, child.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    u_height float
    Height in rack units (0.5 steps).
    weight float
    Weight of the device type (requires weight_unit).
    weight_unit str
    Unit of weight. One of: kg, g, lb, oz.
    manufacturerId Number
    Id of the manufacturer.
    model String
    Model name (unique per manufacturer).
    airflow String
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    comments 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).
    defaultPlatformId Number
    Id of the platform assigned to new devices of this type.
    description String
    excludeFromUtilization Boolean
    Whether devices of this type are left out of the rack utilization.
    isFullDepth Boolean
    Device consumes both the front and rear rack faces.
    ownerId Number
    Id of the owner the object is assigned to.
    partNumber String
    Discrete part number.
    slug String
    URL-friendly unique shorthand; derived from model when not set.
    subdeviceRole String
    Parent devices house child devices in device bays. One of: parent, child.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    uHeight Number
    Height in rack units (0.5 steps).
    weight Number
    Weight of the device type (requires weight_unit).
    weightUnit String
    Unit of weight. One of: kg, g, lb, oz.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DeviceType resource produces the following output properties:

    ConsolePortTemplateCount double
    Number of console port templates of the device type.
    ConsoleServerPortTemplateCount double
    Number of console server port templates of the device type.
    Created string
    DeviceBayTemplateCount double
    Number of device bay templates of the device type.
    DeviceCount double
    Number of devices of the device type.
    DeviceTypeId double
    NetBox id.
    FrontPortTemplateCount double
    Number of front port templates of the device type.
    Id string
    The provider-assigned unique ID for this managed resource.
    InterfaceTemplateCount double
    Number of interface templates of the device type.
    InventoryItemTemplateCount double
    Number of inventory item templates of the device type.
    LastUpdated string
    ModuleBayTemplateCount double
    Number of module bay templates of the device type.
    PowerOutletTemplateCount double
    Number of power outlet templates of the device type.
    PowerPortTemplateCount double
    Number of power port templates of the device type.
    RearPortTemplateCount double
    Number of rear port templates of the device type.
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    ConsolePortTemplateCount float64
    Number of console port templates of the device type.
    ConsoleServerPortTemplateCount float64
    Number of console server port templates of the device type.
    Created string
    DeviceBayTemplateCount float64
    Number of device bay templates of the device type.
    DeviceCount float64
    Number of devices of the device type.
    DeviceTypeId float64
    NetBox id.
    FrontPortTemplateCount float64
    Number of front port templates of the device type.
    Id string
    The provider-assigned unique ID for this managed resource.
    InterfaceTemplateCount float64
    Number of interface templates of the device type.
    InventoryItemTemplateCount float64
    Number of inventory item templates of the device type.
    LastUpdated string
    ModuleBayTemplateCount float64
    Number of module bay templates of the device type.
    PowerOutletTemplateCount float64
    Number of power outlet templates of the device type.
    PowerPortTemplateCount float64
    Number of power port templates of the device type.
    RearPortTemplateCount float64
    Number of rear port templates of the device type.
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    console_port_template_count number
    Number of console port templates of the device type.
    console_server_port_template_count number
    Number of console server port templates of the device type.
    created string
    device_bay_template_count number
    Number of device bay templates of the device type.
    device_count number
    Number of devices of the device type.
    device_type_id number
    NetBox id.
    front_port_template_count number
    Number of front port templates of the device type.
    id string
    The provider-assigned unique ID for this managed resource.
    interface_template_count number
    Number of interface templates of the device type.
    inventory_item_template_count number
    Number of inventory item templates of the device type.
    last_updated string
    module_bay_template_count number
    Number of module bay templates of the device type.
    power_outlet_template_count number
    Number of power outlet templates of the device type.
    power_port_template_count number
    Number of power port templates of the device type.
    rear_port_template_count number
    Number of rear port templates of the device type.
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    consolePortTemplateCount Double
    Number of console port templates of the device type.
    consoleServerPortTemplateCount Double
    Number of console server port templates of the device type.
    created String
    deviceBayTemplateCount Double
    Number of device bay templates of the device type.
    deviceCount Double
    Number of devices of the device type.
    deviceTypeId Double
    NetBox id.
    frontPortTemplateCount Double
    Number of front port templates of the device type.
    id String
    The provider-assigned unique ID for this managed resource.
    interfaceTemplateCount Double
    Number of interface templates of the device type.
    inventoryItemTemplateCount Double
    Number of inventory item templates of the device type.
    lastUpdated String
    moduleBayTemplateCount Double
    Number of module bay templates of the device type.
    powerOutletTemplateCount Double
    Number of power outlet templates of the device type.
    powerPortTemplateCount Double
    Number of power port templates of the device type.
    rearPortTemplateCount Double
    Number of rear port templates of the device type.
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    consolePortTemplateCount number
    Number of console port templates of the device type.
    consoleServerPortTemplateCount number
    Number of console server port templates of the device type.
    created string
    deviceBayTemplateCount number
    Number of device bay templates of the device type.
    deviceCount number
    Number of devices of the device type.
    deviceTypeId number
    NetBox id.
    frontPortTemplateCount number
    Number of front port templates of the device type.
    id string
    The provider-assigned unique ID for this managed resource.
    interfaceTemplateCount number
    Number of interface templates of the device type.
    inventoryItemTemplateCount number
    Number of inventory item templates of the device type.
    lastUpdated string
    moduleBayTemplateCount number
    Number of module bay templates of the device type.
    powerOutletTemplateCount number
    Number of power outlet templates of the device type.
    powerPortTemplateCount number
    Number of power port templates of the device type.
    rearPortTemplateCount number
    Number of rear port templates of the device type.
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    console_port_template_count float
    Number of console port templates of the device type.
    console_server_port_template_count float
    Number of console server port templates of the device type.
    created str
    device_bay_template_count float
    Number of device bay templates of the device type.
    device_count float
    Number of devices of the device type.
    device_type_id float
    NetBox id.
    front_port_template_count float
    Number of front port templates of the device type.
    id str
    The provider-assigned unique ID for this managed resource.
    interface_template_count float
    Number of interface templates of the device type.
    inventory_item_template_count float
    Number of inventory item templates of the device type.
    last_updated str
    module_bay_template_count float
    Number of module bay templates of the device type.
    power_outlet_template_count float
    Number of power outlet templates of the device type.
    power_port_template_count float
    Number of power port templates of the device type.
    rear_port_template_count float
    Number of rear port templates of the device type.
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    url str
    consolePortTemplateCount Number
    Number of console port templates of the device type.
    consoleServerPortTemplateCount Number
    Number of console server port templates of the device type.
    created String
    deviceBayTemplateCount Number
    Number of device bay templates of the device type.
    deviceCount Number
    Number of devices of the device type.
    deviceTypeId Number
    NetBox id.
    frontPortTemplateCount Number
    Number of front port templates of the device type.
    id String
    The provider-assigned unique ID for this managed resource.
    interfaceTemplateCount Number
    Number of interface templates of the device type.
    inventoryItemTemplateCount Number
    Number of inventory item templates of the device type.
    lastUpdated String
    moduleBayTemplateCount Number
    Number of module bay templates of the device type.
    powerOutletTemplateCount Number
    Number of power outlet templates of the device type.
    powerPortTemplateCount Number
    Number of power port templates of the device type.
    rearPortTemplateCount Number
    Number of rear port templates of the device type.
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String

    Look up Existing DeviceType Resource

    Get an existing DeviceType 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?: DeviceTypeState, opts?: CustomResourceOptions): DeviceType
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            airflow: Optional[str] = None,
            comments: Optional[str] = None,
            console_port_template_count: Optional[float] = None,
            console_server_port_template_count: Optional[float] = None,
            created: Optional[str] = None,
            custom_fields: Optional[Mapping[str, str]] = None,
            default_platform_id: Optional[float] = None,
            description: Optional[str] = None,
            device_bay_template_count: Optional[float] = None,
            device_count: Optional[float] = None,
            device_type_id: Optional[float] = None,
            exclude_from_utilization: Optional[bool] = None,
            front_port_template_count: Optional[float] = None,
            interface_template_count: Optional[float] = None,
            inventory_item_template_count: Optional[float] = None,
            is_full_depth: Optional[bool] = None,
            last_updated: Optional[str] = None,
            manufacturer_id: Optional[float] = None,
            model: Optional[str] = None,
            module_bay_template_count: Optional[float] = None,
            owner_id: Optional[float] = None,
            part_number: Optional[str] = None,
            power_outlet_template_count: Optional[float] = None,
            power_port_template_count: Optional[float] = None,
            rear_port_template_count: Optional[float] = None,
            slug: Optional[str] = None,
            subdevice_role: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            tags_alls: Optional[Sequence[str]] = None,
            u_height: Optional[float] = None,
            url: Optional[str] = None,
            weight: Optional[float] = None,
            weight_unit: Optional[str] = None) -> DeviceType
    func GetDeviceType(ctx *Context, name string, id IDInput, state *DeviceTypeState, opts ...ResourceOption) (*DeviceType, error)
    public static DeviceType Get(string name, Input<string> id, DeviceTypeState? state, CustomResourceOptions? opts = null)
    public static DeviceType get(String name, Output<String> id, DeviceTypeState state, CustomResourceOptions options)
    resources:  _:    type: netbox:DeviceType    get:      id: ${id}
    import {
      to = netbox_device_type.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Airflow string
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    Comments string
    ConsolePortTemplateCount double
    Number of console port templates of the device type.
    ConsoleServerPortTemplateCount double
    Number of console server port templates of the device type.
    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).
    DefaultPlatformId double
    Id of the platform assigned to new devices of this type.
    Description string
    DeviceBayTemplateCount double
    Number of device bay templates of the device type.
    DeviceCount double
    Number of devices of the device type.
    DeviceTypeId double
    NetBox id.
    ExcludeFromUtilization bool
    Whether devices of this type are left out of the rack utilization.
    FrontPortTemplateCount double
    Number of front port templates of the device type.
    InterfaceTemplateCount double
    Number of interface templates of the device type.
    InventoryItemTemplateCount double
    Number of inventory item templates of the device type.
    IsFullDepth bool
    Device consumes both the front and rear rack faces.
    LastUpdated string
    ManufacturerId double
    Id of the manufacturer.
    Model string
    Model name (unique per manufacturer).
    ModuleBayTemplateCount double
    Number of module bay templates of the device type.
    OwnerId double
    Id of the owner the object is assigned to.
    PartNumber string
    Discrete part number.
    PowerOutletTemplateCount double
    Number of power outlet templates of the device type.
    PowerPortTemplateCount double
    Number of power port templates of the device type.
    RearPortTemplateCount double
    Number of rear port templates of the device type.
    Slug string
    URL-friendly unique shorthand; derived from model when not set.
    SubdeviceRole string
    Parent devices house child devices in device bays. One of: parent, child.
    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.
    UHeight double
    Height in rack units (0.5 steps).
    Url string
    Weight double
    Weight of the device type (requires weight_unit).
    WeightUnit string
    Unit of weight. One of: kg, g, lb, oz.
    Airflow string
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    Comments string
    ConsolePortTemplateCount float64
    Number of console port templates of the device type.
    ConsoleServerPortTemplateCount float64
    Number of console server port templates of the device type.
    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).
    DefaultPlatformId float64
    Id of the platform assigned to new devices of this type.
    Description string
    DeviceBayTemplateCount float64
    Number of device bay templates of the device type.
    DeviceCount float64
    Number of devices of the device type.
    DeviceTypeId float64
    NetBox id.
    ExcludeFromUtilization bool
    Whether devices of this type are left out of the rack utilization.
    FrontPortTemplateCount float64
    Number of front port templates of the device type.
    InterfaceTemplateCount float64
    Number of interface templates of the device type.
    InventoryItemTemplateCount float64
    Number of inventory item templates of the device type.
    IsFullDepth bool
    Device consumes both the front and rear rack faces.
    LastUpdated string
    ManufacturerId float64
    Id of the manufacturer.
    Model string
    Model name (unique per manufacturer).
    ModuleBayTemplateCount float64
    Number of module bay templates of the device type.
    OwnerId float64
    Id of the owner the object is assigned to.
    PartNumber string
    Discrete part number.
    PowerOutletTemplateCount float64
    Number of power outlet templates of the device type.
    PowerPortTemplateCount float64
    Number of power port templates of the device type.
    RearPortTemplateCount float64
    Number of rear port templates of the device type.
    Slug string
    URL-friendly unique shorthand; derived from model when not set.
    SubdeviceRole string
    Parent devices house child devices in device bays. One of: parent, child.
    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.
    UHeight float64
    Height in rack units (0.5 steps).
    Url string
    Weight float64
    Weight of the device type (requires weight_unit).
    WeightUnit string
    Unit of weight. One of: kg, g, lb, oz.
    airflow string
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    comments string
    console_port_template_count number
    Number of console port templates of the device type.
    console_server_port_template_count number
    Number of console server port templates of the device type.
    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).
    default_platform_id number
    Id of the platform assigned to new devices of this type.
    description string
    device_bay_template_count number
    Number of device bay templates of the device type.
    device_count number
    Number of devices of the device type.
    device_type_id number
    NetBox id.
    exclude_from_utilization bool
    Whether devices of this type are left out of the rack utilization.
    front_port_template_count number
    Number of front port templates of the device type.
    interface_template_count number
    Number of interface templates of the device type.
    inventory_item_template_count number
    Number of inventory item templates of the device type.
    is_full_depth bool
    Device consumes both the front and rear rack faces.
    last_updated string
    manufacturer_id number
    Id of the manufacturer.
    model string
    Model name (unique per manufacturer).
    module_bay_template_count number
    Number of module bay templates of the device type.
    owner_id number
    Id of the owner the object is assigned to.
    part_number string
    Discrete part number.
    power_outlet_template_count number
    Number of power outlet templates of the device type.
    power_port_template_count number
    Number of power port templates of the device type.
    rear_port_template_count number
    Number of rear port templates of the device type.
    slug string
    URL-friendly unique shorthand; derived from model when not set.
    subdevice_role string
    Parent devices house child devices in device bays. One of: parent, child.
    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.
    u_height number
    Height in rack units (0.5 steps).
    url string
    weight number
    Weight of the device type (requires weight_unit).
    weight_unit string
    Unit of weight. One of: kg, g, lb, oz.
    airflow String
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    comments String
    consolePortTemplateCount Double
    Number of console port templates of the device type.
    consoleServerPortTemplateCount Double
    Number of console server port templates of the device type.
    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).
    defaultPlatformId Double
    Id of the platform assigned to new devices of this type.
    description String
    deviceBayTemplateCount Double
    Number of device bay templates of the device type.
    deviceCount Double
    Number of devices of the device type.
    deviceTypeId Double
    NetBox id.
    excludeFromUtilization Boolean
    Whether devices of this type are left out of the rack utilization.
    frontPortTemplateCount Double
    Number of front port templates of the device type.
    interfaceTemplateCount Double
    Number of interface templates of the device type.
    inventoryItemTemplateCount Double
    Number of inventory item templates of the device type.
    isFullDepth Boolean
    Device consumes both the front and rear rack faces.
    lastUpdated String
    manufacturerId Double
    Id of the manufacturer.
    model String
    Model name (unique per manufacturer).
    moduleBayTemplateCount Double
    Number of module bay templates of the device type.
    ownerId Double
    Id of the owner the object is assigned to.
    partNumber String
    Discrete part number.
    powerOutletTemplateCount Double
    Number of power outlet templates of the device type.
    powerPortTemplateCount Double
    Number of power port templates of the device type.
    rearPortTemplateCount Double
    Number of rear port templates of the device type.
    slug String
    URL-friendly unique shorthand; derived from model when not set.
    subdeviceRole String
    Parent devices house child devices in device bays. One of: parent, child.
    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.
    uHeight Double
    Height in rack units (0.5 steps).
    url String
    weight Double
    Weight of the device type (requires weight_unit).
    weightUnit String
    Unit of weight. One of: kg, g, lb, oz.
    airflow string
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    comments string
    consolePortTemplateCount number
    Number of console port templates of the device type.
    consoleServerPortTemplateCount number
    Number of console server port templates of the device type.
    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).
    defaultPlatformId number
    Id of the platform assigned to new devices of this type.
    description string
    deviceBayTemplateCount number
    Number of device bay templates of the device type.
    deviceCount number
    Number of devices of the device type.
    deviceTypeId number
    NetBox id.
    excludeFromUtilization boolean
    Whether devices of this type are left out of the rack utilization.
    frontPortTemplateCount number
    Number of front port templates of the device type.
    interfaceTemplateCount number
    Number of interface templates of the device type.
    inventoryItemTemplateCount number
    Number of inventory item templates of the device type.
    isFullDepth boolean
    Device consumes both the front and rear rack faces.
    lastUpdated string
    manufacturerId number
    Id of the manufacturer.
    model string
    Model name (unique per manufacturer).
    moduleBayTemplateCount number
    Number of module bay templates of the device type.
    ownerId number
    Id of the owner the object is assigned to.
    partNumber string
    Discrete part number.
    powerOutletTemplateCount number
    Number of power outlet templates of the device type.
    powerPortTemplateCount number
    Number of power port templates of the device type.
    rearPortTemplateCount number
    Number of rear port templates of the device type.
    slug string
    URL-friendly unique shorthand; derived from model when not set.
    subdeviceRole string
    Parent devices house child devices in device bays. One of: parent, child.
    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.
    uHeight number
    Height in rack units (0.5 steps).
    url string
    weight number
    Weight of the device type (requires weight_unit).
    weightUnit string
    Unit of weight. One of: kg, g, lb, oz.
    airflow str
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    comments str
    console_port_template_count float
    Number of console port templates of the device type.
    console_server_port_template_count float
    Number of console server port templates of the device type.
    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).
    default_platform_id float
    Id of the platform assigned to new devices of this type.
    description str
    device_bay_template_count float
    Number of device bay templates of the device type.
    device_count float
    Number of devices of the device type.
    device_type_id float
    NetBox id.
    exclude_from_utilization bool
    Whether devices of this type are left out of the rack utilization.
    front_port_template_count float
    Number of front port templates of the device type.
    interface_template_count float
    Number of interface templates of the device type.
    inventory_item_template_count float
    Number of inventory item templates of the device type.
    is_full_depth bool
    Device consumes both the front and rear rack faces.
    last_updated str
    manufacturer_id float
    Id of the manufacturer.
    model str
    Model name (unique per manufacturer).
    module_bay_template_count float
    Number of module bay templates of the device type.
    owner_id float
    Id of the owner the object is assigned to.
    part_number str
    Discrete part number.
    power_outlet_template_count float
    Number of power outlet templates of the device type.
    power_port_template_count float
    Number of power port templates of the device type.
    rear_port_template_count float
    Number of rear port templates of the device type.
    slug str
    URL-friendly unique shorthand; derived from model when not set.
    subdevice_role str
    Parent devices house child devices in device bays. One of: parent, child.
    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.
    u_height float
    Height in rack units (0.5 steps).
    url str
    weight float
    Weight of the device type (requires weight_unit).
    weight_unit str
    Unit of weight. One of: kg, g, lb, oz.
    airflow String
    Airflow direction. One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
    comments String
    consolePortTemplateCount Number
    Number of console port templates of the device type.
    consoleServerPortTemplateCount Number
    Number of console server port templates of the device type.
    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).
    defaultPlatformId Number
    Id of the platform assigned to new devices of this type.
    description String
    deviceBayTemplateCount Number
    Number of device bay templates of the device type.
    deviceCount Number
    Number of devices of the device type.
    deviceTypeId Number
    NetBox id.
    excludeFromUtilization Boolean
    Whether devices of this type are left out of the rack utilization.
    frontPortTemplateCount Number
    Number of front port templates of the device type.
    interfaceTemplateCount Number
    Number of interface templates of the device type.
    inventoryItemTemplateCount Number
    Number of inventory item templates of the device type.
    isFullDepth Boolean
    Device consumes both the front and rear rack faces.
    lastUpdated String
    manufacturerId Number
    Id of the manufacturer.
    model String
    Model name (unique per manufacturer).
    moduleBayTemplateCount Number
    Number of module bay templates of the device type.
    ownerId Number
    Id of the owner the object is assigned to.
    partNumber String
    Discrete part number.
    powerOutletTemplateCount Number
    Number of power outlet templates of the device type.
    powerPortTemplateCount Number
    Number of power port templates of the device type.
    rearPortTemplateCount Number
    Number of rear port templates of the device type.
    slug String
    URL-friendly unique shorthand; derived from model when not set.
    subdeviceRole String
    Parent devices house child devices in device bays. One of: parent, child.
    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.
    uHeight Number
    Height in rack units (0.5 steps).
    url String
    weight Number
    Weight of the device type (requires weight_unit).
    weightUnit String
    Unit of weight. One of: kg, g, lb, oz.

    Import

    In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:

    terraform

    import {

    to = netbox_device_type.test

    id = “123”

    }

    The pulumi import command can be used, for example:

    $ pulumi import netbox:index/deviceType:DeviceType test 123
    

    To learn more about importing existing cloud resources, see Importing resources.

    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