# Snapshots

Disk snapshots, and the SVMs that start from them

Source: https://slashinfra.com/docs/api-reference/control/snapshots
Last modified: 2026-11-30T16:36:19.000Z

Disk snapshots, and the SVMs that start from them

Resource, request and plan limits are listed on [Limits](https://slashinfra.com/docs/reference/limits).

[Download OpenAPI specification](https://slashinfra.com/docs/control.openapi.json) · Version 0.1.0

[GETList snapshots](https://slashinfra.com/docs/api-reference/control/snapshots#getSnapshots)[DELETEDelete a snapshot](https://slashinfra.com/docs/api-reference/control/snapshots#deleteSnapshotsByRef)[GETGet a snapshot](https://slashinfra.com/docs/api-reference/control/snapshots#getSnapshotsByRef)[PATCHRename a snapshot](https://slashinfra.com/docs/api-reference/control/snapshots#patchSnapshotsByRef)[POSTTake a snapshot of an SVM](https://slashinfra.com/docs/api-reference/control/snapshots#postSvmsByRefSnapshots)

### 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`

header`Authorization``Bearer <token>`

An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](https://slashinfra.com/docs/reference/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`

- response

- 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 ResponseSchema

```
[  {    "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`

header`Authorization``Bearer <token>`

An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](https://slashinfra.com/docs/reference/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.

Length`1 <= 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?`string`text/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 ResponseSchema

```
"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`

header`Authorization``Bearer <token>`

An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](https://slashinfra.com/docs/reference/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.

Length`1 <= 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`

- response

- 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 ResponseSchema

```
{  "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`

header`Authorization``Bearer <token>`

An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](https://slashinfra.com/docs/reference/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.

Length`1 <= length`

#### Query Parameters

`project?`string

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

#### Request Body

- body

- 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`

- response

- 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 ResponseSchema

```
{  "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](https://slashinfra.com/docs/platform/snapshots) for quota, expiry and fork use.

#### Authorization

`apiKey`

header`Authorization``Bearer <token>`

An API key (`si_` and 43 base64url characters), sent as `Authorization: Bearer si_...`; see [Using the API](https://slashinfra.com/docs/reference/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.

Length`1 <= length`

#### Query Parameters

`project?`string

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

#### Request Body

- body

- 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`

- response

- 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 ResponseSchema

```
{  "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"  ]}
```

GET

/snapshots

Example Request

```
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

/snapshots/{ref}

Example Request

```
curl -X DELETE 'https://api.slashinfra.com/snapshots/before-upgrade'
```

```
"string"
```

GET

/snapshots/{ref}

Example Request

```
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"
]
}
```

PATCH

/snapshots/{ref}

Example Request

```
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"
]
}
```

POST

/svms/{ref}/snapshots

Example Request

```
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"
]
}
```
