Examples

POST /api/hosts/bulk/traces
{
  "organization_id": 114267492,
  "included": {
    "ids": [
      980191159,
      980191160
    ]
  },
  "hosts_bulk_action": {
    "organization_id": 114267492,
    "included": {
      "ids": [
        980191159,
        980191160
      ]
    }
  }
}
200
{
  "total": 2,
  "subtotal": 2,
  "selectable": 2,
  "page": 1,
  "per_page": 20,
  "error": null,
  "search": null,
  "sort": {
    "by": "application",
    "order": "desc"
  },
  "results": [
    {
      "id": 11,
      "application": "kernel",
      "helper": "reboot the system",
      "restart_command": "reboot",
      "app_type": "static",
      "host_id": 980191159,
      "host": "host211",
      "reboot_required": true
    },
    {
      "id": 12,
      "application": "dbus",
      "helper": "reboot the system",
      "restart_command": "reboot",
      "app_type": "static",
      "host_id": 980191160,
      "host": "host212",
      "reboot_required": true
    }
  ]
}

Params

Param name Description
organization_id
required

ID of the organization

Validations:

  • Must be a number.

included
required

Validations:

  • Hash

included[search]
optional , nil allowed

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
optional , nil allowed

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
required

Validations:

  • Hash

excluded[ids]
optional , nil allowed

List of host ids to exclude and not run an action on

Validations:

  • Must be an array of any type