Leap0

List snapshots

List snapshots for the authenticated organization. Results can be filtered by snapshot name and sorted by creation time or template ID.

GET
/v1/snapshots

List snapshots for the authenticated organization. Results can be filtered by snapshot name and sorted by creation time or template ID.

Authorization

BearerAuth
AuthorizationBearer <token>

API key passed as a Bearer token in the Authorization header. Alternatively, use the leap0-authorization header.

In: header

Query Parameters

query?string

Filter results by snapshot name.

Lengthlength <= 64
sort?string

Field used to sort results.

Default"created_at"
Value in"created_at" | "template_id"
order-by?string

Sort direction.

Default"desc"
Value in"asc" | "desc"
page?integer

1-based results page.

Default1
Range1 <= value
page-size?integer

Number of items per page.

Default20
Range1 <= value <= 100

Response Body

application/json

application/json

application/json

curl -X GET "https://api.leap0.dev/v1/snapshots"
{  "items": [    {      "id": "snap-abc123",      "name": "workspace-warm",      "template_id": "string",      "vcpu": 1,      "memory": 1,      "disk": 1,      "network_policy": {        "mode": "allow-all",        "allow_domains": [          "string"        ],        "allow_cidrs": [          "string"        ],        "transforms": [          {            "domain": "string",            "inject_headers": {              "property1": "string",              "property2": "string"            },            "strip_headers": [              "string"            ]          }        ]      },      "created_at": "2019-08-24T14:15:22Z"    }  ],  "total_items": 0}
{  "message": "string",  "errors": [    {      "field": "string",      "error": "string"    }  ]}
{  "message": "string"}