GET /v2/templates
List templates (v2)
List all templates
Параметры
teamID·string· запрос · необязательноIdentifier of the team
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 all templates
Заголовки ответа
X-Next-Token·string· заголовок ответаCursor to fetch the next page of results, if more exist
Content-Type: application/json
Схема: array<Template>
templateID·string· обязательноIdentifier of the template
buildID·string· обязательноIdentifier of the last successful build for given template
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Минимум:
0public·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-timecreatedBy·TeamUser | null· обязательноcreatedBy.id·string· обязательноIdentifier of the user
Формат:
uuidlastSpawnedAt·string | null· обязательноTime when the template was last used
Формат:
date-timespawnCount·integer· обязательноNumber of times the template was used
Формат:
int64buildCount·integer· обязательноNumber of times the template was built
Формат:
int32envdVersion·EnvdVersion· обязательноVersion of the envd running in the sandbox
buildStatus·TemplateBuildStatus· обязательноStatus of the template build
Допустимые значения для
TemplateBuildStatus:building|waiting|ready|error
400
Bad request
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
403
Forbidden
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