Agents and fleet
20 operations. Open one for its parameters, request body, responses and examples.
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/tenants/{tid}/agent-rollouts | Agent updates in batches (ADR 0098); needs server.read |
| POST | /api/v1/tenants/{tid}/agent-rollouts 202 | Update 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} 202 | resume a stopped rollout (its failed servers get the update again) or cancel |
| GET | /api/v1/tenants/{tid}/agent-versions | Every 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-tokens | Enrollment tokens: live ones, and those used or expired in the last 24 hours, without their secret (ADR 0133) |
| POST | /api/v1/tenants/{tid}/enrollment-tokens | Create 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-server | How 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 202 | Connect the panel's own machine (again after a failure), installing the ticked part of the recommended set |
| GET | /api/v1/tenants/{tid}/server-losses | The provider's servers declared lost and what replaced them (ADR 0149) |
| GET | /api/v1/tenants/{tid}/server-rebuilds | Rebuilds of lost servers (ADR 0149) |
| POST | /api/v1/tenants/{tid}/server-rebuilds 202 | Declare 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/plan | Dry 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} 202 | retry (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}/abandon | What abandoning a gone server would drop, per tenant (ADR 0198) |
| POST | /api/v1/tenants/{tid}/servers/{id}/abandon | Abandon a gone server with what the panel keeps of it (ADR 0198) |
| DELETE | /api/v1/tenants/{tid}/servers/{id}/agent | Revoke a server's agent |
| POST | /api/v1/tenants/{tid}/servers/{id}/agent-update 202 | Move the server's agent and broker to the release the panel runs (ADR 0046) |