// Referenz
API reference
The admin UI talks only to the gateway's HTTP API under /api, and so can your own tooling. Every request carries the bearer token returned at login (/api/auth/login); the gateway checks it and the permission the request needs before passing it on. Fleeger is a release candidate and its API is still evolving: the upgrade notes list the API changes of each release.
How a request is handled
- The browser sends every API call to
gateway-svcat/api/...with aBearertoken (obtained at login). - For protected routes,
gateway-svcverifies the token againstdb=authand checks the required permission (see below). On failure it returns401(no/invalid token) or403(missing permission) without contacting an internal service. - Auth routes (
/api/auth/*) are proxied toauth-svc; data routes (/api/locations,/api/resources) are proxied toinventory-svc(the/apiprefix is stripped for the internal service).
Alerting
| Public path | alerting-svc | Purpose |
|---|---|---|
/api/alerts |
/alerts |
active + recent alerts (read) |
/api/alert-rules |
/rules |
rule CRUD |
/api/notification-channels |
/channels |
channel CRUD (+ /{id}/test) |
/api/mutes |
/mutes |
create/list/delete mute windows |
RBAC: reads require alert.view; edits map to alert.create / alert.edit /
alert.delete.
Every create, edit and delete of a rule, a channel or a mute is recorded in the hub-wide audit log: who did it, from which address, what it was before and after, never a channel's config values. While inventory-svc's audit log cannot take the record, or the gateway cannot name the acting user, those writes answer 503 and change nothing; evaluation and delivery are not affected.
From: Alerting
Credentials
Under inventory-svc, via the gateway at /api/*:
GET /locations/{id}/credentials— the location's credentials, each with its attachments and orphan status.POST /locations/{id}/credentials— create a standalone credential.PUT /credentials/{id}— rename and/or rotate the secret.DELETE /credentials/{id}— delete (only when orphaned).PUT /resources/{id}/credential— attach an existing credential ({ credential_id }, where a resource using it points) or create + attach a new one ({ new: {...} }).DELETE /resources/{id}/credential— detach without deleting.
From: Credentials
Config revisions, checkpoints & rollback
All under inventory-svc, surfaced through the gateway at /api/*:
GET /locations/{id}/revisions— full history, newest first.GET /locations/{id}/checkpoints— the location's safe checkpoints.POST /locations/{id}/checkpoints— create one ({ name, note? }). Needslocation.create.POST /locations/{id}/rollback—{ checkpoint_id, mode: "safe" | "full" }; needs what its mode needs; returns a summary{ updated, recreated, deleted, recreated_ids, deleted_ids, kept_ids }(the ids of the resources recreated and removed, both empty in safe mode; the gateway uses them to drop or restore their metric state, and passes the summary on unchanged;kept_ids, the resources a full rollback left although the checkpoint does not know them, because nothing shows they were created after it, always empty in safe mode). 403 when it would add a vantage point outside the caller's permission, 400 when it would move an attached credential to another host, both before anything is written; 409 when the checkpoint's location name is now another location's, on the rollback's first write, so nothing is written either. See All or nothing for the rest of its answers.GET /locations/{id}/rollback/lock— the lease a running rollback holds on the location,{ actor, acquired_at, expires_at }; 404 when none holds. Needslocation.view.POST /locations/{id}/rollback/unlock— lift that lease by hand (204; 404 when none holds). Needslocation.create. A rollback still running then commits nothing.
From: Config revisions, checkpoints & rollback
Retention
All admin-gated (iam.manage) and proxied to inventory-svc:
| Method | Path | Purpose |
|---|---|---|
| GET | /api/retention |
Current policy. |
| PUT | /api/retention |
Update (validated + journalled). |
| GET | /api/retention/preview |
Impact preview. |
| GET | /api/retention/revisions |
Version history. |
| POST | /api/retention/rollback |
Roll forward to a prior version. |
| GET | /api/retention/sweeps |
Recent reaper-sweep audit (read-only from outside: a POST is 405). |
From: Data retention (dead-resource retention)