Skip to content

Disk snapshots, and the SVMs that start from them

Resource, request and plan limits are listed on Limits.

Download OpenAPI specification · Version 0.1.0

List snapshots

GET
/snapshots

Returns every disk-only snapshot of one project of the organization, newest first, with the SVMs that read each one. project is an id or name and defaults to default.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Query Parameters

project?string

The project id or name, default when omitted; an unknown project answers 404 project_not_found.

Response Body

Every snapshot of the project, newest first; a project with none gets [].

application/json
  1. response

Every snapshot of the project, newest first; a project with none gets [].

[index: integer]?

One disk-only snapshot.

Example Request
curl -X GET 'https://api.slashinfra.com/snapshots'
Example Response
[  {    "created_ms": 1762747200000,    "error": "timeout",    "expires_ms": 1765339200000,    "id": "0zs0pshr3x",    "kind": "user",    "logical_bytes": 2147483648,    "name": "build-1-20261110-031900",    "project": "proj_6f1c0f0e8a",    "source": "6f1c0f0e8a",    "state": "ready",    "stored_bytes": 536870912,    "used_by": [      "string"    ]  }]

Delete a snapshot

DELETE
/snapshots/{ref}

Deletes a snapshot and its cold objects; a snapshot that an SVM reads answers 409 snapshot_in_use, and the source SVM is not touched.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

ref*string

The snapshot id, or its name in the project query; a reference of ten id symbols is an id and resolves in every project.

Length1 <= length

Query Parameters

project?string

The project id or name, default when omitted; an unknown project answers 404 project_not_found.

Response Body

The snapshot and its cold objects are deleted, with no body.

response?stringtext/plain

The snapshot and its cold objects are deleted, with no body.

Example Request
curl -X DELETE 'https://api.slashinfra.com/snapshots/before-upgrade'
Example Response
"string"

Get a snapshot

GET
/snapshots/{ref}

Returns one snapshot of the caller's organization. An id resolves in every project; a name resolves in the project query (default when omitted).

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

ref*string

The snapshot id, or its name in the project query; a reference of ten id symbols is an id and resolves in every project.

Length1 <= length

Query Parameters

project?string

The project id or name, default when omitted; an unknown project answers 404 project_not_found.

Response Body

One disk-only snapshot.

application/json
  1. response

One disk-only snapshot.

created_ms*integer

The creation time in milliseconds since the Unix epoch.

error*|

The catalog code of a failed capture.

expires_ms*|

When the minute cron may delete the snapshot, in milliseconds since the Unix epoch.

id*string

The snapshot id: ten symbols of the same alphabet as an SVM id.

kind*string

Who made the snapshot: user for a request, fork for the capture of a fork_of create, or backup for a schedule run; only user snapshots count against the plan quota.

Value in"user""fork""backup"
logical_bytes*integer

The used bytes of the disk inside the snapshot. 0 while it is creating.

name*string

The name of the snapshot, unique in its project.

project*string

The id of the project of the snapshot.

source*|

The SVM that was snapshotted.

state*string

creating while the node captures the disk, then ready with its sizes, or failed.

Value in"creating""ready""failed"
stored_bytes*integer

The compressed bytes that the snapshot uploaded when created; a chunk the shared store already held counts 0, so this is not the current storage cost. 0 while it is creating.

used_by*array<string>

The SVMs that read this snapshot, including asleep and deleting ones; a snapshot with an SVM here cannot be deleted.

Example Request
curl -X GET 'https://api.slashinfra.com/snapshots/before-upgrade'
Example Response
{  "created_ms": 1762747200000,  "error": "timeout",  "expires_ms": 1765339200000,  "id": "0zs0pshr3x",  "kind": "user",  "logical_bytes": 2147483648,  "name": "build-1-20261110-031900",  "project": "proj_6f1c0f0e8a",  "source": "6f1c0f0e8a",  "state": "ready",  "stored_bytes": 536870912,  "used_by": [    "string"  ]}

Rename a snapshot

PATCH
/snapshots/{ref}

Changes the name of a snapshot to a name that is unique in the project and uses the SVM name rules. An id resolves in every project; a name resolves in the project query.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

ref*string

The snapshot id, or its name in the project query; a reference of ten id symbols is an id and resolves in every project.

Length1 <= length

Query Parameters

project?string

The project id or name, default when omitted; an unknown project answers 404 project_not_found.

Request Body

  1. body
name*string

The new name: ^[a-z][a-z0-9-]{0,31}$, unique in the project.

