Examples

PUT /api/hosts/bulk/install_content
{
  "included": {
    "ids": [
      980191243
    ]
  },
  "organization_id": 114267492,
  "content_type": "errata",
  "content": [
    "RHBA-2014-013"
  ],
  "hosts_bulk_action": {
    "included": {
      "ids": [
        980191243
      ]
    },
    "organization_id": 114267492,
    "content_type": "errata",
    "content": [
      "RHBA-2014-013"
    ]
  }
}
202
[

]

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

content_type
required

The type of content. The following types are supported: 'package', 'package_group' and 'errata'.

Validations:

  • String

content
optional

List of content (e.g. package names, package group names (Deprecated) or errata ids)

Validations:

  • Must be an array of any type