get /katello/api/content_views/:content_view_id/filters
列出篩選器

get /katello/api/content_view_filters
列出篩選器

參數

參數名字 描述
search
選填

搜尋字串

Validations:

  • String

page
選填

頁數,從 1 開始

Validations:

  • number.

per_page
選填

每頁要傳回的結果數量

Validations:

  • number.

order
選填

排序欄位與次序,例如「name DESC」

Validations:

  • String

full_results
選填

是否顯示所有結果

Validations:

  • boolean

sort
選填

「order」參數的雜湊版本

Validations:

  • Hash

sort[by]
選填

用來排序結果的欄位

Validations:

  • String

sort[order]
選填

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

Validations:

  • String

content_view_id
必填

內容視域識別子

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

name
選填

以名稱來篩選內容視域篩選器

Validations:

  • String


post /katello/api/content_views/:content_view_id/filters
為內容視域建立篩選器

post /katello/api/content_view_filters
為內容視域建立篩選器

參數

參數名字 描述
content_view_id
必填

內容視域識別子

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

name
必填

篩選器名稱

Validations:

  • String

type
必填

篩選器的類型(例如 rpm、package_group、erratum)

Validations:

  • String

original_packages
選填

在不包含勘誤的情況下將所有套件加入 included/excluded 清單中。(僅有套件篩選器)

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
顯示篩選器資訊

get /katello/api/content_view_filters/:id
顯示篩選器資訊

參數

參數名字 描述
content_view_id
選填

內容視域識別子

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

id
必填

篩選器識別子

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..


put /katello/api/content_views/:content_view_id/filters/:id
更新篩選器

put /katello/api/content_view_filters/:id
更新篩選器

參數

參數名字 描述
content_view_id
選填

內容視域識別子

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

id
必填

篩選器識別子

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

name
選填

篩選器的新名稱

Validations:

  • String

original_packages
選填

在不包含勘誤的情況下將所有套件加入 included/excluded 清單中。(僅有套件篩選器)

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 /katello/api/content_view_filters/:id
刪除篩選器

參數

參數名字 描述
content_view_id
選填

內容視域識別子

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

id
必填

篩選器識別子

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..