Examples

GET /api/job_invocations/158
200
{
  "id": 158,
  "description": null,
  "job_category": "Job name 140",
  "targeting_id": 161,
  "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": "80591701-191c-46c1-b2d7-f1f68101ec82",
    "state": "stopped"
  },
  "template_id": 1007981935,
  "template_name": "Job template 138",
  "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": 988725830,
    "randomized_ordering": false,
    "hosts": [
      {
        "name": "host110",
        "id": 105,
        "display_name": "host110"
      }
    ]
  },
  "task": {
    "id": "80591701-191c-46c1-b2d7-f1f68101ec82",
    "state": "stopped"
  },
  "mode": "immediate",
  "pattern_template_invocations": [
    {
      "template_id": 1007981935,
      "template_name": "Job template 138",
      "host_id": null,
      "template_invocation_input_values": []
    }
  ],
  "job_organization": null,
  "job_location": null
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

host_status
optional

Show Job status for the hosts

Validations:

  • Must be one of: true, false, 1, 0.