PUT /api/hosts/bulk/add_host_collections
Add one or more host collections to one or more hosts

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type

host_collection_ids
必填

主机集合 id 列表

Validations:

  • Must be an array of any type


PUT /api/hosts/bulk/remove_host_collections
Remove one or more host collections from one or more hosts

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type

host_collection_ids
必填

主机集合 id 列表

Validations:

  • Must be an array of any type


POST /api/hosts/bulk/applicable_errata
Fetch applicable errata for a host.

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type


POST /api/hosts/bulk/installable_errata
Fetch installable errata for a host.

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type


PUT /api/hosts/bulk/install_content
Install content on one or more hosts

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type

content_type
必填

内容类型。支持以下类型:'package' 、 'package_group' 和 'errata'。

Validations:

  • String

content
必填

内容列表(例如:软件包名称、软件包组名称或者勘误 id)

Validations:

  • Must be an array of any type


PUT /api/hosts/bulk/update_content
Update content on one or more hosts

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type

content_type
必填

内容类型。支持以下类型:'package' 和 'package_group'

Validations:

  • String

content
必填

内容列表(例如:软件包或者软件包组名称)

Validations:

  • Must be an array of any type

update_all
选填

Updates all packages on the host(s)

Validations:

  • boolean


PUT /api/hosts/bulk/remove_content
Remove content on one or more hosts

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type

content_type
必填

内容类型。支持以下类型:'package' 和 'package_group'

Validations:

  • String

content
必填

内容列表(例如:软件包或者软件包组名称)

Validations:

  • Must be an array of any type


PUT /api/hosts/bulk/destroy
Destroy one or more hosts

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type


PUT /api/hosts/bulk/remove_subscriptions
Remove subscriptions from one or more hosts

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type

subscriptions
选填

Array of subscriptions to remove

Validations:

  • Must be an Array of nested elements

subscriptions[id]
必填

Subscription Pool id

Validations:

  • String

subscriptions[quantity]
选填

Quantity of specified subscription to remove

Validations:

  • Integer


PUT /api/hosts/bulk/add_subscriptions
Add subscriptions to one or more hosts

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type

subscriptions
必填

要添加的订阅阵列

Validations:

  • Must be an Array of nested elements

subscriptions[id]
必填

Subscription Pool id

Validations:

  • String

subscriptions[quantity]
必填

要在这个订阅中添加的数量

Validations:

  • number.


PUT /api/hosts/bulk/auto_attach
Trigger an auto-attach of subscriptions on one or more hosts

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type


PUT /api/hosts/bulk/content_overrides
Set content overrides to one or more hosts

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type

content_overrides
选填

Array of Content override parameters

Validations:

  • Must be an Array of nested elements

content_overrides[content_label]
必填

内容标签

Validations:

  • String

content_overrides[value]
选填

Override value. Provide a boolean value if name is 'enabled'

Validations:

  • String

content_overrides[name]
选填

Override key or name. Note if name is not provided the default name will be 'enabled'

Validations:

  • String

content_overrides[remove]
选填

Set true to remove an override and reset it to 'default'

Validations:

  • boolean


PUT /api/hosts/bulk/environment_content_view
Assign the environment and content view to one or more hosts

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type

environment_id
选填

Validations:

  • Integer

content_view_id
选填

Validations:

  • Integer


PUT /api/hosts/bulk/release_version
Assign the release version to one or more hosts

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type

release_version
选填

内容发行本版本

Validations:

  • String


POST /api/hosts/bulk/available_incremental_updates
Given a set of hosts and errata, lists the content view versions and environments that need updating.

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • number.

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

Search string for hosts to perform an action on

Validations:

  • String

included[ids]
选填 , 允许空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

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

Validations:

  • Must be an array of any type

errata_ids
选填

勘误 id 列表

Validations:

  • Must be an array of any type