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:

  • 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

content_view_id
必填

內容視域識別子

Validations:

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

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

  • boolean

inclusion
選填

指定要納入或排除內容,預設值:inclusion=false

Validations:

  • boolean

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:

  • number.

id
必填

篩選器識別子

Validations:

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

  • number.

id
必填

篩選器識別子

Validations:

  • number.

name
選填

篩選器的新名稱

Validations:

  • String

original_packages
選填

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

Validations:

  • boolean

inclusion
選填

指定要納入或排除內容,預設值:inclusion=false

Validations:

  • boolean

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:

  • number.

id
必填

篩選器識別子

Validations:

  • number.