Retrieve all Trays
Get all Trays (components) for the specified Site.
Org must have an Infrastructure Provider entity. User must have `FORGE_PROVIDER_ADMIN` authorization role.
**Filter constraints:**
- `rackId` and `rackName` are mutually exclusive
- `rackId`/`rackName` cannot be combined with `id`/`componentId` (rack-level vs component-level targeting)
- `componentId` requires `type` to be specified
Authentication
AuthorizationBearer
```
export JWT_BEARER_TOKEN="<jwt-bearer-token>"
# Example org name: "acme-inc
export ORG_NAME=<org-name>
# Use the JWT bearer token in your API request auth header:
curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://carbide-rest-api.carbide.svc.cluster.local/v2/org/$ORG_NAME/carbide/user/current
```
Path parameters
org
Query parameters
siteId
ID of the Site to retrieve Trays from
rackId
Filter by Rack ID
rackName
Filter by Rack name
type
Filter by tray type
Allowed values:
componentId
Filter by component ID. Can be specified multiple times to filter on more than one component ID. Requires 'type' parameter.
id
Filter by tray UUID. Can be specified multiple times to filter on more than one tray ID.
pageNumber
Page number for pagination query
pageSize
Page size for pagination query
orderBy
Ordering for pagination query
Response headers
X-Pagination
Pagination result in JSON format
Response
OK
id
Unique identifier of the Tray
componentId
ID of the component
type
Type of the tray
Allowed values:
name
Name of the tray
manufacturer
Manufacturer of the tray
model
Model of the tray
serialNumber
Serial number of the tray
description
Description of the tray
firmwareVersion
Firmware version of the tray
powerState
Current power state of the tray
position
Position of a tray within a rack
bmcs
BMC (Baseboard Management Controller) entries for the tray
rackId
ID of the rack this tray belongs to
Errors
403
Forbidden Error