Node Operations
Queue a node power operation
POST /v1/fleets/{fleetId}/nodes/{nodeId}/power
Queues a power transition on a node. Valid transitions depend on the node's current power state. Requires the Administrator role. Requests from Users are rejected with 403. Unknown reset types are rejected with 400.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
fleetId |
path | string (uuid) | Yes | Fleet identifier |
nodeId |
path | string | Yes | Node identifier (from list nodes response) |
Idempotency-Key |
header | string | Yes | Unique key for idempotent retries. Required for power operations. Maximum length: 255. |
Request body (application/json, required)
Responses
| Status | Description | Body |
|---|---|---|
200 |
Idempotent replay — the operation already completed. The response body contains the terminal outcome. | NodePowerOperationQueued |
202 |
Power operation accepted and queued. | NodePowerOperationQueued |
400 |
Invalid request body or unknown resetType | ErrorResponse |
403 |
Authenticated but the caller does not have the Administrator role | ErrorResponse |
404 |
Fleet or node not found, or the fleet has not been provisioned yet | ErrorResponse |
409 |
Requested transition conflicts with the node's current power state, or a request with the same Idempotency-Key is currently in progress | ErrorResponse |
422 |
Idempotency-Key already used with a different request body, method, path, or organization | ErrorResponse |
423 |
Another power operation is already in progress on this node | ErrorResponse |
500 |
Internal failure before the upstream call | ErrorResponse |
502 |
The node's power controller returned an error or could not be reached | ErrorResponse |
503 |
The operation was recorded but rejected immediately. The response body contains the failure record. Clients may retry with a new Idempotency-Key. | NodePowerOperationQueued |
Example request
curl -X POST "$API_URL/v1/fleets/$FLEET_ID/nodes/$NODE_ID/power" \
-H "Authorization: Bearer $TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"resetType":"ForceRestart"}'Was this page helpful?
Thanks for the feedback.