enclosure2.query ================ Query detected enclosures on TrueNAS hardware. Returns an array of enclosure objects representing the head unit (controller) and any attached JBODs or JBOFs. Each entry contains hardware identification, physical layout information, and per-slot element details including disk mappings and status. .. note:: This method only returns results on TrueNAS-sold hardware. An empty array is returned on generic or non-TrueNAS systems. Results are sorted with controller enclosures first, then by enclosure ID. Examples: Query all enclosures:: [] Query only the controller (head unit):: [ [["controller", "=", true]] ] Query a specific enclosure by ID:: [ [["id", "=", "5b0bd6d1a30714bf"]], {"get": true} ] .. raw:: html
Additional Properties of any type are allowed.
Type: objectAdditional Properties of any type are allowed.
Type: object