NetBox icon

NetBox

Consume NetBox API

Actions243

Interface Template → Create

AI-generated

Overview

This node interacts with the NetBox API to create an Interface Template within the DCIM domain. It is useful for network administrators and engineers who want to automate the creation of interface templates for device types in their network infrastructure. For example, it can be used to define standard interface templates for different device types to ensure consistency and streamline device provisioning.

Use Case Examples

  1. Creating an interface template for a specific device type with a defined interface type and name.
  2. Automating the addition of interface templates to device types in bulk to maintain uniformity across network devices.

Properties

Name Meaning
Domain Specifies the domain of the NetBox API to use, here it is fixed to 'dcim' for Interface Templates.
Device Type ID ID of the device type to which the interface template will be associated. Required if module type is not specified.
Name Name of the interface template to be created.
Type Type of the interface, such as virtual, bridge, or various physical interface standards.
Additional Fields Optional additional fields such as module type ID, label, management only flag, and description for the interface template.

Output

JSON

  • id - Unique identifier of the created interface template.
  • name - Name of the created interface template.
  • type - Type of the created interface template.
  • device_type_id - ID of the device type associated with the interface template.
  • module_type - ID of the module type if specified.
  • label - Physical label of the interface template if provided.
  • mgmt_only - Boolean indicating if the interface is management only.
  • description - Description of the interface template.

Dependencies

  • NetBox API
  • An API key credential for authentication

Troubleshooting

  • Ensure the Device Type ID or Module Type ID is provided as required; missing these will cause errors.
  • Verify that the interface type is valid and supported by NetBox to avoid API rejection.
  • Check API credentials and network connectivity if authentication or connection errors occur.
  • Error messages from the API will typically indicate missing required fields or invalid values; review the error details to correct input.

Links

Discussion