GET /templates/{templateID}
List template builds
List all builds for a template
Параметры
templateID·string· путь · обязательноnextToken·string· запрос · необязательноCursor to start the list from
limit·integer· запрос · необязательноMaximum number of items to return per page
Формат:
int32По умолчанию:
100Минимум:
1Максимум:
100
Ответы
200
Successfully returned the template with its builds
Заголовки ответа
X-Next-Token·string· заголовок ответаCursor to fetch the next page of results, if more exist
Content-Type: application/json
Схема: TemplateWithBuilds
templateID·string· обязательноIdentifier of the template
public·boolean· обязательноWhether the template is public or only accessible by the team
names·array<string>· обязательноNames of the template (namespace/alias format when namespaced)
createdAt·string· обязательноTime when the template was created
Формат:
date-timeupdatedAt·string· обязательноTime when the template was last updated
Формат:
date-timelastSpawnedAt·string | null· обязательноTime when the template was last used
Формат:
date-timespawnCount·integer· обязательноNumber of times the template was used
Формат:
int64builds·array<TemplateBuild>· обязательноList of builds for the template
builds.buildID·string· обязательноIdentifier of the build
Формат:
uuidbuilds.status·TemplateBuildStatus· обязательноStatus of the template build
Допустимые значения для
TemplateBuildStatus:building|waiting|ready|errorbuilds.createdAt·string· обязательноTime when the build was created
Формат:
date-timebuilds.updatedAt·string· обязательноTime when the build was last updated
Формат:
date-timebuilds.finishedAt·string· необязательноTime when the build was finished
Формат:
date-timebuilds.cpuCount·CPUCount· обязательноCPU cores for the sandbox
Формат:
int32Минимум:
1builds.memoryMB·MemoryMB· обязательноMemory for the sandbox in MiB
Формат:
int32Минимум:
128builds.diskSizeMB·DiskSizeMB· необязательноDisk size for the sandbox in MiB
Формат:
int32Минимум:
0builds.envdVersion·EnvdVersion· необязательноVersion of the envd running in the sandbox
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