API

ExecutionRuntimeInstance

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/execution/runtime_instances/{id}/refresh create Success
POST /api/v1/execution/runtime_instances/{id}/terminate create Success
POST /api/v1/execution/runtime_instances create Success
GET /api/v1/execution/runtime_instances list Recent and live runtime instances
GET /api/v1/execution/runtime_instances/{id} load Success
PATCH /api/v1/execution/runtime_instances/{id} patch Success
DELETE /api/v1/execution/runtime_instances/{id} remove Success
PUT /api/v1/execution/runtime_instances/{id} update Success

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

execution_runtime_instances, err := client.ExecutionRuntimeInstance(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(execution_runtime_instances)
execution_runtime_instance, err := client.ExecutionRuntimeInstance(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(execution_runtime_instance)
created, err := client.ExecutionRuntimeInstance(nil).Create(map[string]any{}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.ExecutionRuntimeInstance(nil).Update(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
patched, err := client.ExecutionRuntimeInstance(nil).Patch(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(patched)
removed, err := client.ExecutionRuntimeInstance(nil).Remove(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

Construct client as shown in the Lua setup, then call the operations:

local execution_runtime_instances, err = client:ExecutionRuntimeInstance():list()
local execution_runtime_instance, err = client:ExecutionRuntimeInstance():load({ id = "example_id" })
local created, err = client:ExecutionRuntimeInstance():create({  })
local updated, err = client:ExecutionRuntimeInstance():update({ id = "example_id" })
local patched, err = client:ExecutionRuntimeInstance():patch({ id = "example_id" })
local removed, err = client:ExecutionRuntimeInstance():remove({ id = "example_id" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$execution_runtime_instances = $client->ExecutionRuntimeInstance()->list();
$execution_runtime_instance = $client->ExecutionRuntimeInstance()->load(["id" => "example_id"]);
$created = $client->ExecutionRuntimeInstance()->create([]);
$updated = $client->ExecutionRuntimeInstance()->update(["id" => "example_id"]);
$patched = $client->ExecutionRuntimeInstance()->patch(["id" => "example_id"]);
$client->ExecutionRuntimeInstance()->remove(["id" => "example_id"]);

Python

Construct client as shown in the Python setup, then call the operations:

execution_runtime_instances = client.ExecutionRuntimeInstance().list()
execution_runtime_instance = client.ExecutionRuntimeInstance().load({"id": "example_id"})
created = client.ExecutionRuntimeInstance().create({  })
updated = client.ExecutionRuntimeInstance().update({"id": "example_id"})
patched = client.ExecutionRuntimeInstance().patch({"id": "example_id"})
client.ExecutionRuntimeInstance().remove({"id": "example_id"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

execution_runtime_instances = client.ExecutionRuntimeInstance.list()
execution_runtime_instance = client.ExecutionRuntimeInstance.load({ "id" => "example_id" })
created = client.ExecutionRuntimeInstance.create({  })
updated = client.ExecutionRuntimeInstance.update({ "id" => "example_id" })
patched = client.ExecutionRuntimeInstance.patch({ "id" => "example_id" })
client.ExecutionRuntimeInstance.remove({ "id" => "example_id" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const execution_runtime_instances = await client.ExecutionRuntimeInstance().list()
const execution_runtime_instance = await client.ExecutionRuntimeInstance().load({ id: "example_id" })
const created = await client.ExecutionRuntimeInstance().create({  })
const updated = await client.ExecutionRuntimeInstance().update({ id: "example_id" })
const patched = await client.ExecutionRuntimeInstance().patch({ id: "example_id" })
await client.ExecutionRuntimeInstance().remove({ id: "example_id" })

Fields

Field Type Required Description
adapter_kind string Yes Adapter Kind
app_environment_id string Yes App Environment Id
app_release_id one,string,null Yes App Release Id
app_service_id string Yes App Service Id
booted_at one,string,null Yes Booted At
booted_at_label one,string,null Yes Booted At Label
created_at string Yes Created At
created_at_label one,string,null Yes Created At Label
hosted_app_id string Yes Hosted App Id
id string Yes Id
instance_key string Yes Instance Key
last_reconciled_at one,string,null Yes Last Reconciled At
last_reconciled_at_label one,string,null Yes Last Reconciled At Label
last_seen_at one,string,null Yes Last Seen At
last_seen_at_label one,string,null Yes Last Seen At Label
location any Yes Location
location_id string Yes Location Id
network_peer_id one,string,null Yes Network Peer Id
nomad_allocation_id one,string,null Yes Nomad Allocation Id
nomad_task_name one,string,null Yes Nomad Task Name
organization_id string Yes Organization Id
private_ipv4 one,string,null Yes Private Ipv4
private_ipv6 one,string,null Yes Private Ipv6
provider_instance_id one,string,null Yes Provider Instance Id
public_endpoint one,string,null Yes Public Endpoint
service_name string Yes Name of the Vex service this instance runs, in the same vocabulary as vex deploy list.
slug string Yes Slug
status string Yes Status
terminated_at one,string,null Yes Terminated At
terminated_at_label one,string,null Yes Terminated At Label
updated_at string Yes Updated At
updated_at_label one,string,null Yes Updated At Label

create

POST /api/v1/execution/runtime_instances/{id}/refresh

Operation ID: refresh_api_v1_runtime_instance.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/execution/runtime_instances/{id}/terminate

Operation ID: terminate_api_v1_runtime_instance.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/execution/runtime_instances

Operation ID: post_api_v1_execution_runtime_instances.

Authentication: bearer token (bearerAuth).

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

list

GET /api/v1/execution/runtime_instances

Operation ID: api_v1_runtime_instances.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
hosted_app_id query string No
app_environment_id query string No
app_service_id query string No
page query integer No
limit query integer No

Responses

200: Recent and live runtime instances

application/json

Property Type Required Description
pagination object Yes
pagination.count integer Yes
pagination.last integer Yes
pagination.limit integer Yes
pagination.next integer No
pagination.page integer Yes
pagination.previous integer No
runtime_instances array of object Yes
runtime_instances[].adapter_kind enum: database, nomad Yes
runtime_instances[].app_environment_id string Yes
runtime_instances[].app_release_id string Yes
runtime_instances[].app_service_id string Yes
runtime_instances[].booted_at string (date-time) Yes
runtime_instances[].booted_at_label string Yes
runtime_instances[].created_at string (date-time) Yes
runtime_instances[].created_at_label string Yes
runtime_instances[].hosted_app_id string Yes
runtime_instances[].id string Yes
runtime_instances[].instance_key string Yes
runtime_instances[].last_reconciled_at string (date-time) Yes
runtime_instances[].last_reconciled_at_label string Yes
runtime_instances[].last_seen_at string (date-time) Yes
runtime_instances[].last_seen_at_label string Yes
runtime_instances[].location object or null Yes
runtime_instances[].location_id string Yes
runtime_instances[].network_peer_id string Yes
runtime_instances[].nomad_allocation_id string Yes
runtime_instances[].nomad_task_name string Yes
runtime_instances[].organization_id string Yes
runtime_instances[].private_ipv4 string Yes
runtime_instances[].private_ipv6 string Yes
runtime_instances[].provider_instance_id string Yes
runtime_instances[].public_endpoint string Yes
runtime_instances[].service_name string Yes Name of the Vex service this instance runs, in the same vocabulary as vex deploy list. nomad_task_name is the scheduler's own name for the same workload.
runtime_instances[].slug string Yes
runtime_instances[].status enum: starting, running, degraded, stopped, terminated, failed Yes
runtime_instances[].terminated_at string (date-time) Yes
runtime_instances[].terminated_at_label string Yes
runtime_instances[].updated_at string (date-time) Yes
runtime_instances[].updated_at_label string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/execution/runtime_instances/{id}

Operation ID: api_v1_runtime_instance.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

patch

PATCH /api/v1/execution/runtime_instances/{id}

Operation ID: patch_api_v1_execution_runtime_instances_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/execution/runtime_instances/{id}

Operation ID: delete_api_v1_execution_runtime_instances_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PUT /api/v1/execution/runtime_instances/{id}

Operation ID: put_api_v1_execution_runtime_instances_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway