NetBox icon

NetBox

Consume NetBox API

Actions243

Device Bay Template → Update

AI-generated

Overview

This node updates a Device Bay Template in the NetBox API under the DCIM domain. It is useful for automating the modification of device bay templates, such as changing the device type, name, label, or description. For example, it can be used to update the label or description of a device bay template programmatically based on external data or workflow triggers.

Use Case Examples

  1. Updating the name and description of a device bay template to reflect new hardware changes.
  2. Changing the device type associated with a device bay template as part of an inventory update process.

Properties

Name Meaning
Domain The domain of the NetBox API to use, here it is 'dcim' for device-related resources.
Device Bay Template ID The unique identifier of the device bay template to update.
Update Fields Fields to update on the device bay template, including device type ID, name, label, and description.

Output

JSON

  • id - The ID of the updated device bay template record.
  • device_type - The device type ID associated with the updated template.
  • name - The updated name of the device bay template.
  • label - The updated physical label of the device bay template.
  • description - The updated description of the device bay template.

Dependencies

  • NetBox API with appropriate credentials

Troubleshooting

  • Ensure the Device Bay Template ID is valid and exists in the NetBox instance.
  • Verify that the API credentials have permission to update device bay templates.
  • Check that the update fields are correctly formatted and valid according to NetBox API specifications.
  • Common error messages may include authorization errors, resource not found, or validation errors on fields. Resolving these involves checking credentials, IDs, and field values.

Links

Discussion