NetBox icon

NetBox

Consume NetBox API

Actions243

Inventory Item Role → List

AI-generated

Overview

This node interacts with the NetBox API to list Inventory Item Roles within the DCIM domain. It is useful for users who want to retrieve and manage inventory item roles from their NetBox instance, such as for asset management or inventory categorization. For example, it can be used to fetch all inventory item roles or filter them based on specific criteria like name, slug, or creation date.

Use Case Examples

  1. Retrieve all inventory item roles in the DCIM domain.
  2. Filter inventory item roles by name or color.
  3. Limit the number of returned inventory item roles to a specific count.

Properties

Name Meaning
Domain Specifies the domain of the NetBox API to interact with, here it is set to 'dcim' for inventory-related resources.
Return All Determines whether to return all results or limit the number of results.
Limit Maximum number of inventory item roles to return when 'Return All' is false.
Filters Collection of filters to narrow down the list of inventory item roles based on various fields such as name, slug, color, ID, ordering, and date filters.

Output

JSON

  • id - Unique identifier of the inventory item role.
  • name - Name of the inventory item role.
  • slug - Slug (URL-friendly identifier) of the inventory item role.
  • color - Color code associated with the inventory item role.
  • created - Creation date of the inventory item role.
  • last_updated - Last updated date of the inventory item role.

Dependencies

  • NetBox API
  • An API key credential for authentication

Troubleshooting

  • Common issues include authentication failures due to invalid or missing API credentials. Ensure the API key credential is correctly configured.
  • Incorrect domain or resource selection may lead to no data being returned or errors. Verify the domain is set to 'dcim' and resource to 'inventory-item-roles'.
  • Filters with invalid values or formats may cause the API to reject the request. Use valid filter values and formats as per NetBox API documentation.
  • If the node throws errors during execution, enabling 'Continue on Fail' can help to handle errors gracefully by returning error details in the output.

Links

Discussion