get /katello/api/content_views/:content_view_id/filters
list filters

get /katello/api/content_view_filters
list filters

参数

参数名字 描述
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

content_view_id
必填

内容视图标识符

Validations:

  • Must be a number.

name
选填

filter content view filters by name

Validations:

  • String

types
选填

types of filters

Validations:

  • Must be an array of any type


post /katello/api/content_views/:content_view_id/filters
create a filter for a content view

post /katello/api/content_view_filters
create a filter for a content view

参数

参数名字 描述
content_view_id
必填

内容视图标识符

Validations:

  • Must be a number.

name
必填

过滤器名称

Validations:

  • String

type
必填

type of filter (e.g. rpm, package_group, erratum, docker)

Validations:

  • String

original_packages
选填

add all packages without errata to the included/excluded list. (package filter only)

Validations:

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

inclusion
选填

如需要包括或排除则指定,默认:inclusion=false

Validations:

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

repository_ids
选填

库 id 列表

Validations:

  • Must be an array of any type

description
选填

过滤器描述

Validations:

  • String


get /katello/api/content_views/:content_view_id/filters/:id
show filter info

get /katello/api/content_view_filters/:id
show filter info

参数

参数名字 描述
content_view_id
选填

内容视图标识符

Validations:

  • Must be a number.

id
必填

根据标识符过滤

Validations:

  • Must be a number.


put /katello/api/content_views/:content_view_id/filters/:id
update a filter

put /katello/api/content_view_filters/:id
update a filter

参数

参数名字 描述
content_view_id
选填

内容视图标识符

Validations:

  • Must be a number.

id
必填

根据标识符过滤

Validations:

  • Must be a number.

name
选填

过滤器的新名称

Validations:

  • String

original_packages
选填

add all packages without errata to the included/excluded list. (package filter only)

Validations:

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

inclusion
选填

如需要包括或排除则指定,默认:inclusion=false

Validations:

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

repository_ids
选填

库 id 列表

Validations:

  • Must be an array of any type


delete /katello/api/content_views/:content_view_id/filters/:id
delete a filter

delete /katello/api/content_view_filters/:id
delete a filter

参数

参数名字 描述
content_view_id
选填

内容视图标识符

Validations:

  • Must be a number.

id
必填

根据标识符过滤

Validations:

  • Must be a number.