SandboxesLifecycle

Update lifecycle config

Update the lifecycle configuration for a sandbox.

PUT
/v1/sandboxes/{idOrName}/lifecycle
AuthorizationBearer <token>

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

In: header

Path Parameters

idOrName*string

Sandbox ID (ULID) or name

Query Parameters

org?string

Required when the path names the sandbox by name.

project?string

Required when the path names the sandbox by name.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

auto_delete_after?string

Duration string (e.g. '30d'). Empty string to disable.

auto_pause_after?string

Duration string (e.g. '15m'). Empty string to disable.

auto_pause_mode?string

Pause mode for auto-pause.

Value in

  • "hibernate"
  • "suspend"
auto_resume?boolean

Wake on incoming activity.

Response Body

application/json

application/problem+json

curl -X PUT "https://example.com/v1/sandboxes/string/lifecycle" \  -H "Content-Type: application/json" \  -d '{}'
{  "auto_delete_after": "string",  "auto_pause_after": "string",  "auto_pause_mode": "string",  "auto_resume": true,  "configured": {    "auto_delete_after": "string",    "auto_pause_after": "string",    "auto_pause_mode": "string",    "auto_resume": true  },  "run_deadline": "2019-08-24T14:15:22Z",  "running_since": "2019-08-24T14:15:22Z",  "source": {    "auto_delete_after": "own",    "auto_pause_after": "own",    "auto_pause_mode": "own",    "auto_resume": "own"  }}