1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getInventoryItem
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger

    An inventory item on a device (dcim.inventoryitem).

    From the official documentation:

    Inventory items represent hardware components installed within a device, such as a power supply or CPU or line card. They are intended to be used primarily for inventory purposes.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getInventoryItem({
        name: "test-inventory_item",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_inventory_item(name="test-inventory_item")
    
    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.LookupInventoryItem(ctx, &netbox.LookupInventoryItemArgs{
    			Name: pulumi.StringRef("test-inventory_item"),
    		}, 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.GetInventoryItem.Invoke(new()
        {
            Name = "test-inventory_item",
        });
    
    });
    
    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.GetInventoryItemArgs;
    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.getInventoryItem(GetInventoryItemArgs.builder()
                .name("test-inventory_item")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getInventoryItem
          arguments:
            name: test-inventory_item
    
    Example coming soon!
    

    Using getInventoryItem

    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 getInventoryItem(args: GetInventoryItemArgs, opts?: InvokeOptions): Promise<GetInventoryItemResult>
    function getInventoryItemOutput(args: GetInventoryItemOutputArgs, opts?: InvokeOutputOptions): Output<GetInventoryItemResult>
    def get_inventory_item(asset_tag: Optional[str] = None,
                           component_id: Optional[float] = None,
                           component_type: Optional[str] = None,
                           created: Optional[str] = None,
                           custom_field_filters: Optional[Mapping[str, str]] = None,
                           description: Optional[str] = None,
                           device_id: Optional[float] = None,
                           device_name: Optional[str] = None,
                           device_role_id: Optional[float] = None,
                           device_role_slug: Optional[str] = None,
                           device_status: Optional[str] = None,
                           device_type_id: Optional[float] = None,
                           device_type_model: Optional[str] = None,
                           discovered: Optional[bool] = None,
                           id: Optional[float] = None,
                           label: Optional[str] = None,
                           last_updated: Optional[str] = None,
                           location_id: Optional[float] = None,
                           location_slug: Optional[str] = None,
                           manufacturer_id: Optional[float] = None,
                           manufacturer_slug: Optional[str] = None,
                           name: Optional[str] = None,
                           owner_group_id: Optional[float] = None,
                           owner_group_name: Optional[str] = None,
                           owner_id: Optional[float] = None,
                           owner_name: Optional[str] = None,
                           parent_id: Optional[float] = None,
                           part_id: Optional[str] = None,
                           q: Optional[str] = None,
                           rack_id: Optional[float] = None,
                           rack_name: Optional[str] = None,
                           region_id: Optional[str] = None,
                           region_slug: Optional[str] = None,
                           role_id: Optional[float] = None,
                           role_slug: Optional[str] = None,
                           serial: Optional[str] = None,
                           site_group_id: Optional[str] = None,
                           site_group_slug: Optional[str] = None,
                           site_id: Optional[float] = None,
                           site_slug: Optional[str] = None,
                           status: Optional[str] = None,
                           tag_id: Optional[float] = None,
                           tag_slug: Optional[str] = None,
                           tenant_id: Optional[float] = None,
                           tenant_slug: Optional[str] = None,
                           virtual_chassis: Optional[str] = None,
                           virtual_chassis_id: Optional[float] = None,
                           opts: Optional[InvokeOptions] = None) -> GetInventoryItemResult
    def get_inventory_item_output(asset_tag: pulumi.Input[Optional[str]] = None,
                           component_id: pulumi.Input[Optional[float]] = None,
                           component_type: pulumi.Input[Optional[str]] = None,
                           created: pulumi.Input[Optional[str]] = None,
                           custom_field_filters: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                           description: pulumi.Input[Optional[str]] = None,
                           device_id: pulumi.Input[Optional[float]] = None,
                           device_name: pulumi.Input[Optional[str]] = None,
                           device_role_id: pulumi.Input[Optional[float]] = None,
                           device_role_slug: pulumi.Input[Optional[str]] = None,
                           device_status: pulumi.Input[Optional[str]] = None,
                           device_type_id: pulumi.Input[Optional[float]] = None,
                           device_type_model: pulumi.Input[Optional[str]] = None,
                           discovered: pulumi.Input[Optional[bool]] = None,
                           id: pulumi.Input[Optional[float]] = None,
                           label: pulumi.Input[Optional[str]] = None,
                           last_updated: pulumi.Input[Optional[str]] = None,
                           location_id: pulumi.Input[Optional[float]] = None,
                           location_slug: pulumi.Input[Optional[str]] = None,
                           manufacturer_id: pulumi.Input[Optional[float]] = None,
                           manufacturer_slug: pulumi.Input[Optional[str]] = None,
                           name: pulumi.Input[Optional[str]] = None,
                           owner_group_id: pulumi.Input[Optional[float]] = None,
                           owner_group_name: pulumi.Input[Optional[str]] = None,
                           owner_id: pulumi.Input[Optional[float]] = None,
                           owner_name: pulumi.Input[Optional[str]] = None,
                           parent_id: pulumi.Input[Optional[float]] = None,
                           part_id: pulumi.Input[Optional[str]] = None,
                           q: pulumi.Input[Optional[str]] = None,
                           rack_id: pulumi.Input[Optional[float]] = None,
                           rack_name: pulumi.Input[Optional[str]] = None,
                           region_id: pulumi.Input[Optional[str]] = None,
                           region_slug: pulumi.Input[Optional[str]] = None,
                           role_id: pulumi.Input[Optional[float]] = None,
                           role_slug: pulumi.Input[Optional[str]] = None,
                           serial: pulumi.Input[Optional[str]] = None,
                           site_group_id: pulumi.Input[Optional[str]] = None,
                           site_group_slug: pulumi.Input[Optional[str]] = None,
                           site_id: pulumi.Input[Optional[float]] = None,
                           site_slug: pulumi.Input[Optional[str]] = None,
                           status: pulumi.Input[Optional[str]] = None,
                           tag_id: pulumi.Input[Optional[float]] = None,
                           tag_slug: pulumi.Input[Optional[str]] = None,
                           tenant_id: pulumi.Input[Optional[float]] = None,
                           tenant_slug: pulumi.Input[Optional[str]] = None,
                           virtual_chassis: pulumi.Input[Optional[str]] = None,
                           virtual_chassis_id: pulumi.Input[Optional[float]] = None,
                           opts: Optional[InvokeOutputOptions] = None) -> Output[GetInventoryItemResult]
    func LookupInventoryItem(ctx *Context, args *LookupInventoryItemArgs, opts ...InvokeOption) (*LookupInventoryItemResult, error)
    func LookupInventoryItemOutput(ctx *Context, args *LookupInventoryItemOutputArgs, opts ...InvokeOption) LookupInventoryItemResultOutput

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

    public static class GetInventoryItem 
    {
        public static Task<GetInventoryItemResult> InvokeAsync(GetInventoryItemArgs args, InvokeOptions? opts = null)
        public static Output<GetInventoryItemResult> Invoke(GetInventoryItemInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetInventoryItemResult> Invoke(GetInventoryItemInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetInventoryItemResult> getInventoryItem(GetInventoryItemArgs args, InvokeOptions options)
    public static Output<GetInventoryItemResult> getInventoryItem(GetInventoryItemArgs args, InvokeOptions options)
    public static Output<GetInventoryItemResult> getInventoryItem(GetInventoryItemArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getInventoryItem:getInventoryItem
      arguments:
        # arguments dictionary
    data "netbox_get_inventory_item" "name" {
        # arguments
    }

    The following arguments are supported:

    AssetTag string
    Unique asset tag.
    ComponentId double
    Id of the device component named by component_type.
    ComponentType string
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    Created string
    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.
    Description string
    DeviceId double
    Id of the device.
    DeviceName string
    Name of the device.
    DeviceRoleId double
    Id of the device role.
    DeviceRoleSlug string
    Slug of the device role.
    DeviceStatus string
    Device status to match.
    DeviceTypeId double
    Id of the device type.
    DeviceTypeModel string
    Model of the device type.
    Discovered bool
    Whether the item was discovered automatically.
    Id double
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    LocationId double
    Id of the location.
    LocationSlug string
    Slug of the location.
    ManufacturerId double
    Id of the manufacturer.
    ManufacturerSlug string
    Slug of the manufacturer.
    Name string
    OwnerGroupId double
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerId double
    Id of the owner the object is assigned to.
    OwnerName string
    Name of the owner.
    ParentId double
    Id of the parent inventory item.
    PartId string
    Manufacturer part number.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RackId double
    Id of the rack.
    RackName string
    Name of the rack.
    RegionId string
    Id of the region.
    RegionSlug string
    Slug of the region.
    RoleId double
    Id of the inventory item role.
    RoleSlug string
    Slug of the role.
    Serial string
    Serial number.
    SiteGroupId string
    Id of the site group.
    SiteGroupSlug string
    Slug of the site group.
    SiteId double
    Id of the site.
    SiteSlug string
    Slug of the site.
    Status string
    Operational status. One of: offline, active, planned, staged, failed, decommissioning.
    TagId double
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    TenantId double
    Id of the tenant.
    TenantSlug string
    Slug of the tenant.
    VirtualChassis string
    Virtual Chassis.
    VirtualChassisId double
    Id of the virtual chassis.
    AssetTag string
    Unique asset tag.
    ComponentId float64
    Id of the device component named by component_type.
    ComponentType string
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    Created string
    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.
    Description string
    DeviceId float64
    Id of the device.
    DeviceName string
    Name of the device.
    DeviceRoleId float64
    Id of the device role.
    DeviceRoleSlug string
    Slug of the device role.
    DeviceStatus string
    Device status to match.
    DeviceTypeId float64
    Id of the device type.
    DeviceTypeModel string
    Model of the device type.
    Discovered bool
    Whether the item was discovered automatically.
    Id float64
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    LocationId float64
    Id of the location.
    LocationSlug string
    Slug of the location.
    ManufacturerId float64
    Id of the manufacturer.
    ManufacturerSlug string
    Slug of the manufacturer.
    Name string
    OwnerGroupId float64
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerId float64
    Id of the owner the object is assigned to.
    OwnerName string
    Name of the owner.
    ParentId float64
    Id of the parent inventory item.
    PartId string
    Manufacturer part number.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RackId float64
    Id of the rack.
    RackName string
    Name of the rack.
    RegionId string
    Id of the region.
    RegionSlug string
    Slug of the region.
    RoleId float64
    Id of the inventory item role.
    RoleSlug string
    Slug of the role.
    Serial string
    Serial number.
    SiteGroupId string
    Id of the site group.
    SiteGroupSlug string
    Slug of the site group.
    SiteId float64
    Id of the site.
    SiteSlug string
    Slug of the site.
    Status string
    Operational status. One of: offline, active, planned, staged, failed, decommissioning.
    TagId float64
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    TenantId float64
    Id of the tenant.
    TenantSlug string
    Slug of the tenant.
    VirtualChassis string
    Virtual Chassis.
    VirtualChassisId float64
    Id of the virtual chassis.
    asset_tag string
    Unique asset tag.
    component_id number
    Id of the device component named by component_type.
    component_type string
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    created string
    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.
    description string
    device_id number
    Id of the device.
    device_name string
    Name of the device.
    device_role_id number
    Id of the device role.
    device_role_slug string
    Slug of the device role.
    device_status string
    Device status to match.
    device_type_id number
    Id of the device type.
    device_type_model string
    Model of the device type.
    discovered bool
    Whether the item was discovered automatically.
    id number
    NetBox id.
    label string
    Physical label.
    last_updated string
    location_id number
    Id of the location.
    location_slug string
    Slug of the location.
    manufacturer_id number
    Id of the manufacturer.
    manufacturer_slug string
    Slug of the manufacturer.
    name string
    owner_group_id number
    Id of the owner group.
    owner_group_name string
    Name of the owner group.
    owner_id number
    Id of the owner the object is assigned to.
    owner_name string
    Name of the owner.
    parent_id number
    Id of the parent inventory item.
    part_id string
    Manufacturer part number.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    rack_id number
    Id of the rack.
    rack_name string
    Name of the rack.
    region_id string
    Id of the region.
    region_slug string
    Slug of the region.
    role_id number
    Id of the inventory item role.
    role_slug string
    Slug of the role.
    serial string
    Serial number.
    site_group_id string
    Id of the site group.
    site_group_slug string
    Slug of the site group.
    site_id number
    Id of the site.
    site_slug string
    Slug of the site.
    status string
    Operational status. One of: offline, active, planned, staged, failed, decommissioning.
    tag_id number
    Id of a tag the object carries.
    tag_slug string
    Slug of a tag the object carries.
    tenant_id number
    Id of the tenant.
    tenant_slug string
    Slug of the tenant.
    virtual_chassis string
    Virtual Chassis.
    virtual_chassis_id number
    Id of the virtual chassis.
    assetTag String
    Unique asset tag.
    componentId Double
    Id of the device component named by component_type.
    componentType String
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    created String
    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.
    description String
    deviceId Double
    Id of the device.
    deviceName String
    Name of the device.
    deviceRoleId Double
    Id of the device role.
    deviceRoleSlug String
    Slug of the device role.
    deviceStatus String
    Device status to match.
    deviceTypeId Double
    Id of the device type.
    deviceTypeModel String
    Model of the device type.
    discovered Boolean
    Whether the item was discovered automatically.
    id Double
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    locationId Double
    Id of the location.
    locationSlug String
    Slug of the location.
    manufacturerId Double
    Id of the manufacturer.
    manufacturerSlug String
    Slug of the manufacturer.
    name String
    ownerGroupId Double
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerId Double
    Id of the owner the object is assigned to.
    ownerName String
    Name of the owner.
    parentId Double
    Id of the parent inventory item.
    partId String
    Manufacturer part number.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    rackId Double
    Id of the rack.
    rackName String
    Name of the rack.
    regionId String
    Id of the region.
    regionSlug String
    Slug of the region.
    roleId Double
    Id of the inventory item role.
    roleSlug String
    Slug of the role.
    serial String
    Serial number.
    siteGroupId String
    Id of the site group.
    siteGroupSlug String
    Slug of the site group.
    siteId Double
    Id of the site.
    siteSlug String
    Slug of the site.
    status String
    Operational status. One of: offline, active, planned, staged, failed, decommissioning.
    tagId Double
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    tenantId Double
    Id of the tenant.
    tenantSlug String
    Slug of the tenant.
    virtualChassis String
    Virtual Chassis.
    virtualChassisId Double
    Id of the virtual chassis.
    assetTag string
    Unique asset tag.
    componentId number
    Id of the device component named by component_type.
    componentType string
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    created string
    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.
    description string
    deviceId number
    Id of the device.
    deviceName string
    Name of the device.
    deviceRoleId number
    Id of the device role.
    deviceRoleSlug string
    Slug of the device role.
    deviceStatus string
    Device status to match.
    deviceTypeId number
    Id of the device type.
    deviceTypeModel string
    Model of the device type.
    discovered boolean
    Whether the item was discovered automatically.
    id number
    NetBox id.
    label string
    Physical label.
    lastUpdated string
    locationId number
    Id of the location.
    locationSlug string
    Slug of the location.
    manufacturerId number
    Id of the manufacturer.
    manufacturerSlug string
    Slug of the manufacturer.
    name string
    ownerGroupId number
    Id of the owner group.
    ownerGroupName string
    Name of the owner group.
    ownerId number
    Id of the owner the object is assigned to.
    ownerName string
    Name of the owner.
    parentId number
    Id of the parent inventory item.
    partId string
    Manufacturer part number.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    rackId number
    Id of the rack.
    rackName string
    Name of the rack.
    regionId string
    Id of the region.
    regionSlug string
    Slug of the region.
    roleId number
    Id of the inventory item role.
    roleSlug string
    Slug of the role.
    serial string
    Serial number.
    siteGroupId string
    Id of the site group.
    siteGroupSlug string
    Slug of the site group.
    siteId number
    Id of the site.
    siteSlug string
    Slug of the site.
    status string
    Operational status. One of: offline, active, planned, staged, failed, decommissioning.
    tagId number
    Id of a tag the object carries.
    tagSlug string
    Slug of a tag the object carries.
    tenantId number
    Id of the tenant.
    tenantSlug string
    Slug of the tenant.
    virtualChassis string
    Virtual Chassis.
    virtualChassisId number
    Id of the virtual chassis.
    asset_tag str
    Unique asset tag.
    component_id float
    Id of the device component named by component_type.
    component_type str
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    created str
    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.
    description str
    device_id float
    Id of the device.
    device_name str
    Name of the device.
    device_role_id float
    Id of the device role.
    device_role_slug str
    Slug of the device role.
    device_status str
    Device status to match.
    device_type_id float
    Id of the device type.
    device_type_model str
    Model of the device type.
    discovered bool
    Whether the item was discovered automatically.
    id float
    NetBox id.
    label str
    Physical label.
    last_updated str
    location_id float
    Id of the location.
    location_slug str
    Slug of the location.
    manufacturer_id float
    Id of the manufacturer.
    manufacturer_slug str
    Slug of the manufacturer.
    name str
    owner_group_id float
    Id of the owner group.
    owner_group_name str
    Name of the owner group.
    owner_id float
    Id of the owner the object is assigned to.
    owner_name str
    Name of the owner.
    parent_id float
    Id of the parent inventory item.
    part_id str
    Manufacturer part number.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    rack_id float
    Id of the rack.
    rack_name str
    Name of the rack.
    region_id str
    Id of the region.
    region_slug str
    Slug of the region.
    role_id float
    Id of the inventory item role.
    role_slug str
    Slug of the role.
    serial str
    Serial number.
    site_group_id str
    Id of the site group.
    site_group_slug str
    Slug of the site group.
    site_id float
    Id of the site.
    site_slug str
    Slug of the site.
    status str
    Operational status. One of: offline, active, planned, staged, failed, decommissioning.
    tag_id float
    Id of a tag the object carries.
    tag_slug str
    Slug of a tag the object carries.
    tenant_id float
    Id of the tenant.
    tenant_slug str
    Slug of the tenant.
    virtual_chassis str
    Virtual Chassis.
    virtual_chassis_id float
    Id of the virtual chassis.
    assetTag String
    Unique asset tag.
    componentId Number
    Id of the device component named by component_type.
    componentType String
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    created String
    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.
    description String
    deviceId Number
    Id of the device.
    deviceName String
    Name of the device.
    deviceRoleId Number
    Id of the device role.
    deviceRoleSlug String
    Slug of the device role.
    deviceStatus String
    Device status to match.
    deviceTypeId Number
    Id of the device type.
    deviceTypeModel String
    Model of the device type.
    discovered Boolean
    Whether the item was discovered automatically.
    id Number
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    locationId Number
    Id of the location.
    locationSlug String
    Slug of the location.
    manufacturerId Number
    Id of the manufacturer.
    manufacturerSlug String
    Slug of the manufacturer.
    name String
    ownerGroupId Number
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerId Number
    Id of the owner the object is assigned to.
    ownerName String
    Name of the owner.
    parentId Number
    Id of the parent inventory item.
    partId String
    Manufacturer part number.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    rackId Number
    Id of the rack.
    rackName String
    Name of the rack.
    regionId String
    Id of the region.
    regionSlug String
    Slug of the region.
    roleId Number
    Id of the inventory item role.
    roleSlug String
    Slug of the role.
    serial String
    Serial number.
    siteGroupId String
    Id of the site group.
    siteGroupSlug String
    Slug of the site group.
    siteId Number
    Id of the site.
    siteSlug String
    Slug of the site.
    status String
    Operational status. One of: offline, active, planned, staged, failed, decommissioning.
    tagId Number
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    tenantId Number
    Id of the tenant.
    tenantSlug String
    Slug of the tenant.
    virtualChassis String
    Virtual Chassis.
    virtualChassisId Number
    Id of the virtual chassis.

    getInventoryItem Result

    The following output properties are available:

    AssetTag string
    Unique asset tag.
    ComponentId double
    Id of the device component named by component_type.
    ComponentType string
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    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
    DeviceId double
    Id of the device.
    Discovered bool
    Whether the item was discovered automatically.
    Id double
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    ManufacturerId double
    Id of the manufacturer.
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    ParentId double
    Id of the parent inventory item.
    PartId string
    Manufacturer part number.
    RoleId double
    Id of the inventory item role.
    Serial string
    Serial number.
    Status string
    Operational status. One of: offline, active, planned, staged, failed, 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.
    Url string
    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.
    DeviceName string
    Name of the device.
    DeviceRoleId double
    Id of the device role.
    DeviceRoleSlug string
    Slug of the device role.
    DeviceStatus string
    Device status to match.
    DeviceTypeId double
    Id of the device type.
    DeviceTypeModel string
    Model of the device type.
    LocationId double
    Id of the location.
    LocationSlug string
    Slug of the location.
    ManufacturerSlug string
    Slug of the manufacturer.
    OwnerGroupId double
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerName string
    Name of the owner.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RackId double
    Id of the rack.
    RackName string
    Name of the rack.
    RegionId string
    Id of the region.
    RegionSlug string
    Slug of the region.
    RoleSlug string
    Slug of the role.
    SiteGroupId string
    Id of the site group.
    SiteGroupSlug string
    Slug of the site group.
    SiteId double
    Id of the site.
    SiteSlug string
    Slug of the site.
    TagId double
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    TenantId double
    Id of the tenant.
    TenantSlug string
    Slug of the tenant.
    VirtualChassis string
    Virtual Chassis.
    VirtualChassisId double
    Id of the virtual chassis.
    AssetTag string
    Unique asset tag.
    ComponentId float64
    Id of the device component named by component_type.
    ComponentType string
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    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
    DeviceId float64
    Id of the device.
    Discovered bool
    Whether the item was discovered automatically.
    Id float64
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    ManufacturerId float64
    Id of the manufacturer.
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    ParentId float64
    Id of the parent inventory item.
    PartId string
    Manufacturer part number.
    RoleId float64
    Id of the inventory item role.
    Serial string
    Serial number.
    Status string
    Operational status. One of: offline, active, planned, staged, failed, 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.
    Url string
    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.
    DeviceName string
    Name of the device.
    DeviceRoleId float64
    Id of the device role.
    DeviceRoleSlug string
    Slug of the device role.
    DeviceStatus string
    Device status to match.
    DeviceTypeId float64
    Id of the device type.
    DeviceTypeModel string
    Model of the device type.
    LocationId float64
    Id of the location.
    LocationSlug string
    Slug of the location.
    ManufacturerSlug string
    Slug of the manufacturer.
    OwnerGroupId float64
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerName string
    Name of the owner.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RackId float64
    Id of the rack.
    RackName string
    Name of the rack.
    RegionId string
    Id of the region.
    RegionSlug string
    Slug of the region.
    RoleSlug string
    Slug of the role.
    SiteGroupId string
    Id of the site group.
    SiteGroupSlug string
    Slug of the site group.
    SiteId float64
    Id of the site.
    SiteSlug string
    Slug of the site.
    TagId float64
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    TenantId float64
    Id of the tenant.
    TenantSlug string
    Slug of the tenant.
    VirtualChassis string
    Virtual Chassis.
    VirtualChassisId float64
    Id of the virtual chassis.
    asset_tag string
    Unique asset tag.
    component_id number
    Id of the device component named by component_type.
    component_type string
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    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_id number
    Id of the device.
    discovered bool
    Whether the item was discovered automatically.
    id number
    NetBox id.
    label string
    Physical label.
    last_updated string
    manufacturer_id number
    Id of the manufacturer.
    name string
    owner_id number
    Id of the owner the object is assigned to.
    parent_id number
    Id of the parent inventory item.
    part_id string
    Manufacturer part number.
    role_id number
    Id of the inventory item role.
    serial string
    Serial number.
    status string
    Operational status. One of: offline, active, planned, staged, failed, 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.
    url string
    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_name string
    Name of the device.
    device_role_id number
    Id of the device role.
    device_role_slug string
    Slug of the device role.
    device_status string
    Device status to match.
    device_type_id number
    Id of the device type.
    device_type_model string
    Model of the device type.
    location_id number
    Id of the location.
    location_slug string
    Slug of the location.
    manufacturer_slug string
    Slug of the manufacturer.
    owner_group_id number
    Id of the owner group.
    owner_group_name string
    Name of the owner group.
    owner_name string
    Name of the owner.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    rack_id number
    Id of the rack.
    rack_name string
    Name of the rack.
    region_id string
    Id of the region.
    region_slug string
    Slug of the region.
    role_slug string
    Slug of the role.
    site_group_id string
    Id of the site group.
    site_group_slug string
    Slug of the site group.
    site_id number
    Id of the site.
    site_slug string
    Slug of the site.
    tag_id number
    Id of a tag the object carries.
    tag_slug string
    Slug of a tag the object carries.
    tenant_id number
    Id of the tenant.
    tenant_slug string
    Slug of the tenant.
    virtual_chassis string
    Virtual Chassis.
    virtual_chassis_id number
    Id of the virtual chassis.
    assetTag String
    Unique asset tag.
    componentId Double
    Id of the device component named by component_type.
    componentType String
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    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
    deviceId Double
    Id of the device.
    discovered Boolean
    Whether the item was discovered automatically.
    id Double
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    manufacturerId Double
    Id of the manufacturer.
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    parentId Double
    Id of the parent inventory item.
    partId String
    Manufacturer part number.
    roleId Double
    Id of the inventory item role.
    serial String
    Serial number.
    status String
    Operational status. One of: offline, active, planned, staged, failed, 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.
    url String
    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.
    deviceName String
    Name of the device.
    deviceRoleId Double
    Id of the device role.
    deviceRoleSlug String
    Slug of the device role.
    deviceStatus String
    Device status to match.
    deviceTypeId Double
    Id of the device type.
    deviceTypeModel String
    Model of the device type.
    locationId Double
    Id of the location.
    locationSlug String
    Slug of the location.
    manufacturerSlug String
    Slug of the manufacturer.
    ownerGroupId Double
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerName String
    Name of the owner.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    rackId Double
    Id of the rack.
    rackName String
    Name of the rack.
    regionId String
    Id of the region.
    regionSlug String
    Slug of the region.
    roleSlug String
    Slug of the role.
    siteGroupId String
    Id of the site group.
    siteGroupSlug String
    Slug of the site group.
    siteId Double
    Id of the site.
    siteSlug String
    Slug of the site.
    tagId Double
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    tenantId Double
    Id of the tenant.
    tenantSlug String
    Slug of the tenant.
    virtualChassis String
    Virtual Chassis.
    virtualChassisId Double
    Id of the virtual chassis.
    assetTag string
    Unique asset tag.
    componentId number
    Id of the device component named by component_type.
    componentType string
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    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
    deviceId number
    Id of the device.
    discovered boolean
    Whether the item was discovered automatically.
    id number
    NetBox id.
    label string
    Physical label.
    lastUpdated string
    manufacturerId number
    Id of the manufacturer.
    name string
    ownerId number
    Id of the owner the object is assigned to.
    parentId number
    Id of the parent inventory item.
    partId string
    Manufacturer part number.
    roleId number
    Id of the inventory item role.
    serial string
    Serial number.
    status string
    Operational status. One of: offline, active, planned, staged, failed, 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.
    url string
    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.
    deviceName string
    Name of the device.
    deviceRoleId number
    Id of the device role.
    deviceRoleSlug string
    Slug of the device role.
    deviceStatus string
    Device status to match.
    deviceTypeId number
    Id of the device type.
    deviceTypeModel string
    Model of the device type.
    locationId number
    Id of the location.
    locationSlug string
    Slug of the location.
    manufacturerSlug string
    Slug of the manufacturer.
    ownerGroupId number
    Id of the owner group.
    ownerGroupName string
    Name of the owner group.
    ownerName string
    Name of the owner.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    rackId number
    Id of the rack.
    rackName string
    Name of the rack.
    regionId string
    Id of the region.
    regionSlug string
    Slug of the region.
    roleSlug string
    Slug of the role.
    siteGroupId string
    Id of the site group.
    siteGroupSlug string
    Slug of the site group.
    siteId number
    Id of the site.
    siteSlug string
    Slug of the site.
    tagId number
    Id of a tag the object carries.
    tagSlug string
    Slug of a tag the object carries.
    tenantId number
    Id of the tenant.
    tenantSlug string
    Slug of the tenant.
    virtualChassis string
    Virtual Chassis.
    virtualChassisId number
    Id of the virtual chassis.
    asset_tag str
    Unique asset tag.
    component_id float
    Id of the device component named by component_type.
    component_type str
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    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_id float
    Id of the device.
    discovered bool
    Whether the item was discovered automatically.
    id float
    NetBox id.
    label str
    Physical label.
    last_updated str
    manufacturer_id float
    Id of the manufacturer.
    name str
    owner_id float
    Id of the owner the object is assigned to.
    parent_id float
    Id of the parent inventory item.
    part_id str
    Manufacturer part number.
    role_id float
    Id of the inventory item role.
    serial str
    Serial number.
    status str
    Operational status. One of: offline, active, planned, staged, failed, 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.
    url str
    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_name str
    Name of the device.
    device_role_id float
    Id of the device role.
    device_role_slug str
    Slug of the device role.
    device_status str
    Device status to match.
    device_type_id float
    Id of the device type.
    device_type_model str
    Model of the device type.
    location_id float
    Id of the location.
    location_slug str
    Slug of the location.
    manufacturer_slug str
    Slug of the manufacturer.
    owner_group_id float
    Id of the owner group.
    owner_group_name str
    Name of the owner group.
    owner_name str
    Name of the owner.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    rack_id float
    Id of the rack.
    rack_name str
    Name of the rack.
    region_id str
    Id of the region.
    region_slug str
    Slug of the region.
    role_slug str
    Slug of the role.
    site_group_id str
    Id of the site group.
    site_group_slug str
    Slug of the site group.
    site_id float
    Id of the site.
    site_slug str
    Slug of the site.
    tag_id float
    Id of a tag the object carries.
    tag_slug str
    Slug of a tag the object carries.
    tenant_id float
    Id of the tenant.
    tenant_slug str
    Slug of the tenant.
    virtual_chassis str
    Virtual Chassis.
    virtual_chassis_id float
    Id of the virtual chassis.
    assetTag String
    Unique asset tag.
    componentId Number
    Id of the device component named by component_type.
    componentType String
    Type of the device component the item is bound to, e.g. dcim.interface. Requires component_id.
    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
    deviceId Number
    Id of the device.
    discovered Boolean
    Whether the item was discovered automatically.
    id Number
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    manufacturerId Number
    Id of the manufacturer.
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    parentId Number
    Id of the parent inventory item.
    partId String
    Manufacturer part number.
    roleId Number
    Id of the inventory item role.
    serial String
    Serial number.
    status String
    Operational status. One of: offline, active, planned, staged, failed, 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.
    url String
    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.
    deviceName String
    Name of the device.
    deviceRoleId Number
    Id of the device role.
    deviceRoleSlug String
    Slug of the device role.
    deviceStatus String
    Device status to match.
    deviceTypeId Number
    Id of the device type.
    deviceTypeModel String
    Model of the device type.
    locationId Number
    Id of the location.
    locationSlug String
    Slug of the location.
    manufacturerSlug String
    Slug of the manufacturer.
    ownerGroupId Number
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerName String
    Name of the owner.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    rackId Number
    Id of the rack.
    rackName String
    Name of the rack.
    regionId String
    Id of the region.
    regionSlug String
    Slug of the region.
    roleSlug String
    Slug of the role.
    siteGroupId String
    Id of the site group.
    siteGroupSlug String
    Slug of the site group.
    siteId Number
    Id of the site.
    siteSlug String
    Slug of the site.
    tagId Number
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    tenantId Number
    Id of the tenant.
    tenantSlug String
    Slug of the tenant.
    virtualChassis String
    Virtual Chassis.
    virtualChassisId Number
    Id of the virtual chassis.

    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.1
    published on Monday, Nov 16, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial