published on Wednesday, Nov 4, 2026 by e-breuninger
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 dictionarydata "netbox_get_rack" "name" {
# arguments
}The following arguments are supported:
- Asset
Tag string - Unique asset tag.
- Contact
Group doubleId - Id of a contact group with a contact assigned to the rack.
- Contact
Id double - Id of a contact assigned to the rack.
- Contact
Role doubleId - Id of the role a contact is assigned to the rack with.
- Custom
Field Dictionary<string, string>Filters - 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 double
- NetBox id.
- Location
Id double - Id of the location within the site.
- Max
Weight double - Maximum load capacity (requires weight_unit). Must be a whole number.
- Mounting
Depth double - Maximum depth of a mounted device in millimeters. Must be a whole number.
- Name string
- Outer
Depth double - Outer depth (requires outer_unit). Must be a whole number.
- Outer
Unit string - Unit of the outer dimensions. One of: mm, in.
- Outer
Width double - Outer width (requires outer_unit). Must be a whole number.
- Owner
Id double - Id of the owner the object is assigned to.
- Rack
Type doubleId - 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 double - Id of the region of the site.
- Role
Id double - Id of the rack role.
- Serial string
- Serial number.
- Site
Id double - Id of the site the rack belongs to.
- Status string
- Operational status. One of: reserved, available, planned, active, deprecated.
- string
- Slug of a tag the object carries.
- Tenant
Id 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).
- Weight
Unit string - Unit of weight and max_weight. One of: kg, g, lb, oz.
- Width double
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- Asset
Tag string - Unique asset tag.
- Contact
Group float64Id - Id of a contact group with a contact assigned to the rack.
- Contact
Id float64 - Id of a contact assigned to the rack.
- Contact
Role float64Id - Id of the role a contact is assigned to the rack with.
- Custom
Field map[string]stringFilters - 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 float64
- NetBox id.
- Location
Id float64 - Id of the location within the site.
- Max
Weight float64 - Maximum load capacity (requires weight_unit). Must be a whole number.
- Mounting
Depth float64 - Maximum depth of a mounted device in millimeters. Must be a whole number.
- Name string
- Outer
Depth float64 - Outer depth (requires outer_unit). Must be a whole number.
- Outer
Unit string - Unit of the outer dimensions. One of: mm, in.
- Outer
Width float64 - Outer width (requires outer_unit). Must be a whole number.
- Owner
Id float64 - Id of the owner the object is assigned to.
- Rack
Type float64Id - 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 float64 - Id of the region of the site.
- Role
Id float64 - Id of the rack role.
- Serial string
- Serial number.
- Site
Id float64 - Id of the site the rack belongs to.
- Status string
- Operational status. One of: reserved, available, planned, active, deprecated.
- string
- Slug of a tag the object carries.
- Tenant
Id 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).
- Weight
Unit string - Unit of weight and max_weight. One of: kg, g, lb, oz.
- Width float64
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- asset_
tag string - Unique asset tag.
- contact_
group_ numberid - 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_ numberid - Id of the role a contact is assigned to the rack with.
- custom_
field_ map(string)filters - 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_ numberid - 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.
- asset
Tag String - Unique asset tag.
- contact
Group DoubleId - Id of a contact group with a contact assigned to the rack.
- contact
Id Double - Id of a contact assigned to the rack.
- contact
Role DoubleId - Id of the role a contact is assigned to the rack with.
- custom
Field Map<String,String>Filters - 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 Boolean - Units are numbered top-to-bottom.
- facility
Id String - Locally-assigned facility identifier.
- id Double
- NetBox id.
- location
Id Double - Id of the location within the site.
- max
Weight Double - Maximum load capacity (requires weight_unit). Must be a whole number.
- mounting
Depth Double - Maximum depth of a mounted device in millimeters. Must be a whole number.
- name String
- outer
Depth Double - Outer depth (requires outer_unit). Must be a whole number.
- outer
Unit String - Unit of the outer dimensions. One of: mm, in.
- outer
Width Double - Outer width (requires outer_unit). Must be a whole number.
- owner
Id Double - Id of the owner the object is assigned to.
- rack
Type DoubleId - 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 Double - Id of the region of the site.
- role
Id Double - Id of the rack role.
- serial String
- Serial number.
- site
Id Double - Id of the site the rack belongs to.
- status String
- Operational status. One of: reserved, available, planned, active, deprecated.
- String
- Slug of a tag the object carries.
- tenant
Id Double - Id of the tenant.
- u
Height Double - Height in rack units. Must be a whole number.
- weight Double
- Weight of the rack (requires weight_unit).
- weight
Unit String - Unit of weight and max_weight. One of: kg, g, lb, oz.
- width Double
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- asset
Tag string - Unique asset tag.
- contact
Group numberId - 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 numberId - Id of the role a contact is assigned to the rack with.
- custom
Field {[key: string]: string}Filters - 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 boolean - 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 numberId - 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.
- 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.
- asset_
tag str - Unique asset tag.
- contact_
group_ floatid - 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_ floatid - Id of the role a contact is assigned to the rack with.
- custom_
field_ Mapping[str, str]filters - 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_ floatid - 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.
- asset
Tag String - Unique asset tag.
- contact
Group NumberId - 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 NumberId - Id of the role a contact is assigned to the rack with.
- custom
Field Map<String>Filters - 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 Boolean - 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 NumberId - 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.
- 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.
getRack Result
The following output properties are available:
- Airflow string
- Airflow direction. One of: front-to-rear, rear-to-front.
- Asset
Tag string - Unique asset tag.
- Comments string
- Created string
- Custom
Fields Dictionary<string, string> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- Desc
Units bool - Units are numbered top-to-bottom.
- Description string
- Device
Count double - 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 double - Id of the rack group.
- Id double
- NetBox id.
- Last
Updated string - Location
Id double - Id of the location within the site.
- Max
Weight double - Maximum load capacity (requires weight_unit). Must be a whole number.
- Mounting
Depth double - Maximum depth of a mounted device in millimeters. Must be a whole number.
- Name string
- Outer
Depth double - Outer depth (requires outer_unit). Must be a whole number.
- Outer
Height double - Outer height (requires outer_unit). Must be a whole number.
- Outer
Unit string - Unit of the outer dimensions. One of: mm, in.
- Outer
Width double - Outer width (requires outer_unit). Must be a whole number.
- Owner
Id double - Id of the owner the object is assigned to.
- Power
Feed doubleCount - Number of power feeds in the rack.
- Rack
Type doubleId - 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 double - Id of the rack role.
- Serial string
- Serial number.
- Site
Id double - Id of the site the rack belongs to.
- Starting
Unit double - Lowest unit number. Must be a whole number.
- Status string
- Operational status. One of: reserved, available, planned, active, deprecated.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<string>
- Slugs of all tags on the object, including the provider's default_tags.
- Tenant
Id 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).
- Weight
Unit string - Unit of weight and max_weight. One of: kg, g, lb, oz.
- Width double
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- Contact
Group doubleId - Id of a contact group with a contact assigned to the rack.
- Contact
Id double - Id of a contact assigned to the rack.
- Contact
Role doubleId - Id of the role a contact is assigned to the rack with.
- Custom
Field Dictionary<string, string>Filters - 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 double - Id of the region of the site.
- 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]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 float64 - 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 float64 - Id of the rack group.
- Id float64
- NetBox id.
- Last
Updated string - Location
Id float64 - Id of the location within the site.
- Max
Weight float64 - Maximum load capacity (requires weight_unit). Must be a whole number.
- Mounting
Depth float64 - Maximum depth of a mounted device in millimeters. Must be a whole number.
- Name string
- Outer
Depth float64 - Outer depth (requires outer_unit). Must be a whole number.
- Outer
Height float64 - Outer height (requires outer_unit). Must be a whole number.
- Outer
Unit string - Unit of the outer dimensions. One of: mm, in.
- Outer
Width float64 - Outer width (requires outer_unit). Must be a whole number.
- Owner
Id float64 - Id of the owner the object is assigned to.
- Power
Feed float64Count - Number of power feeds in the rack.
- Rack
Type float64Id - 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 float64 - Id of the rack role.
- Serial string
- Serial number.
- Site
Id float64 - Id of the site the rack belongs to.
- Starting
Unit float64 - Lowest unit number. Must be a whole number.
- Status string
- Operational status. One of: reserved, available, planned, active, deprecated.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- []string
- Slugs of all tags on the object, including the provider's default_tags.
- Tenant
Id 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).
- Weight
Unit string - Unit of weight and max_weight. One of: kg, g, lb, oz.
- Width float64
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- Contact
Group float64Id - Id of a contact group with a contact assigned to the rack.
- Contact
Id float64 - Id of a contact assigned to the rack.
- Contact
Role float64Id - Id of the role a contact is assigned to the rack with.
- Custom
Field map[string]stringFilters - 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 float64 - Id of the region of the site.
- 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_ numbercount - Number of power feeds in the rack.
- rack_
type_ numberid - 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.
- list(string)
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- list(string)
- Slugs of all tags on the object, including the provider's default_tags.
- 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_ numberid - 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_ numberid - Id of the role a contact is assigned to the rack with.
- custom_
field_ map(string)filters - 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.
- asset
Tag String - Unique asset tag.
- comments String
- created String
- custom
Fields Map<String,String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- desc
Units Boolean - Units are numbered top-to-bottom.
- description String
- device
Count Double - 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 Double - Id of the rack group.
- id Double
- NetBox id.
- last
Updated String - location
Id Double - Id of the location within the site.
- max
Weight Double - Maximum load capacity (requires weight_unit). Must be a whole number.
- mounting
Depth Double - Maximum depth of a mounted device in millimeters. Must be a whole number.
- name String
- outer
Depth Double - Outer depth (requires outer_unit). Must be a whole number.
- outer
Height Double - Outer height (requires outer_unit). Must be a whole number.
- outer
Unit String - Unit of the outer dimensions. One of: mm, in.
- outer
Width Double - Outer width (requires outer_unit). Must be a whole number.
- owner
Id Double - Id of the owner the object is assigned to.
- power
Feed DoubleCount - Number of power feeds in the rack.
- rack
Type DoubleId - 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 Double - Id of the rack role.
- serial String
- Serial number.
- site
Id Double - Id of the site the rack belongs to.
- starting
Unit Double - Lowest unit number. Must be a whole number.
- status String
- Operational status. One of: reserved, available, planned, active, deprecated.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- tenant
Id Double - Id of the tenant.
- u
Height Double - Height in rack units. Must be a whole number.
- url String
- weight Double
- Weight of the rack (requires weight_unit).
- weight
Unit String - Unit of weight and max_weight. One of: kg, g, lb, oz.
- width Double
- Rail-to-rail width in inches. One of: 10, 19, 21, 23.
- contact
Group DoubleId - Id of a contact group with a contact assigned to the rack.
- contact
Id Double - Id of a contact assigned to the rack.
- contact
Role DoubleId - Id of the role a contact is assigned to the rack with.
- custom
Field Map<String,String>Filters - 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 Double - Id of the region of the site.
- 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 {[key: string]: string} - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- desc
Units boolean - Units are numbered top-to-bottom.
- description string
- 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 numberCount - Number of power feeds in the rack.
- rack
Type numberId - 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.
- string[]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- string[]
- Slugs of all tags on the object, including the provider's default_tags.
- 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 numberId - 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 numberId - Id of the role a contact is assigned to the rack with.
- custom
Field {[key: string]: string}Filters - 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.
- 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_ floatcount - Number of power feeds in the rack.
- rack_
type_ floatid - 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.
- Sequence[str]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Sequence[str]
- Slugs of all tags on the object, including the provider's default_tags.
- 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_ floatid - 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_ floatid - Id of the role a contact is assigned to the rack with.
- custom_
field_ Mapping[str, str]filters - 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.
- 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 Boolean - 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 NumberCount - Number of power feeds in the rack.
- rack
Type NumberId - 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.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- 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 NumberId - 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 NumberId - Id of the role a contact is assigned to the rack with.
- custom
Field Map<String>Filters - 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.
- 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
netboxTerraform Provider.
published on Wednesday, Nov 4, 2026 by e-breuninger