GET /sandboxes/{sandboxID}
Sandbox
Get a sandbox by id
Параметры
sandboxID·string· путь · обязательно
Ответы
200
Successfully returned the sandbox
Content-Type: application/json
Схема: SandboxDetail
templateID·string· обязательноIdentifier of the template from which is the sandbox created
alias·string· необязательноAlias of the template
sandboxID·string· обязательноIdentifier of the sandbox
startedAt·string· обязательноTime when the sandbox was started
Формат:
date-timeendAt·string· обязательноTime when the sandbox will expire
Формат:
date-timeenvdVersion·EnvdVersion· обязательноVersion of the envd running in the sandbox
allowInternetAccess·boolean | null· необязательноWhether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
domain·string | null· необязательноBase domain where the sandbox traffic is accessible
cpuCount·CPUCount· обязательноCPU cores for the sandbox
Формат:
int32Минимум:
1memoryMB·MemoryMB· обязательноMemory for the sandbox in MiB
Формат:
int32Минимум:
128diskSizeMB·DiskSizeMB· обязательноDisk size for the sandbox in MiB
Формат:
int32Минимум:
0metadata·SandboxMetadata· необязательноmetadata.*·string· additional propertyMetadata of the sandbox
state·SandboxState· обязательноState of the sandbox
Допустимые значения для
SandboxState:running|pausednetwork·SandboxNetworkConfig· необязательноnetwork.allowPublicTraffic·boolean· необязательноSpecify if the sandbox URLs should be accessible only with authentication.
По умолчанию:
truenetwork.allowOut·array<string>· необязательноList of allowed destinations for egress traffic. Each entry can be a CIDR block (e.g. "8.8.8.8/32"), a bare IP address (e.g. "8.8.8.8"), or a domain name (e.g. "example.com", "*.example.com"). Allowed entries always take precedence over denied entries.
network.denyOut·array<string>· необязательноList of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
network.maskRequestHost·string· необязательноSpecify host mask which will be used for all sandbox requests
network.rules·object· необязательноPer-domain transform rules applied to matching egress HTTP/HTTPS requests. Keys are domains (e.g. "api.example.com", "example.com"). A domain listed here is not automatically allowed - use allowOut to permit the traffic.
network.rules.*·array<SandboxNetworkRule>· additional propertynetwork.rules.*.transform·SandboxNetworkTransform· необязательноTransformations applied to matching egress requests before forwarding.
network.rules.*.transform.headers·object· необязательноHTTP headers to inject or override in matching requests. An existing header with the same name is replaced. Values are plain strings; secret resolution happens client-side before sending to the API.
network.rules.*.transform.headers.*·string· additional propertylifecycle·SandboxLifecycle· необязательноSandbox lifecycle policy returned by sandbox info.
lifecycle.autoResume·boolean· обязательноWhether the sandbox can auto-resume.
lifecycle.onTimeout·SandboxOnTimeout· обязательноAction taken when the sandbox times out.
Допустимые значения для
SandboxOnTimeout:kill|pause
404
Not found
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError
401
Authentication error
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError
500
Server error
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError