Sign up

List backups

GET/api/v1/vps/{vps_uuid}/backups

The backups of a VPS, newest first, with the next daily start and the backup or restore running now.

Parameters

NameInDescription
vps_uuidpath, stringrequiredVPS id, from Create a VPS or List VPS

Example request

curl -X GET "https://platform.serverscamp.com/api/v1/vps/$VPS_UUID/backups" \
  -H "Authorization: Bearer $API_TOKEN"

Answer

Status 200 with this body.

FieldTypeDescription
enabledbooleanrequiredDaily backups on
keepinteger, optionalHow many backups are kept, manual ones included
schedulestring, optionalDaily start, HH:MM in the host's time
nextinteger, optionalUnix time of the next daily backup
jobVpsBackupJob, optionalThe backup or restore running now
job.kindone of backup, restorerequired
job.startedinteger, optionalUnix time it started
job.pctinteger, optionalHow far it got, percent; null before its first progress line
itemslist of VpsBackuprequired
items[].idstringrequiredBackup id, for restore and delete
items[].createdinteger, optionalUnix time it was taken
items[].sizeinteger, optionalSize, bytes
items[].manualbooleanrequiredTaken with Back up now, not the daily one
{
  "enabled": true,
  "keep": 5,
  "schedule": "03:17",
  "next": 1792628220,
  "job": {
    "kind": "backup",
    "started": 1792656120,
    "pct": 45
  },
  "items": [
    {
      "id": "bk-3f9a1c0d2e4b5a69",
      "created": 1792541820,
      "size": 1287651328,
      "manual": false
    }
  ]
}

Errors

StatusWhen
401No token, or a token that is not valid
422The body or a parameter is not what the operation takes

Every operation can also answer 401 without a valid token. All errors