Decommission a Tray
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
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
Core inventory component ID of the Tray, not an expected-inventory or Flow component ID.
Request
Response
Human-readable outcome of the request