Backup Destinations /
List destinations backups
Lists the backups associated with a backup destinations.
Required permission
Account > BackupDestinations > General > Read
Path parameters
backupDestinationId
string requiredID of the backup destination
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
[array] requiredResult data.- {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-supportedproject
{object}id
string requiredID of the project this backup was taken forname
string requiredName of the project this backup was taken foraddon
{object}id
string requiredID of the addon this backup was taken forname
string requiredName of the addon this backup was taken forconfig
{object} requiredData about the backup configuration.addonVersion
stringThe version of the addon at the time of the backup. The addon will be restored to this version when the backup is restored.addonType
stringThe type of the addon this backup was taken for.source
{object}Data about the source of the backup.type
stringThe type of backup.one ofglobalsize
string requiredThe size of the backup, in bytesschedules
[array]The schedules this backup was taken for.- {object}
interval
string requiredThe interval between backups. Each addon can only have one backup schedule of each interval for each backup type.one ofhourly, daily, weeklyminute
[array] requiredAn array of minutes when the backup should be performed.- integerA minute when the backup should be performed.min0max59
hour
[array]An array of hours in 24 hour format when the backup should be performed. At these hours, a backup will be performed at each of the minutes provided in the `minute` field. Required for `daily` and `weekly` intervals and unavailable for `hourly` intervals.- integerAn hour when the backup should be performed, in 24 hour format.min0max23
day
[array]An array of days of the week when the backup should be performed, where `0` represents Monday and `6` represents Sunday. On these days, a backup will be performed at each of the minutes provided in the `minute` field whenever it is an hour from the `hour` field. Required for `weekly` intervals and unavailable for `hourly` and `daily` intervals.- integerA day of the week when the backup should be performed, where `0` represents Monday and `6` represents Sunday.min0max6
expiredBy
number requiredThe time the backup will expiry.createdAt
string requiredThe time the backup was initiated.completedAt
string requiredThe time the backup was completed.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/backup-destinations/{backupDestinationId}/backups
Example response
200 OK
A list of backups saved to this backup destination.
JSON
{
"data": [
{
"id": "example-backup",
"name": "Example Backup",
"status": "completed",
"project": {
"id": "example-project",
"name": "Example Project"
},
"addon": {
"id": "example-addon",
"name": "Example Addon"
},
"config": {
"addonVersion": "4.4.8",
"addonType": "mongodb",
"source": {
"type": "global"
},
"size": "1234"
},
"schedules": [
{
"interval": "weekly",
"minute": [
30
],
"hour": [
18
],
"day": [
4
]
}
],
"expiredBy": "1729232400000.0",
"createdAt": "2021-01-20T11:19:53.175Z",
"completedAt": "2021-01-20T11:19:54.494Z"
}
],
"pagination": {
"hasNextPage": false,
"count": 1
}
}