Retrieve a Tray
Get a Tray by component ID or component MAC address.
The identifier must resolve to exactly one component. An ambiguous component ID returns 412 Precondition Failed; use the component MAC address to disambiguate it.
Org must have an Infrastructure Provider entity. User must have authorization role with PROVIDER_ADMIN suffix.
Authentication
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://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current
Path parameters
Query parameters
Response
Domain external ID (rack group ID) containing this Tray’s Rack. Null when no rack-group Domain is assigned.
Counts of non-terminal tasks currently associated with a rack or tray. Rack stats include component-scoped tasks on the rack; tray stats include only tasks that explicitly target the tray.
Type of the tray. Unknown is reported when the component type is not recognized.
Flow-derived operability phase of the tray
Flow’s leakage-handling status. Unknown means Flow could not determine the status; None means no supported handling task exists; ShuttingDown means a forced-shutdown task is waiting, pending, or running; Down means it completed; and Failed means the latest supported handling task failed or was terminated. Down describes handling progress, not the component’s current power state.
BMC (Baseboard Management Controller) entries for the tray