NetBox icon

NetBox

Consume NetBox API

Actions243

Rack → Create

AI-generated

Overview

This node interacts with the NetBox API to create a new Rack resource within the DCIM domain. It is useful for automating the management of data center infrastructure by programmatically adding racks with specific attributes such as site ID, name, status, width, and height. Additional optional fields allow for detailed customization of the rack's properties, including location, tenant, role, rack type, serial number, asset tag, and more.

Use Case Examples

  1. Automatically create a new rack in a specified site with predefined dimensions and status.
  2. Add racks in bulk to NetBox from an external inventory system using this node in an automation workflow.

Properties

Name Meaning
Domain Specifies the domain of the NetBox API to use, here it is 'dcim' for data center infrastructure management.
Site ID The identifier of the site where the rack will be created.
Name The name of the rack to be created.
Status The operational status of the rack, such as active or planned.
Width (in) The width of the rack in inches.
U Height The height of the rack in rack units (U).
Additional Fields Optional additional properties for the rack such as location ID, tenant ID, role ID, rack type ID, serial number, asset tag, description, tags, and custom fields.

Output

JSON

  • id - Unique identifier of the created rack.
  • name - Name of the created rack.
  • status - Status of the created rack.
  • site_id - Site identifier where the rack is created.
  • width - Width of the rack in inches.
  • u_height - Height of the rack in rack units.
  • additional_fields - Additional optional fields provided during creation.

Dependencies

  • NetBox API with appropriate credentials

Troubleshooting

  • Ensure the API credentials are correctly configured and have permissions to create racks in the specified domain and site.
  • Verify that required fields such as site ID, rack name, status, width, and U height are provided and valid.
  • Check for network connectivity issues to the NetBox API endpoint.
  • If the node throws errors related to invalid input, review the additional fields for correct data types and formats.

Links

Discussion