NetBox icon

NetBox

Consume NetBox API

Actions243

Console Port Template → List

AI-generated

Overview

This node interacts with the NetBox API to list console port templates within the DCIM domain. It is useful for retrieving a collection of console port template records, which can be filtered and limited according to user-defined criteria. Typical use cases include inventory management, auditing, or integration with other systems that require up-to-date information about console port templates in a network infrastructure.

Use Case Examples

  1. Retrieve all console port templates without limit to get a complete list.
  2. Fetch a limited number of console port templates with specific filters such as name or type to narrow down the results.

Properties

Name Meaning
Domain Specifies the domain of the NetBox API to use, here it is set to 'dcim' for data center infrastructure management.
Return All Determines whether to return all results or limit the number of results.
Limit Maximum number of results to return when 'Return All' is false.
Filters Collection of filters to narrow down the list of console port templates based on various attributes such as ID, name, type, device type ID, module type ID, creation date, and last updated date.

Output

JSON

  • id - Unique identifier of the console port template.
  • name - Name of the console port template.
  • type - Type of the console port template port.
  • device_type_id - ID of the device type associated with the console port template.
  • module_type_id - ID of the module type associated with the console port template.
  • created - Creation timestamp of the console port template.
  • last_updated - Timestamp of the last update to the console port template.

Dependencies

  • NetBox API
  • 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 can lead to no data being returned or errors. Verify that the domain is set to 'dcim' and the resource to 'console-port-templates' for this operation.
  • Filters must be correctly formatted; invalid filter values may cause the API to reject the request.
  • If 'Return All' is false and the limit is set too low, the user might not see all expected results. Adjust the limit or enable 'Return All' as needed.

Links

Discussion