1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getInventoryItemTemplate
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

    An inventory item template of a device type (dcim.inventoryitemtemplate).

    From the official documentation:

    Deprecation Warning: Beginning in NetBox v4.3, the use of inventory items has been deprecated. They are planned for removal in a future NetBox release. Users are strongly encouraged to begin using modules and module types in place of inventory items. Modules provide enhanced functionality and can be configured with user-defined attributes.

    A template for an inventory item that will be automatically created when instantiating a new device. All attributes of this object will be copied to the new inventory item, including the associations with a parent item and assigned component, if any. See the inventory item documentation for more detail.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getInventoryItemTemplate({
        name: "test-inventory_item_template",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_inventory_item_template(name="test-inventory_item_template")
    
    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.LookupInventoryItemTemplate(ctx, &netbox.LookupInventoryItemTemplateArgs{
    			Name: pulumi.StringRef("test-inventory_item_template"),
    		}, 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.GetInventoryItemTemplate.Invoke(new()
        {
            Name = "test-inventory_item_template",
        });
    
    });
    
    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.GetInventoryItemTemplateArgs;
    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.getInventoryItemTemplate(GetInventoryItemTemplateArgs.builder()
                .name("test-inventory_item_template")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getInventoryItemTemplate
          arguments:
            name: test-inventory_item_template
    
    Example coming soon!
    

    Using getInventoryItemTemplate

    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 getInventoryItemTemplate(args: GetInventoryItemTemplateArgs, opts?: InvokeOptions): Promise<GetInventoryItemTemplateResult>
    function getInventoryItemTemplateOutput(args: GetInventoryItemTemplateOutputArgs, opts?: InvokeOutputOptions): Output<GetInventoryItemTemplateResult>
    def get_inventory_item_template(device_type_id: Optional[float] = None,
                                    id: Optional[float] = None,
                                    label: Optional[str] = None,
                                    manufacturer_id: Optional[float] = None,
                                    name: Optional[str] = None,
                                    parent_id: Optional[float] = None,
                                    role_id: Optional[float] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetInventoryItemTemplateResult
    def get_inventory_item_template_output(device_type_id: pulumi.Input[Optional[float]] = None,
                                    id: pulumi.Input[Optional[float]] = None,
                                    label: pulumi.Input[Optional[str]] = None,
                                    manufacturer_id: pulumi.Input[Optional[float]] = None,
                                    name: pulumi.Input[Optional[str]] = None,
                                    parent_id: pulumi.Input[Optional[float]] = None,
                                    role_id: pulumi.Input[Optional[float]] = None,
                                    opts: Optional[InvokeOutputOptions] = None) -> Output[GetInventoryItemTemplateResult]
    func LookupInventoryItemTemplate(ctx *Context, args *LookupInventoryItemTemplateArgs, opts ...InvokeOption) (*LookupInventoryItemTemplateResult, error)
    func LookupInventoryItemTemplateOutput(ctx *Context, args *LookupInventoryItemTemplateOutputArgs, opts ...InvokeOption) LookupInventoryItemTemplateResultOutput

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

    public static class GetInventoryItemTemplate 
    {
        public static Task<GetInventoryItemTemplateResult> InvokeAsync(GetInventoryItemTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetInventoryItemTemplateResult> Invoke(GetInventoryItemTemplateInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetInventoryItemTemplateResult> Invoke(GetInventoryItemTemplateInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetInventoryItemTemplateResult> getInventoryItemTemplate(GetInventoryItemTemplateArgs args, InvokeOptions options)
    public static Output<GetInventoryItemTemplateResult> getInventoryItemTemplate(GetInventoryItemTemplateArgs args, InvokeOptions options)
    public static Output<GetInventoryItemTemplateResult> getInventoryItemTemplate(GetInventoryItemTemplateArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getInventoryItemTemplate:getInventoryItemTemplate
      arguments:
        # arguments dictionary
    data "netbox_get_inventory_item_template" "name" {
        # arguments
    }

    The following arguments are supported:

    DeviceTypeId double
    Id of the device type. NetBox refuses to move a template to another type.
    Id double
    NetBox id.
    Label string
    Physical label.
    ManufacturerId double
    Id of the manufacturer.
    Name string
    ParentId double
    Id of the parent inventory item template.
    RoleId double
    Id of the inventory item role.
    DeviceTypeId float64
    Id of the device type. NetBox refuses to move a template to another type.
    Id float64
    NetBox id.
    Label string
    Physical label.
    ManufacturerId float64
    Id of the manufacturer.
    Name string
    ParentId float64
    Id of the parent inventory item template.
    RoleId float64
    Id of the inventory item role.
    device_type_id number
    Id of the device type. NetBox refuses to move a template to another type.
    id number
    NetBox id.
    label string
    Physical label.
    manufacturer_id number
    Id of the manufacturer.
    name string
    parent_id number
    Id of the parent inventory item template.
    role_id number
    Id of the inventory item role.
    deviceTypeId Double
    Id of the device type. NetBox refuses to move a template to another type.
    id Double
    NetBox id.
    label String
    Physical label.
    manufacturerId Double
    Id of the manufacturer.
    name String
    parentId Double
    Id of the parent inventory item template.
    roleId Double
    Id of the inventory item role.
    deviceTypeId number
    Id of the device type. NetBox refuses to move a template to another type.
    id number
    NetBox id.
    label string
    Physical label.
    manufacturerId number
    Id of the manufacturer.
    name string
    parentId number
    Id of the parent inventory item template.
    roleId number
    Id of the inventory item role.
    device_type_id float
    Id of the device type. NetBox refuses to move a template to another type.
    id float
    NetBox id.
    label str
    Physical label.
    manufacturer_id float
    Id of the manufacturer.
    name str
    parent_id float
    Id of the parent inventory item template.
    role_id float
    Id of the inventory item role.
    deviceTypeId Number
    Id of the device type. NetBox refuses to move a template to another type.
    id Number
    NetBox id.
    label String
    Physical label.
    manufacturerId Number
    Id of the manufacturer.
    name String
    parentId Number
    Id of the parent inventory item template.
    roleId Number
    Id of the inventory item role.

    getInventoryItemTemplate Result

    The following output properties are available:

    ComponentId double
    Id of the component template named by component_type.
    ComponentType string
    Type of the component template the item is bound to, e.g. dcim.interfacetemplate. Requires component_id.
    Created string
    Description string
    DeviceTypeId double
    Id of the device type. NetBox refuses to move a template to another type.
    Id double
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    ManufacturerId double
    Id of the manufacturer.
    Name string
    ParentId double
    Id of the parent inventory item template.
    PartId string
    Manufacturer part number.
    RoleId double
    Id of the inventory item role.
    Url string
    ComponentId float64
    Id of the component template named by component_type.
    ComponentType string
    Type of the component template the item is bound to, e.g. dcim.interfacetemplate. Requires component_id.
    Created string
    Description string
    DeviceTypeId float64
    Id of the device type. NetBox refuses to move a template to another type.
    Id float64
    NetBox id.
    Label string
    Physical label.
    LastUpdated string
    ManufacturerId float64
    Id of the manufacturer.
    Name string
    ParentId float64
    Id of the parent inventory item template.
    PartId string
    Manufacturer part number.
    RoleId float64
    Id of the inventory item role.
    Url string
    component_id number
    Id of the component template named by component_type.
    component_type string
    Type of the component template the item is bound to, e.g. dcim.interfacetemplate. Requires component_id.
    created string
    description string
    device_type_id number
    Id of the device type. NetBox refuses to move a template to another type.
    id number
    NetBox id.
    label string
    Physical label.
    last_updated string
    manufacturer_id number
    Id of the manufacturer.
    name string
    parent_id number
    Id of the parent inventory item template.
    part_id string
    Manufacturer part number.
    role_id number
    Id of the inventory item role.
    url string
    componentId Double
    Id of the component template named by component_type.
    componentType String
    Type of the component template the item is bound to, e.g. dcim.interfacetemplate. Requires component_id.
    created String
    description String
    deviceTypeId Double
    Id of the device type. NetBox refuses to move a template to another type.
    id Double
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    manufacturerId Double
    Id of the manufacturer.
    name String
    parentId Double
    Id of the parent inventory item template.
    partId String
    Manufacturer part number.
    roleId Double
    Id of the inventory item role.
    url String
    componentId number
    Id of the component template named by component_type.
    componentType string
    Type of the component template the item is bound to, e.g. dcim.interfacetemplate. Requires component_id.
    created string
    description string
    deviceTypeId number
    Id of the device type. NetBox refuses to move a template to another type.
    id number
    NetBox id.
    label string
    Physical label.
    lastUpdated string
    manufacturerId number
    Id of the manufacturer.
    name string
    parentId number
    Id of the parent inventory item template.
    partId string
    Manufacturer part number.
    roleId number
    Id of the inventory item role.
    url string
    component_id float
    Id of the component template named by component_type.
    component_type str
    Type of the component template the item is bound to, e.g. dcim.interfacetemplate. Requires component_id.
    created str
    description str
    device_type_id float
    Id of the device type. NetBox refuses to move a template to another type.
    id float
    NetBox id.
    label str
    Physical label.
    last_updated str
    manufacturer_id float
    Id of the manufacturer.
    name str
    parent_id float
    Id of the parent inventory item template.
    part_id str
    Manufacturer part number.
    role_id float
    Id of the inventory item role.
    url str
    componentId Number
    Id of the component template named by component_type.
    componentType String
    Type of the component template the item is bound to, e.g. dcim.interfacetemplate. Requires component_id.
    created String
    description String
    deviceTypeId Number
    Id of the device type. NetBox refuses to move a template to another type.
    id Number
    NetBox id.
    label String
    Physical label.
    lastUpdated String
    manufacturerId Number
    Id of the manufacturer.
    name String
    parentId Number
    Id of the parent inventory item template.
    partId String
    Manufacturer part number.
    roleId Number
    Id of the inventory item role.
    url String

    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