Skip to main content
POST
/
api
/
v2
/
instances
/
{instanceID}
/
snapshot
Snapshot instance
curl --request POST \
  --url https://compute.nks.europe-west4.nscale.com/api/v2/instances/{instanceID}/snapshot \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "metadata": {
    "name": "my-instance-snapshot"
  }
}
'
{
  "metadata": {
    "id": "a64f9269-36e0-4312-b8d1-52d93d569b7b",
    "name": "ubu2204-v1.25.6-gpu-525.85.05-7ced4154",
    "creationTime": "2023-02-22T12:04:13Z"
  },
  "spec": {
    "architecture": "x86_64",
    "sizeGiB": 10,
    "virtualization": "virtualized",
    "os": {
      "kernel": "linux",
      "family": "debian",
      "distro": "ubuntu",
      "variant": "server",
      "codename": "noble",
      "version": "24.04"
    },
    "softwareVersions": {
      "kubernetes": "v1.25.6"
    },
    "gpu": {
      "vendor": "NVIDIA",
      "driver": "525.85.05",
      "models": [
        "A100",
        "H100",
        "H200"
      ]
    }
  },
  "status": {
    "state": "ready"
  }
}

Authorizations

Authorization
string
header
required

Operation requires OAuth 2.0 bearer token authentication.

Path Parameters

instanceID
string
required

The instance ID. A Kubernetes name. Must be a valid DNS containing only lower case characters, numbers or hyphens, start and end with a character or number, and be at most 63 characters in length.

Required string length: 1 - 63

Body

application/json

A request to snapshot an instance.

A compute instance snapshot request.

metadata
object
required

Metadata required for all API resource reads and writes.

Response

An image that can be used on this platform.

An image.

metadata
object
required

This metadata is for resources that just exist, and don't require any provisioning and health status, but benefit from a standardized metadata format.

spec
object
required

An image.

status
object
required

The image's status.