Skip to content
EleforkDocs
Internal preview. Elefork is not publicly available yet; APIs and hostnames may change.

List templates

GET
/v1/templates
curl --request GET \
--url https://api.elefork.com/v1/templates \
--header 'Authorization: Bearer <token>'

Templates

Media typeapplication/json
object
templates
required
Array<object>
object
id
required
string
name
required
string
cube_template_id
required
string
pg_major
required
integer
size
required
string
Allowed values: nano small medium large
org_id

Set for org-private templates built from a dataset; null for platform templates.

One of:
string
created_at
required
string format: date-time

Example

{
"templates": [
{
"size": "nano"
}
]
}

Error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}

Error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}

Error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}

Error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}

Temporarily unavailable; retry after the Retry-After seconds. Codes: database_unavailable (the metadata database is failing over) and cube_admission (a compute node runs a sandbox shim below the platform minimum, so creates, forks, checkpoints and resets are refused until it is upgraded).

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}
Retry-After
integer