Addons /
List addon restores
Returns a list of restores 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.restores
[array] requiredA list of restores for the given addon.- {object}Data about a restore.
id
string requiredThe identifier for the backup.status
string requiredThe current status of the backup.one ofscheduled, in-progress, completed, aborting, aborted, failed, not-supportedrestoreTimestamp
string requiredThe time the backup was initiated.completedAt
stringThe time the restore was completed.backupId
string requiredThe identifier for the backup.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}/restores
Example response
200 OK
A list of restores for the addon.
JSON
{
"data": {
"restores": [
{
"id": "668596c647fed81696a8a82c",
"status": "completed",
"restoreTimestamp": "2021-01-20T11:19:54.494Z",
"completedAt": "2021-01-20T11:19:54.494Z",
"backupId": "example-backup"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}