Jobs
Jobs and their logs. Every hardware action runs as a job.
4 endpoints
Jobs of a server
#GET/api/v1/servers/{id}/jobs
Path parameters
idinteger> 0
Example
curl "https://panel.example.com/api/v1/servers/42/jobs" \
-H "Authorization: Bearer $TRIXOS_TOKEN"List jobs
#GET/api/v1/jobs
Filter by status, type and serverId.
Query parameters
statusstringone ofqueued,running,success,failed,cancelledtypestringone ofpower,bmc_command,reinstall,rescue,hardware_collect,hardware_discover,firmware_update,disk_wipe,password_reset,switch_port,outlet_power,agent_installserverIdintegerlimitinteger≥ 1, ≤ 500, default100
Example
curl "https://panel.example.com/api/v1/jobs" \
-H "Authorization: Bearer $TRIXOS_TOKEN"Get a job with its log
#GET/api/v1/jobs/{id}
afterLogId returns only newer log lines, for polling. Live updates: websocket /api/v1/ws/jobs/{id}.
Path parameters
idstringuuid, pattern^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Query parameters
afterLogIdintegerdefault0
Example
curl "https://panel.example.com/api/v1/jobs/42" \
-H "Authorization: Bearer $TRIXOS_TOKEN"Cancel a job
#POST/api/v1/jobs/{id}/cancel
Queued jobs end at once; running jobs stop at the next step boundary.
Path parameters
idstringuuid, pattern^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Example
curl -X POST "https://panel.example.com/api/v1/jobs/42/cancel" \
-H "Authorization: Bearer $TRIXOS_TOKEN"