Examples

PUT /api/hosts/bulk/change_content_source
{
  "environment_id": 562075838,
  "content_view_id": 0,
  "host_ids": [
    980190962,
    298486374,
    692292738,
    835059072,
    529902380,
    651939722,
    980191151,
    980191152
  ],
  "hosts_bulk_action": {
    "environment_id": 562075838,
    "content_view_id": 0,
    "host_ids": [
      980190962,
      298486374,
      692292738,
      835059072,
      529902380,
      651939722,
      980191151,
      980191152
    ]
  }
}
404
{
  "displayMessage": "Couldn't find Katello::ContentView with 'id'=0",
  "errors": [
    "Couldn't find Katello::ContentView with 'id'=0"
  ]
}

Params

Param name Description
host_ids
required

The ids of the hosts to alter. Hosts not managed by Katello are ignored

Validations:

  • Must be an array of any type

environment_id
required

The id of the lifecycle environment

Validations:

  • Must be a number.

content_view_id
required

The id of the content view

Validations:

  • Must be a number.

content_source_id
required

The id of the content source

Validations:

  • Must be a number.