NetBox icon

NetBox

Consume NetBox API

Actions243

Rack → Delete

AI-generated

Overview

This node interacts with the NetBox API to delete a specific Rack resource within the DCIM domain. It is useful in scenarios where you need to programmatically remove rack records from your NetBox inventory, such as during automated infrastructure cleanup or management workflows.

Use Case Examples

  1. Deleting a rack by specifying its ID to keep the inventory up to date.
  2. Automating the removal of racks that are no longer in use or have been decommissioned.

Properties

Name Meaning
Domain Specifies the domain of the NetBox API to target, here it is 'dcim' for data center infrastructure management.
ID The unique identifier of the rack to be deleted.

Output

JSON

  • success - Indicates whether the rack deletion was successful.
  • message - Additional information or error message related to the deletion operation.

Dependencies

  • NetBox API with appropriate credentials for authentication

Troubleshooting

  • Ensure the provided rack ID exists in the NetBox instance; otherwise, the deletion will fail.
  • Verify that the API credentials have sufficient permissions to delete rack resources.
  • Common error messages include authorization errors, resource not found, or network connectivity issues. Resolving these involves checking credentials, rack ID validity, and network access.

Links

Discussion