Overview
Jobs are instances of job templates that have been launched. They represent the execution of an Ansible playbook with specific parameters. Jobs are read-only except for cancellation.Endpoints
List Jobs
string
Filter by status:
new, pending, waiting, running, successful, failed, error, canceledstring
Filter by type:
run or checkRetrieve Job
Response Schema
integer
Job ID
string
Job name (from template)
string
Job description
string
Job type:
run or checkstring
Current status:
new, pending, waiting, running, successful, failed, error, canceledboolean
Whether job failed
string
Start timestamp
string
Completion timestamp
string
Cancellation timestamp
number
Elapsed time in seconds
string
Explanation for job status
string
Node where job executed
string
Controller node
string
How job was launched:
manual, relaunch, callback, scheduled, dependency, workflow, webhook, sync, scmstring
Playbook that was executed
string
SCM revision used
string
SCM branch used
integer
Inventory ID
integer
Project ID
integer
Job template ID
string
Host limit
string
Extra variables (displayed, sensitive values hidden)
object
Artifacts set by the job
integer
Number of forks used
integer
Verbosity level
string
Tags applied
string
Tags skipped
integer
Job timeout
boolean
Whether diff mode was enabled
boolean
Whether fact cache was used
boolean
Whether simultaneous execution is allowed
integer
Slice number (for distributed jobs)
integer
Total number of slices
string
Webhook service that triggered job
string
Webhook GUID
Links to related resources:
job_template- Source templateinventory- Job inventoryproject- Source projectexecution_environment- Execution environmentcredentials- Credentials usedlabels- Job labelsjob_events- Playbook eventsjob_host_summaries- Host summariesactivity_stream- Activity lognotifications- Notifications sentcancel- Cancel endpointrelaunch- Relaunch endpointcreate_schedule- Create schedule from job
Job Output
Get Standard Output
Get Formatted Output
string
default:"html"
Output format:
html, txt, ansi, jsonboolean
Download as file attachment
Job Events
List detailed playbook events:playbook_on_startplaybook_on_play_startplaybook_on_task_startrunner_on_okrunner_on_failedrunner_on_skippedrunner_on_unreachableplaybook_on_stats- And many more…
Children Summary
Job Host Summaries
Get per-host execution summary:ok- Successful taskschanged- Tasks that made changesdark- Unreachable hostsfailures- Failed tasksskipped- Skipped tasks
Cancel Job
Cancel a running or pending job:Only jobs in
new, pending, waiting, or running status can be canceled.