Create Rack Storage
hudu_create_rack_storageCreate a physical rack cabinet in Hudu to document server room infrastructure, specifying owning company, location, dimensions, and power capacity.
Instructions
Create a new rack storage in Hudu. A rack storage is a physical rack — a cabinet in a server room — owned by a company and standing at a location, with a height, a width, a starting unit number and a maximum wattage. It is the container only: the equipment mounted in it is modelled separately as rack storage items, via the hudu_*_rack_storage_item tools.
Returns the created record, including the id Hudu assigned. Hudu answers 422 with the offending field named when validation fails.
Operation class: Create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| width | No | How wide the rack is. Hudu states no unit for this number, so it is comparable with other values from the same instance and with nothing else. | |
| height | No | How tall the rack is. The spec says only "the height of the rack storage" and gives no unit; rack height is conventionally a count of rack units, but the API does not confirm that. Read an existing rack and compare it against known hardware before trusting the interpretation. | |
| company_id | No | Numeric id of the company that owns this rack. Resolve a customer name to an id with hudu_list_companies first. | |
| description | No | Free-text description of the rack. | |
| location_id | No | Numeric id of the location the rack physically stands in. This API publishes no locations endpoint at all, so there is nothing to look the id up in — take it from an existing rack at the same site via hudu_list_rack_storages. | |
| max_wattage | No | Power the rack is documented as being able to handle. The spec names the quantity ("the maximum wattage the rack storage can handle") but never states the unit, so whether it is watts or kilowatts is not published — match an existing rack rather than converting. Compare it against the `power_draw` of the items mounted inside; Hudu documents no automatic check of one against the other. | |
| starting_unit | No | The number this rack's own unit numbering begins at, which is why an item's start_unit is not necessarily 1-based. The spec documents nothing further — not which physical end of the cabinet that unit is, and not what Hudu uses when the field is omitted. |