Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
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
published on Wednesday, Nov 4, 2026 by e-breuninger
Lists inventory_item_template objects matching the given filters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = netbox.getInventoryItemTemplates({
filters: [{
name: "name",
value: "test-inventory_item_template",
}],
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_inventory_item_templates(filters=[{
"name": "name",
"value": "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.GetInventoryItemTemplates(ctx, &netbox.GetInventoryItemTemplatesArgs{
Filters: []netbox.GetInventoryItemTemplatesFilter{
{
Name: "name",
Value: "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.GetInventoryItemTemplates.Invoke(new()
{
Filters = new[]
{
new Netbox.Inputs.GetInventoryItemTemplatesFilterInputArgs
{
Name = "name",
Value = "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.GetInventoryItemTemplatesArgs;
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.getInventoryItemTemplates(GetInventoryItemTemplatesArgs.builder()
.filters(GetInventoryItemTemplatesFilterArgs.builder()
.name("name")
.value("test-inventory_item_template")
.build())
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getInventoryItemTemplates
arguments:
filters:
- name: name
value: test-inventory_item_template
Example coming soon!
Using getInventoryItemTemplates
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 getInventoryItemTemplates(args: GetInventoryItemTemplatesArgs, opts?: InvokeOptions): Promise<GetInventoryItemTemplatesResult>
function getInventoryItemTemplatesOutput(args: GetInventoryItemTemplatesOutputArgs, opts?: InvokeOutputOptions): Output<GetInventoryItemTemplatesResult>def get_inventory_item_templates(filters: Optional[Sequence[GetInventoryItemTemplatesFilter]] = None,
limit: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetInventoryItemTemplatesResult
def get_inventory_item_templates_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetInventoryItemTemplatesFilterArgs]]]] = None,
limit: pulumi.Input[Optional[float]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetInventoryItemTemplatesResult]func GetInventoryItemTemplates(ctx *Context, args *GetInventoryItemTemplatesArgs, opts ...InvokeOption) (*GetInventoryItemTemplatesResult, error)
func GetInventoryItemTemplatesOutput(ctx *Context, args *GetInventoryItemTemplatesOutputArgs, opts ...InvokeOption) GetInventoryItemTemplatesResultOutput> Note: This function is named GetInventoryItemTemplates in the Go SDK.
public static class GetInventoryItemTemplates
{
public static Task<GetInventoryItemTemplatesResult> InvokeAsync(GetInventoryItemTemplatesArgs args, InvokeOptions? opts = null)
public static Output<GetInventoryItemTemplatesResult> Invoke(GetInventoryItemTemplatesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetInventoryItemTemplatesResult> Invoke(GetInventoryItemTemplatesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetInventoryItemTemplatesResult> getInventoryItemTemplates(GetInventoryItemTemplatesArgs args, InvokeOptions options)
public static Output<GetInventoryItemTemplatesResult> getInventoryItemTemplates(GetInventoryItemTemplatesArgs args, InvokeOptions options)
public static Output<GetInventoryItemTemplatesResult> getInventoryItemTemplates(GetInventoryItemTemplatesArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getInventoryItemTemplates:getInventoryItemTemplates
arguments:
# arguments dictionarydata "netbox_get_inventory_item_templates" "name" {
# arguments
}The following arguments are supported:
- Filters
List<Get
Inventory Item Templates Filter> - Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- Limit double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- Filters
[]Get
Inventory Item Templates Filter - Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- Limit float64
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters list(object)
- Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters
List<Get
Inventory Item Templates Filter> - Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- limit Double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters
Get
Inventory Item Templates Filter[] - Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters
Sequence[Get
Inventory Item Templates Filter] - Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- limit float
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- filters List<Property Map>
- Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- limit Number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
getInventoryItemTemplates Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Inventory
Item List<GetTemplates Inventory Item Templates Inventory Item Template> - The matching inventoryitemtemplates.
- Filters
List<Get
Inventory Item Templates Filter> - Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- Limit double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- Id string
- The provider-assigned unique ID for this managed resource.
- Inventory
Item []GetTemplates Inventory Item Templates Inventory Item Template - The matching inventoryitemtemplates.
- Filters
[]Get
Inventory Item Templates Filter - Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- Limit float64
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- id string
- The provider-assigned unique ID for this managed resource.
- inventory_
item_ list(object)templates - The matching inventoryitemtemplates.
- filters list(object)
- Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- id String
- The provider-assigned unique ID for this managed resource.
- inventory
Item List<GetTemplates Inventory Item Templates Inventory Item Template> - The matching inventoryitemtemplates.
- filters
List<Get
Inventory Item Templates Filter> - Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- limit Double
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- id string
- The provider-assigned unique ID for this managed resource.
- inventory
Item GetTemplates Inventory Item Templates Inventory Item Template[] - The matching inventoryitemtemplates.
- filters
Get
Inventory Item Templates Filter[] - Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- limit number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- id str
- The provider-assigned unique ID for this managed resource.
- inventory_
item_ Sequence[Gettemplates Inventory Item Templates Inventory Item Template] - The matching inventoryitemtemplates.
- filters
Sequence[Get
Inventory Item Templates Filter] - Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- limit float
- The maximum number of objects to return from the API lookup. Defaults to 1000.
- id String
- The provider-assigned unique ID for this managed resource.
- inventory
Item List<Property Map>Templates - The matching inventoryitemtemplates.
- filters List<Property Map>
- Query filters, sent as API list parameters. Supported names: devicetypeid, devicetypeidn, id, idempty, idgt, idgte, idlt, idlte, idn, label, labelempty, labelic, labelie, labeliew, labeliregex, labelisw, labeln, labelnic, labelnie, labelniew, labelnisw, labelregex, manufacturerid, manufactureridn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, parentid, parentidn, roleid, roleidn. Repeating a name sends that parameter once per value.
- limit Number
- The maximum number of objects to return from the API lookup. Defaults to 1000.
Supporting Types
GetInventoryItemTemplatesFilter
GetInventoryItemTemplatesInventoryItemTemplate
- 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.
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger