List snapshots
GET
/snapshotsList all server snapshots available.
Request
Query Params
page
integerÂ
optional
Which page of paginated results to return.
filter[date]
stringÂ
optional
Filter by snapshot's creation date. Format: YYYY-MM-DD
filter[server_id]
integerÂ
optional
Filter snapshots by server's ID.
sort
stringÂ
optional
Sorting parameter. Possible values: date (ascending), -date (descending)
Request samples
Responses
List of all snapshots.(200)
List of all snapshots.
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
data
$ref(#/definitions/358588)[]
optional
#/definitions/358588
optional
links
objectÂ
optional
first
stringÂ
optional
last
stringÂ
optional
prev
nullÂ
optional
next
nullÂ
optional
meta
objectÂ
optional
current_page
integerÂ
optional
from
integerÂ
optional
last_page
integerÂ
optional
links
array [object {3}]Â
optional
path
stringÂ
optional
per_page
integerÂ
optional
to
integerÂ
optional
total
integerÂ
optional
ExampleExample 1
{
"data": [
{
"id": 116,
"server_id": 2478,
"name": "example_snapshot",
"created_at": "2023-06-19T22:34:43+03:00",
"size": 50
}
],
"links": {
"first": "https://api.vpsbg.eu/v1/snapshots?page=1",
"last": "https://api.vpsbg.eu/v1/snapshots?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "https://api.vpsbg.eu/v1/snapshots?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "pagination.next",
"active": false
}
],
"path": "https://api.vpsbg.eu/v1/snapshots",
"per_page": 50,
"to": 1,
"total": 1
}
}
Last modified: 3 months ago