published on Wednesday, Nov 4, 2026 by e-breuninger
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 dictionarydata "netbox_get_inventory_item_template" "name" {
# arguments
}The following arguments are supported:
- Device
Type doubleId - Id of the device type. NetBox refuses to move a template to another type.
- Id double
- NetBox id.
- Label string
- Physical label.
- Manufacturer
Id double - Id of the manufacturer.
- Name string
- Parent
Id double - Id of the parent inventory item template.
- Role
Id double - Id of the inventory item role.
- Device
Type float64Id - Id of the device type. NetBox refuses to move a template to another type.
- Id float64
- NetBox id.
- Label string
- Physical label.
- Manufacturer
Id float64 - Id of the manufacturer.
- Name string
- Parent
Id float64 - Id of the parent inventory item template.
- Role
Id float64 - Id of the inventory item role.
- device_
type_ numberid - 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.
- device
Type DoubleId - Id of the device type. NetBox refuses to move a template to another type.
- id Double
- NetBox id.
- label String
- Physical label.
- manufacturer
Id Double - Id of the manufacturer.
- name String
- parent
Id Double - Id of the parent inventory item template.
- role
Id Double - Id of the inventory item role.
- device
Type numberId - 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.
- device_
type_ floatid - 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.
- device
Type NumberId - 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.
getInventoryItemTemplate Result
The following output properties are available:
- Component
Id double - 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 doubleId - Id of the device type. NetBox refuses to move a template to another type.
- Id double
- NetBox id.
- Label string
- Physical label.
- Last
Updated string - Manufacturer
Id double - Id of the manufacturer.
- Name string
- Parent
Id double - Id of the parent inventory item template.
- Part
Id string - Manufacturer part number.
- Role
Id double - Id of the inventory item role.
- Url string
- Component
Id float64 - 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 float64Id - Id of the device type. NetBox refuses to move a template to another type.
- Id float64
- NetBox id.
- Label string
- Physical label.
- Last
Updated string - Manufacturer
Id float64 - Id of the manufacturer.
- Name string
- Parent
Id float64 - Id of the parent inventory item template.
- Part
Id string - Manufacturer part number.
- Role
Id 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_ numberid - 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
- component
Id Double - 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 DoubleId - Id of the device type. NetBox refuses to move a template to another type.
- id Double
- NetBox id.
- label String
- Physical label.
- last
Updated String - manufacturer
Id Double - Id of the manufacturer.
- name String
- parent
Id Double - Id of the parent inventory item template.
- part
Id String - Manufacturer part number.
- role
Id Double - 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 numberId - 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
- 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_ floatid - 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
- 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 NumberId - 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
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
published on Wednesday, Nov 4, 2026 by e-breuninger