NetBox icon

NetBox

Consume NetBox API

Actions243

Rack Type → Create

AI-generated

Overview

This node interacts with the NetBox API to create a new Rack Type resource within the DCIM domain. It is useful for automating the management of data center infrastructure by programmatically adding rack types with specific attributes such as manufacturer, name, slug, form factor, width, and height. This can streamline inventory and asset management in network and data center environments.

Use Case Examples

  1. Creating a new rack type with specified manufacturer ID, name, slug, form factor, width, and U height to standardize rack inventory across multiple sites.
  2. Automating the addition of rack types with additional optional fields like weight, description, and tags for detailed asset tracking.

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.
Manufacturer ID The identifier of the manufacturer associated with the rack type being created.
Name The name of the rack type to be created.
Slug A URL-friendly unique identifier for the rack type.
Form Factor The physical form factor of the rack type, such as 2-post frame, 4-post frame, wall cabinet, etc.
Width (in) The width of the rack type in inches, options include 10, 19, 21, or 23 inches.
U Height The height of the rack in rack units (U).
Additional Fields Optional additional fields for the rack type such as starting unit, descending units, outer dimensions, weight, description, tags, and custom fields in JSON format.

Output

JSON

  • id - Unique identifier of the created rack type
  • name - Name of the created rack type
  • slug - Slug of the created rack type
  • manufacturer_id - Manufacturer ID associated with the rack type
  • form_factor - Form factor of the rack type
  • width - Width of the rack type in inches
  • u_height - Height of the rack in rack units
  • additional_fields - Additional optional fields provided during creation such as weight, description, tags, and custom fields

Dependencies

  • NetBox API
  • An API key credential for authenticating with the NetBox API

Troubleshooting

  • Ensure the manufacturer ID provided exists in the NetBox system to avoid creation errors.
  • Validate that required fields such as name, slug, form factor, width, and U height are provided and correctly formatted.
  • Check API authentication credentials if the node fails to connect to the NetBox API.
  • If the API returns an error, review the error message for details such as duplicate slugs or invalid field values.

Links

Discussion