v1

latestOpenAPI 3.0.02026-07-1771620.9 KB

Terminate an instance

Terminates a given instance.

post/instance-operations/terminate

Request body

instance_idsInstanceId[] required

The unique identifiers (IDs) of the instances to terminate

Example request

{
  "instance_ids": [
    "0920582c7ff041399e34823a0be62549"
  ]
}

Response

OK

Example response

{
  "data": {
    "terminated_instances": [
      {
        "id": "0920582c7ff041399e34823a0be62549",
        "name": "training-node-1",
        "ip": "10.10.10.1",
        "ssh_key_names": [
          "macbook-pro"
        ],
        "file_system_names": [
          "shared-fs"
        ],
        "region": {
          "name": "us-tx-1",
          "description": "Austin, Texas"
        },
        "instance_type": {
          "name": "gpu_1x_a100",
          "description": "1x RTX A100 (24 GB)",
          "price_cents_per_hour": 110,
          "specs": {
            "vcpus": 24,
            "memory_gib": 800,
            "storage_gib": 512
          }
        },
        "hostname": "10-0-8-196.cloud.lambdalabs.com",
        "jupyter_token": "53968f128c4a4489b688c2c0a181d083",
        "jupyter_url": "https://jupyter-3ac4c5c6-9026-47d2-9a33-71efccbcd0ee.lambdaspaces.com/?token=53968f128c4a4489b688c2c0a181d083"
      }
    ]
  }
}