Snapshots
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
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
apiKeyAuthorizationBearer <token>An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.
Query Parameters
project?stringThe 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- response
Every snapshot of the project, newest first; a project with none gets [].
[index: integer]?One disk-only snapshot.
curl -X GET 'https://api.slashinfra.com/snapshots'[ { "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
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
apiKeyAuthorizationBearer <token>An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.
Path Parameters
ref*stringThe snapshot id, or its name in the project query; a reference of ten id symbols is an id and resolves in every project.
1 <= lengthQuery Parameters
project?stringThe 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/plainThe snapshot and its cold objects are deleted, with no body.
curl -X DELETE 'https://api.slashinfra.com/snapshots/before-upgrade'"string"Get a snapshot
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
apiKeyAuthorizationBearer <token>An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.
Path Parameters
ref*stringThe snapshot id, or its name in the project query; a reference of ten id symbols is an id and resolves in every project.
1 <= lengthQuery Parameters
project?stringThe project id or name, default when omitted; an unknown project answers 404 project_not_found.
Response Body
One disk-only snapshot.
application/json- response
One disk-only snapshot.
created_ms*integerThe 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*stringThe snapshot id: ten symbols of the same alphabet as an SVM id.
kind*stringWho 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.
"user""fork""backup"logical_bytes*integerThe used bytes of the disk inside the snapshot. 0 while it is creating.
name*stringThe name of the snapshot, unique in its project.
project*stringThe id of the project of the snapshot.
source*|The SVM that was snapshotted.
state*stringcreating while the node captures the disk, then ready with its sizes, or failed.
"creating""ready""failed"stored_bytes*integerThe 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.
curl -X GET 'https://api.slashinfra.com/snapshots/before-upgrade'{ "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
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
apiKeyAuthorizationBearer <token>An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.
Path Parameters
ref*stringThe snapshot id, or its name in the project query; a reference of ten id symbols is an id and resolves in every project.
1 <= lengthQuery Parameters
project?stringThe project id or name, default when omitted; an unknown project answers 404 project_not_found.
Request Body
- body
name*stringThe new name: ^[a-z][a-z0-9-]{0,31}$, unique in the project.
Response Body
One disk-only snapshot.
application/json- response
One disk-only snapshot.
created_ms*integerThe 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*stringThe snapshot id: ten symbols of the same alphabet as an SVM id.
kind*stringWho 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.
"user""fork""backup"logical_bytes*integerThe used bytes of the disk inside the snapshot. 0 while it is creating.
name*stringThe name of the snapshot, unique in its project.
project*stringThe id of the project of the snapshot.
source*|The SVM that was snapshotted.
state*stringcreating while the node captures the disk, then ready with its sizes, or failed.
"creating""ready""failed"stored_bytes*integerThe 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.
curl -X PATCH 'https://api.slashinfra.com/snapshots/before-upgrade' \ -H 'Content-Type: application/json' \ -d '{ "name": "before-upgrade-2"}'{ "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
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
apiKeyAuthorizationBearer <token>An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.
Path Parameters
ref*stringThe SVM id, or its name in the organization of the key: ten symbols of 0123456789abcdefghjkmnpqrstvwxyz is an id, any other reference is a name.
1 <= lengthQuery Parameters
project?stringThe project id or name, default when omitted; an unknown project answers 404 project_not_found.
Request Body
- body
name?stringThe 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?numberThe 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- response
One disk-only snapshot.
created_ms*integerThe 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*stringThe snapshot id: ten symbols of the same alphabet as an SVM id.
kind*stringWho 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.
"user""fork""backup"logical_bytes*integerThe used bytes of the disk inside the snapshot. 0 while it is creating.
name*stringThe name of the snapshot, unique in its project.
project*stringThe id of the project of the snapshot.
source*|The SVM that was snapshotted.
state*stringcreating while the node captures the disk, then ready with its sizes, or failed.
"creating""ready""failed"stored_bytes*integerThe 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.
curl -X POST 'https://api.slashinfra.com/svms/build-1/snapshots' \ -H 'Content-Type: application/json' \ -d '{}'{ "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" ]}curl -X GET 'https://api.slashinfra.com/snapshots'[
{
"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"
]
}
]curl -X DELETE 'https://api.slashinfra.com/snapshots/before-upgrade'"string"curl -X GET 'https://api.slashinfra.com/snapshots/before-upgrade'{
"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"
]
}curl -X PATCH 'https://api.slashinfra.com/snapshots/before-upgrade' \
-H 'Content-Type: application/json' \
-d '{
"name": "before-upgrade-2"
}'{
"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"
]
}curl -X POST 'https://api.slashinfra.com/svms/build-1/snapshots' \
-H 'Content-Type: application/json' \
-d '{}'{
"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"
]
}