1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getRack
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 (dcim.rack).

    From the official documentation:

    The rack model represents a physical two- or four-post equipment rack in which devices can be installed. Each rack must be assigned to a site, and may optionally be assigned to a location within that site. Racks can also be organized by user-defined functional roles. The name and facility ID of each rack within a location must be unique.

    Rack height is measured in rack units (U); racks are commonly between 42U and 48U tall, but NetBox allows you to define racks of arbitrary height. A toggle is provided to indicate whether rack units are in ascending (from the ground up) or descending order.

    Each rack is assigned a name and (optionally) a separate facility ID. This is helpful when leasing space in a data center your organization does not own: The facility will often assign a seemingly arbitrary ID to a rack (for example, “M204.313”) whereas internally you refer to is simply as “R113.” A unique serial number and asset tag may also be associated with each rack.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getRack({
        name: "test-rack",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_rack(name="test-rack")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := netbox.LookupRack(ctx, &netbox.LookupRackArgs{
    			Name: pulumi.StringRef("test-rack"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Netbox = Pulumi.Netbox;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Netbox.GetRack.Invoke(new()
        {
            Name = "test-rack",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.NetboxFunctions;
    import com.pulumi.netbox.inputs.GetRackArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var test = NetboxFunctions.getRack(GetRackArgs.builder()
                .name("test-rack")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getRack
          arguments:
            name: test-rack
    
    Example coming soon!
    

    Using getRack

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getRack(args: GetRackArgs, opts?: InvokeOptions): Promise<GetRackResult>
    function getRackOutput(args: GetRackOutputArgs, opts?: InvokeOutputOptions): Output<GetRackResult>
    def get_rack(asset_tag: Optional[str] = None,
                 contact_group_id: Optional[float] = None,
                 contact_id: Optional[float] = None,
                 contact_role_id: Optional[float] = None,
                 custom_field_filters: Optional[Mapping[str, str]] = None,
                 desc_units: Optional[bool] = None,
                 facility_id: Optional[str] = None,
                 id: Optional[float] = None,
                 location_id: Optional[float] = None,
                 max_weight: Optional[float] = None,
                 mounting_depth: Optional[float] = None,
                 name: Optional[str] = None,
                 outer_depth: Optional[float] = None,
                 outer_unit: Optional[str] = None,
                 outer_width: Optional[float] = None,
                 owner_id: Optional[float] = None,
                 rack_type_id: Optional[float] = None,
                 region_id: Optional[float] = None,
                 role_id: Optional[float] = None,
                 serial: Optional[str] = None,
                 site_id: Optional[float] = None,
                 status: Optional[str] = None,
                 tag_slug: Optional[str] = None,
                 tenant_id: Optional[float] = None,
                 u_height: Optional[float] = None,
                 weight: Optional[float] = None,
                 weight_unit: Optional[str] = None,
                 width: Optional[float] = None,
                 opts: Optional[InvokeOptions] = None) -> GetRackResult
    def get_rack_output(asset_tag: pulumi.Input[Optional[str]] = None,
                 contact_group_id: pulumi.Input[Optional[float]] = None,
                 contact_id: pulumi.Input[Optional[float]] = None,
                 contact_role_id: pulumi.Input[Optional[float]] = None,
                 custom_field_filters: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                 desc_units: pulumi.Input[Optional[bool]] = None,
                 facility_id: pulumi.Input[Optional[str]] = None,
                 id: pulumi.Input[Optional[float]] = None,
                 location_id: pulumi.Input[Optional[float]] = None,
                 max_weight: pulumi.Input[Optional[float]] = None,
                 mounting_depth: pulumi.Input[Optional[float]] = None,
                 name: pulumi.Input[Optional[str]] = None,
                 outer_depth: pulumi.Input[Optional[float]] = None,
                 outer_unit: pulumi.Input[Optional[str]] = None,
                 outer_width: pulumi.Input[Optional[float]] = None,
                 owner_id: pulumi.Input[Optional[float]] = None,
                 rack_type_id: pulumi.Input[Optional[float]] = None,
                 region_id: pulumi.Input[Optional[float]] = None,
                 role_id: pulumi.Input[Optional[float]] = None,
                 serial: pulumi.Input[Optional[str]] = None,
                 site_id: pulumi.Input[Optional[float]] = None,
                 status: pulumi.Input[Optional[str]] = None,
                 tag_slug: pulumi.Input[Optional[str]] = None,
                 tenant_id: pulumi.Input[Optional[float]] = None,
                 u_height: pulumi.Input[Optional[float]] = None,
                 weight: pulumi.Input[Optional[float]] = None,
                 weight_unit: pulumi.Input[Optional[str]] = None,
                 width: pulumi.Input[Optional[float]] = None,
                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetRackResult]
    func LookupRack(ctx *Context, args *LookupRackArgs, opts ...InvokeOption) (*LookupRackResult, error)
    func LookupRackOutput(ctx *Context, args *LookupRackOutputArgs, opts ...InvokeOption) LookupRackResultOutput

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

    public static class GetRack 
    {
        public static Task<GetRackResult> InvokeAsync(GetRackArgs args, InvokeOptions? opts = null)
        public static Output<GetRackResult> Invoke(GetRackInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetRackResult> Invoke(GetRackInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetRackResult> getRack(GetRackArgs args, InvokeOptions options)
    public static Output<GetRackResult> getRack(GetRackArgs args, InvokeOptions options)
    public static Output<GetRackResult> getRack(GetRackArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getRack:getRack
      arguments:
        # arguments dictionary
    data "netbox_get_rack" "name" {
        # arguments
    }

    The following arguments are supported:

    AssetTag string
    Unique asset tag.
    ContactGroupId double
    Id of a contact group with a contact assigned to the rack.
    ContactId double
    Id of a contact assigned to the rack.
    ContactRoleId double
    Id of the role a contact is assigned to the rack with.
    CustomFieldFilters Dictionary<string, string>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    DescUnits bool
    Units are numbered top-to-bottom.
    FacilityId string
    Locally-assigned facility identifier.
    Id double
    NetBox id.
    LocationId double
    Id of the location within the site.
    MaxWeight double
    Maximum load capacity (requires weight_unit). Must be a whole number.
    MountingDepth double
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    Name string
    OuterDepth double
    Outer depth (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.
    RackTypeId double
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    RegionId double
    Id of the region of the site.
    RoleId double
    Id of the rack role.
    Serial string
    Serial number.
    SiteId double
    Id of the site the rack belongs to.
    Status string
    Operational status. One of: reserved, available, planned, active, deprecated.
    TagSlug string
    Slug of a tag the object carries.
    TenantId double
    Id of the tenant.
    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.
    AssetTag string
    Unique asset tag.
    ContactGroupId float64
    Id of a contact group with a contact assigned to the rack.
    ContactId float64
    Id of a contact assigned to the rack.
    ContactRoleId float64
    Id of the role a contact is assigned to the rack with.
    CustomFieldFilters map[string]string
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    DescUnits bool
    Units are numbered top-to-bottom.
    FacilityId string
    Locally-assigned facility identifier.
    Id float64
    NetBox id.
    LocationId float64
    Id of the location within the site.
    MaxWeight float64
    Maximum load capacity (requires weight_unit). Must be a whole number.
    MountingDepth float64
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    Name string
    OuterDepth float64
    Outer depth (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.
    RackTypeId float64
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    RegionId float64
    Id of the region of the site.
    RoleId float64
    Id of the rack role.
    Serial string
    Serial number.
    SiteId float64
    Id of the site the rack belongs to.
    Status string
    Operational status. One of: reserved, available, planned, active, deprecated.
    TagSlug string
    Slug of a tag the object carries.
    TenantId float64
    Id of the tenant.
    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.
    asset_tag string
    Unique asset tag.
    contact_group_id number
    Id of a contact group with a contact assigned to the rack.
    contact_id number
    Id of a contact assigned to the rack.
    contact_role_id number
    Id of the role a contact is assigned to the rack with.
    custom_field_filters map(string)
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    desc_units bool
    Units are numbered top-to-bottom.
    facility_id string
    Locally-assigned facility identifier.
    id number
    NetBox id.
    location_id number
    Id of the location within the site.
    max_weight number
    Maximum load capacity (requires weight_unit). Must be a whole number.
    mounting_depth number
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    name string
    outer_depth number
    Outer depth (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_type_id number
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    region_id number
    Id of the region of the site.
    role_id number
    Id of the rack role.
    serial string
    Serial number.
    site_id number
    Id of the site the rack belongs to.
    status string
    Operational status. One of: reserved, available, planned, active, deprecated.
    tag_slug string
    Slug of a tag the object carries.
    tenant_id number
    Id of the tenant.
    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.
    assetTag String
    Unique asset tag.
    contactGroupId Double
    Id of a contact group with a contact assigned to the rack.
    contactId Double
    Id of a contact assigned to the rack.
    contactRoleId Double
    Id of the role a contact is assigned to the rack with.
    customFieldFilters Map<String,String>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    descUnits Boolean
    Units are numbered top-to-bottom.
    facilityId String
    Locally-assigned facility identifier.
    id Double
    NetBox id.
    locationId Double
    Id of the location within the site.
    maxWeight Double
    Maximum load capacity (requires weight_unit). Must be a whole number.
    mountingDepth Double
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    name String
    outerDepth Double
    Outer depth (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.
    rackTypeId Double
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    regionId Double
    Id of the region of the site.
    roleId Double
    Id of the rack role.
    serial String
    Serial number.
    siteId Double
    Id of the site the rack belongs to.
    status String
    Operational status. One of: reserved, available, planned, active, deprecated.
    tagSlug String
    Slug of a tag the object carries.
    tenantId Double
    Id of the tenant.
    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.
    assetTag string
    Unique asset tag.
    contactGroupId number
    Id of a contact group with a contact assigned to the rack.
    contactId number
    Id of a contact assigned to the rack.
    contactRoleId number
    Id of the role a contact is assigned to the rack with.
    customFieldFilters {[key: string]: string}
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    descUnits boolean
    Units are numbered top-to-bottom.
    facilityId string
    Locally-assigned facility identifier.
    id number
    NetBox id.
    locationId number
    Id of the location within the site.
    maxWeight number
    Maximum load capacity (requires weight_unit). Must be a whole number.
    mountingDepth number
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    name string
    outerDepth number
    Outer depth (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.
    rackTypeId number
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    regionId number
    Id of the region of the site.
    roleId number
    Id of the rack role.
    serial string
    Serial number.
    siteId number
    Id of the site the rack belongs to.
    status string
    Operational status. One of: reserved, available, planned, active, deprecated.
    tagSlug string
    Slug of a tag the object carries.
    tenantId number
    Id of the tenant.
    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.
    asset_tag str
    Unique asset tag.
    contact_group_id float
    Id of a contact group with a contact assigned to the rack.
    contact_id float
    Id of a contact assigned to the rack.
    contact_role_id float
    Id of the role a contact is assigned to the rack with.
    custom_field_filters Mapping[str, str]
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    desc_units bool
    Units are numbered top-to-bottom.
    facility_id str
    Locally-assigned facility identifier.
    id float
    NetBox id.
    location_id float
    Id of the location within the site.
    max_weight float
    Maximum load capacity (requires weight_unit). Must be a whole number.
    mounting_depth float
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    name str
    outer_depth float
    Outer depth (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_type_id float
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    region_id float
    Id of the region of the site.
    role_id float
    Id of the rack role.
    serial str
    Serial number.
    site_id float
    Id of the site the rack belongs to.
    status str
    Operational status. One of: reserved, available, planned, active, deprecated.
    tag_slug str
    Slug of a tag the object carries.
    tenant_id float
    Id of the tenant.
    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.
    assetTag String
    Unique asset tag.
    contactGroupId Number
    Id of a contact group with a contact assigned to the rack.
    contactId Number
    Id of a contact assigned to the rack.
    contactRoleId Number
    Id of the role a contact is assigned to the rack with.
    customFieldFilters Map<String>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    descUnits Boolean
    Units are numbered top-to-bottom.
    facilityId String
    Locally-assigned facility identifier.
    id Number
    NetBox id.
    locationId Number
    Id of the location within the site.
    maxWeight Number
    Maximum load capacity (requires weight_unit). Must be a whole number.
    mountingDepth Number
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    name String
    outerDepth Number
    Outer depth (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.
    rackTypeId Number
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    regionId Number
    Id of the region of the site.
    roleId Number
    Id of the rack role.
    serial String
    Serial number.
    siteId Number
    Id of the site the rack belongs to.
    status String
    Operational status. One of: reserved, available, planned, active, deprecated.
    tagSlug String
    Slug of a tag the object carries.
    tenantId Number
    Id of the tenant.
    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.

    getRack Result

    The following output properties are available:

    Airflow string
    Airflow direction. One of: front-to-rear, rear-to-front.
    AssetTag string
    Unique asset tag.
    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
    DeviceCount double
    Number of devices in the rack.
    FacilityId string
    Locally-assigned facility identifier.
    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.
    GroupId double
    Id of the rack group.
    Id double
    NetBox id.
    LastUpdated string
    LocationId double
    Id of the location within the site.
    MaxWeight double
    Maximum load capacity (requires weight_unit). Must be a whole number.
    MountingDepth double
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    Name string
    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.
    PowerFeedCount double
    Number of power feeds in the rack.
    RackTypeId double
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    RoleId double
    Id of the rack role.
    Serial string
    Serial number.
    SiteId double
    Id of the site the rack belongs to.
    StartingUnit double
    Lowest unit number. Must be a whole number.
    Status string
    Operational status. One of: reserved, available, planned, active, deprecated.
    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.
    TenantId double
    Id of the tenant.
    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.
    ContactGroupId double
    Id of a contact group with a contact assigned to the rack.
    ContactId double
    Id of a contact assigned to the rack.
    ContactRoleId double
    Id of the role a contact is assigned to the rack with.
    CustomFieldFilters Dictionary<string, string>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    RegionId double
    Id of the region of the site.
    TagSlug string
    Slug of a tag the object carries.
    Airflow string
    Airflow direction. One of: front-to-rear, rear-to-front.
    AssetTag string
    Unique asset tag.
    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
    DeviceCount float64
    Number of devices in the rack.
    FacilityId string
    Locally-assigned facility identifier.
    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.
    GroupId float64
    Id of the rack group.
    Id float64
    NetBox id.
    LastUpdated string
    LocationId float64
    Id of the location within the site.
    MaxWeight float64
    Maximum load capacity (requires weight_unit). Must be a whole number.
    MountingDepth float64
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    Name string
    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.
    PowerFeedCount float64
    Number of power feeds in the rack.
    RackTypeId float64
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    RoleId float64
    Id of the rack role.
    Serial string
    Serial number.
    SiteId float64
    Id of the site the rack belongs to.
    StartingUnit float64
    Lowest unit number. Must be a whole number.
    Status string
    Operational status. One of: reserved, available, planned, active, deprecated.
    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.
    TenantId float64
    Id of the tenant.
    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.
    ContactGroupId float64
    Id of a contact group with a contact assigned to the rack.
    ContactId float64
    Id of a contact assigned to the rack.
    ContactRoleId float64
    Id of the role a contact is assigned to the rack with.
    CustomFieldFilters map[string]string
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    RegionId float64
    Id of the region of the site.
    TagSlug string
    Slug of a tag the object carries.
    airflow string
    Airflow direction. One of: front-to-rear, rear-to-front.
    asset_tag string
    Unique asset tag.
    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
    device_count number
    Number of devices in the rack.
    facility_id string
    Locally-assigned facility identifier.
    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.
    group_id number
    Id of the rack group.
    id number
    NetBox id.
    last_updated string
    location_id number
    Id of the location within the site.
    max_weight number
    Maximum load capacity (requires weight_unit). Must be a whole number.
    mounting_depth number
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    name string
    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.
    power_feed_count number
    Number of power feeds in the rack.
    rack_type_id number
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    role_id number
    Id of the rack role.
    serial string
    Serial number.
    site_id number
    Id of the site the rack belongs to.
    starting_unit number
    Lowest unit number. Must be a whole number.
    status string
    Operational status. One of: reserved, available, planned, active, deprecated.
    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.
    tenant_id number
    Id of the tenant.
    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.
    contact_group_id number
    Id of a contact group with a contact assigned to the rack.
    contact_id number
    Id of a contact assigned to the rack.
    contact_role_id number
    Id of the role a contact is assigned to the rack with.
    custom_field_filters map(string)
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    region_id number
    Id of the region of the site.
    tag_slug string
    Slug of a tag the object carries.
    airflow String
    Airflow direction. One of: front-to-rear, rear-to-front.
    assetTag String
    Unique asset tag.
    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
    deviceCount Double
    Number of devices in the rack.
    facilityId String
    Locally-assigned facility identifier.
    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.
    groupId Double
    Id of the rack group.
    id Double
    NetBox id.
    lastUpdated String
    locationId Double
    Id of the location within the site.
    maxWeight Double
    Maximum load capacity (requires weight_unit). Must be a whole number.
    mountingDepth Double
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    name String
    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.
    powerFeedCount Double
    Number of power feeds in the rack.
    rackTypeId Double
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    roleId Double
    Id of the rack role.
    serial String
    Serial number.
    siteId Double
    Id of the site the rack belongs to.
    startingUnit Double
    Lowest unit number. Must be a whole number.
    status String
    Operational status. One of: reserved, available, planned, active, deprecated.
    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.
    tenantId Double
    Id of the tenant.
    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.
    contactGroupId Double
    Id of a contact group with a contact assigned to the rack.
    contactId Double
    Id of a contact assigned to the rack.
    contactRoleId Double
    Id of the role a contact is assigned to the rack with.
    customFieldFilters Map<String,String>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    regionId Double
    Id of the region of the site.
    tagSlug String
    Slug of a tag the object carries.
    airflow string
    Airflow direction. One of: front-to-rear, rear-to-front.
    assetTag string
    Unique asset tag.
    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
    deviceCount number
    Number of devices in the rack.
    facilityId string
    Locally-assigned facility identifier.
    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.
    groupId number
    Id of the rack group.
    id number
    NetBox id.
    lastUpdated string
    locationId number
    Id of the location within the site.
    maxWeight number
    Maximum load capacity (requires weight_unit). Must be a whole number.
    mountingDepth number
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    name string
    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.
    powerFeedCount number
    Number of power feeds in the rack.
    rackTypeId number
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    roleId number
    Id of the rack role.
    serial string
    Serial number.
    siteId number
    Id of the site the rack belongs to.
    startingUnit number
    Lowest unit number. Must be a whole number.
    status string
    Operational status. One of: reserved, available, planned, active, deprecated.
    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.
    tenantId number
    Id of the tenant.
    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.
    contactGroupId number
    Id of a contact group with a contact assigned to the rack.
    contactId number
    Id of a contact assigned to the rack.
    contactRoleId number
    Id of the role a contact is assigned to the rack with.
    customFieldFilters {[key: string]: string}
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    regionId number
    Id of the region of the site.
    tagSlug string
    Slug of a tag the object carries.
    airflow str
    Airflow direction. One of: front-to-rear, rear-to-front.
    asset_tag str
    Unique asset tag.
    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
    device_count float
    Number of devices in the rack.
    facility_id str
    Locally-assigned facility identifier.
    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.
    group_id float
    Id of the rack group.
    id float
    NetBox id.
    last_updated str
    location_id float
    Id of the location within the site.
    max_weight float
    Maximum load capacity (requires weight_unit). Must be a whole number.
    mounting_depth float
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    name str
    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.
    power_feed_count float
    Number of power feeds in the rack.
    rack_type_id float
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    role_id float
    Id of the rack role.
    serial str
    Serial number.
    site_id float
    Id of the site the rack belongs to.
    starting_unit float
    Lowest unit number. Must be a whole number.
    status str
    Operational status. One of: reserved, available, planned, active, deprecated.
    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.
    tenant_id float
    Id of the tenant.
    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.
    contact_group_id float
    Id of a contact group with a contact assigned to the rack.
    contact_id float
    Id of a contact assigned to the rack.
    contact_role_id float
    Id of the role a contact is assigned to the rack with.
    custom_field_filters Mapping[str, str]
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    region_id float
    Id of the region of the site.
    tag_slug str
    Slug of a tag the object carries.
    airflow String
    Airflow direction. One of: front-to-rear, rear-to-front.
    assetTag String
    Unique asset tag.
    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
    deviceCount Number
    Number of devices in the rack.
    facilityId String
    Locally-assigned facility identifier.
    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.
    groupId Number
    Id of the rack group.
    id Number
    NetBox id.
    lastUpdated String
    locationId Number
    Id of the location within the site.
    maxWeight Number
    Maximum load capacity (requires weight_unit). Must be a whole number.
    mountingDepth Number
    Maximum depth of a mounted device in millimeters. Must be a whole number.
    name String
    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.
    powerFeedCount Number
    Number of power feeds in the rack.
    rackTypeId Number
    Id of the rack type. NetBox copies the type's form factor, width, height and outer dimensions onto the rack; set the same values here too, or the next plan shows them as drift.
    roleId Number
    Id of the rack role.
    serial String
    Serial number.
    siteId Number
    Id of the site the rack belongs to.
    startingUnit Number
    Lowest unit number. Must be a whole number.
    status String
    Operational status. One of: reserved, available, planned, active, deprecated.
    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.
    tenantId Number
    Id of the tenant.
    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.
    contactGroupId Number
    Id of a contact group with a contact assigned to the rack.
    contactId Number
    Id of a contact assigned to the rack.
    contactRoleId Number
    Id of the role a contact is assigned to the rack with.
    customFieldFilters Map<String>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    regionId Number
    Id of the region of the site.
    tagSlug String
    Slug of a tag the object carries.

    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