SandboxInfo

class baseten.sandbox.SandboxInfo(*, name, url, status, image, memory, region, envs, labels, external_id, lifecycle, ports, network, filesystem, created_at, updated_at, created_by, updated_by, last_used_at, expires_in)

Bases: object

A sandbox as last reported by the control plane.

Parameters:
envs: dict[str, SandboxEnvValue]

Environment variables, by name.

Secret values are masked, so passing these back to an update overwrites their real values with the masks.

expires_in: timedelta | None

Time left before automatic deletion, when expiration is configured.

external_id: str | None

Caller-owned identifier for external lookups.

image: str | None

Image reference, including its tag.

memory: int | None

Memory in megabytes, which also sets the CPU allocation.

name: str

Unique name of the sandbox, assigned by the server when not given at creation.

url: str

Base URL of the sandbox’s execution API.