Skip to navigation

Decommission a Tray

View as MarkdownOpen in Claude

Start decommissioning a managed Tray in the specified Site’s Core inventory. The component type is derived from its Core ID: fm100 identifies a Compute Tray (managed host), sw100 identifies an NVSwitch, and ps100 identifies a PowerShelf. An unsupported ID namespace returns 400; an absent component returns 404.

You must be a Provider Admin in the Org that owns the Site, and the Site must be Registered. Core requires the component to be Ready. For Compute, the host must not be assigned to an Instance, and every attached DPU must support BFB installation through Redfish. For NVSwitch and PowerShelf, no managed host in the component’s rack may be assigned to an instance. NVSwitch also requires Core’s RMS component-manager backend. Failed preconditions return 412.

Decommissioning a Compute Tray deconfigures the host and attached DPUs, factory-resets their BMCs, and deletes managed credentials. For NVSwitch, it factory-resets NVOS and the BMC and deletes the managed NVOS and BMC credentials. For PowerShelf, it factory-resets the BMC and deletes its managed BMC credentials.

A 202 response confirms acceptance, not completion. For Compute, use Machine status to observe workflow progress. For NVSwitch and PowerShelf, inspect the Core controller state; the terminal success state is decommissioning with substate decommissioned. This endpoint returns no Flow Task or component progress. Requests are not retried automatically. After a timeout, the result is unknown; Core can still be processing the request. Repeating the request after Core leaves Ready returns 412.

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://nico-rest-api.nico.svc.cluster.local/v2/org/$ORG_NAME/nico/user/current

Path parameters

orgstringRequired
Name of the Org
idstringRequired

Core inventory component ID of the Tray, not an expected-inventory or Flow component ID.

Request

This endpoint expects an object.
siteIdstringRequiredformat: "uuid"
ID of the Site that owns the Tray. The Site must be in Registered status and owned by the requesting provider org.

Response

Tray decommissioning request was accepted.
messagestring

Human-readable outcome of the request

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
412
Precondition Failed Error
500
Internal Server Error
501
Not Implemented Error
503
Service Unavailable Error
504
Gateway Timeout Error