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

    A 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:

    FormFactor 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.
    ManufacturerId double
    Id of the manufacturer.
    Model string
    Comments string
    CustomFields Dictionary<string, string>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    DescUnits bool
    Units are numbered top-to-bottom.
    Description string
    MaxWeight double
    Maximum load capacity (requires weight_unit). Must be a whole number.
    MountingDepth double
    Maximum depth of a mounted device, in millimetres. Must be a whole number.
    MountingDepthMm double
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    OuterDepth double
    Outer depth (requires outer_unit). Must be a whole number.
    OuterHeight double
    Outer height (requires outer_unit). Must be a whole number.
    OuterUnit string
    Unit of the outer dimensions. One of: mm, in.
    OuterWidth double
    Outer width (requires outer_unit). Must be a whole number.
    OwnerId double
    Id of the owner the object is assigned to.
    Slug string
    URL-friendly unique shorthand; derived from model when not set.
    StartingUnit double
    Lowest unit number. Must be a whole number.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    UHeight double
    Height in rack units. Must be a whole number.
    Weight double
    Weight of the rack (requires weight_unit).
    WeightUnit 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.
    FormFactor 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.
    ManufacturerId float64
    Id of the manufacturer.
    Model string
    Comments string
    CustomFields map[string]string
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    DescUnits bool
    Units are numbered top-to-bottom.
    Description string
    MaxWeight float64
    Maximum load capacity (requires weight_unit). Must be a whole number.
    MountingDepth float64
    Maximum depth of a mounted device, in millimetres. Must be a whole number.
    MountingDepthMm float64
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    OuterDepth float64
    Outer depth (requires outer_unit). Must be a whole number.
    OuterHeight float64
    Outer height (requires outer_unit). Must be a whole number.
    OuterUnit string
    Unit of the outer dimensions. One of: mm, in.
    OuterWidth float64
    Outer width (requires outer_unit). Must be a whole number.
    OwnerId float64
    Id of the owner the object is assigned to.
    Slug string
    URL-friendly unique shorthand; derived from model when not set.
    StartingUnit float64
    Lowest unit number. Must be a whole number.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    UHeight float64
    Height in rack units. Must be a whole number.
    Weight float64
    Weight of the rack (requires weight_unit).
    WeightUnit 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_mm number
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    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.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    u_height number
    Height in rack units. 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.
    formFactor 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.
    manufacturerId Double
    Id of the manufacturer.
    model String
    comments String
    customFields Map<String,String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    descUnits Boolean
    Units are numbered top-to-bottom.
    description String
    maxWeight Double
    Maximum load capacity (requires weight_unit). Must be a whole number.
    mountingDepth Double
    Maximum depth of a mounted device, in millimetres. Must be a whole number.
    mountingDepthMm Double
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    outerDepth Double
    Outer depth (requires outer_unit). Must be a whole number.
    outerHeight Double
    Outer height (requires outer_unit). Must be a whole number.
    outerUnit String
    Unit of the outer dimensions. One of: mm, in.
    outerWidth Double
    Outer width (requires outer_unit). Must be a whole number.
    ownerId Double
    Id of the owner the object is assigned to.
    slug String
    URL-friendly unique shorthand; derived from model when not set.
    startingUnit Double
    Lowest unit number. Must be a whole number.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    uHeight Double
    Height in rack units. Must be a whole number.
    weight Double
    Weight of the rack (requires weight_unit).
    weightUnit 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.
    formFactor 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.
    manufacturerId number
    Id of the manufacturer.
    model string
    comments string
    customFields {[key: string]: string}
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    descUnits boolean
    Units are numbered top-to-bottom.
    description string
    maxWeight number
    Maximum load capacity (requires weight_unit). Must be a whole number.
    mountingDepth number
    Maximum depth of a mounted device, in millimetres. Must be a whole number.
    mountingDepthMm number
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    outerDepth number
    Outer depth (requires outer_unit). Must be a whole number.
    outerHeight number
    Outer height (requires outer_unit). Must be a whole number.
    outerUnit string
    Unit of the outer dimensions. One of: mm, in.
    outerWidth number
    Outer width (requires outer_unit). Must be a whole number.
    ownerId number
    Id of the owner the object is assigned to.
    slug string
    URL-friendly unique shorthand; derived from model when not set.
    startingUnit number
    Lowest unit number. Must be a whole number.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    uHeight number
    Height in rack units. Must be a whole number.
    weight number
    Weight of the rack (requires weight_unit).
    weightUnit 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_mm float
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    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.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    u_height float
    Height in rack units. 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.
    formFactor 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.
    manufacturerId Number
    Id of the manufacturer.
    model String
    comments String
    customFields Map<String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    descUnits Boolean
    Units are numbered top-to-bottom.
    description String
    maxWeight Number
    Maximum load capacity (requires weight_unit). Must be a whole number.
    mountingDepth Number
    Maximum depth of a mounted device, in millimetres. Must be a whole number.
    mountingDepthMm Number
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    outerDepth Number
    Outer depth (requires outer_unit). Must be a whole number.
    outerHeight Number
    Outer height (requires outer_unit). Must be a whole number.
    outerUnit String
    Unit of the outer dimensions. One of: mm, in.
    outerWidth Number
    Outer width (requires outer_unit). Must be a whole number.
    ownerId Number
    Id of the owner the object is assigned to.
    slug String
    URL-friendly unique shorthand; derived from model when not set.
    startingUnit Number
    Lowest unit number. Must be a whole number.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    uHeight Number
    Height in rack units. Must be a whole number.
    weight Number
    Weight of the rack (requires weight_unit).
    weightUnit 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.
    LastUpdated string
    RackCount double
    Number of racks of the rack type.
    RackTypeId double
    NetBox id.
    TagsAlls 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.
    LastUpdated string
    RackCount float64
    Number of racks of the rack type.
    RackTypeId float64
    NetBox id.
    TagsAlls []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_id number
    NetBox id.
    tags_alls 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.
    lastUpdated String
    rackCount Double
    Number of racks of the rack type.
    rackTypeId Double
    NetBox id.
    tagsAlls 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.
    lastUpdated string
    rackCount number
    Number of racks of the rack type.
    rackTypeId number
    NetBox id.
    tagsAlls 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_id float
    NetBox id.
    tags_alls 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.
    lastUpdated String
    rackCount Number
    Number of racks of the rack type.
    rackTypeId Number
    NetBox id.
    tagsAlls 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) -> RackType
    func 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.
    The following state arguments are supported:
    Comments string
    Created string
    CustomFields Dictionary<string, string>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    DescUnits bool
    Units are numbered top-to-bottom.
    Description string
    FormFactor 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.
    LastUpdated string
    ManufacturerId double
    Id of the manufacturer.
    MaxWeight double
    Maximum load capacity (requires weight_unit). Must be a whole number.
    Model string
    MountingDepth double
    Maximum depth of a mounted device, in millimetres. Must be a whole number.
    MountingDepthMm double
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    OuterDepth double
    Outer depth (requires outer_unit). Must be a whole number.
    OuterHeight double
    Outer height (requires outer_unit). Must be a whole number.
    OuterUnit string
    Unit of the outer dimensions. One of: mm, in.
    OuterWidth double
    Outer width (requires outer_unit). Must be a whole number.
    OwnerId double
    Id of the owner the object is assigned to.
    RackCount double
    Number of racks of the rack type.
    RackTypeId double
    NetBox id.
    Slug string
    URL-friendly unique shorthand; derived from model when not set.
    StartingUnit double
    Lowest unit number. Must be a whole number.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    UHeight double
    Height in rack units. Must be a whole number.
    Url string
    Weight double
    Weight of the rack (requires weight_unit).
    WeightUnit 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
    CustomFields map[string]string
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    DescUnits bool
    Units are numbered top-to-bottom.
    Description string
    FormFactor 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.
    LastUpdated string
    ManufacturerId float64
    Id of the manufacturer.
    MaxWeight float64
    Maximum load capacity (requires weight_unit). Must be a whole number.
    Model string
    MountingDepth float64
    Maximum depth of a mounted device, in millimetres. Must be a whole number.
    MountingDepthMm float64
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    OuterDepth float64
    Outer depth (requires outer_unit). Must be a whole number.
    OuterHeight float64
    Outer height (requires outer_unit). Must be a whole number.
    OuterUnit string
    Unit of the outer dimensions. One of: mm, in.
    OuterWidth float64
    Outer width (requires outer_unit). Must be a whole number.
    OwnerId float64
    Id of the owner the object is assigned to.
    RackCount float64
    Number of racks of the rack type.
    RackTypeId float64
    NetBox id.
    Slug string
    URL-friendly unique shorthand; derived from model when not set.
    StartingUnit float64
    Lowest unit number. Must be a whole number.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    UHeight float64
    Height in rack units. Must be a whole number.
    Url string
    Weight float64
    Weight of the rack (requires weight_unit).
    WeightUnit 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_mm number
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    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_id number
    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.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    u_height number
    Height in rack units. 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
    customFields Map<String,String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    descUnits Boolean
    Units are numbered top-to-bottom.
    description String
    formFactor 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.
    lastUpdated String
    manufacturerId Double
    Id of the manufacturer.
    maxWeight Double
    Maximum load capacity (requires weight_unit). Must be a whole number.
    model String
    mountingDepth Double
    Maximum depth of a mounted device, in millimetres. Must be a whole number.
    mountingDepthMm Double
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    outerDepth Double
    Outer depth (requires outer_unit). Must be a whole number.
    outerHeight Double
    Outer height (requires outer_unit). Must be a whole number.
    outerUnit String
    Unit of the outer dimensions. One of: mm, in.
    outerWidth Double
    Outer width (requires outer_unit). Must be a whole number.
    ownerId Double
    Id of the owner the object is assigned to.
    rackCount Double
    Number of racks of the rack type.
    rackTypeId Double
    NetBox id.
    slug String
    URL-friendly unique shorthand; derived from model when not set.
    startingUnit Double
    Lowest unit number. Must be a whole number.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    uHeight Double
    Height in rack units. Must be a whole number.
    url String
    weight Double
    Weight of the rack (requires weight_unit).
    weightUnit 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
    customFields {[key: string]: string}
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    descUnits boolean
    Units are numbered top-to-bottom.
    description string
    formFactor 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.
    lastUpdated string
    manufacturerId number
    Id of the manufacturer.
    maxWeight number
    Maximum load capacity (requires weight_unit). Must be a whole number.
    model string
    mountingDepth number
    Maximum depth of a mounted device, in millimetres. Must be a whole number.
    mountingDepthMm number
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    outerDepth number
    Outer depth (requires outer_unit). Must be a whole number.
    outerHeight number
    Outer height (requires outer_unit). Must be a whole number.
    outerUnit string
    Unit of the outer dimensions. One of: mm, in.
    outerWidth number
    Outer width (requires outer_unit). Must be a whole number.
    ownerId number
    Id of the owner the object is assigned to.
    rackCount number
    Number of racks of the rack type.
    rackTypeId number
    NetBox id.
    slug string
    URL-friendly unique shorthand; derived from model when not set.
    startingUnit number
    Lowest unit number. Must be a whole number.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    uHeight number
    Height in rack units. Must be a whole number.
    url string
    weight number
    Weight of the rack (requires weight_unit).
    weightUnit 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_mm float
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    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_id float
    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.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    u_height float
    Height in rack units. 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
    customFields Map<String>
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    descUnits Boolean
    Units are numbered top-to-bottom.
    description String
    formFactor 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.
    lastUpdated String
    manufacturerId Number
    Id of the manufacturer.
    maxWeight Number
    Maximum load capacity (requires weight_unit). Must be a whole number.
    model String
    mountingDepth Number
    Maximum depth of a mounted device, in millimetres. Must be a whole number.
    mountingDepthMm Number
    Deprecated alias of mounting_depth.

    Deprecated: Deprecated

    outerDepth Number
    Outer depth (requires outer_unit). Must be a whole number.
    outerHeight Number
    Outer height (requires outer_unit). Must be a whole number.
    outerUnit String
    Unit of the outer dimensions. One of: mm, in.
    outerWidth Number
    Outer width (requires outer_unit). Must be a whole number.
    ownerId Number
    Id of the owner the object is assigned to.
    rackCount Number
    Number of racks of the rack type.
    rackTypeId Number
    NetBox id.
    slug String
    URL-friendly unique shorthand; derived from model when not set.
    startingUnit Number
    Lowest unit number. Must be a whole number.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    uHeight Number
    Height in rack units. Must be a whole number.
    url String
    weight Number
    Weight of the rack (requires weight_unit).
    weightUnit 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 netbox Terraform Provider.
    netbox
    Viewing docs for netbox 6.0.0
    published on Wednesday, Nov 4, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial