NetBox icon

NetBox

Consume NetBox API

Actions243

Rack → Get Many

AI-generated

Overview

This node interacts with the NetBox API to retrieve multiple rack records from the DCIM domain. It is useful for users who want to fetch a list of racks with optional filtering and pagination controls. For example, a data center manager could use this node to get all racks in a specific site or with a particular status.

Use Case Examples

  1. Retrieve all racks in a specific site by setting the 'Site ID' filter.
  2. Fetch up to 50 racks with a specific role or asset tag.
  3. Return all racks without limit by enabling the 'Return All' option.

Properties

Name Meaning
Domain Specifies the domain of the NetBox API to use, here it is 'dcim' for data center infrastructure management.
Return All Determines whether to return all rack records or limit the number of results.
Limit Maximum number of rack records to return when 'Return All' is false.
Filters Optional filters to narrow down the rack records returned, such as by site ID, tenant ID, role ID, name, status, serial number, asset tag, type ID, and others.

Output

JSON

  • id - Unique identifier of the rack.
  • name - Name of the rack.
  • site_id - Identifier of the site where the rack is located.
  • location_id - Identifier of the rack's location.
  • tenant_id - Identifier of the tenant associated with the rack.
  • role_id - Identifier of the rack's role.
  • status - Current status of the rack.
  • serial - Serial number of the rack.
  • asset_tag - Asset tag assigned to the rack.
  • type_id - Identifier of the rack type.
  • created - Timestamp when the rack was created.
  • last_updated - Timestamp of the last update to the rack.

Dependencies

  • NetBox API
  • An API key credential for authentication

Troubleshooting

  • Ensure the API key credential is correctly configured and has sufficient permissions to access the DCIM domain and racks resource.
  • If the node returns an error, check the filter values for correctness and compatibility with the NetBox API.
  • If 'Return All' is enabled and the dataset is very large, the node execution might take longer or time out; consider using filters or limits to reduce data volume.

Links

Discussion