API referenceSections

Agents and fleet

20 operations. Open one for its parameters, request body, responses and examples.

MethodPathSummary
GET/api/v1/tenants/{tid}/agent-rolloutsAgent updates in batches (ADR 0098); needs server.read
POST/api/v1/tenants/{tid}/agent-rollouts 202Update every agent to the panel's release, a canary batch first; stops when a batch fails. NO_RELEASE, ROLLOUT_BUSY, ROLLOUT_NOTHING_TO_DO
GET/api/v1/tenants/{tid}/agent-rollouts/{rid}One rollout
POST/api/v1/tenants/{tid}/agent-rollouts/{rid}/actions/{action} 202resume a stopped rollout (its failed servers get the update again) or cancel
GET/api/v1/tenants/{tid}/agent-versionsEvery server's agent version and protocol against the panel, by the version skew policy (ADR 0152). Servers whose agent was revoked are left out.
GET/api/v1/tenants/{tid}/enrollment-tokensEnrollment tokens: live ones, and those used or expired in the last 24 hours, without their secret (ADR 0133)
POST/api/v1/tenants/{tid}/enrollment-tokensCreate a one-time agent enrollment token
DELETE/api/v1/tenants/{tid}/enrollment-tokens/{id}Revoke an unused enrollment token: no server can join with it any more (ADR 0133)
GET/api/v1/tenants/{tid}/local-serverHow connecting the panel's own machine as a server goes (ADR 0114); 404 LOCAL_SERVER_NONE when it does not wait for that. Provider's own tenant only
POST/api/v1/tenants/{tid}/local-server 202Connect the panel's own machine (again after a failure), installing the ticked part of the recommended set
GET/api/v1/tenants/{tid}/server-lossesThe provider's servers declared lost and what replaced them (ADR 0149)
GET/api/v1/tenants/{tid}/server-rebuildsRebuilds of lost servers (ADR 0149)
POST/api/v1/tenants/{tid}/server-rebuilds 202Declare a server lost (its agent revoked, maintenance) and rebuild everything it had on another server. Needs server.manage and the lost server's name in confirm. REBUILD_CONFIRM, REBUILD_BUSY, REBUILD_NOTHING
POST/api/v1/tenants/{tid}/server-rebuilds/planDry run of rebuilding a lost server on another one from off-machine backups (ADR 0149). Writes nothing. Needs server.manage. REBUILD_SOURCE_ONLINE, REBUILD_TARGET_OFFLINE, REBUILD_TARGET_LOST, REBUILD_SAME_SERVER
GET/api/v1/tenants/{tid}/server-rebuilds/{rid}One rebuild with its items
POST/api/v1/tenants/{tid}/server-rebuilds/{rid}/actions/{action} 202retry (every failed or blocked item, or the one named in item) or cancel (the items not done). REBUILD_STATE when there is nothing to do
GET/api/v1/tenants/{tid}/servers/{id}/abandonWhat abandoning a gone server would drop, per tenant (ADR 0198)
POST/api/v1/tenants/{tid}/servers/{id}/abandonAbandon a gone server with what the panel keeps of it (ADR 0198)
DELETE/api/v1/tenants/{tid}/servers/{id}/agentRevoke a server's agent
POST/api/v1/tenants/{tid}/servers/{id}/agent-update 202Move the server's agent and broker to the release the panel runs (ADR 0046)