NetBox icon

NetBox

Consume NetBox API

Actions243

Rack Reservation → Update

AI-generated

Overview

This node updates a Rack Reservation record in the NetBox API under the DCIM domain. It is useful for modifying existing rack reservation details such as rack ID, units, user ID, description, tenant ID, tags, and custom fields. For example, it can be used to update the description or assign a different user to a rack reservation in a data center management workflow.

Use Case Examples

  1. Updating the description and user ID of a specific rack reservation by its ID.
  2. Changing the tenant associated with a rack reservation and adding tags for better categorization.

Properties

Name Meaning
Domain Specifies the domain of the NetBox API to use, here it is 'dcim' for data center infrastructure management.
ID The unique identifier of the rack reservation record to update.
Update Fields A collection of fields to update on the rack reservation, including rack ID, units, user ID, description, tenant ID, tags, and custom fields.

Output

JSON

  • id - The unique identifier of the updated rack reservation record.
  • rack - The rack ID associated with the reservation.
  • units - The units reserved in the rack.
  • user - The user ID associated with the reservation.
  • description - Description of the rack reservation.
  • tenant - Tenant ID associated with the reservation.
  • tags - Tags assigned to the rack reservation.
  • custom_fields - Custom fields data in JSON format.

Dependencies

  • NetBox API
  • An API key credential for authentication

Troubleshooting

  • Ensure the rackReservationId is valid and exists in the NetBox system to avoid 'record not found' errors.
  • Verify that the API key credential is correctly configured and has permissions to update rack reservations.
  • Check the format of custom_fields JSON to avoid parsing errors.
  • If the node throws an error, enabling 'Continue on Fail' will output the error message as JSON instead of stopping execution.

Links

Discussion