View .md

Server Backups endpoints (Admin API)

5 FeatherPanel Admin API endpoints from admin/server-backups.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Last synced from FeatherPanel 8318da2 on .

On this page

Defined in backend/app/routes/admin/server-backups.php. Authentication used here: Admin. Read Authentication for how to send credentials and Rate limits and errors for the response envelope.

Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.

Endpoints

GET/api/admin/server-backups

Auth: AdminPermission: admin.backups.viewRoute name: admin-server-backupsController: ServerBackupsController::indexroute source

List server backups Backups of all servers, newest first. scope=kept lists only backups kept after their server was deleted.

ParameterInTypeRequiredDescription
pagequeryintegerno
limitqueryintegerno
scopequerystringno
searchquerystringno
node_idqueryintegerno
curl -X GET "$PANEL_URL/api/admin/server-backups" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Backups · 401 Unauthorized · 403 Forbidden

GET/api/admin/servers/{id}/keep-backups

Auth: AdminPermission: admin.servers.viewRoute name: admin-server-keep-backupsController: ServerBackupsController::keepInforoute source

What keeping backups would do when deleting a server Whether the node can keep local and PBS backups, and how many finished backups the server has on the node and in remote storage.

ParameterInTypeRequiredDescription
idpathintegeryes
curl -X GET "$PANEL_URL/api/admin/servers/$ID/keep-backups" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Keep information · 404 Server not found

GET/api/admin/server-backups/{uuid}/download

Auth: AdminPermission: admin.backups.downloadRoute name: admin-server-backups-downloadController: ServerBackupsController::downloadroute source

Download link for a backup A short-lived download link, also for backups kept after their server was deleted.

ParameterInTypeRequiredDescription
uuidpathstringyes
curl -X GET "$PANEL_URL/api/admin/server-backups/$UUID/download" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Download link · 400 Not downloadable · 404 Backup not found

GET/api/admin/server-backups/{uuid}

Auth: AdminPermission: admin.backups.viewRoute name: admin-server-backups-showController: ServerBackupsController::showroute source

Get a backup for the create-server wizard The backup, the nodes a server can be created on from it and the settings to prefill (from the settings stored with the backup, or the current settings of its server).

ParameterInTypeRequiredDescription
uuidpathstringyes
curl -X GET "$PANEL_URL/api/admin/server-backups/$UUID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Backup and prefill · 404 Backup not found

DELETE/api/admin/server-backups/{uuid}

Auth: AdminPermission: admin.backups.deleteRoute name: admin-server-backups-deleteController: ServerBackupsController::deleteroute source

Delete a kept backup Delete a backup kept after its server was deleted, on the node or in remote storage. Backups of existing servers are deleted from the server.

ParameterInTypeRequiredDescription
uuidpathstringyes
curl -X DELETE "$PANEL_URL/api/admin/server-backups/$UUID" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Deleted · 404 Backup not found · 422 Not a kept backup · 423 Locked