Sandboxes

Resize a sandbox

Change the CPU, memory, or disk allocation of a sandbox. Only provided fields change. Disk is grow-only. Downsizing memory requires force. Changes take effect on the sandbox's next start or resume.

PUT
/v1/sandboxes/{id}/resize

Change the CPU, memory, or disk allocation of a sandbox. Only provided fields change. Disk is grow-only. Downsizing memory requires force. Changes take effect on the sandbox's next start or resume.

AuthorizationBearer <token>

API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

cpu?integer
Formatint64
Range1 <= value <= 16
disk?integer
Formatint64
Range1 <= value <= 25
force?boolean

Permit downsizing memory, which can disrupt a running workload.

memory?integer
Formatint64
Range1 <= value <= 32

Response Body

application/json

application/problem+json

curl -X PUT "https://api-dev.tektona.ai/v1/sandboxes/string/resize" \  -H "Content-Type: application/json" \  -d '{}'
{  "$schema": "https://api-dev.tektona.ai/schemas/ResizeResponse.json",  "after": {    "cpu": 2,    "disk": 10,    "memory": 2  },  "appliesImmediately": true,  "before": {    "cpu": 2,    "disk": 10,    "memory": 2  },  "id": "string",  "note": "string"}