GET /api/job_invocations
200
{
"total": 3,
"subtotal": 3,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"id": 74,
"description": null,
"job_category": "Job name 73",
"targeting_id": 78,
"status": 0,
"start_at": null,
"status_label": "succeeded",
"ssh_user": null,
"time_to_pickup": null,
"concurrency_level": null,
"execution_timeout_interval": null,
"dynflow_task": {
"id": "460b9625-8db0-4188-b1dc-adedac5f924b",
"state": "stopped"
},
"template_id": 1007981834,
"template_name": "Job template 74",
"effective_user": "root",
"succeeded": 0,
"failed": 0,
"pending": 0,
"cancelled": 0,
"total": "N/A",
"missing": 0,
"total_hosts": "N/A"
},
{
"id": 73,
"description": null,
"job_category": "Job name 75",
"targeting_id": 80,
"status": 2,
"start_at": null,
"status_label": "queued",
"ssh_user": null,
"time_to_pickup": null,
"concurrency_level": null,
"execution_timeout_interval": null,
"dynflow_task": null,
"template_id": null,
"template_name": null,
"effective_user": null,
"succeeded": 0,
"failed": 0,
"pending": 0,
"cancelled": 0,
"total": "N/A",
"missing": 0,
"total_hosts": "N/A"
},
{
"id": 72,
"description": null,
"job_category": "Job name 74",
"targeting_id": 79,
"status": 2,
"start_at": null,
"status_label": "queued",
"ssh_user": null,
"time_to_pickup": null,
"concurrency_level": null,
"execution_timeout_interval": null,
"dynflow_task": null,
"template_id": null,
"template_name": null,
"effective_user": null,
"succeeded": 0,
"failed": 0,
"pending": 0,
"cancelled": 0,
"total": "N/A",
"missing": 0,
"total_hosts": "N/A"
}
]
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
search
optional |
filter results Validations:
|
|
order
optional |
Sort and order by a searchable field, e.g. '<field> DESC' Validations:
|
|
page
optional |
Page number, starting at 1 Validations:
|
|
per_page
optional |
Number of results per page to return, 'all' to return all results Validations:
|
GET /api/job_invocations/53
200
{
"id": 53,
"description": null,
"job_category": "Job name 56",
"targeting_id": 57,
"status": 0,
"start_at": null,
"status_label": "succeeded",
"ssh_user": null,
"time_to_pickup": null,
"concurrency_level": null,
"execution_timeout_interval": null,
"dynflow_task": {
"id": "7a3de179-dcb7-4ded-a98b-506e99a96c87",
"state": "stopped"
},
"template_id": 1007981817,
"template_name": "Job template 57",
"effective_user": "root",
"succeeded": 0,
"failed": 0,
"pending": 0,
"cancelled": 0,
"total": "N/A",
"missing": 0,
"total_hosts": "N/A",
"targeting": {
"bookmark_id": null,
"bookmark_name": null,
"search_query": "name = foo",
"targeting_type": "static_query",
"user_id": 988725734,
"randomized_ordering": false,
"hosts": [
{
"name": "host40",
"id": 39,
"display_name": "host40"
}
]
},
"task": {
"id": "7a3de179-dcb7-4ded-a98b-506e99a96c87",
"state": "stopped",
"started_at": null
},
"mode": "immediate",
"pattern_template_invocations": [
{
"template_id": 1007981817,
"template_name": "Job template 57",
"host_id": null,
"template_invocation_input_values": []
}
],
"job_organization": null,
"job_location": null
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
id
required |
Validations:
|
|
host_status
optional |
Show Job status for the hosts Validations:
|
POST /api/job_invocations
{
"job_invocation": {
"job_category": "Job name 160",
"name": "RandomName",
"job_template_id": 1007981959,
"targeting_type": "static_query",
"search_query": "foobar",
"scheduling": {
"start_at": "2026-02-10 18:10:23 +0000"
}
}
}
201
{
"id": 183,
"description": "Job template 159 with inputs Template input 26=\"''\"",
"job_category": "Job name 160",
"targeting_id": 195,
"status": 2,
"start_at": "2026-02-10 18:10:00 UTC",
"status_label": "queued",
"ssh_user": null,
"time_to_pickup": null,
"concurrency_level": null,
"execution_timeout_interval": null,
"dynflow_task": {
"id": "a7f59747-5078-49db-ae85-4e07281a6494",
"state": "scheduled"
},
"template_id": 1007981959,
"template_name": "Job template 159",
"effective_user": "root",
"succeeded": 0,
"failed": 0,
"pending": 0,
"cancelled": 0,
"total": "N/A",
"missing": 0,
"total_hosts": 0,
"targeting": {
"bookmark_id": null,
"bookmark_name": null,
"search_query": "foobar",
"targeting_type": "static_query",
"user_id": 135138680,
"randomized_ordering": null,
"hosts": []
},
"task": {
"id": "a7f59747-5078-49db-ae85-4e07281a6494",
"state": "scheduled",
"started_at": null
},
"mode": "future",
"scheduling": {
"start_at": "2026-02-10 18:10:00 UTC",
"start_before": null
},
"pattern_template_invocations": null,
"job_organization": null,
"job_location": null
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
job_invocation
required |
Validations:
|
|
job_invocation[job_template_id]
optional , nil allowed |
The job template to use, parameter is required unless feature was specified Validations:
|
|
job_invocation[targeting_type]
required |
Invocation type, one of {“static_query”=>“Static Query”, “dynamic_query”=>“Dynamic Query”} Validations:
|
|
job_invocation[randomized_ordering]
optional , nil allowed |
Execute the jobs on hosts in randomized order Validations:
|
|
job_invocation[inputs]
optional , nil allowed |
Inputs to use Validations:
|
|
job_invocation[ssh]
optional , nil allowed |
SSH provider specific options Validations:
|
|
job_invocation[ssh][effective_user]
optional , nil allowed |
What user should be used to run the script (using sudo-like mechanisms). Defaults to a template parameter or global setting. Validations:
|
|
job_invocation[ssh][effective_user_password]
optional , nil allowed |
Set password for effective user (using sudo-like mechanisms) Validations:
|
|
job_invocation[ssh_user]
optional , nil allowed |
Set SSH user Validations:
|
|
job_invocation[password]
optional , nil allowed |
Set SSH password Validations:
|
|
job_invocation[key_passphrase]
optional , nil allowed |
Set SSH key passphrase Validations:
|
|
job_invocation[recurrence]
optional , nil allowed |
Create a recurring job Validations:
|
|
job_invocation[recurrence][cron_line]
optional , nil allowed |
How often the job should occur, in the cron format Validations:
|
|
job_invocation[recurrence][max_iteration]
optional , nil allowed |
Repeat a maximum of N times Validations:
|
|
job_invocation[recurrence][end_time]
optional , nil allowed |
Perform no more executions after this time Validations:
|
|
job_invocation[recurrence][purpose]
optional , nil allowed |
Designation of a special purpose Validations:
|
|
job_invocation[scheduling]
optional , nil allowed |
Schedule the job to start at a later time Validations:
|
|
job_invocation[scheduling][start_at]
optional , nil allowed |
Schedule the job for a future time Validations:
|
|
job_invocation[scheduling][start_before]
optional , nil allowed |
Indicates that the action should be cancelled if it cannot be started before this time. Validations:
|
|
job_invocation[concurrency_control]
optional , nil allowed |
Control concurrency level and distribution over time Validations:
|
|
job_invocation[concurrency_control][concurrency_level]
optional , nil allowed |
Run at most N tasks at a time Validations:
|
|
job_invocation[bookmark_id]
optional , nil allowed |
Validations:
|
|
job_invocation[search_query]
optional , nil allowed |
Validations:
|
|
job_invocation[description_format]
optional , nil allowed |
Override the description format from the template for this invocation only Validations:
|
|
job_invocation[execution_timeout_interval]
optional , nil allowed |
Override the timeout interval from the template for this invocation only Validations:
|
|
job_invocation[feature]
optional , nil allowed |
Remote execution feature label that should be triggered, job template assigned to this feature will be used Validations:
|
|
job_invocation[time_to_pickup]
optional , nil allowed |
Override the global time to pickup interval for this invocation only Validations:
|
|
job_invocation[ansible]
optional , nil allowed |
Ansible provider specific inputs Validations:
|
|
job_invocation[ansible][tags]
optional , nil allowed |
A comma separated list of tags to use for Ansible run Validations:
|
|
job_invocation[ansible][tags_flag]
optional , nil allowed |
IncludeExclude tags for Ansible run Validations:
|
GET /api/job_invocations/142/hosts/90
404
{
"error": {
"message": "Host with id '90' was not found"
}
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
id
required |
Validations:
|
|
host_id
required |
Validations:
|
|
since
optional |
Validations:
|
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
search
optional |
filter results Validations:
|
|
order
optional |
Sort and order by a searchable field, e.g. '<field> DESC' Validations:
|
|
page
optional |
Page number, starting at 1 Validations:
|
|
per_page
optional |
Number of results per page to return, 'all' to return all results Validations:
|
|
id
required |
Validations:
|
| Field name | Type | Possible values |
|---|---|---|
| description | string | |
| ended_at | datetime | |
| host | string | |
| id | integer | |
| job_category | string | |
| owner | string | |
| pattern_template_name | string | |
| recurring | true, false | |
| recurring_logic.id | integer | |
| recurring_logic.purpose | string | |
| start_at | datetime | |
| started_at | datetime | |
| status | succeeded, failed, queued, running, cancelled | |
| targeted_host_id | string | |
| user | string |
GET /api/job_invocations/393/hosts/274/raw
200
{
"complete": true,
"refresh": false,
"output": "1\n2\n3\n4\n5\n"
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
id
required |
Validations:
|
|
host_id
required |
Validations:
|
POST /api/job_invocations/77/cancel
{
"job_invocation": {}
}
200
{
"cancelled": true,
"id": 77
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
id
required |
Validations:
|
|
force
optional |
Validations:
|
|
search
optional |
Search query to cancel tasks only on matching hosts. If not provided, the whole job invocation will be cancelled. Validations:
|
POST /api/job_invocations/80/rerun
{
"failed_only": true,
"job_invocation": {}
}
201
{
"id": 81,
"targeting_id": 87,
"job_category": "Job name 79",
"task_id": "3817725f-1760-48e5-a193-17d67e2f03a0",
"task_group_id": 5,
"triggering_id": 4,
"description": null,
"concurrency_level": null,
"execution_timeout_interval": null,
"password": null,
"key_passphrase": null,
"remote_execution_feature_id": null,
"effective_user_password": null,
"ssh_user": null,
"time_to_pickup": null
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
id
required |
Validations:
|
|
failed_only
optional |
Validations:
|
|
succeeded_only
optional |
Validations:
|
GET /api/job_invocations/226/outputs
200
{
"outputs": [
{
"complete": true,
"refresh": false,
"output": [],
"host_id": 143
}
]
}
| Param name | Description |
|---|---|
|
location_id
optional |
Set the current location context for the request Validations:
|
|
organization_id
optional |
Set the current organization context for the request Validations:
|
|
id
required |
Validations:
|
|
search_query
optional |
Validations:
|
|
since
optional |
Validations:
|
|
raw
optional |
Validations:
|