GET /api/hosts/:host_id/traces
List services that need restarting on the host

Examples

GET /api/hosts/980190962/traces
200
{
  "total": 1,
  "subtotal": 1,
  "selectable": 1,
  "page": 1,
  "per_page": 20,
  "error": null,
  "search": null,
  "sort": {
    "by": "application",
    "order": "asc"
  },
  "results": [
    {
      "id": 1,
      "application": "scrumm",
      "helper": "agile",
      "restart_command": "agile",
      "app_type": "foo",
      "host_id": 980190962,
      "host": "host1.example.com",
      "reboot_required": false
    }
  ]
}

Params

Param name Description
host_id
required

ID of the host

Validations:

  • Must be a number.


PUT /api/hosts/:host_id/traces/resolve
Resolve traces

Examples

PUT /api/hosts/980190962/traces/resolve
{
  "trace_ids": [
    4
  ],
  "host_tracer": {}
}
202
{
  "id": "b8317062-c664-4792-9d9a-8167b23c0001",
  "label": "task1",
  "pending": false,
  "action": "task1",
  "username": null,
  "started_at": "2016-01-02 11:15:00 UTC",
  "ended_at": "2016-01-02 11:15:32 UTC",
  "state": "stopped",
  "result": "success",
  "progress": 0,
  "input": null,
  "output": null,
  "humanized": {
    "action": "task1",
    "input": null,
    "output": null,
    "errors": null
  },
  "cli_example": null,
  "start_at": null,
  "available_actions": {
    "cancellable": null,
    "resumable": false
  }
}

Params

Param name Description
host_id
required

ID of the host

Validations:

  • Must be a number.

trace_ids
required

Array of Trace IDs

Validations:

  • Must be an array of any type