Update Rack Storage
hudu_update_rack_storageUpdate an existing rack storage in Hudu by its numeric id, setting fields like name, height, width, company, location, or max wattage. Only supplied fields are overwritten; read the record first to avoid accidental data loss.
Instructions
Update an existing rack storage. 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.
Only the fields you supply are sent. Be aware that Hudu applies these as a PUT: for fields you do send, the new value replaces the old one outright — read the record first with hudu_get_rack_storage if you intend to append rather than overwrite.
Operation class: Update. Impact: Overwrites the supplied fields on this rack storage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Numeric Hudu id of the rack storage. | |
| name | No | Name of the rack as a person would refer to it, e.g. "DC1 Row A Cabinet 3". | |
| 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. |