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