GET /v2/sandboxes
List sandboxes (v2)
List all sandboxes
Параметры
metadata·string· запрос · необязательноMetadata query used to filter the sandboxes (e.g. "user=abc&app=prod"). Each key and values must be URL encoded.
state·array<SandboxState>· запрос · необязательноFilter sandboxes by one or more states
Допустимые значения для
SandboxState:running|pausedСериализация: style
form; explodefalse; wire formatstate=value1,value2nextToken·string· запрос · необязательноCursor to start the list from
limit·integer· запрос · необязательноMaximum number of items to return per page
Формат:
int32По умолчанию:
100Минимум:
1Максимум:
100
Ответы
200
Successfully returned all running sandboxes
Заголовки ответа
X-Next-Token·string· заголовок ответаCursor to fetch the next page of results, if more exist
X-Total-Running·integer· заголовок ответаNumber of running sandboxes matching the filters, before pagination is applied. Only present when running sandboxes were requested.
Формат:
int32
Content-Type: application/json
Схема: array<ListedSandbox>
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-timecpuCount·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|pausedenvdVersion·EnvdVersion· обязательноVersion of the envd running in the sandbox
401
Authentication error
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError
400
Bad request
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