Status
The machine, or a
404 if it does not exist.Act on the machine
One of
suspend, start, or exec.Required when
action is exec. A bash command to run on the machine.Optional timeout for an
exec.suspend and start, the response is { ok: true, machine } with the refreshed machine. Suspend drops the machine to $0 compute; start resumes it warm.
For exec, the response is { ok, result } where result is { exitCode, stdout, stderr, durationMs } and ok is true when exitCode is 0.
Destroy
{ ok: true }.
Errors
| Status | Condition |
|---|---|
400 | Fly is not connected, an unknown action, or exec without a command. |
404 | The machine does not exist (status only). |
500 | The Fly API returned an error. |