GET /katello/api/content_view_versions
列出內容視域版本

GET /katello/api/content_views/:content_view_id/content_view_versions
列出內容視域版本

參數

參數名字 描述
content_view_id
選填

內容視域識別子

Validations:

  • Must be a number.

environment_id
選填

透過環境篩選版本

Validations:

  • Must be a number.

puppet_module_id
選填

Filter versions by puppet module

Validations:

  • Must be a number.

version
選填

透過版本編號篩選版本

Validations:

  • String

composite_version_id
選填

篩選在特定複合版本中的元件版本

Validations:

  • Must be a number.

organization_id
選填

組織識別子

Validations:

  • Must be a number.

triggered_by_id
選填

Filter composite versions whose publish was triggered by the specified component version

Validations:

  • Must be a number.

search
選填

搜尋字串

Validations:

  • String

page
選填

頁數,從 1 開始

Validations:

  • Must be a number.

per_page
選填

每頁要傳回的結果數量

Validations:

  • Must be a number.

order
選填

Sort field and order, eg. 'id DESC'

Validations:

  • String

full_result
選填

是否顯示所有結果

Validations:

  • Must be one of: true, false, 1, 0

sort
選填

「order」參數的雜湊版本

Validations:

  • Hash

sort[by]
選填

用來排序結果的欄位

Validations:

  • String

sort[order]
選填

如何排序結果的順序(比方說 ASC 從下到上)

Validations:

  • String


GET /katello/api/content_view_versions/:id
顯示內容視域版本

參數

參數名字 描述
id
必填

內容視域的版本識別子

Validations:

  • Must be a number.


POST /katello/api/content_view_versions/:id/promote
推送內容視域版本

參數

參數名字 描述
id
必填

內容視域的版本識別子

Validations:

  • Must be a number.

force
選填

強制進行內容視域推送,而跳過生命週期環境限制

Validations:

  • Must be one of: true, false, 1, 0

environment_id
選填

LifeCycle Environment identifier

Validations:

  • Must be a number.

environment_ids
選填

Identifiers for Lifecycle Environment

Validations:

  • Must be an array of any type

description
選填

The description for the content view version promotion

Validations:

  • String

force_yum_metadata_regeneration
選填

Force metadata regeneration on the repositories in the content view version

Validations:

  • Must be one of: true, false, 1, 0


PUT /katello/api/content_view_versions/:id
Update a content view version.

參數

參數名字 描述
id
必填

內容視域的版本識別子

Validations:

  • Must be a number.

description
必填

The description for the content view version

Validations:

  • String


PUT /katello/api/content_view_versions/:id/republish_repositories
Forces a republish of the version's repositories' metadata.

參數

參數名字 描述
id
必填

內容視域的版本識別子

Validations:

  • Must be a number.


POST /katello/api/content_view_versions/:id/export
Export a content view version

參數

參數名字 描述
id
必填

內容視域的版本識別子

Validations:

  • Must be a number.

export_to_iso
選填

Export to ISO format

Validations:

  • Must be one of: true, false, 1, 0

iso_mb_size
選填

maximum size of each ISO in MB

Validations:

  • Must be a number.

since
選填

Optional date of last export (ex: 2010-01-01T12:00:00Z)

Validations:

  • Date


DELETE /katello/api/content_view_versions/:id
移除內容視域版本

參數

參數名字 描述
id
必填

內容視域的版本識別子

Validations:

  • Must be a number.


POST /katello/api/content_view_versions/incremental_update
在一或更多個內容視域版本上執行一項遞增更新

參數

參數名字 描述
content_view_version_environments
選填

Validations:

  • Must be an Array of nested elements

content_view_version_environments[content_view_version_id]
選填

欲對其進行遞增更新的內容視域版本之 ID。能包含複合式視域版本以及一或更多個欲更新的元件。

Validations:

  • Must be a number.

content_view_version_environments[environment_ids]
選填

欲將指定內容視域版本推送至的環境清單(替換較舊的版本)。

Validations:

  • Must be an array of any type

description
選填

新產生的內容視域版本的詳述

Validations:

  • String

resolve_dependencies
選填

如果設為 true,新增特定勘誤或套件時,任何所需的相依性元件也會被複製。

Validations:

  • Must be one of: true, false, 1, 0

propagate_all_composites
選填

如果設為 true,會使用任何指定的、已推送至生命週期環境的 content_view_version_id 來推送新的複合版本。

Validations:

  • Must be one of: true, false, 1, 0

add_content
選填

Validations:

  • Hash

add_content[errata_ids]
選填

Errata ids or uuids to copy into the new versions.

Validations:

  • Must be an array of any type

add_content[package_ids]
選填

Package ids or uuids to copy into the new versions.

Validations:

  • Must be an array of any type

add_content[puppet_module_ids]
選填

Puppet Module ids or uuids to copy into the new versions.

Validations:

  • Must be an array of any type

update_hosts
選填

After generating the incremental update, apply the changes to the specified hosts. Only Errata are supported currently.

Validations:

  • Hash

update_hosts[included]
必填

Validations:

  • Hash

update_hosts[included][search]
選填 , 允許空值

Search string for host to perform an action on

Validations:

  • String

update_hosts[included][ids]
選填 , 允許空值

List of host ids to perform an action on

Validations:

  • Must be an array of any type

update_hosts[excluded]
選填 , 允許空值

Validations:

  • Hash

update_hosts[excluded][ids]
選填 , 允許空值

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

Validations:

  • Must be an array of any type