GET /api/job_invocations 200 { "total": 9, "subtotal": 9, "page": 1, "per_page": 20, "search": null, "sort": { "by": null, "order": null }, "results": [ { "id": 9, "description": null, "job_category": "Job name 7", "targeting_id": 7, "status": 0, "start_at": null, "status_label": "succeeded", "ssh_user": null, "dynflow_task": { "id": "541fee74-f6c7-4171-987c-667594310163", "state": "stopped" }, "succeeded": "N/A", "failed": "N/A", "pending": "N/A", "total": "N/A", "missing": 0 }, { "id": 8, "description": null, "job_category": "Job name 9", "targeting_id": 9, "status": 2, "start_at": null, "status_label": "queued", "ssh_user": null, "dynflow_task": null, "succeeded": "N/A", "failed": "N/A", "pending": "N/A", "total": "N/A", "missing": 0 }, { "id": 7, "description": null, "job_category": "Job name 8", "targeting_id": 8, "status": 2, "start_at": null, "status_label": "queued", "ssh_user": null, "dynflow_task": null, "succeeded": "N/A", "failed": "N/A", "pending": "N/A", "total": "N/A", "missing": 0 }, { "id": 6, "description": null, "job_category": "Job name 4", "targeting_id": 4, "status": 0, "start_at": null, "status_label": "succeeded", "ssh_user": null, "dynflow_task": { "id": "4297fb42-ac4c-430f-82c2-9aa05a4c4d3c", "state": "stopped" }, "succeeded": "N/A", "failed": "N/A", "pending": "N/A", "total": "N/A", "missing": 0 }, { "id": 5, "description": null, "job_category": "Job name 6", "targeting_id": 6, "status": 2, "start_at": null, "status_label": "queued", "ssh_user": null, "dynflow_task": null, "succeeded": "N/A", "failed": "N/A", "pending": "N/A", "total": "N/A", "missing": 0 }, { "id": 4, "description": null, "job_category": "Job name 5", "targeting_id": 5, "status": 2, "start_at": null, "status_label": "queued", "ssh_user": null, "dynflow_task": null, "succeeded": "N/A", "failed": "N/A", "pending": "N/A", "total": "N/A", "missing": 0 }, { "id": 3, "description": null, "job_category": "Job name 1", "targeting_id": 1, "status": 0, "start_at": null, "status_label": "succeeded", "ssh_user": null, "dynflow_task": { "id": "77bf9c98-0172-467c-8c87-fcbe9faf4c6d", "state": "stopped" }, "succeeded": "N/A", "failed": "N/A", "pending": "N/A", "total": "N/A", "missing": 0 }, { "id": 2, "description": null, "job_category": "Job name 3", "targeting_id": 3, "status": 2, "start_at": null, "status_label": "queued", "ssh_user": null, "dynflow_task": null, "succeeded": "N/A", "failed": "N/A", "pending": "N/A", "total": "N/A", "missing": 0 }, { "id": 1, "description": null, "job_category": "Job name 2", "targeting_id": 2, "status": 2, "start_at": null, "status_label": "queued", "ssh_user": null, "dynflow_task": null, "succeeded": "N/A", "failed": "N/A", "pending": "N/A", "total": "N/A", "missing": 0 } ] }
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/18 200 { "id": 18, "description": null, "job_category": "Job name 16", "targeting_id": 16, "status": 0, "start_at": null, "status_label": "succeeded", "ssh_user": null, "dynflow_task": { "id": "3c8e5231-8905-4f27-baf0-5b4eb15aff4e", "state": "stopped" }, "succeeded": "N/A", "failed": "N/A", "pending": "N/A", "total": "N/A", "missing": 0, "targeting": { "bookmark_id": null, "search_query": "name = foo", "targeting_type": "static_query", "user_id": 988725696, "randomized_ordering": false, "hosts": [ { "name": "host12", "id": 11 } ] }, "task": { "id": "3c8e5231-8905-4f27-baf0-5b4eb15aff4e", "state": "stopped" }, "mode": "immediate" }
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 62", "name": "RandomName", "job_template_id": 1007981808, "targeting_type": "static_query", "search_query": "foobar", "recurrence": { "cron_line": "5 * * * *" } } } 201 { "id": 66, "description": "Job template 58 with inputs Template input 13=\"''\"", "job_category": "Job name 62", "targeting_id": 72, "status": 2, "start_at": "2022-11-08 19:05:00 UTC", "status_label": "queued", "ssh_user": null, "dynflow_task": { "id": "f47e9812-e04d-4b25-8820-3caffdbc4312", "state": "scheduled" }, "succeeded": "N/A", "failed": "N/A", "pending": "N/A", "total": "N/A", "missing": 0, "targeting": { "bookmark_id": null, "search_query": "foobar", "targeting_type": "static_query", "user_id": 135138680, "randomized_ordering": null, "hosts": [] }, "task": { "id": "f47e9812-e04d-4b25-8820-3caffdbc4312", "state": "scheduled" }, "mode": "recurring", "recurrence": { "id": 1, "cron_line": "5 * * * *", "end_time": null, "iteration": 1, "task_group_id": 3, "state": "active", "max_iteration": 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][time_span] optional , nil allowed |
Distribute tasks over N seconds 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:
|
GET /api/job_invocations/27/hosts/17 200 { "complete": true, "refresh": false, "output": [] }
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:
|
GET /api/job_invocations/262/hosts/193/raw 200 { "complete": false, "refresh": true, "output": null, "delayed": true, "start_at": "2022-11-08T19:07:13.889+00:00" }
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/193/cancel { "force": true, "job_invocation": {} } 200 { "cancelled": true, "id": 193 }
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:
|
POST /api/job_invocations/189/rerun { "job_invocation": {} } 201 { "id": 190, "targeting_id": 212, "job_category": "Job name 180", "task_id": "484130db-e267-48e8-b747-5951867c86c8", "task_group_id": 16, "triggering_id": 14, "description": null, "concurrency_level": null, "time_span": 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:
|
GET /api/job_invocations/88/outputs 200 { "outputs": [ { "complete": true, "refresh": false, "output": [], "host_id": 54 } ] }
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:
|