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.
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.
Authorization
apiKey API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
int641 <= value <= 16int641 <= value <= 25Permit downsizing memory, which can disrupt a running workload.
int641 <= value <= 32Response 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"}{ "$schema": "https://api-dev.tektona.ai/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}Reset a sandbox POST
Hard-reset a running sandbox — like pulling the power. Unlike reboot-sandbox the guest gets no shutdown signal and its filesystem is not flushed first, so recently written, un-synced files may be lost. The VM restarts from the same disk on the same node; the disk and IP are preserved. A pending resize applies on reset.
Resume a sandbox POST
Resume a paused (hibernated or suspended) sandbox.