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:
objectA sandbox as last reported by the control plane.
- Parameters:
name (str)
url (str)
status (Literal['DEPLOYING', 'DEPLOYED', 'FAILED', 'DEACTIVATING', 'DEACTIVATED', 'DELETING', 'TERMINATED', 'ARCHIVING', 'ARCHIVED', 'UNARCHIVING', 'BUILDING', 'UPLOADING'] | str)
image (str | None)
memory (int | None)
region (str | None)
envs (dict[str, SandboxEnvValue])
external_id (str | None)
lifecycle (SandboxLifecycle | None)
ports (list[SandboxPort])
network (SandboxNetwork | None)
filesystem (SandboxFileSystemOptions | None)
created_at (datetime)
updated_at (datetime | None)
created_by (str | None)
updated_by (str | None)
last_used_at (datetime | None)
expires_in (timedelta | None)
- 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.