PUT /api/hosts/bulk/add_host_collections
在一台或多台主机中添加一个或多个主机集合

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

为要执行操作的系统搜索字符串

Validations:

  • String

included[ids]
选填 , 允许空值

在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

不包含在其中且不在其中执行操作的系统 id 列表

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
从一台或者多台主机中删除一个或者多个主机集合

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

为要执行操作的系统搜索字符串

Validations:

  • String

included[ids]
选填 , 允许空值

在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

不包含在其中且不在其中执行操作的系统 id 列表

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
在系统中添加可应用勘误

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

为要执行操作的系统搜索字符串

Validations:

  • String

included[ids]
选填 , 允许空值

在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

不包含在其中且不在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type


PUT /api/hosts/bulk/install_content
在一台或多台主机中安装内容

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

为要执行操作的系统搜索字符串

Validations:

  • String

included[ids]
选填 , 允许空值

在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

不包含在其中且不在其中执行操作的系统 id 列表

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
更新一台或者多台主机的内容

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

为要执行操作的系统搜索字符串

Validations:

  • String

included[ids]
选填 , 允许空值

在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

不包含在其中且不在其中执行操作的系统 id 列表

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
从一台或者多台主机中删除内容

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

为要执行操作的系统搜索字符串

Validations:

  • String

included[ids]
选填 , 允许空值

在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

不包含在其中且不在其中执行操作的系统 id 列表

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
消除一台或者多台主机

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

为要执行操作的系统搜索字符串

Validations:

  • String

included[ids]
选填 , 允许空值

在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

不包含在其中且不在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type


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

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

为要执行操作的系统搜索字符串

Validations:

  • String

included[ids]
选填 , 允许空值

在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

不包含在其中且不在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

subscriptions
选填

要删除的订阅阵列

Validations:

  • Must be an Array of nested elements

subscriptions[id]
必填

订阅池 id

Validations:

  • String

subscriptions[quantity]
选填

Quantity of specified subscription to remove

Validations:

  • Integer


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

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

为要执行操作的系统搜索字符串

Validations:

  • String

included[ids]
选填 , 允许空值

在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

不包含在其中且不在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

subscriptions
必填

要添加的订阅阵列

Validations:

  • Must be an Array of nested elements

subscriptions[id]
必填

订阅池 id

Validations:

  • String

subscriptions[quantity]
必填

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

Validations:

  • number.


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

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

为要执行操作的系统搜索字符串

Validations:

  • String

included[ids]
选填 , 允许空值

在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

不包含在其中且不在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type


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

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

为要执行操作的系统搜索字符串

Validations:

  • String

included[ids]
选填 , 允许空值

在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

不包含在其中且不在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

environment_id
选填

Validations:

  • Integer

content_view_id
选填

Validations:

  • Integer


POST /api/hosts/bulk/available_incremental_updates
给出一组主机及勘误,列出其需要更新的内容视图版本及环境。

参数

参数名字 描述
organization_id
必填

机构 ID

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

included
必填

Validations:

  • Hash

included[search]
选填 , 允许空值

为要执行操作的系统搜索字符串

Validations:

  • String

included[ids]
选填 , 允许空值

在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

excluded
必填

Validations:

  • Hash

excluded[ids]
选填 , 允许空值

不包含在其中且不在其中执行操作的系统 id 列表

Validations:

  • Must be an array of any type

errata_ids
选填

勘误 id 列表

Validations:

  • Must be an array of any type