API
Snapshots
List snapshots

List All Snapshots

  • Name
    get
    Type
    /v1/snapshots
    Description

    Send a GET request to list all snapshots.

Request

Example

curl -X GET "https://api.simplystack.com/v1/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 snapshots images:

Attributes

See snapshot model.

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
    }
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": null,
      "pages": 1,
      "per_page": 25,
      "previous_page": null,
      "total": 2
    },
    "query": null,
    "sort": null
  }
}