NetBox icon

NetBox

Consume NetBox API

Actions243

Power Port Template → Update

AI-generated

Overview

This node interacts with the NetBox API to update a Power Port Template resource within the DCIM domain. It allows users to modify specific fields of an existing power port template by providing its ID and the fields to update. This is useful for managing and maintaining accurate power port template data in network infrastructure management scenarios.

Use Case Examples

  1. Updating the name and label of a power port template to reflect new hardware specifications.
  2. Changing the type or maximum power draw of a power port template to match updated device requirements.

Properties

Name Meaning
Domain Specifies the domain of the NetBox API to interact with, here it is set to 'dcim' for data center infrastructure management.
ID The unique identifier of the power port template to update.
Update Fields A collection of fields that can be updated on the power port template, such as device type ID, module type ID, name, label, type, maximum draw, allocated draw, and description.

Output

JSON

  • id - The unique identifier of the updated power port template.
  • name - The name of the updated power port template.
  • label - The label of the updated power port template.
  • type - The type of the power port template after update.
  • maximum_draw - The maximum power draw value after update.
  • allocated_draw - The allocated power draw value after update.
  • description - The description of the power port template after update.

Dependencies

  • NetBox API
  • An API key credential for authentication

Troubleshooting

  • Ensure the power port template ID is correct and exists in the NetBox instance to avoid 'not found' errors.
  • Verify that the API key credential has sufficient permissions to update power port templates.
  • Check that the update fields are valid and conform to expected data types to prevent validation errors.
  • If the node throws an error, enabling 'Continue on Fail' will allow the workflow to proceed and output the error message for debugging.

Links

Discussion