Examples

GET /api/job_invocations/137
200
{
  "id": 137,
  "description": null,
  "job_category": "Job name 143",
  "targeting_id": 151,
  "status": 0,
  "start_at": null,
  "status_label": "succeeded",
  "ssh_user": null,
  "time_to_pickup": null,
  "dynflow_task": {
    "id": "36bf4d9f-7275-454f-aaf5-87ed726729d0",
    "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": 988725812,
    "randomized_ordering": false,
    "hosts": []
  },
  "task": {
    "id": "36bf4d9f-7275-454f-aaf5-87ed726729d0",
    "state": "stopped"
  },
  "mode": "immediate"
}

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.