Skip to content

Commit

Permalink
Merge pull request #9387 from hashicorp/docs-9386-alloc-job-api
Browse files Browse the repository at this point in the history
document `api.Allocation.Job` field
  • Loading branch information
cgbaker authored Nov 18, 2020
2 parents 8f18856 + 98b8987 commit b5d2a4b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions website/pages/api-docs/allocations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,13 @@ $ curl \

#### Field Reference

- `Job` - A copy of the job at the time that the allocation is created or
updated. This is primarily intended for use by the Nomad client when running
the allocation, and it may include stale information on some job fields.
Up-to-date information about the job status is available from the
[jobs API](/api-docs/jobs); take care to fetch the version of the job
associated with this allocation.

- `TaskStates` - A map of tasks to their current state and the latest events
that have effected the state. `TaskState` objects contain the following
fields:
Expand Down

0 comments on commit b5d2a4b

Please sign in to comment.