published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger
A physical device (dcim.device). primary_ip4_id/primary_ip6_id are set through netbox_primary_ip.
From the official documentation:
Every piece of hardware which is installed within a site or rack exists in NetBox as a device. Devices are measured in rack units (U) and can be half depth or full depth. A device may have a height of 0U: These devices do not consume vertical rack space and cannot be assigned to a particular rack unit. A common example of a 0U device is a vertically-mounted PDU.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = netbox.getDevice({
name: "test-device",
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_device(name="test-device")
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.LookupDevice(ctx, &netbox.LookupDeviceArgs{
Name: pulumi.StringRef("test-device"),
}, 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.GetDevice.Invoke(new()
{
Name = "test-device",
});
});
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.GetDeviceArgs;
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.getDevice(GetDeviceArgs.builder()
.name("test-device")
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getDevice
arguments:
name: test-device
Example coming soon!
Using getDevice
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 getDevice(args: GetDeviceArgs, opts?: InvokeOptions): Promise<GetDeviceResult>
function getDeviceOutput(args: GetDeviceOutputArgs, opts?: InvokeOutputOptions): Output<GetDeviceResult>def get_device(asset_tag: Optional[str] = None,
cluster_id: Optional[float] = None,
custom_field_filters: Optional[Mapping[str, str]] = None,
device_type_id: Optional[float] = None,
id: Optional[float] = None,
location_id: Optional[float] = None,
name: Optional[str] = None,
owner_id: Optional[float] = None,
platform_id: Optional[float] = None,
rack_id: Optional[float] = None,
region_slug: Optional[str] = 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,
opts: Optional[InvokeOptions] = None) -> GetDeviceResult
def get_device_output(asset_tag: pulumi.Input[Optional[str]] = None,
cluster_id: pulumi.Input[Optional[float]] = None,
custom_field_filters: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
device_type_id: pulumi.Input[Optional[float]] = None,
id: pulumi.Input[Optional[float]] = None,
location_id: pulumi.Input[Optional[float]] = None,
name: pulumi.Input[Optional[str]] = None,
owner_id: pulumi.Input[Optional[float]] = None,
platform_id: pulumi.Input[Optional[float]] = None,
rack_id: pulumi.Input[Optional[float]] = None,
region_slug: pulumi.Input[Optional[str]] = 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,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetDeviceResult]func LookupDevice(ctx *Context, args *LookupDeviceArgs, opts ...InvokeOption) (*LookupDeviceResult, error)
func LookupDeviceOutput(ctx *Context, args *LookupDeviceOutputArgs, opts ...InvokeOption) LookupDeviceResultOutput> Note: This function is named LookupDevice in the Go SDK.
public static class GetDevice
{
public static Task<GetDeviceResult> InvokeAsync(GetDeviceArgs args, InvokeOptions? opts = null)
public static Output<GetDeviceResult> Invoke(GetDeviceInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetDeviceResult> Invoke(GetDeviceInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetDeviceResult> getDevice(GetDeviceArgs args, InvokeOptions options)
public static Output<GetDeviceResult> getDevice(GetDeviceArgs args, InvokeOptions options)
public static Output<GetDeviceResult> getDevice(GetDeviceArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getDevice:getDevice
arguments:
# arguments dictionarydata "netbox_get_device" "name" {
# arguments
}The following arguments are supported:
- Asset
Tag string - Unique asset tag.
- Cluster
Id double - Id of the virtualization cluster the device hosts.
- 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.
- Device
Type doubleId - Id of the device type.
- Id double
- NetBox id.
- Location
Id double - Id of the location within the site.
- Name string
- Device name; NetBox allows unnamed devices.
- Owner
Id double - Id of the owner the object is assigned to.
- Platform
Id double - Id of the platform.
- Rack
Id double - Id of the rack.
- Region
Slug string - Slug of the region of the site.
- Role
Id double - Id of the device role.
- Serial string
- Chassis serial number.
- Site
Id double - Id of the site.
- Status string
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- string
- Slug of a tag the object carries.
- Tenant
Id double - Id of the tenant.
- Asset
Tag string - Unique asset tag.
- Cluster
Id float64 - Id of the virtualization cluster the device hosts.
- 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.
- Device
Type float64Id - Id of the device type.
- Id float64
- NetBox id.
- Location
Id float64 - Id of the location within the site.
- Name string
- Device name; NetBox allows unnamed devices.
- Owner
Id float64 - Id of the owner the object is assigned to.
- Platform
Id float64 - Id of the platform.
- Rack
Id float64 - Id of the rack.
- Region
Slug string - Slug of the region of the site.
- Role
Id float64 - Id of the device role.
- Serial string
- Chassis serial number.
- Site
Id float64 - Id of the site.
- Status string
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- string
- Slug of a tag the object carries.
- Tenant
Id float64 - Id of the tenant.
- asset_
tag string - Unique asset tag.
- cluster_
id number - Id of the virtualization cluster the device hosts.
- 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.
- device_
type_ numberid - Id of the device type.
- id number
- NetBox id.
- location_
id number - Id of the location within the site.
- name string
- Device name; NetBox allows unnamed devices.
- owner_
id number - Id of the owner the object is assigned to.
- platform_
id number - Id of the platform.
- rack_
id number - Id of the rack.
- region_
slug string - Slug of the region of the site.
- role_
id number - Id of the device role.
- serial string
- Chassis serial number.
- site_
id number - Id of the site.
- status string
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- tag_
slug string - Slug of a tag the object carries.
- tenant_
id number - Id of the tenant.
- asset
Tag String - Unique asset tag.
- cluster
Id Double - Id of the virtualization cluster the device hosts.
- 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.
- device
Type DoubleId - Id of the device type.
- id Double
- NetBox id.
- location
Id Double - Id of the location within the site.
- name String
- Device name; NetBox allows unnamed devices.
- owner
Id Double - Id of the owner the object is assigned to.
- platform
Id Double - Id of the platform.
- rack
Id Double - Id of the rack.
- region
Slug String - Slug of the region of the site.
- role
Id Double - Id of the device role.
- serial String
- Chassis serial number.
- site
Id Double - Id of the site.
- status String
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- String
- Slug of a tag the object carries.
- tenant
Id Double - Id of the tenant.
- asset
Tag string - Unique asset tag.
- cluster
Id number - Id of the virtualization cluster the device hosts.
- 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.
- device
Type numberId - Id of the device type.
- id number
- NetBox id.
- location
Id number - Id of the location within the site.
- name string
- Device name; NetBox allows unnamed devices.
- owner
Id number - Id of the owner the object is assigned to.
- platform
Id number - Id of the platform.
- rack
Id number - Id of the rack.
- region
Slug string - Slug of the region of the site.
- role
Id number - Id of the device role.
- serial string
- Chassis serial number.
- site
Id number - Id of the site.
- status string
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- string
- Slug of a tag the object carries.
- tenant
Id number - Id of the tenant.
- asset_
tag str - Unique asset tag.
- cluster_
id float - Id of the virtualization cluster the device hosts.
- 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.
- device_
type_ floatid - Id of the device type.
- id float
- NetBox id.
- location_
id float - Id of the location within the site.
- name str
- Device name; NetBox allows unnamed devices.
- owner_
id float - Id of the owner the object is assigned to.
- platform_
id float - Id of the platform.
- rack_
id float - Id of the rack.
- region_
slug str - Slug of the region of the site.
- role_
id float - Id of the device role.
- serial str
- Chassis serial number.
- site_
id float - Id of the site.
- status str
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- tag_
slug str - Slug of a tag the object carries.
- tenant_
id float - Id of the tenant.
- asset
Tag String - Unique asset tag.
- cluster
Id Number - Id of the virtualization cluster the device hosts.
- 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.
- device
Type NumberId - Id of the device type.
- id Number
- NetBox id.
- location
Id Number - Id of the location within the site.
- name String
- Device name; NetBox allows unnamed devices.
- owner
Id Number - Id of the owner the object is assigned to.
- platform
Id Number - Id of the platform.
- rack
Id Number - Id of the rack.
- region
Slug String - Slug of the region of the site.
- role
Id Number - Id of the device role.
- serial String
- Chassis serial number.
- site
Id Number - Id of the site.
- status String
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- String
- Slug of a tag the object carries.
- tenant
Id Number - Id of the tenant.
getDevice Result
The following output properties are available:
- Airflow string
- One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
- Asset
Tag string - Unique asset tag.
- Cluster
Id double - Id of the virtualization cluster the device hosts.
- Comments string
- Config
Context string - Rendered config context (localcontextdata merged with the context assigned through cluster, platform, role, site, tenant and tags) as JSON text, decode with jsondecode().
- Config
Template doubleId - Id of the config template.
- Console
Port doubleCount - Number of console ports on the device.
- Console
Server doublePort Count - Number of console server ports on the device.
- 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).
- Description string
- Device
Bay doubleCount - Number of device bays on the device.
- Device
Type doubleId - Id of the device type.
- Front
Port doubleCount - Number of front ports on the device.
- Id double
- NetBox id.
- Interface
Count double - Number of interfaces on the device.
- Inventory
Item doubleCount - Number of inventory items on the device.
- Last
Updated string - Latitude double
- GPS coordinate in decimal format (xx.yyyyyy).
- Local
Context stringData - Local config context data as JSON text (use jsonencode()).
- Location
Id double - Id of the location within the site.
- Longitude double
- GPS coordinate in decimal format (xx.yyyyyy).
- Module
Bay doubleCount - Number of module bays on the device.
- Name string
- Device name; NetBox allows unnamed devices.
- Oob
Ip doubleId - Id of the out-of-band management IP address (managed by netboxdeviceoob_ip).
- Owner
Id double - Id of the owner the object is assigned to.
- Platform
Id double - Id of the platform.
- Power
Outlet doubleCount - Number of power outlets on the device.
- Power
Port doubleCount - Number of power ports on the device.
- Primary
Ip4Id double - Id of the primary IPv4 address (managed by netboxprimaryip).
- Primary
Ip6Id double - Id of the primary IPv6 address (managed by netboxprimaryip).
- Rack
Face string - Rack face the device is mounted on. One of: front, rear.
- Rack
Id double - Id of the rack.
- Rack
Position double - Lowest rack unit occupied by the device; half units (e.g. 1.5) are allowed.
- Rear
Port doubleCount - Number of rear ports on the device.
- Role
Id double - Id of the device role.
- Serial string
- Chassis serial number.
- Site
Id double - Id of the site.
- Status string
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- 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.
- Url string
- Virtual
Chassis doubleId - Id of the virtual chassis.
- Virtual
Chassis doublePosition - Position in the virtual chassis (0-255). Must be a whole number.
- Virtual
Chassis doublePriority - Master election priority in the virtual chassis (0-255). Must be a whole number.
- 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
Slug string - Slug of the region of the site.
- string
- Slug of a tag the object carries.
- Airflow string
- One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
- Asset
Tag string - Unique asset tag.
- Cluster
Id float64 - Id of the virtualization cluster the device hosts.
- Comments string
- Config
Context string - Rendered config context (localcontextdata merged with the context assigned through cluster, platform, role, site, tenant and tags) as JSON text, decode with jsondecode().
- Config
Template float64Id - Id of the config template.
- Console
Port float64Count - Number of console ports on the device.
- Console
Server float64Port Count - Number of console server ports on the device.
- 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).
- Description string
- Device
Bay float64Count - Number of device bays on the device.
- Device
Type float64Id - Id of the device type.
- Front
Port float64Count - Number of front ports on the device.
- Id float64
- NetBox id.
- Interface
Count float64 - Number of interfaces on the device.
- Inventory
Item float64Count - Number of inventory items on the device.
- Last
Updated string - Latitude float64
- GPS coordinate in decimal format (xx.yyyyyy).
- Local
Context stringData - Local config context data as JSON text (use jsonencode()).
- Location
Id float64 - Id of the location within the site.
- Longitude float64
- GPS coordinate in decimal format (xx.yyyyyy).
- Module
Bay float64Count - Number of module bays on the device.
- Name string
- Device name; NetBox allows unnamed devices.
- Oob
Ip float64Id - Id of the out-of-band management IP address (managed by netboxdeviceoob_ip).
- Owner
Id float64 - Id of the owner the object is assigned to.
- Platform
Id float64 - Id of the platform.
- Power
Outlet float64Count - Number of power outlets on the device.
- Power
Port float64Count - Number of power ports on the device.
- Primary
Ip4Id float64 - Id of the primary IPv4 address (managed by netboxprimaryip).
- Primary
Ip6Id float64 - Id of the primary IPv6 address (managed by netboxprimaryip).
- Rack
Face string - Rack face the device is mounted on. One of: front, rear.
- Rack
Id float64 - Id of the rack.
- Rack
Position float64 - Lowest rack unit occupied by the device; half units (e.g. 1.5) are allowed.
- Rear
Port float64Count - Number of rear ports on the device.
- Role
Id float64 - Id of the device role.
- Serial string
- Chassis serial number.
- Site
Id float64 - Id of the site.
- Status string
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- []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.
- Url string
- Virtual
Chassis float64Id - Id of the virtual chassis.
- Virtual
Chassis float64Position - Position in the virtual chassis (0-255). Must be a whole number.
- Virtual
Chassis float64Priority - Master election priority in the virtual chassis (0-255). Must be a whole number.
- 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
Slug string - Slug of the region of the site.
- string
- Slug of a tag the object carries.
- airflow string
- One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
- asset_
tag string - Unique asset tag.
- cluster_
id number - Id of the virtualization cluster the device hosts.
- comments string
- config_
context string - Rendered config context (localcontextdata merged with the context assigned through cluster, platform, role, site, tenant and tags) as JSON text, decode with jsondecode().
- config_
template_ numberid - Id of the config template.
- console_
port_ numbercount - Number of console ports on the device.
- console_
server_ numberport_ count - Number of console server ports on the device.
- 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).
- description string
- device_
bay_ numbercount - Number of device bays on the device.
- device_
type_ numberid - Id of the device type.
- front_
port_ numbercount - Number of front ports on the device.
- id number
- NetBox id.
- interface_
count number - Number of interfaces on the device.
- inventory_
item_ numbercount - Number of inventory items on the device.
- last_
updated string - latitude number
- GPS coordinate in decimal format (xx.yyyyyy).
- local_
context_ stringdata - Local config context data as JSON text (use jsonencode()).
- location_
id number - Id of the location within the site.
- longitude number
- GPS coordinate in decimal format (xx.yyyyyy).
- module_
bay_ numbercount - Number of module bays on the device.
- name string
- Device name; NetBox allows unnamed devices.
- oob_
ip_ numberid - Id of the out-of-band management IP address (managed by netboxdeviceoob_ip).
- owner_
id number - Id of the owner the object is assigned to.
- platform_
id number - Id of the platform.
- power_
outlet_ numbercount - Number of power outlets on the device.
- power_
port_ numbercount - Number of power ports on the device.
- primary_
ip4_ numberid - Id of the primary IPv4 address (managed by netboxprimaryip).
- primary_
ip6_ numberid - Id of the primary IPv6 address (managed by netboxprimaryip).
- rack_
face string - Rack face the device is mounted on. One of: front, rear.
- rack_
id number - Id of the rack.
- rack_
position number - Lowest rack unit occupied by the device; half units (e.g. 1.5) are allowed.
- rear_
port_ numbercount - Number of rear ports on the device.
- role_
id number - Id of the device role.
- serial string
- Chassis serial number.
- site_
id number - Id of the site.
- status string
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- 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.
- url string
- virtual_
chassis_ numberid - Id of the virtual chassis.
- virtual_
chassis_ numberposition - Position in the virtual chassis (0-255). Must be a whole number.
- virtual_
chassis_ numberpriority - Master election priority in the virtual chassis (0-255). Must be a whole number.
- 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_
slug string - Slug of the region of the site.
- tag_
slug string - Slug of a tag the object carries.
- airflow String
- One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
- asset
Tag String - Unique asset tag.
- cluster
Id Double - Id of the virtualization cluster the device hosts.
- comments String
- config
Context String - Rendered config context (localcontextdata merged with the context assigned through cluster, platform, role, site, tenant and tags) as JSON text, decode with jsondecode().
- config
Template DoubleId - Id of the config template.
- console
Port DoubleCount - Number of console ports on the device.
- console
Server DoublePort Count - Number of console server ports on the device.
- 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).
- description String
- device
Bay DoubleCount - Number of device bays on the device.
- device
Type DoubleId - Id of the device type.
- front
Port DoubleCount - Number of front ports on the device.
- id Double
- NetBox id.
- interface
Count Double - Number of interfaces on the device.
- inventory
Item DoubleCount - Number of inventory items on the device.
- last
Updated String - latitude Double
- GPS coordinate in decimal format (xx.yyyyyy).
- local
Context StringData - Local config context data as JSON text (use jsonencode()).
- location
Id Double - Id of the location within the site.
- longitude Double
- GPS coordinate in decimal format (xx.yyyyyy).
- module
Bay DoubleCount - Number of module bays on the device.
- name String
- Device name; NetBox allows unnamed devices.
- oob
Ip DoubleId - Id of the out-of-band management IP address (managed by netboxdeviceoob_ip).
- owner
Id Double - Id of the owner the object is assigned to.
- platform
Id Double - Id of the platform.
- power
Outlet DoubleCount - Number of power outlets on the device.
- power
Port DoubleCount - Number of power ports on the device.
- primary
Ip4Id Double - Id of the primary IPv4 address (managed by netboxprimaryip).
- primary
Ip6Id Double - Id of the primary IPv6 address (managed by netboxprimaryip).
- rack
Face String - Rack face the device is mounted on. One of: front, rear.
- rack
Id Double - Id of the rack.
- rack
Position Double - Lowest rack unit occupied by the device; half units (e.g. 1.5) are allowed.
- rear
Port DoubleCount - Number of rear ports on the device.
- role
Id Double - Id of the device role.
- serial String
- Chassis serial number.
- site
Id Double - Id of the site.
- status String
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- 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.
- url String
- virtual
Chassis DoubleId - Id of the virtual chassis.
- virtual
Chassis DoublePosition - Position in the virtual chassis (0-255). Must be a whole number.
- virtual
Chassis DoublePriority - Master election priority in the virtual chassis (0-255). Must be a whole number.
- 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
Slug String - Slug of the region of the site.
- String
- Slug of a tag the object carries.
- airflow string
- One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
- asset
Tag string - Unique asset tag.
- cluster
Id number - Id of the virtualization cluster the device hosts.
- comments string
- config
Context string - Rendered config context (localcontextdata merged with the context assigned through cluster, platform, role, site, tenant and tags) as JSON text, decode with jsondecode().
- config
Template numberId - Id of the config template.
- console
Port numberCount - Number of console ports on the device.
- console
Server numberPort Count - Number of console server ports on the device.
- 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).
- description string
- device
Bay numberCount - Number of device bays on the device.
- device
Type numberId - Id of the device type.
- front
Port numberCount - Number of front ports on the device.
- id number
- NetBox id.
- interface
Count number - Number of interfaces on the device.
- inventory
Item numberCount - Number of inventory items on the device.
- last
Updated string - latitude number
- GPS coordinate in decimal format (xx.yyyyyy).
- local
Context stringData - Local config context data as JSON text (use jsonencode()).
- location
Id number - Id of the location within the site.
- longitude number
- GPS coordinate in decimal format (xx.yyyyyy).
- module
Bay numberCount - Number of module bays on the device.
- name string
- Device name; NetBox allows unnamed devices.
- oob
Ip numberId - Id of the out-of-band management IP address (managed by netboxdeviceoob_ip).
- owner
Id number - Id of the owner the object is assigned to.
- platform
Id number - Id of the platform.
- power
Outlet numberCount - Number of power outlets on the device.
- power
Port numberCount - Number of power ports on the device.
- primary
Ip4Id number - Id of the primary IPv4 address (managed by netboxprimaryip).
- primary
Ip6Id number - Id of the primary IPv6 address (managed by netboxprimaryip).
- rack
Face string - Rack face the device is mounted on. One of: front, rear.
- rack
Id number - Id of the rack.
- rack
Position number - Lowest rack unit occupied by the device; half units (e.g. 1.5) are allowed.
- rear
Port numberCount - Number of rear ports on the device.
- role
Id number - Id of the device role.
- serial string
- Chassis serial number.
- site
Id number - Id of the site.
- status string
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- 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.
- url string
- virtual
Chassis numberId - Id of the virtual chassis.
- virtual
Chassis numberPosition - Position in the virtual chassis (0-255). Must be a whole number.
- virtual
Chassis numberPriority - Master election priority in the virtual chassis (0-255). Must be a whole number.
- 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
Slug string - Slug of the region of the site.
- string
- Slug of a tag the object carries.
- airflow str
- One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
- asset_
tag str - Unique asset tag.
- cluster_
id float - Id of the virtualization cluster the device hosts.
- comments str
- config_
context str - Rendered config context (localcontextdata merged with the context assigned through cluster, platform, role, site, tenant and tags) as JSON text, decode with jsondecode().
- config_
template_ floatid - Id of the config template.
- console_
port_ floatcount - Number of console ports on the device.
- console_
server_ floatport_ count - Number of console server ports on the device.
- 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).
- description str
- device_
bay_ floatcount - Number of device bays on the device.
- device_
type_ floatid - Id of the device type.
- front_
port_ floatcount - Number of front ports on the device.
- id float
- NetBox id.
- interface_
count float - Number of interfaces on the device.
- inventory_
item_ floatcount - Number of inventory items on the device.
- last_
updated str - latitude float
- GPS coordinate in decimal format (xx.yyyyyy).
- local_
context_ strdata - Local config context data as JSON text (use jsonencode()).
- location_
id float - Id of the location within the site.
- longitude float
- GPS coordinate in decimal format (xx.yyyyyy).
- module_
bay_ floatcount - Number of module bays on the device.
- name str
- Device name; NetBox allows unnamed devices.
- oob_
ip_ floatid - Id of the out-of-band management IP address (managed by netboxdeviceoob_ip).
- owner_
id float - Id of the owner the object is assigned to.
- platform_
id float - Id of the platform.
- power_
outlet_ floatcount - Number of power outlets on the device.
- power_
port_ floatcount - Number of power ports on the device.
- primary_
ip4_ floatid - Id of the primary IPv4 address (managed by netboxprimaryip).
- primary_
ip6_ floatid - Id of the primary IPv6 address (managed by netboxprimaryip).
- rack_
face str - Rack face the device is mounted on. One of: front, rear.
- rack_
id float - Id of the rack.
- rack_
position float - Lowest rack unit occupied by the device; half units (e.g. 1.5) are allowed.
- rear_
port_ floatcount - Number of rear ports on the device.
- role_
id float - Id of the device role.
- serial str
- Chassis serial number.
- site_
id float - Id of the site.
- status str
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- 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.
- url str
- virtual_
chassis_ floatid - Id of the virtual chassis.
- virtual_
chassis_ floatposition - Position in the virtual chassis (0-255). Must be a whole number.
- virtual_
chassis_ floatpriority - Master election priority in the virtual chassis (0-255). Must be a whole number.
- 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_
slug str - Slug of the region of the site.
- tag_
slug str - Slug of a tag the object carries.
- airflow String
- One of: front-to-rear, rear-to-front, left-to-right, right-to-left, side-to-rear, passive, mixed, rear-to-side, bottom-to-top, top-to-bottom.
- asset
Tag String - Unique asset tag.
- cluster
Id Number - Id of the virtualization cluster the device hosts.
- comments String
- config
Context String - Rendered config context (localcontextdata merged with the context assigned through cluster, platform, role, site, tenant and tags) as JSON text, decode with jsondecode().
- config
Template NumberId - Id of the config template.
- console
Port NumberCount - Number of console ports on the device.
- console
Server NumberPort Count - Number of console server ports on the device.
- 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).
- description String
- device
Bay NumberCount - Number of device bays on the device.
- device
Type NumberId - Id of the device type.
- front
Port NumberCount - Number of front ports on the device.
- id Number
- NetBox id.
- interface
Count Number - Number of interfaces on the device.
- inventory
Item NumberCount - Number of inventory items on the device.
- last
Updated String - latitude Number
- GPS coordinate in decimal format (xx.yyyyyy).
- local
Context StringData - Local config context data as JSON text (use jsonencode()).
- location
Id Number - Id of the location within the site.
- longitude Number
- GPS coordinate in decimal format (xx.yyyyyy).
- module
Bay NumberCount - Number of module bays on the device.
- name String
- Device name; NetBox allows unnamed devices.
- oob
Ip NumberId - Id of the out-of-band management IP address (managed by netboxdeviceoob_ip).
- owner
Id Number - Id of the owner the object is assigned to.
- platform
Id Number - Id of the platform.
- power
Outlet NumberCount - Number of power outlets on the device.
- power
Port NumberCount - Number of power ports on the device.
- primary
Ip4Id Number - Id of the primary IPv4 address (managed by netboxprimaryip).
- primary
Ip6Id Number - Id of the primary IPv6 address (managed by netboxprimaryip).
- rack
Face String - Rack face the device is mounted on. One of: front, rear.
- rack
Id Number - Id of the rack.
- rack
Position Number - Lowest rack unit occupied by the device; half units (e.g. 1.5) are allowed.
- rear
Port NumberCount - Number of rear ports on the device.
- role
Id Number - Id of the device role.
- serial String
- Chassis serial number.
- site
Id Number - Id of the site.
- status String
- Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
- 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.
- url String
- virtual
Chassis NumberId - Id of the virtual chassis.
- virtual
Chassis NumberPosition - Position in the virtual chassis (0-255). Must be a whole number.
- virtual
Chassis NumberPriority - Master election priority in the virtual chassis (0-255). Must be a whole number.
- 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
Slug String - Slug 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