GET /katello/api/content_view_versions
列出内容视图版本

GET /katello/api/content_views/:content_view_id/content_view_versions
列出内容视图版本

参数

参数名字 描述
content_view_id
选填

内容视图标识符

Validations:

  • number.

environment_id
选填

根据环境过滤版本

Validations:

  • number.

puppet_module_id
选填

Filter versions by puppet module

Validations:

  • number.

version
选填

根据版本号过滤版本

Validations:

  • String

composite_version_id
选填

过滤指定综合版本组件的版本

Validations:

  • number.

organization_id
选填

机构识别符

Validations:

  • number.

search
选填

搜索字符串

Validations:

  • String

page
选填

页号,从 1 开始

Validations:

  • number.

per_page
选填

每页中显示的返回结果数

Validations:

  • number.

order
选填

排序字段及顺序,例如:'name DESC'

Validations:

  • String

full_result
选填

无论如何显示所有结果

Validations:

  • boolean

sort
选填

'order' 参数的哈希版本

Validations:

  • Hash

sort[by]
选填

结果排序字段

Validations:

  • String

sort[order]
选填

如何对分类结果进行排序(例如:ASC 代表升序)

Validations:

  • String


GET /katello/api/content_view_versions/:id
显示内容视图版本

参数

参数名字 描述
id
必填

内容视图版本标识符

Validations:

  • number.


POST /katello/api/content_view_versions/:id/promote
推广视图版本

参数

参数名字 描述
id
必填

内容视图版本标识符

Validations:

  • number.

force
选填

强制内容视图推广,并绕过生命周期环境限制。

Validations:

  • boolean

environment_id
选填

LifeCycle Environment identifier

Validations:

  • 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:

  • boolean


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

参数

参数名字 描述
id
必填

内容视图版本标识符

Validations:

  • number.


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

参数

参数名字 描述
id
必填

内容视图版本标识符

Validations:

  • number.

export_to_iso
选填

Export to ISO format

Validations:

  • boolean

iso_mb_size
选填

maximum size of each ISO in MB

Validations:

  • number.

since
选填

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

Validations:

  • Date


DELETE /katello/api/content_view_versions/:id
删除内容视图版本

参数

参数名字 描述
id
必填

内容视图版本标识符

Validations:

  • 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:

  • number.

content_view_version_environments[environment_ids]
选填

要推广指定内容视图版本的环境列表(替换旧版本)。

Validations:

  • Must be an array of any type

description
选填

新生成内容视图版本描述

Validations:

  • String

resolve_dependencies
选填

如果是这样,会在添加指定勘误或软件包的同时复制所有需要的相依性。

Validations:

  • boolean

propagate_all_composites
选填

如果是这样,则使用已推广至生命周期环境中的任意指定 content_view_version_id 发布新综合版本。

Validations:

  • boolean

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