NomadAllocation
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/api/v1/hosting/apps/{app_id}/deployment_dashboard/nomad/allocations/{allocation_id} |
load |
Live Nomad allocation details |
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:
nomad_allocation, err := client.NomadAllocation(nil).Load(map[string]any{"app_id": "example", "id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(nomad_allocation)
Lua
Construct client as shown in the Lua setup, then call the operations:
local nomad_allocation, err = client:NomadAllocation():load({ app_id = "example", id = "example_id" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$nomad_allocation = $client->NomadAllocation()->load(["app_id" => "example", "id" => "example_id"]);
Python
Construct client as shown in the Python setup, then call the operations:
nomad_allocation = client.NomadAllocation().load({"app_id": "example", "id": "example_id"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
nomad_allocation = client.NomadAllocation.load({ "app_id" => "example", "id" => "example_id" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const nomad_allocation = await client.NomadAllocation().load({ app_id: "example", id: "example_id" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
allocation_id |
string |
Yes | Allocation Id |
client_status |
one,string,null |
Yes | Client Status |
create_time |
one,string,null |
Yes | Create Time |
datacenter |
one,string,null |
Yes | Datacenter |
desired_description |
one,string,null |
Yes | Desired Description |
desired_status |
one,string,null |
Yes | Desired Status |
fetched_at |
string |
Yes | Fetched At |
id |
string |
No | Id |
job_id |
one,string,null |
Yes | Job Id |
modify_time |
one,string,null |
Yes | Modify Time |
name |
one,string,null |
Yes | Name |
namespace |
string |
Yes | Namespace |
node_id |
one,string,null |
Yes | Node Id |
node_name |
one,string,null |
Yes | Node Name |
resources |
object |
Yes | Resources |
task_group |
one,string,null |
Yes | Task Group |
task_states |
array |
Yes | Task States |
verify_runner_images |
array |
No | Public Verify image pins from tasks in this allocation's attached job group, not current app settings. |
load
GET /api/v1/hosting/apps/{app_id}/deployment_dashboard/nomad/allocations/{allocation_id}
Operation ID: get_api_v1_hosting_apps_app_id_deployment_dashboard_nomad_allocations_allocation_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes | |
allocation_id |
path |
string |
Yes |
Responses
200: Live Nomad allocation details
application/json
| Property | Type | Required | Description |
|---|---|---|---|
allocation_id |
string |
Yes | |
client_status |
string |
Yes | |
create_time |
string |
Yes | |
datacenter |
string |
Yes | |
desired_description |
string |
Yes | |
desired_status |
string |
Yes | |
fetched_at |
string (date-time) |
Yes | |
job_id |
string |
Yes | |
modify_time |
string |
Yes | |
name |
string |
Yes | |
namespace |
string |
Yes | |
node_id |
string |
Yes | |
node_name |
string |
Yes | |
resources |
object |
Yes | |
task_group |
string |
Yes | |
task_states |
array of object |
Yes | |
task_states[].events |
array of object |
Yes | |
task_states[].events[].display_message |
string |
Yes | |
task_states[].events[].exit_code |
integer |
Yes | |
task_states[].events[].fails_task |
boolean |
Yes | |
task_states[].events[].message |
string |
Yes | |
task_states[].events[].restart_reason |
string |
Yes | |
task_states[].events[].time |
string |
Yes | |
task_states[].events[].type |
string |
Yes | |
task_states[].failed |
boolean |
Yes | |
task_states[].finished_at |
string |
Yes | |
task_states[].last_restart |
string |
Yes | |
task_states[].name |
string |
Yes | |
task_states[].restarts |
integer |
Yes | |
task_states[].started_at |
string |
Yes | |
task_states[].state |
string |
Yes | |
verify_runner_images |
array of object |
No | Public Verify image pins from tasks in this allocation's attached job group, not current app settings. Empty when attached job metadata is unavailable. Other environment values are never returned; malformed pins are named in invalid_keys without their values. References and fingerprints are reported independently so callers can detect mismatches. |
verify_runner_images[].invalid_keys |
array of enum: VEX_VERIFY_RUNNER_IMAGE, VEX_VERIFY_RUNNER_IMAGE_DIGEST, VEX_VERIFY_BROWSER_SESSION_IMAGE |
Yes | |
verify_runner_images[].name |
string |
Yes | |
verify_runner_images[].values |
object |
Yes | |
verify_runner_images[].values.VEX_VERIFY_BROWSER_SESSION_IMAGE |
string |
Yes | |
verify_runner_images[].values.VEX_VERIFY_RUNNER_IMAGE |
string |
Yes | |
verify_runner_images[].values.VEX_VERIFY_RUNNER_IMAGE_DIGEST |
string |
Yes |
401: Unauthorized
403: Forbidden
404: The app, allocation, or selector names nothing
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
410: Nomad no longer holds the allocation, so its logs are gone
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |
422: Unprocessable entity
502: Nomad request failed
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
string |
Yes |