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

List a branch's operations

GET
/v1/branches/{id}/operations
curl --request GET \
--url https://api.elefork.com/v1/branches/example/operations \
--header 'Authorization: Bearer <token>'
id
required
string
limit
integer
>= 1

Operations, newest first

Media typeapplication/json
object
operations
required
Array<object>
object
id
required
string
org_id
required
string
branch_id
required
One of:
string
kind
required
string
Allowed values: create checkpoint reset pause wake delete recover
state
required
string
Allowed values: pending running succeeded failed
error
string
params
required
object
result
required
object
created_at
required
string format: date-time
finished_at
required
One of:
string format: date-time
request_id

The API request that started the operation (X-Request-Id).

string

Example

{
"operations": [
{
"kind": "create",
"state": "pending"
}
]
}

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