Addons /
List addon backups
Returns a list of backups for the given addon.
Required permission
Project > Addons > General > Read
Path parameters
projectId
string requiredID of the projectaddonId
string requiredID of the addon
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.backups
[array] requiredA list of backups for the given addon.- {object}Data about a backup.
id
string requiredThe identifier for the backup.name
string requiredThe name of the backup.status
string requiredThe current status of the backup.one ofscheduled, in-progress, completed, aborting, aborted, failed, not-supportedcreatedAt
string requiredThe time the backup was initiated.completedAt
string requiredThe time the backup was completed.config
{object} requiredData about the backup configuration.source
{object}Data about the source of the backup.type
stringThe type of backup.one offileUpload, liveInstance, snapshot, externalDump, sameAddonsize
string requiredThe size of the backup, in bytescompressionType
stringThe compression algorithm of the backup. Only applicable for dump backups. Defaults to `gz`.one ofgz, zstdadditionalDestinations
[array]List of destinations for which a backup should be created of this backup. Only applicable for snapshot backups.- {object}
destinationId
string requiredAdditional custom back up destination that should be used to store the snapshot.min length3max length100pattern^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$retentionTime
integerRetention time of the additional back up in days.min1max120type
string requiredThe type of backup destination to useone ofcustomaddonVersion
stringThe version of the addon at the time of the backup. If the backup type is `snapshot`, the addon will be restored to this version when the backup is restored.customDestinationId
stringCustom backup destination in which the dump back up should be stored.min length3max length100pattern^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/projects/{projectId}/addons/{addonId}/backups
Example response
200 OK
A list of backups for the addon.
JSON
{
"data": {
"backups": [
{
"id": "example-backup",
"name": "Example Backup",
"status": "completed",
"createdAt": "2021-01-20T11:19:53.175Z",
"completedAt": "2021-01-20T11:19:54.494Z",
"config": {
"source": {
"type": "snapshot"
},
"size": "1234",
"compressionType": "gz",
"additionalDestinations": [
{
"destinationId": "example-backup-destination",
"type": "custom"
}
],
"addonVersion": "4.4.8"
},
"customDestinationId": "example-backup-destination"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}