List Snapshots For a Stacklet
- Name
get
- Type
- /v1/stacklets/:id/snapshots
- Description
Send a
GET
request to lists snapshots of stacklet.
Request
Example
curl -X GET "https://api.simplystack.com/v1/stacklets/24/snapshots" \
-H "Content-Type: application/json" \
-H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0"
Response
JSON object with a key named snapshots
which is an array of the following attributes associated with the snapshot image:
Attributes
Example
json
{
"snapshots": [
{
"created_at": "2021-02-07T12:38:51.357354Z",
"disk_size": 26843545600,
"id": 11,
"name": "test-1602074180",
"regions": [
'fra',
'dal'
],
"size": 1270026240,
"size_gigabytes": 1.2,
"stacklet": {...},
"task": null
},
{
"created_at": "2021-02-07T12:38:51.357354Z",
"disk_size": 26843545600,
"id": 12,
"name": "test-1602074190",
"regions": [
'fra',
],
"size": 1270026240,
"size_gigabytes": 1.2,
"stacklet": {...},
"task": null
}
]
}