SDK reference / Models / Sandboxes

Sandbox

Kind: class

Namespace: Egulu.Sdk.Models.Sandboxes

Ephemeral isolated sandbox running untrusted agent code in the UNTRUSTED node pool (ADR-0904, ADR-0718).

Properties

NameTypeJSON nameDescription
AllowedEgressDomainsList<string>?allowedEgressDomainsUp to 20 HTTPS domain names permitted via Smokescreen when `egressMode` is `allowlist`.
AnnotationsModels.Sandboxes.Sandbox_annotations?annotationsAt most 256 KiB in all; never policy input.
Claimablebool?claimableWhether this pre-warmed/pool sandbox may be claimed atomically by a caller (W46).
ClaimedByPrincipalstring?claimedByPrincipalPrincipal that claimed this sandbox via `:claim` (W46).
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
EgressModeModels.Sandboxes.SandboxEgressMode?egressModeOutbound egress mode: `none` (default), `mirrors`, `allowlist`, or `internet` (`R4` when requested by an agent).
Etagstring?etag"{generation}"; send it back in If-Match.
ExpireTimeDateTimeOffset?expireTimeHard expiration timestamp (`createTime + ttlSeconds`).
IdleTimeoutSecondsint?idleTimeoutSecondsIdle timeout in seconds before automatic termination (`60..3600`; default `600`).
ImageDigeststring?imageDigestImmutable digest-pinned container image (`...@sha256:<64 hex>`, ADR-0703).
LabelsModels.Sandboxes.Sandbox_labels?labelsAt most 64.
LastActivityTimeDateTimeOffset?lastActivityTimeTimestamp of the most recent `:exec`, `:writeFiles`, or `:readFiles` activity.
LastWorkspaceSaveTimeDateTimeOffset?lastWorkspaceSaveTimeTimestamp of the most recent workspace auto-save snapshot (W106).
MemoryGiBint?memoryGiBAllocated memory in GiB (`1`, `4`, or `8`).
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
ProvisioningProblemstring?provisioningProblemThe runtime's last refusal while it brings the sandbox up (for example the pod ending with its reason), until a pass succeeds. Asandbox that never ran ends `TERMINATED` with `terminatedReason` `provisioning-failed` after eight refusals in a row.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
RuntimeClassNamestring?runtimeClassNameKubernetes `RuntimeClass` (`gvisor` for `standard`, `kata-clh` for `isolated`).
ShapeModels.Sandboxes.SandboxShape?shapeCompute shape: `s1` (1 vCPU / 1 GiB default), `s2` (2 vCPU / 4 GiB), `s4` (4 vCPU / 8 GiB).
StateModels.Sandboxes.SandboxState?stateSandbox lifecycle states.
SuspendReasonstring?suspendReasonWhy the sandbox is paused (for example `spend-cap`), when paused.
TemplateModels.Sandboxes.SandboxTemplate?templateSession template (`code` default, `ide`, or `shell`; never exposes a public URL per ADR-0718).
TerminatedReasonstring?terminatedReasonReason the sandbox entered `TERMINATED` (for example `ttl-expired` or `idle-timeout`), when terminated.
TierModels.Sandboxes.SandboxTier?tierIsolation tier: `standard` (`gvisor`) or `isolated` (`kata-clh`).
TtlSecondsint?ttlSecondsMaximum lifetime in seconds (`1..3600` at P2; default `3600`).
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
VcpuCountint?vcpuCountAllocated virtual CPUs (`1`, `2`, or `4`).
WorkspaceVolumeIdstring?workspaceVolumeIdPersistent workspace volume ID auto-saved across IDE/console sessions (W106).