published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger
A NetBox rack type (dcim.racktype): a rack model made by a manufacturer, whose physical attributes racks inherit.
From the official documentation:
A rack type defines the physical characteristics of a particular model of rack.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = new netbox.Manufacturer("test", {name: "test-manufacturer"});
const testRackType = new netbox.RackType("test", {
manufacturerId: test.manufacturerId,
model: "test-rack-type",
slug: "test-rack-type",
formFactor: "4-post-cabinet",
width: 19,
uHeight: 42,
startingUnit: 1,
descUnits: false,
outerWidth: 600,
outerHeight: 2000,
outerDepth: 1000,
outerUnit: "mm",
mountingDepth: 900,
weight: 120,
maxWeight: 1500,
weightUnit: "kg",
description: "test-description",
});
import pulumi
import pulumi_netbox as netbox
test = netbox.Manufacturer("test", name="test-manufacturer")
test_rack_type = netbox.RackType("test",
manufacturer_id=test.manufacturer_id,
model="test-rack-type",
slug="test-rack-type",
form_factor="4-post-cabinet",
width=19,
u_height=42,
starting_unit=1,
desc_units=False,
outer_width=600,
outer_height=2000,
outer_depth=1000,
outer_unit="mm",
mounting_depth=900,
weight=120,
max_weight=1500,
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.NewRackType(ctx, "test", &netbox.RackTypeArgs{
ManufacturerId: test.ManufacturerId,
Model: pulumi.String("test-rack-type"),
Slug: pulumi.String("test-rack-type"),
FormFactor: pulumi.String("4-post-cabinet"),
Width: pulumi.Float64(19),
UHeight: pulumi.Float64(42),
StartingUnit: pulumi.Float64(1),
DescUnits: pulumi.Bool(false),
OuterWidth: pulumi.Float64(600),
OuterHeight: pulumi.Float64(2000),
OuterDepth: pulumi.Float64(1000),
OuterUnit: pulumi.String("mm"),
MountingDepth: pulumi.Float64(900),
Weight: pulumi.Float64(120),
MaxWeight: pulumi.Float64(1500),
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 testRackType = new Netbox.RackType("test", new()
{
ManufacturerId = test.ManufacturerId,
Model = "test-rack-type",
Slug = "test-rack-type",
FormFactor = "4-post-cabinet",
Width = 19,
UHeight = 42,
StartingUnit = 1,
DescUnits = false,
OuterWidth = 600,
OuterHeight = 2000,
OuterDepth = 1000,
OuterUnit = "mm",
MountingDepth = 900,
Weight = 120,
MaxWeight = 1500,
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.RackType;
import com.pulumi.netbox.RackTypeArgs;
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 testRackType = new RackType("testRackType", RackTypeArgs.builder()
.manufacturerId(test.manufacturerId())
.model("test-rack-type")
.slug("test-rack-type")
.formFactor("4-post-cabinet")
.width(19.0)
.uHeight(42.0)
.startingUnit(1.0)
.descUnits(false)
.outerWidth(600.0)
.outerHeight(2000.0)
.outerDepth(1000.0)
.outerUnit("mm")
.mountingDepth(900.0)
.weight(120.0)
.maxWeight(1500.0)
.weightUnit("kg")
.description("test-description")
.build());
}
}
resources:
test:
type: netbox:Manufacturer
properties:
name: test-manufacturer
testRackType:
type: netbox:RackType
name: test
properties:
manufacturerId: ${test.manufacturerId}
model: test-rack-type
slug: test-rack-type
formFactor: 4-post-cabinet
width: 19
uHeight: 42
startingUnit: 1
descUnits: false
outerWidth: 600
outerHeight: 2000
outerDepth: 1000
outerUnit: mm
mountingDepth: 900
weight: 120
maxWeight: 1500
weightUnit: kg
description: test-description
Example coming soon!
Create RackType Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RackType(name: string, args: RackTypeArgs, opts?: CustomResourceOptions);@overload
def RackType(resource_name: str,
args: RackTypeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RackType(resource_name: str,
opts: Optional[ResourceOptions] = None,
form_factor: Optional[str] = None,
model: Optional[str] = None,
manufacturer_id: Optional[float] = None,
outer_depth: Optional[float] = None,
outer_unit: Optional[str] = None,
desc_units: Optional[bool] = None,
max_weight: Optional[float] = None,
custom_fields: Optional[Mapping[str, str]] = None,
mounting_depth: Optional[float] = None,
mounting_depth_mm: Optional[float] = None,
comments: Optional[str] = None,
outer_height: Optional[float] = None,
description: Optional[str] = None,
outer_width: Optional[float] = None,
owner_id: Optional[float] = None,
slug: Optional[str] = None,
starting_unit: Optional[float] = None,
tags: Optional[Sequence[str]] = None,
u_height: Optional[float] = None,
weight: Optional[float] = None,
weight_unit: Optional[str] = None,
width: Optional[float] = None)func NewRackType(ctx *Context, name string, args RackTypeArgs, opts ...ResourceOption) (*RackType, error)public RackType(string name, RackTypeArgs args, CustomResourceOptions? opts = null)
public RackType(String name, RackTypeArgs args)
public RackType(String name, RackTypeArgs args, CustomResourceOptions options)
type: netbox:RackType
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "netbox_rack_type" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args RackTypeArgs
- 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 RackTypeArgs
- 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 RackTypeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RackTypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RackTypeArgs
- 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 rackTypeResource = new Netbox.RackType("rackTypeResource", new()
{
FormFactor = "string",
Model = "string",
ManufacturerId = 0.0,
OuterDepth = 0.0,
OuterUnit = "string",
DescUnits = false,
MaxWeight = 0.0,
CustomFields =
{
{ "string", "string" },
},
MountingDepth = 0.0,
Comments = "string",
OuterHeight = 0.0,
Description = "string",
OuterWidth = 0.0,
OwnerId = 0.0,
Slug = "string",
StartingUnit = 0.0,
Tags = new[]
{
"string",
},
UHeight = 0.0,
Weight = 0.0,
WeightUnit = "string",
Width = 0.0,
});
example, err := netbox.NewRackType(ctx, "rackTypeResource", &netbox.RackTypeArgs{
FormFactor: pulumi.String("string"),
Model: pulumi.String("string"),
ManufacturerId: pulumi.Float64(0),
OuterDepth: pulumi.Float64(0),
OuterUnit: pulumi.String("string"),
DescUnits: pulumi.Bool(false),
MaxWeight: pulumi.Float64(0),
CustomFields: pulumi.StringMap{
"string": pulumi.String("string"),
},
MountingDepth: pulumi.Float64(0),
Comments: pulumi.String("string"),
OuterHeight: pulumi.Float64(0),
Description: pulumi.String("string"),
OuterWidth: pulumi.Float64(0),
OwnerId: pulumi.Float64(0),
Slug: pulumi.String("string"),
StartingUnit: pulumi.Float64(0),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
UHeight: pulumi.Float64(0),
Weight: pulumi.Float64(0),
WeightUnit: pulumi.String("string"),
Width: pulumi.Float64(0),
})
resource "netbox_rack_type" "rackTypeResource" {
lifecycle {
create_before_destroy = true
}
form_factor = "string"
model = "string"
manufacturer_id = 0
outer_depth = 0
outer_unit = "string"
desc_units = false
max_weight = 0
custom_fields = {
"string" = "string"
}
mounting_depth = 0
comments = "string"
outer_height = 0
description = "string"
outer_width = 0
owner_id = 0
slug = "string"
starting_unit = 0
tags = ["string"]
u_height = 0
weight = 0
weight_unit = "string"
width = 0
}
var rackTypeResource = new RackType("rackTypeResource", RackTypeArgs.builder()
.formFactor("string")
.model("string")
.manufacturerId(0.0)
.outerDepth(0.0)
.outerUnit("string")
.descUnits(false)
.maxWeight(0.0)
.customFields(Map.of("string", "string"))
.mountingDepth(0.0)
.comments("string")
.outerHeight(0.0)
.description("string")
.outerWidth(0.0)
.ownerId(0.0)
.slug("string")
.startingUnit(0.0)
.tags("string")
.uHeight(0.0)
.weight(0.0)
.weightUnit("string")
.width(0.0)
.build());
rack_type_resource = netbox.RackType("rackTypeResource",
form_factor="string",
model="string",
manufacturer_id=float(0),
outer_depth=float(0),
outer_unit="string",
desc_units=False,
max_weight=float(0),
custom_fields={
"string": "string",
},
mounting_depth=float(0),
comments="string",
outer_height=float(0),
description="string",
outer_width=float(0),
owner_id=float(0),
slug="string",
starting_unit=float(0),
tags=["string"],
u_height=float(0),
weight=float(0),
weight_unit="string",
width=float(0))
const rackTypeResource = new netbox.RackType("rackTypeResource", {
formFactor: "string",
model: "string",
manufacturerId: 0,
outerDepth: 0,
outerUnit: "string",
descUnits: false,
maxWeight: 0,
customFields: {
string: "string",
},
mountingDepth: 0,
comments: "string",
outerHeight: 0,
description: "string",
outerWidth: 0,
ownerId: 0,
slug: "string",
startingUnit: 0,
tags: ["string"],
uHeight: 0,
weight: 0,
weightUnit: "string",
width: 0,
});
type: netbox:RackType
properties:
comments: string
customFields:
string: string
descUnits: false
description: string
formFactor: string
manufacturerId: 0
maxWeight: 0
model: string
mountingDepth: 0
outerDepth: 0
outerHeight: 0
outerUnit: string
outerWidth: 0
ownerId: 0
slug: string
startingUnit: 0
tags:
- string
uHeight: 0
weight: 0
weightUnit: string
width: 0
RackType 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 RackType resource accepts the following input properties:
- Form
Factor string - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- Manufacturer
Id double - Id of the manufacturer.
- Model string
- 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).
- Desc
Units bool - Units are numbered top-to-bottom.
- Description string
- Max
Weight double - Maximum load capacity (requires weight_unit). Must be a whole number.
- Mounting
Depth double - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- Mounting
Depth doubleMm - Deprecated alias of mounting_depth.
- Outer
Depth double - Outer depth (requires outer_unit). Must be a whole number.
- Outer
Height double - Outer height (requires outer_unit). Must be a whole number.
- Outer
Unit string - Unit of the outer dimensions. One of: mm, in.
- Outer
Width double - Outer width (requires outer_unit). Must be a whole number.
- Owner
Id double - Id of the owner the object is assigned to.
- Slug string
- URL-friendly unique shorthand; derived from model when not set.
- Starting
Unit double - Lowest unit number. Must be a whole number.
- 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. Must be a whole number.
- Weight double
- Weight of the rack (requires weight_unit).
- Weight
Unit string - Unit of weight and max_weight. One of: kg, g, lb, oz.
- Width double
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- Form
Factor string - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- Manufacturer
Id float64 - Id of the manufacturer.
- Model string
- 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).
- Desc
Units bool - Units are numbered top-to-bottom.
- Description string
- Max
Weight float64 - Maximum load capacity (requires weight_unit). Must be a whole number.
- Mounting
Depth float64 - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- Mounting
Depth float64Mm - Deprecated alias of mounting_depth.
- Outer
Depth float64 - Outer depth (requires outer_unit). Must be a whole number.
- Outer
Height float64 - Outer height (requires outer_unit). Must be a whole number.
- Outer
Unit string - Unit of the outer dimensions. One of: mm, in.
- Outer
Width float64 - Outer width (requires outer_unit). Must be a whole number.
- Owner
Id float64 - Id of the owner the object is assigned to.
- Slug string
- URL-friendly unique shorthand; derived from model when not set.
- Starting
Unit float64 - Lowest unit number. Must be a whole number.
- []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. Must be a whole number.
- Weight float64
- Weight of the rack (requires weight_unit).
- Weight
Unit string - Unit of weight and max_weight. One of: kg, g, lb, oz.
- Width float64
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- form_
factor string - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- manufacturer_
id number - Id of the manufacturer.
- model string
- 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).
- desc_
units bool - Units are numbered top-to-bottom.
- description string
- max_
weight number - Maximum load capacity (requires weight_unit). Must be a whole number.
- mounting_
depth number - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- mounting_
depth_ numbermm - Deprecated alias of mounting_depth.
- outer_
depth number - Outer depth (requires outer_unit). Must be a whole number.
- outer_
height number - Outer height (requires outer_unit). Must be a whole number.
- outer_
unit string - Unit of the outer dimensions. One of: mm, in.
- outer_
width number - Outer width (requires outer_unit). Must be a whole number.
- owner_
id number - Id of the owner the object is assigned to.
- slug string
- URL-friendly unique shorthand; derived from model when not set.
- starting_
unit number - Lowest unit number. Must be a whole number.
- 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. Must be a whole number.
- weight number
- Weight of the rack (requires weight_unit).
- weight_
unit string - Unit of weight and max_weight. One of: kg, g, lb, oz.
- width number
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- form
Factor String - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- manufacturer
Id Double - Id of the manufacturer.
- model String
- 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).
- desc
Units Boolean - Units are numbered top-to-bottom.
- description String
- max
Weight Double - Maximum load capacity (requires weight_unit). Must be a whole number.
- mounting
Depth Double - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- mounting
Depth DoubleMm - Deprecated alias of mounting_depth.
- outer
Depth Double - Outer depth (requires outer_unit). Must be a whole number.
- outer
Height Double - Outer height (requires outer_unit). Must be a whole number.
- outer
Unit String - Unit of the outer dimensions. One of: mm, in.
- outer
Width Double - Outer width (requires outer_unit). Must be a whole number.
- owner
Id Double - Id of the owner the object is assigned to.
- slug String
- URL-friendly unique shorthand; derived from model when not set.
- starting
Unit Double - Lowest unit number. Must be a whole number.
- 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. Must be a whole number.
- weight Double
- Weight of the rack (requires weight_unit).
- weight
Unit String - Unit of weight and max_weight. One of: kg, g, lb, oz.
- width Double
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- form
Factor string - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- manufacturer
Id number - Id of the manufacturer.
- model string
- 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).
- desc
Units boolean - Units are numbered top-to-bottom.
- description string
- max
Weight number - Maximum load capacity (requires weight_unit). Must be a whole number.
- mounting
Depth number - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- mounting
Depth numberMm - Deprecated alias of mounting_depth.
- outer
Depth number - Outer depth (requires outer_unit). Must be a whole number.
- outer
Height number - Outer height (requires outer_unit). Must be a whole number.
- outer
Unit string - Unit of the outer dimensions. One of: mm, in.
- outer
Width number - Outer width (requires outer_unit). Must be a whole number.
- owner
Id number - Id of the owner the object is assigned to.
- slug string
- URL-friendly unique shorthand; derived from model when not set.
- starting
Unit number - Lowest unit number. Must be a whole number.
- 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. Must be a whole number.
- weight number
- Weight of the rack (requires weight_unit).
- weight
Unit string - Unit of weight and max_weight. One of: kg, g, lb, oz.
- width number
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- form_
factor str - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- manufacturer_
id float - Id of the manufacturer.
- model str
- 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).
- desc_
units bool - Units are numbered top-to-bottom.
- description str
- max_
weight float - Maximum load capacity (requires weight_unit). Must be a whole number.
- mounting_
depth float - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- mounting_
depth_ floatmm - Deprecated alias of mounting_depth.
- outer_
depth float - Outer depth (requires outer_unit). Must be a whole number.
- outer_
height float - Outer height (requires outer_unit). Must be a whole number.
- outer_
unit str - Unit of the outer dimensions. One of: mm, in.
- outer_
width float - Outer width (requires outer_unit). Must be a whole number.
- owner_
id float - Id of the owner the object is assigned to.
- slug str
- URL-friendly unique shorthand; derived from model when not set.
- starting_
unit float - Lowest unit number. Must be a whole number.
- 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. Must be a whole number.
- weight float
- Weight of the rack (requires weight_unit).
- weight_
unit str - Unit of weight and max_weight. One of: kg, g, lb, oz.
- width float
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- form
Factor String - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- manufacturer
Id Number - Id of the manufacturer.
- model String
- 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).
- desc
Units Boolean - Units are numbered top-to-bottom.
- description String
- max
Weight Number - Maximum load capacity (requires weight_unit). Must be a whole number.
- mounting
Depth Number - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- mounting
Depth NumberMm - Deprecated alias of mounting_depth.
- outer
Depth Number - Outer depth (requires outer_unit). Must be a whole number.
- outer
Height Number - Outer height (requires outer_unit). Must be a whole number.
- outer
Unit String - Unit of the outer dimensions. One of: mm, in.
- outer
Width Number - Outer width (requires outer_unit). Must be a whole number.
- owner
Id Number - Id of the owner the object is assigned to.
- slug String
- URL-friendly unique shorthand; derived from model when not set.
- starting
Unit Number - Lowest unit number. Must be a whole number.
- 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. Must be a whole number.
- weight Number
- Weight of the rack (requires weight_unit).
- weight
Unit String - Unit of weight and max_weight. One of: kg, g, lb, oz.
- width Number
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
Outputs
All input properties are implicitly available as output properties. Additionally, the RackType resource produces the following output properties:
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Rack
Count double - Number of racks of the rack type.
- Rack
Type doubleId - NetBox id.
- List<string>
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - Rack
Count float64 - Number of racks of the rack type.
- Rack
Type float64Id - NetBox id.
- []string
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- created string
- id string
- The provider-assigned unique ID for this managed resource.
- last_
updated string - rack_
count number - Number of racks of the rack type.
- rack_
type_ numberid - NetBox id.
- list(string)
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - rack
Count Double - Number of racks of the rack type.
- rack
Type DoubleId - NetBox id.
- List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- url String
- created string
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - rack
Count number - Number of racks of the rack type.
- rack
Type numberId - NetBox id.
- string[]
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- created str
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - rack_
count float - Number of racks of the rack type.
- rack_
type_ floatid - NetBox id.
- Sequence[str]
- Slugs of all tags on the object, including the provider's default_tags.
- url str
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - rack
Count Number - Number of racks of the rack type.
- rack
Type NumberId - NetBox id.
- List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- url String
Look up Existing RackType Resource
Get an existing RackType 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?: RackTypeState, opts?: CustomResourceOptions): RackType@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comments: Optional[str] = None,
created: Optional[str] = None,
custom_fields: Optional[Mapping[str, str]] = None,
desc_units: Optional[bool] = None,
description: Optional[str] = None,
form_factor: Optional[str] = None,
last_updated: Optional[str] = None,
manufacturer_id: Optional[float] = None,
max_weight: Optional[float] = None,
model: Optional[str] = None,
mounting_depth: Optional[float] = None,
mounting_depth_mm: Optional[float] = None,
outer_depth: Optional[float] = None,
outer_height: Optional[float] = None,
outer_unit: Optional[str] = None,
outer_width: Optional[float] = None,
owner_id: Optional[float] = None,
rack_count: Optional[float] = None,
rack_type_id: Optional[float] = None,
slug: Optional[str] = None,
starting_unit: Optional[float] = 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,
width: Optional[float] = None) -> RackTypefunc GetRackType(ctx *Context, name string, id IDInput, state *RackTypeState, opts ...ResourceOption) (*RackType, error)public static RackType Get(string name, Input<string> id, RackTypeState? state, CustomResourceOptions? opts = null)public static RackType get(String name, Output<String> id, RackTypeState state, CustomResourceOptions options)resources: _: type: netbox:RackType get: id: ${id}import {
to = netbox_rack_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.
- Comments string
- 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).
- Desc
Units bool - Units are numbered top-to-bottom.
- Description string
- Form
Factor string - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- Last
Updated string - Manufacturer
Id double - Id of the manufacturer.
- Max
Weight double - Maximum load capacity (requires weight_unit). Must be a whole number.
- Model string
- Mounting
Depth double - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- Mounting
Depth doubleMm - Deprecated alias of mounting_depth.
- Outer
Depth double - Outer depth (requires outer_unit). Must be a whole number.
- Outer
Height double - Outer height (requires outer_unit). Must be a whole number.
- Outer
Unit string - Unit of the outer dimensions. One of: mm, in.
- Outer
Width double - Outer width (requires outer_unit). Must be a whole number.
- Owner
Id double - Id of the owner the object is assigned to.
- Rack
Count double - Number of racks of the rack type.
- Rack
Type doubleId - NetBox id.
- Slug string
- URL-friendly unique shorthand; derived from model when not set.
- Starting
Unit double - Lowest unit number. Must be a whole number.
- 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. Must be a whole number.
- Url string
- Weight double
- Weight of the rack (requires weight_unit).
- Weight
Unit string - Unit of weight and max_weight. One of: kg, g, lb, oz.
- Width double
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- Comments string
- 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).
- Desc
Units bool - Units are numbered top-to-bottom.
- Description string
- Form
Factor string - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- Last
Updated string - Manufacturer
Id float64 - Id of the manufacturer.
- Max
Weight float64 - Maximum load capacity (requires weight_unit). Must be a whole number.
- Model string
- Mounting
Depth float64 - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- Mounting
Depth float64Mm - Deprecated alias of mounting_depth.
- Outer
Depth float64 - Outer depth (requires outer_unit). Must be a whole number.
- Outer
Height float64 - Outer height (requires outer_unit). Must be a whole number.
- Outer
Unit string - Unit of the outer dimensions. One of: mm, in.
- Outer
Width float64 - Outer width (requires outer_unit). Must be a whole number.
- Owner
Id float64 - Id of the owner the object is assigned to.
- Rack
Count float64 - Number of racks of the rack type.
- Rack
Type float64Id - NetBox id.
- Slug string
- URL-friendly unique shorthand; derived from model when not set.
- Starting
Unit float64 - Lowest unit number. Must be a whole number.
- []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. Must be a whole number.
- Url string
- Weight float64
- Weight of the rack (requires weight_unit).
- Weight
Unit string - Unit of weight and max_weight. One of: kg, g, lb, oz.
- Width float64
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- comments string
- 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).
- desc_
units bool - Units are numbered top-to-bottom.
- description string
- form_
factor string - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- last_
updated string - manufacturer_
id number - Id of the manufacturer.
- max_
weight number - Maximum load capacity (requires weight_unit). Must be a whole number.
- model string
- mounting_
depth number - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- mounting_
depth_ numbermm - Deprecated alias of mounting_depth.
- outer_
depth number - Outer depth (requires outer_unit). Must be a whole number.
- outer_
height number - Outer height (requires outer_unit). Must be a whole number.
- outer_
unit string - Unit of the outer dimensions. One of: mm, in.
- outer_
width number - Outer width (requires outer_unit). Must be a whole number.
- owner_
id number - Id of the owner the object is assigned to.
- rack_
count number - Number of racks of the rack type.
- rack_
type_ numberid - NetBox id.
- slug string
- URL-friendly unique shorthand; derived from model when not set.
- starting_
unit number - Lowest unit number. Must be a whole number.
- 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. Must be a whole number.
- url string
- weight number
- Weight of the rack (requires weight_unit).
- weight_
unit string - Unit of weight and max_weight. One of: kg, g, lb, oz.
- width number
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- comments String
- 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).
- desc
Units Boolean - Units are numbered top-to-bottom.
- description String
- form
Factor String - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- last
Updated String - manufacturer
Id Double - Id of the manufacturer.
- max
Weight Double - Maximum load capacity (requires weight_unit). Must be a whole number.
- model String
- mounting
Depth Double - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- mounting
Depth DoubleMm - Deprecated alias of mounting_depth.
- outer
Depth Double - Outer depth (requires outer_unit). Must be a whole number.
- outer
Height Double - Outer height (requires outer_unit). Must be a whole number.
- outer
Unit String - Unit of the outer dimensions. One of: mm, in.
- outer
Width Double - Outer width (requires outer_unit). Must be a whole number.
- owner
Id Double - Id of the owner the object is assigned to.
- rack
Count Double - Number of racks of the rack type.
- rack
Type DoubleId - NetBox id.
- slug String
- URL-friendly unique shorthand; derived from model when not set.
- starting
Unit Double - Lowest unit number. Must be a whole number.
- 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. Must be a whole number.
- url String
- weight Double
- Weight of the rack (requires weight_unit).
- weight
Unit String - Unit of weight and max_weight. One of: kg, g, lb, oz.
- width Double
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- comments string
- 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).
- desc
Units boolean - Units are numbered top-to-bottom.
- description string
- form
Factor string - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- last
Updated string - manufacturer
Id number - Id of the manufacturer.
- max
Weight number - Maximum load capacity (requires weight_unit). Must be a whole number.
- model string
- mounting
Depth number - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- mounting
Depth numberMm - Deprecated alias of mounting_depth.
- outer
Depth number - Outer depth (requires outer_unit). Must be a whole number.
- outer
Height number - Outer height (requires outer_unit). Must be a whole number.
- outer
Unit string - Unit of the outer dimensions. One of: mm, in.
- outer
Width number - Outer width (requires outer_unit). Must be a whole number.
- owner
Id number - Id of the owner the object is assigned to.
- rack
Count number - Number of racks of the rack type.
- rack
Type numberId - NetBox id.
- slug string
- URL-friendly unique shorthand; derived from model when not set.
- starting
Unit number - Lowest unit number. Must be a whole number.
- 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. Must be a whole number.
- url string
- weight number
- Weight of the rack (requires weight_unit).
- weight
Unit string - Unit of weight and max_weight. One of: kg, g, lb, oz.
- width number
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- comments str
- 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).
- desc_
units bool - Units are numbered top-to-bottom.
- description str
- form_
factor str - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- last_
updated str - manufacturer_
id float - Id of the manufacturer.
- max_
weight float - Maximum load capacity (requires weight_unit). Must be a whole number.
- model str
- mounting_
depth float - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- mounting_
depth_ floatmm - Deprecated alias of mounting_depth.
- outer_
depth float - Outer depth (requires outer_unit). Must be a whole number.
- outer_
height float - Outer height (requires outer_unit). Must be a whole number.
- outer_
unit str - Unit of the outer dimensions. One of: mm, in.
- outer_
width float - Outer width (requires outer_unit). Must be a whole number.
- owner_
id float - Id of the owner the object is assigned to.
- rack_
count float - Number of racks of the rack type.
- rack_
type_ floatid - NetBox id.
- slug str
- URL-friendly unique shorthand; derived from model when not set.
- starting_
unit float - Lowest unit number. Must be a whole number.
- 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. Must be a whole number.
- url str
- weight float
- Weight of the rack (requires weight_unit).
- weight_
unit str - Unit of weight and max_weight. One of: kg, g, lb, oz.
- width float
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- comments String
- 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).
- desc
Units Boolean - Units are numbered top-to-bottom.
- description String
- form
Factor String - Rack form factor. One of: 2-post-frame, 4-post-frame, 4-post-cabinet, wall-frame, wall-frame-vertical, wall-cabinet, wall-cabinet-vertical.
- last
Updated String - manufacturer
Id Number - Id of the manufacturer.
- max
Weight Number - Maximum load capacity (requires weight_unit). Must be a whole number.
- model String
- mounting
Depth Number - Maximum depth of a mounted device, in millimetres. Must be a whole number.
- mounting
Depth NumberMm - Deprecated alias of mounting_depth.
- outer
Depth Number - Outer depth (requires outer_unit). Must be a whole number.
- outer
Height Number - Outer height (requires outer_unit). Must be a whole number.
- outer
Unit String - Unit of the outer dimensions. One of: mm, in.
- outer
Width Number - Outer width (requires outer_unit). Must be a whole number.
- owner
Id Number - Id of the owner the object is assigned to.
- rack
Count Number - Number of racks of the rack type.
- rack
Type NumberId - NetBox id.
- slug String
- URL-friendly unique shorthand; derived from model when not set.
- starting
Unit Number - Lowest unit number. Must be a whole number.
- 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. Must be a whole number.
- url String
- weight Number
- Weight of the rack (requires weight_unit).
- weight
Unit String - Unit of weight and max_weight. One of: kg, g, lb, oz.
- width Number
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = netbox_rack_type.test
id = “123”
}
The pulumi import command can be used, for example:
$ pulumi import netbox:index/rackType:RackType 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