1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getDevice
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 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 dictionary
    data "netbox_get_device" "name" {
        # arguments
    }

    The following arguments are supported:

    AssetTag string
    Unique asset tag.
    ClusterId double
    Id of the virtualization cluster the device hosts.
    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.
    DeviceTypeId double
    Id of the device type.
    Id double
    NetBox id.
    LocationId double
    Id of the location within the site.
    Name string
    Device name; NetBox allows unnamed devices.
    OwnerId double
    Id of the owner the object is assigned to.
    PlatformId double
    Id of the platform.
    RackId double
    Id of the rack.
    RegionSlug string
    Slug of the region of the site.
    RoleId double
    Id of the device role.
    Serial string
    Chassis serial number.
    SiteId double
    Id of the site.
    Status string
    Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
    TagSlug string
    Slug of a tag the object carries.
    TenantId double
    Id of the tenant.
    AssetTag string
    Unique asset tag.
    ClusterId float64
    Id of the virtualization cluster the device hosts.
    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.
    DeviceTypeId float64
    Id of the device type.
    Id float64
    NetBox id.
    LocationId float64
    Id of the location within the site.
    Name string
    Device name; NetBox allows unnamed devices.
    OwnerId float64
    Id of the owner the object is assigned to.
    PlatformId float64
    Id of the platform.
    RackId float64
    Id of the rack.
    RegionSlug string
    Slug of the region of the site.
    RoleId float64
    Id of the device role.
    Serial string
    Chassis serial number.
    SiteId float64
    Id of the site.
    Status string
    Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
    TagSlug string
    Slug of a tag the object carries.
    TenantId float64
    Id of the tenant.
    asset_tag string
    Unique asset tag.
    cluster_id number
    Id of the virtualization cluster the device hosts.
    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.
    device_type_id number
    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.
    assetTag String
    Unique asset tag.
    clusterId Double
    Id of the virtualization cluster the device hosts.
    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.
    deviceTypeId Double
    Id of the device type.
    id Double
    NetBox id.
    locationId Double
    Id of the location within the site.
    name String
    Device name; NetBox allows unnamed devices.
    ownerId Double
    Id of the owner the object is assigned to.
    platformId Double
    Id of the platform.
    rackId Double
    Id of the rack.
    regionSlug String
    Slug of the region of the site.
    roleId Double
    Id of the device role.
    serial String
    Chassis serial number.
    siteId Double
    Id of the site.
    status String
    Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
    tagSlug String
    Slug of a tag the object carries.
    tenantId Double
    Id of the tenant.
    assetTag string
    Unique asset tag.
    clusterId number
    Id of the virtualization cluster the device hosts.
    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.
    deviceTypeId number
    Id of the device type.
    id number
    NetBox id.
    locationId number
    Id of the location within the site.
    name string
    Device name; NetBox allows unnamed devices.
    ownerId number
    Id of the owner the object is assigned to.
    platformId number
    Id of the platform.
    rackId number
    Id of the rack.
    regionSlug string
    Slug of the region of the site.
    roleId number
    Id of the device role.
    serial string
    Chassis serial number.
    siteId number
    Id of the site.
    status string
    Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
    tagSlug string
    Slug of a tag the object carries.
    tenantId number
    Id of the tenant.
    asset_tag str
    Unique asset tag.
    cluster_id float
    Id of the virtualization cluster the device hosts.
    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.
    device_type_id float
    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.
    assetTag String
    Unique asset tag.
    clusterId Number
    Id of the virtualization cluster the device hosts.
    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.
    deviceTypeId Number
    Id of the device type.
    id Number
    NetBox id.
    locationId Number
    Id of the location within the site.
    name String
    Device name; NetBox allows unnamed devices.
    ownerId Number
    Id of the owner the object is assigned to.
    platformId Number
    Id of the platform.
    rackId Number
    Id of the rack.
    regionSlug String
    Slug of the region of the site.
    roleId Number
    Id of the device role.
    serial String
    Chassis serial number.
    siteId Number
    Id of the site.
    status String
    Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
    tagSlug String
    Slug of a tag the object carries.
    tenantId 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.
    AssetTag string
    Unique asset tag.
    ClusterId double
    Id of the virtualization cluster the device hosts.
    Comments string
    ConfigContext string
    Rendered config context (localcontextdata merged with the context assigned through cluster, platform, role, site, tenant and tags) as JSON text, decode with jsondecode().
    ConfigTemplateId double
    Id of the config template.
    ConsolePortCount double
    Number of console ports on the device.
    ConsoleServerPortCount double
    Number of console server ports on the device.
    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).
    Description string
    DeviceBayCount double
    Number of device bays on the device.
    DeviceTypeId double
    Id of the device type.
    FrontPortCount double
    Number of front ports on the device.
    Id double
    NetBox id.
    InterfaceCount double
    Number of interfaces on the device.
    InventoryItemCount double
    Number of inventory items on the device.
    LastUpdated string
    Latitude double
    GPS coordinate in decimal format (xx.yyyyyy).
    LocalContextData string
    Local config context data as JSON text (use jsonencode()).
    LocationId double
    Id of the location within the site.
    Longitude double
    GPS coordinate in decimal format (xx.yyyyyy).
    ModuleBayCount double
    Number of module bays on the device.
    Name string
    Device name; NetBox allows unnamed devices.
    OobIpId double
    Id of the out-of-band management IP address (managed by netboxdeviceoob_ip).
    OwnerId double
    Id of the owner the object is assigned to.
    PlatformId double
    Id of the platform.
    PowerOutletCount double
    Number of power outlets on the device.
    PowerPortCount double
    Number of power ports on the device.
    PrimaryIp4Id double
    Id of the primary IPv4 address (managed by netboxprimaryip).
    PrimaryIp6Id double
    Id of the primary IPv6 address (managed by netboxprimaryip).
    RackFace string
    Rack face the device is mounted on. One of: front, rear.
    RackId double
    Id of the rack.
    RackPosition double
    Lowest rack unit occupied by the device; half units (e.g. 1.5) are allowed.
    RearPortCount double
    Number of rear ports on the device.
    RoleId double
    Id of the device role.
    Serial string
    Chassis serial number.
    SiteId double
    Id of the site.
    Status string
    Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
    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.
    Url string
    VirtualChassisId double
    Id of the virtual chassis.
    VirtualChassisPosition double
    Position in the virtual chassis (0-255). Must be a whole number.
    VirtualChassisPriority double
    Master election priority in the virtual chassis (0-255). Must be a whole number.
    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.
    RegionSlug string
    Slug of the region of the site.
    TagSlug 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.
    AssetTag string
    Unique asset tag.
    ClusterId float64
    Id of the virtualization cluster the device hosts.
    Comments string
    ConfigContext string
    Rendered config context (localcontextdata merged with the context assigned through cluster, platform, role, site, tenant and tags) as JSON text, decode with jsondecode().
    ConfigTemplateId float64
    Id of the config template.
    ConsolePortCount float64
    Number of console ports on the device.
    ConsoleServerPortCount float64
    Number of console server ports on the device.
    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).
    Description string
    DeviceBayCount float64
    Number of device bays on the device.
    DeviceTypeId float64
    Id of the device type.
    FrontPortCount float64
    Number of front ports on the device.
    Id float64
    NetBox id.
    InterfaceCount float64
    Number of interfaces on the device.
    InventoryItemCount float64
    Number of inventory items on the device.
    LastUpdated string
    Latitude float64
    GPS coordinate in decimal format (xx.yyyyyy).
    LocalContextData string
    Local config context data as JSON text (use jsonencode()).
    LocationId float64
    Id of the location within the site.
    Longitude float64
    GPS coordinate in decimal format (xx.yyyyyy).
    ModuleBayCount float64
    Number of module bays on the device.
    Name string
    Device name; NetBox allows unnamed devices.
    OobIpId float64
    Id of the out-of-band management IP address (managed by netboxdeviceoob_ip).
    OwnerId float64
    Id of the owner the object is assigned to.
    PlatformId float64
    Id of the platform.
    PowerOutletCount float64
    Number of power outlets on the device.
    PowerPortCount float64
    Number of power ports on the device.
    PrimaryIp4Id float64
    Id of the primary IPv4 address (managed by netboxprimaryip).
    PrimaryIp6Id float64
    Id of the primary IPv6 address (managed by netboxprimaryip).
    RackFace string
    Rack face the device is mounted on. One of: front, rear.
    RackId float64
    Id of the rack.
    RackPosition float64
    Lowest rack unit occupied by the device; half units (e.g. 1.5) are allowed.
    RearPortCount float64
    Number of rear ports on the device.
    RoleId float64
    Id of the device role.
    Serial string
    Chassis serial number.
    SiteId float64
    Id of the site.
    Status string
    Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
    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.
    Url string
    VirtualChassisId float64
    Id of the virtual chassis.
    VirtualChassisPosition float64
    Position in the virtual chassis (0-255). Must be a whole number.
    VirtualChassisPriority float64
    Master election priority in the virtual chassis (0-255). Must be a whole number.
    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.
    RegionSlug string
    Slug of the region of the site.
    TagSlug 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_id number
    Id of the config template.
    console_port_count number
    Number of console ports on the device.
    console_server_port_count number
    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_count number
    Number of device bays on the device.
    device_type_id number
    Id of the device type.
    front_port_count number
    Number of front ports on the device.
    id number
    NetBox id.
    interface_count number
    Number of interfaces on the device.
    inventory_item_count number
    Number of inventory items on the device.
    last_updated string
    latitude number
    GPS coordinate in decimal format (xx.yyyyyy).
    local_context_data string
    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_count number
    Number of module bays on the device.
    name string
    Device name; NetBox allows unnamed devices.
    oob_ip_id number
    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_count number
    Number of power outlets on the device.
    power_port_count number
    Number of power ports on the device.
    primary_ip4_id number
    Id of the primary IPv4 address (managed by netboxprimaryip).
    primary_ip6_id 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_count number
    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.
    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.
    url string
    virtual_chassis_id number
    Id of the virtual chassis.
    virtual_chassis_position number
    Position in the virtual chassis (0-255). Must be a whole number.
    virtual_chassis_priority number
    Master election priority in the virtual chassis (0-255). Must be a whole number.
    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_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.
    assetTag String
    Unique asset tag.
    clusterId Double
    Id of the virtualization cluster the device hosts.
    comments String
    configContext String
    Rendered config context (localcontextdata merged with the context assigned through cluster, platform, role, site, tenant and tags) as JSON text, decode with jsondecode().
    configTemplateId Double
    Id of the config template.
    consolePortCount Double
    Number of console ports on the device.
    consoleServerPortCount Double
    Number of console server ports on the device.
    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).
    description String
    deviceBayCount Double
    Number of device bays on the device.
    deviceTypeId Double
    Id of the device type.
    frontPortCount Double
    Number of front ports on the device.
    id Double
    NetBox id.
    interfaceCount Double
    Number of interfaces on the device.
    inventoryItemCount Double
    Number of inventory items on the device.
    lastUpdated String
    latitude Double
    GPS coordinate in decimal format (xx.yyyyyy).
    localContextData String
    Local config context data as JSON text (use jsonencode()).
    locationId Double
    Id of the location within the site.
    longitude Double
    GPS coordinate in decimal format (xx.yyyyyy).
    moduleBayCount Double
    Number of module bays on the device.
    name String
    Device name; NetBox allows unnamed devices.
    oobIpId Double
    Id of the out-of-band management IP address (managed by netboxdeviceoob_ip).
    ownerId Double
    Id of the owner the object is assigned to.
    platformId Double
    Id of the platform.
    powerOutletCount Double
    Number of power outlets on the device.
    powerPortCount Double
    Number of power ports on the device.
    primaryIp4Id Double
    Id of the primary IPv4 address (managed by netboxprimaryip).
    primaryIp6Id Double
    Id of the primary IPv6 address (managed by netboxprimaryip).
    rackFace String
    Rack face the device is mounted on. One of: front, rear.
    rackId Double
    Id of the rack.
    rackPosition Double
    Lowest rack unit occupied by the device; half units (e.g. 1.5) are allowed.
    rearPortCount Double
    Number of rear ports on the device.
    roleId Double
    Id of the device role.
    serial String
    Chassis serial number.
    siteId Double
    Id of the site.
    status String
    Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
    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.
    url String
    virtualChassisId Double
    Id of the virtual chassis.
    virtualChassisPosition Double
    Position in the virtual chassis (0-255). Must be a whole number.
    virtualChassisPriority Double
    Master election priority in the virtual chassis (0-255). Must be a whole number.
    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.
    regionSlug String
    Slug of the region of the site.
    tagSlug 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.
    assetTag string
    Unique asset tag.
    clusterId number
    Id of the virtualization cluster the device hosts.
    comments string
    configContext string
    Rendered config context (localcontextdata merged with the context assigned through cluster, platform, role, site, tenant and tags) as JSON text, decode with jsondecode().
    configTemplateId number
    Id of the config template.
    consolePortCount number
    Number of console ports on the device.
    consoleServerPortCount number
    Number of console server ports on the device.
    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).
    description string
    deviceBayCount number
    Number of device bays on the device.
    deviceTypeId number
    Id of the device type.
    frontPortCount number
    Number of front ports on the device.
    id number
    NetBox id.
    interfaceCount number
    Number of interfaces on the device.
    inventoryItemCount number
    Number of inventory items on the device.
    lastUpdated string
    latitude number
    GPS coordinate in decimal format (xx.yyyyyy).
    localContextData string
    Local config context data as JSON text (use jsonencode()).
    locationId number
    Id of the location within the site.
    longitude number
    GPS coordinate in decimal format (xx.yyyyyy).
    moduleBayCount number
    Number of module bays on the device.
    name string
    Device name; NetBox allows unnamed devices.
    oobIpId number
    Id of the out-of-band management IP address (managed by netboxdeviceoob_ip).
    ownerId number
    Id of the owner the object is assigned to.
    platformId number
    Id of the platform.
    powerOutletCount number
    Number of power outlets on the device.
    powerPortCount number
    Number of power ports on the device.
    primaryIp4Id number
    Id of the primary IPv4 address (managed by netboxprimaryip).
    primaryIp6Id number
    Id of the primary IPv6 address (managed by netboxprimaryip).
    rackFace string
    Rack face the device is mounted on. One of: front, rear.
    rackId number
    Id of the rack.
    rackPosition number
    Lowest rack unit occupied by the device; half units (e.g. 1.5) are allowed.
    rearPortCount number
    Number of rear ports on the device.
    roleId number
    Id of the device role.
    serial string
    Chassis serial number.
    siteId number
    Id of the site.
    status string
    Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
    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.
    url string
    virtualChassisId number
    Id of the virtual chassis.
    virtualChassisPosition number
    Position in the virtual chassis (0-255). Must be a whole number.
    virtualChassisPriority number
    Master election priority in the virtual chassis (0-255). Must be a whole number.
    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.
    regionSlug string
    Slug of the region of the site.
    tagSlug 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_id float
    Id of the config template.
    console_port_count float
    Number of console ports on the device.
    console_server_port_count float
    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_count float
    Number of device bays on the device.
    device_type_id float
    Id of the device type.
    front_port_count float
    Number of front ports on the device.
    id float
    NetBox id.
    interface_count float
    Number of interfaces on the device.
    inventory_item_count float
    Number of inventory items on the device.
    last_updated str
    latitude float
    GPS coordinate in decimal format (xx.yyyyyy).
    local_context_data str
    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_count float
    Number of module bays on the device.
    name str
    Device name; NetBox allows unnamed devices.
    oob_ip_id float
    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_count float
    Number of power outlets on the device.
    power_port_count float
    Number of power ports on the device.
    primary_ip4_id float
    Id of the primary IPv4 address (managed by netboxprimaryip).
    primary_ip6_id float
    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_count float
    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.
    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.
    url str
    virtual_chassis_id float
    Id of the virtual chassis.
    virtual_chassis_position float
    Position in the virtual chassis (0-255). Must be a whole number.
    virtual_chassis_priority float
    Master election priority in the virtual chassis (0-255). Must be a whole number.
    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_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.
    assetTag String
    Unique asset tag.
    clusterId Number
    Id of the virtualization cluster the device hosts.
    comments String
    configContext String
    Rendered config context (localcontextdata merged with the context assigned through cluster, platform, role, site, tenant and tags) as JSON text, decode with jsondecode().
    configTemplateId Number
    Id of the config template.
    consolePortCount Number
    Number of console ports on the device.
    consoleServerPortCount Number
    Number of console server ports on the device.
    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).
    description String
    deviceBayCount Number
    Number of device bays on the device.
    deviceTypeId Number
    Id of the device type.
    frontPortCount Number
    Number of front ports on the device.
    id Number
    NetBox id.
    interfaceCount Number
    Number of interfaces on the device.
    inventoryItemCount Number
    Number of inventory items on the device.
    lastUpdated String
    latitude Number
    GPS coordinate in decimal format (xx.yyyyyy).
    localContextData String
    Local config context data as JSON text (use jsonencode()).
    locationId Number
    Id of the location within the site.
    longitude Number
    GPS coordinate in decimal format (xx.yyyyyy).
    moduleBayCount Number
    Number of module bays on the device.
    name String
    Device name; NetBox allows unnamed devices.
    oobIpId Number
    Id of the out-of-band management IP address (managed by netboxdeviceoob_ip).
    ownerId Number
    Id of the owner the object is assigned to.
    platformId Number
    Id of the platform.
    powerOutletCount Number
    Number of power outlets on the device.
    powerPortCount Number
    Number of power ports on the device.
    primaryIp4Id Number
    Id of the primary IPv4 address (managed by netboxprimaryip).
    primaryIp6Id Number
    Id of the primary IPv6 address (managed by netboxprimaryip).
    rackFace String
    Rack face the device is mounted on. One of: front, rear.
    rackId Number
    Id of the rack.
    rackPosition Number
    Lowest rack unit occupied by the device; half units (e.g. 1.5) are allowed.
    rearPortCount Number
    Number of rear ports on the device.
    roleId Number
    Id of the device role.
    serial String
    Chassis serial number.
    siteId Number
    Id of the site.
    status String
    Operational status. One of: offline, active, planned, staged, failed, inventory, decommissioning.
    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.
    url String
    virtualChassisId Number
    Id of the virtual chassis.
    virtualChassisPosition Number
    Position in the virtual chassis (0-255). Must be a whole number.
    virtualChassisPriority Number
    Master election priority in the virtual chassis (0-255). Must be a whole number.
    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.
    regionSlug String
    Slug 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