Response Body

One disk-only snapshot.

application/json
  1. response

One disk-only snapshot.

created_ms*integer

The creation time in milliseconds since the Unix epoch.

error*|

The catalog code of a failed capture.

expires_ms*|

When the minute cron may delete the snapshot, in milliseconds since the Unix epoch.

id*string

The snapshot id: ten symbols of the same alphabet as an SVM id.

kind*string

Who made the snapshot: user for a request, fork for the capture of a fork_of create, or backup for a schedule run; only user snapshots count against the plan quota.

Value in"user""fork""backup"
logical_bytes*integer

The used bytes of the disk inside the snapshot. 0 while it is creating.

name*string

The name of the snapshot, unique in its project.

project*string

The id of the project of the snapshot.

source*|

The SVM that was snapshotted.

state*string

creating while the node captures the disk, then ready with its sizes, or failed.

Value in"creating""ready""failed"
stored_bytes*integer

The compressed bytes that the snapshot uploaded when created; a chunk the shared store already held counts 0, so this is not the current storage cost. 0 while it is creating.

used_by*array<string>

The SVMs that read this snapshot, including asleep and deleting ones; a snapshot with an SVM here cannot be deleted.

Example Request
curl -X PATCH 'https://api.slashinfra.com/snapshots/before-upgrade' \  -H 'Content-Type: application/json' \  -d '{  "name": "before-upgrade-2"}'
Example Response
{  "created_ms": 1762747200000,  "error": "timeout",  "expires_ms": 1765339200000,  "id": "0zs0pshr3x",  "kind": "user",  "logical_bytes": 2147483648,  "name": "build-1-20261110-031900",  "project": "proj_6f1c0f0e8a",  "source": "6f1c0f0e8a",  "state": "ready",  "stored_bytes": 536870912,  "used_by": [    "string"  ]}

Take a snapshot of an SVM

POST
/svms/{ref}/snapshots

Starts a disk-only capture of the writable disk of an SVM and answers at once with state creating, then ready or failed; the SVM keeps running. See snapshots for quota, expiry and fork use.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

ref*string

The SVM id, or its name in the organization of the key: ten symbols of 0123456789abcdefghjkmnpqrstvwxyz is an id, any other reference is a name.

Length1 <= length

Query Parameters

project?string

The project id or name, default when omitted; an unknown project answers 404 project_not_found.

Request Body

  1. body
name?string

The name of the snapshot, unique in the project of the SVM and using the SVM name rules ^[a-z][a-z0-9-]{0,31}$; by default it is <SVM name or id>-YYYYMMDD-HHMMSS.

ttl_s?number

The life of the snapshot in seconds, a whole number from 1 to 2592000 (30 days); the minute cron deletes it at expiry unless an SVM reads it, and without it the snapshot lives until deleted.

Response Body

One disk-only snapshot.

application/json
  1. response

One disk-only snapshot.

created_ms*integer

The creation time in milliseconds since the Unix epoch.

error*|

The catalog code of a failed capture.

expires_ms*|

When the minute cron may delete the snapshot, in milliseconds since the Unix epoch.

id*string

The snapshot id: ten symbols of the same alphabet as an SVM id.

kind*string

Who made the snapshot: user for a request, fork for the capture of a fork_of create, or backup for a schedule run; only user snapshots count against the plan quota.

Value in"user""fork""backup"
logical_bytes*integer

The used bytes of the disk inside the snapshot. 0 while it is creating.

name*string

The name of the snapshot, unique in its project.

project*string

The id of the project of the snapshot.

source*|

The SVM that was snapshotted.

state*string

creating while the node captures the disk, then ready with its sizes, or failed.

Value in"creating""ready""failed"
stored_bytes*integer

The compressed bytes that the snapshot uploaded when created; a chunk the shared store already held counts 0, so this is not the current storage cost. 0 while it is creating.

used_by*array<string>

The SVMs that read this snapshot, including asleep and deleting ones; a snapshot with an SVM here cannot be deleted.

Example Request
curl -X POST 'https://api.slashinfra.com/svms/build-1/snapshots' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_ms": 1762747200000,  "error": "timeout",  "expires_ms": 1765339200000,  "id": "0zs0pshr3x",  "kind": "user",  "logical_bytes": 2147483648,  "name": "build-1-20261110-031900",  "project": "proj_6f1c0f0e8a",  "source": "6f1c0f0e8a",  "state": "ready",  "stored_bytes": 536870912,  "used_by": [    "string"  ]}