published on Wednesday, Nov 4, 2026 by e-breuninger
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:
- Manufacturer
Id 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
- Custom
Fields 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).
- Default
Platform doubleId - Id of the platform assigned to new devices of this type.
- Description string
- Exclude
From boolUtilization - Whether devices of this type are left out of the rack utilization.
- Is
Full boolDepth - Device consumes both the front and rear rack faces.
- Owner
Id double - 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.
- 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).
- Weight
Unit string - Unit of weight. One of: kg, g, lb, oz.
- Manufacturer
Id 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
- Custom
Fields 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).
- Default
Platform float64Id - Id of the platform assigned to new devices of this type.
- Description string
- Exclude
From boolUtilization - Whether devices of this type are left out of the rack utilization.
- Is
Full boolDepth - Device consumes both the front and rear rack faces.
- Owner
Id float64 - 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.
- []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).
- Weight
Unit 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_ numberid - Id of the platform assigned to new devices of this type.
- description string
- exclude_
from_ boolutilization - Whether devices of this type are left out of the rack utilization.
- is_
full_ booldepth - 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.
- 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.
- manufacturer
Id 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
- custom
Fields 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).
- default
Platform DoubleId - Id of the platform assigned to new devices of this type.
- description String
- exclude
From BooleanUtilization - Whether devices of this type are left out of the rack utilization.
- is
Full BooleanDepth - Device consumes both the front and rear rack faces.
- owner
Id Double - 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.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- u
Height Double - Height in rack units (0.5 steps).
- weight Double
- Weight of the device type (requires weight_unit).
- weight
Unit 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 {[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).
- default
Platform numberId - Id of the platform assigned to new devices of this type.
- description string
- exclude
From booleanUtilization - Whether devices of this type are left out of the rack utilization.
- is
Full booleanDepth - 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.
- 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.
- 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_ floatid - Id of the platform assigned to new devices of this type.
- description str
- exclude_
from_ boolutilization - Whether devices of this type are left out of the rack utilization.
- is_
full_ booldepth - 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.
- 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.
- 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 NumberId - Id of the platform assigned to new devices of this type.
- description String
- exclude
From BooleanUtilization - Whether devices of this type are left out of the rack utilization.
- is
Full BooleanDepth - 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.
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the DeviceType resource produces the following output properties:
- Console
Port doubleTemplate Count - Number of console port templates of the device type.
- Console
Server doublePort Template Count - Number of console server port templates of the device type.
- Created string
- Device
Bay doubleTemplate Count - Number of device bay templates of the device type.
- Device
Count double - Number of devices of the device type.
- Device
Type doubleId - NetBox id.
- Front
Port doubleTemplate Count - Number of front port templates of the device type.
- Id string
- The provider-assigned unique ID for this managed resource.
- Interface
Template doubleCount - Number of interface templates of the device type.
- Inventory
Item doubleTemplate Count - Number of inventory item templates of the device type.
- Last
Updated string - Module
Bay doubleTemplate Count - Number of module bay templates of the device type.
- Power
Outlet doubleTemplate Count - Number of power outlet templates of the device type.
- Power
Port doubleTemplate Count - Number of power port templates of the device type.
- Rear
Port doubleTemplate Count - Number of rear port templates of the device type.
- List<string>
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- Console
Port float64Template Count - Number of console port templates of the device type.
- Console
Server float64Port Template Count - Number of console server port templates of the device type.
- Created string
- Device
Bay float64Template Count - Number of device bay templates of the device type.
- Device
Count float64 - Number of devices of the device type.
- Device
Type float64Id - NetBox id.
- Front
Port float64Template Count - Number of front port templates of the device type.
- Id string
- The provider-assigned unique ID for this managed resource.
- Interface
Template float64Count - Number of interface templates of the device type.
- Inventory
Item float64Template Count - Number of inventory item templates of the device type.
- Last
Updated string - Module
Bay float64Template Count - Number of module bay templates of the device type.
- Power
Outlet float64Template Count - Number of power outlet templates of the device type.
- Power
Port float64Template Count - Number of power port templates of the device type.
- Rear
Port float64Template Count - Number of rear port templates of the device type.
- []string
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- console_
port_ numbertemplate_ count - Number of console port templates of the device type.
- console_
server_ numberport_ template_ count - Number of console server port templates of the device type.
- created string
- device_
bay_ numbertemplate_ count - Number of device bay templates of the device type.
- device_
count number - Number of devices of the device type.
- device_
type_ numberid - NetBox id.
- front_
port_ numbertemplate_ count - Number of front port templates of the device type.
- id string
- The provider-assigned unique ID for this managed resource.
- interface_
template_ numbercount - Number of interface templates of the device type.
- inventory_
item_ numbertemplate_ count - Number of inventory item templates of the device type.
- last_
updated string - module_
bay_ numbertemplate_ count - Number of module bay templates of the device type.
- power_
outlet_ numbertemplate_ count - Number of power outlet templates of the device type.
- power_
port_ numbertemplate_ count - Number of power port templates of the device type.
- rear_
port_ numbertemplate_ count - Number of rear port templates of the device type.
- list(string)
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- console
Port DoubleTemplate Count - Number of console port templates of the device type.
- console
Server DoublePort Template Count - Number of console server port templates of the device type.
- created String
- device
Bay DoubleTemplate Count - Number of device bay templates of the device type.
- device
Count Double - Number of devices of the device type.
- device
Type DoubleId - NetBox id.
- front
Port DoubleTemplate Count - Number of front port templates of the device type.
- id String
- The provider-assigned unique ID for this managed resource.
- interface
Template DoubleCount - Number of interface templates of the device type.
- inventory
Item DoubleTemplate Count - Number of inventory item templates of the device type.
- last
Updated String - module
Bay DoubleTemplate Count - Number of module bay templates of the device type.
- power
Outlet DoubleTemplate Count - Number of power outlet templates of the device type.
- power
Port DoubleTemplate Count - Number of power port templates of the device type.
- rear
Port DoubleTemplate Count - Number of rear port templates of the device type.
- List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- url String
- console
Port numberTemplate Count - Number of console port templates of the device type.
- console
Server numberPort Template Count - Number of console server port templates of the device type.
- created string
- device
Bay numberTemplate Count - Number of device bay templates of the device type.
- device
Count number - Number of devices of the device type.
- device
Type numberId - NetBox id.
- front
Port numberTemplate Count - Number of front port templates of the device type.
- id string
- The provider-assigned unique ID for this managed resource.
- interface
Template numberCount - Number of interface templates of the device type.
- inventory
Item numberTemplate Count - Number of inventory item templates of the device type.
- last
Updated string - module
Bay numberTemplate Count - Number of module bay templates of the device type.
- power
Outlet numberTemplate Count - Number of power outlet templates of the device type.
- power
Port numberTemplate Count - Number of power port templates of the device type.
- rear
Port numberTemplate Count - Number of rear port templates of the device type.
- string[]
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- console_
port_ floattemplate_ count - Number of console port templates of the device type.
- console_
server_ floatport_ template_ count - Number of console server port templates of the device type.
- created str
- device_
bay_ floattemplate_ count - Number of device bay templates of the device type.
- device_
count float - Number of devices of the device type.
- device_
type_ floatid - NetBox id.
- front_
port_ floattemplate_ count - Number of front port templates of the device type.
- id str
- The provider-assigned unique ID for this managed resource.
- interface_
template_ floatcount - Number of interface templates of the device type.
- inventory_
item_ floattemplate_ count - Number of inventory item templates of the device type.
- last_
updated str - module_
bay_ floattemplate_ count - Number of module bay templates of the device type.
- power_
outlet_ floattemplate_ count - Number of power outlet templates of the device type.
- power_
port_ floattemplate_ count - Number of power port templates of the device type.
- rear_
port_ floattemplate_ count - Number of rear port templates of the device type.
- Sequence[str]
- Slugs of all tags on the object, including the provider's default_tags.
- url str
- console
Port NumberTemplate Count - Number of console port templates of the device type.
- console
Server NumberPort Template Count - Number of console server port templates of the device type.
- created String
- device
Bay NumberTemplate Count - Number of device bay templates of the device type.
- device
Count Number - Number of devices of the device type.
- device
Type NumberId - NetBox id.
- front
Port NumberTemplate Count - Number of front port templates of the device type.
- id String
- The provider-assigned unique ID for this managed resource.
- interface
Template NumberCount - Number of interface templates of the device type.
- inventory
Item NumberTemplate Count - Number of inventory item templates of the device type.
- last
Updated String - module
Bay NumberTemplate Count - Number of module bay templates of the device type.
- power
Outlet NumberTemplate Count - Number of power outlet templates of the device type.
- power
Port NumberTemplate Count - Number of power port templates of the device type.
- rear
Port NumberTemplate Count - Number of rear port templates of the device type.
- 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) -> DeviceTypefunc 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.
- 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 doubleTemplate Count - Number of console port templates of the device type.
- Console
Server doublePort Template Count - Number of console server port templates of the device type.
- Created string
- Custom
Fields 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).
- Default
Platform doubleId - Id of the platform assigned to new devices of this type.
- Description string
- Device
Bay doubleTemplate Count - Number of device bay templates of the device type.
- Device
Count double - Number of devices of the device type.
- Device
Type doubleId - NetBox id.
- Exclude
From boolUtilization - Whether devices of this type are left out of the rack utilization.
- Front
Port doubleTemplate Count - Number of front port templates of the device type.
- Interface
Template doubleCount - Number of interface templates of the device type.
- Inventory
Item doubleTemplate Count - Number of inventory item templates of the device type.
- Is
Full boolDepth - Device consumes both the front and rear rack faces.
- Last
Updated string - Manufacturer
Id double - Id of the manufacturer.
- Model string
- Model name (unique per manufacturer).
- Module
Bay doubleTemplate Count - Number of module bay templates of the device type.
- Owner
Id double - Id of the owner the object is assigned to.
- Part
Number string - Discrete part number.
- Power
Outlet doubleTemplate Count - Number of power outlet templates of the device type.
- Power
Port doubleTemplate Count - Number of power port templates of the device type.
- Rear
Port doubleTemplate Count - 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.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- 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).
- 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
- Console
Port float64Template Count - Number of console port templates of the device type.
- Console
Server float64Port Template Count - Number of console server port templates of the device type.
- Created string
- Custom
Fields 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).
- Default
Platform float64Id - Id of the platform assigned to new devices of this type.
- Description string
- Device
Bay float64Template Count - Number of device bay templates of the device type.
- Device
Count float64 - Number of devices of the device type.
- Device
Type float64Id - NetBox id.
- Exclude
From boolUtilization - Whether devices of this type are left out of the rack utilization.
- Front
Port float64Template Count - Number of front port templates of the device type.
- Interface
Template float64Count - Number of interface templates of the device type.
- Inventory
Item float64Template Count - Number of inventory item templates of the device type.
- Is
Full boolDepth - Device consumes both the front and rear rack faces.
- Last
Updated string - Manufacturer
Id float64 - Id of the manufacturer.
- Model string
- Model name (unique per manufacturer).
- Module
Bay float64Template Count - Number of module bay templates of the device type.
- Owner
Id float64 - Id of the owner the object is assigned to.
- Part
Number string - Discrete part number.
- Power
Outlet float64Template Count - Number of power outlet templates of the device type.
- Power
Port float64Template Count - Number of power port templates of the device type.
- Rear
Port float64Template Count - 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.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- []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).
- 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
- console_
port_ numbertemplate_ count - Number of console port templates of the device type.
- console_
server_ numberport_ template_ count - 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_ numberid - Id of the platform assigned to new devices of this type.
- description string
- device_
bay_ numbertemplate_ count - Number of device bay templates of the device type.
- device_
count number - Number of devices of the device type.
- device_
type_ numberid - NetBox id.
- exclude_
from_ boolutilization - Whether devices of this type are left out of the rack utilization.
- front_
port_ numbertemplate_ count - Number of front port templates of the device type.
- interface_
template_ numbercount - Number of interface templates of the device type.
- inventory_
item_ numbertemplate_ count - Number of inventory item templates of the device type.
- is_
full_ booldepth - 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_ numbertemplate_ count - 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_ numbertemplate_ count - Number of power outlet templates of the device type.
- power_
port_ numbertemplate_ count - Number of power port templates of the device type.
- rear_
port_ numbertemplate_ count - 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.
- list(string)
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- 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
- console
Port DoubleTemplate Count - Number of console port templates of the device type.
- console
Server DoublePort Template Count - Number of console server port templates of the device type.
- created String
- custom
Fields 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).
- default
Platform DoubleId - Id of the platform assigned to new devices of this type.
- description String
- device
Bay DoubleTemplate Count - Number of device bay templates of the device type.
- device
Count Double - Number of devices of the device type.
- device
Type DoubleId - NetBox id.
- exclude
From BooleanUtilization - Whether devices of this type are left out of the rack utilization.
- front
Port DoubleTemplate Count - Number of front port templates of the device type.
- interface
Template DoubleCount - Number of interface templates of the device type.
- inventory
Item DoubleTemplate Count - Number of inventory item templates of the device type.
- is
Full BooleanDepth - Device consumes both the front and rear rack faces.
- last
Updated String - manufacturer
Id Double - Id of the manufacturer.
- model String
- Model name (unique per manufacturer).
- module
Bay DoubleTemplate Count - Number of module bay templates of the device type.
- owner
Id Double - Id of the owner the object is assigned to.
- part
Number String - Discrete part number.
- power
Outlet DoubleTemplate Count - Number of power outlet templates of the device type.
- power
Port DoubleTemplate Count - Number of power port templates of the device type.
- rear
Port DoubleTemplate Count - 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.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- u
Height Double - Height in rack units (0.5 steps).
- url String
- weight Double
- 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
- console
Port numberTemplate Count - Number of console port templates of the device type.
- console
Server numberPort Template Count - Number of console server port templates of the device type.
- created string
- custom
Fields {[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).
- default
Platform numberId - Id of the platform assigned to new devices of this type.
- description string
- device
Bay numberTemplate Count - Number of device bay templates of the device type.
- device
Count number - Number of devices of the device type.
- device
Type numberId - NetBox id.
- exclude
From booleanUtilization - Whether devices of this type are left out of the rack utilization.
- front
Port numberTemplate Count - Number of front port templates of the device type.
- interface
Template numberCount - Number of interface templates of the device type.
- inventory
Item numberTemplate Count - Number of inventory item templates of the device type.
- is
Full booleanDepth - 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 numberTemplate Count - 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 numberTemplate Count - Number of power outlet templates of the device type.
- power
Port numberTemplate Count - Number of power port templates of the device type.
- rear
Port numberTemplate Count - 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.
- string[]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- 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 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_ floattemplate_ count - Number of console port templates of the device type.
- console_
server_ floatport_ template_ count - 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_ floatid - Id of the platform assigned to new devices of this type.
- description str
- device_
bay_ floattemplate_ count - Number of device bay templates of the device type.
- device_
count float - Number of devices of the device type.
- device_
type_ floatid - NetBox id.
- exclude_
from_ boolutilization - Whether devices of this type are left out of the rack utilization.
- front_
port_ floattemplate_ count - Number of front port templates of the device type.
- interface_
template_ floatcount - Number of interface templates of the device type.
- inventory_
item_ floattemplate_ count - Number of inventory item templates of the device type.
- is_
full_ booldepth - 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_ floattemplate_ count - 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_ floattemplate_ count - Number of power outlet templates of the device type.
- power_
port_ floattemplate_ count - Number of power port templates of the device type.
- rear_
port_ floattemplate_ count - 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.
- Sequence[str]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- 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
- console
Port NumberTemplate Count - Number of console port templates of the device type.
- console
Server NumberPort Template Count - 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 NumberId - Id of the platform assigned to new devices of this type.
- description String
- device
Bay NumberTemplate Count - Number of device bay templates of the device type.
- device
Count Number - Number of devices of the device type.
- device
Type NumberId - NetBox id.
- exclude
From BooleanUtilization - Whether devices of this type are left out of the rack utilization.
- front
Port NumberTemplate Count - Number of front port templates of the device type.
- interface
Template NumberCount - Number of interface templates of the device type.
- inventory
Item NumberTemplate Count - Number of inventory item templates of the device type.
- is
Full BooleanDepth - 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 NumberTemplate Count - 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 NumberTemplate Count - Number of power outlet templates of the device type.
- power
Port NumberTemplate Count - Number of power port templates of the device type.
- rear
Port NumberTemplate Count - 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.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- 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.
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
netboxTerraform Provider.
published on Wednesday, Nov 4, 2026 by e-breuninger