GET /katello/api/organizations/:organization_id/content_views
列出內容視域

GET /katello/api/content_views
列出內容視域

參數

參數名字 描述
organization_id
選填

組織識別子

Validations:

  • number.

environment_id
選填

環境識別子

Validations:

  • number.

nondefault
選填

排除預設的內容視域

Validations:

  • boolean

noncomposite
選填

排除複合式的內容視域

Validations:

  • boolean

composite
選填

Filter only composite content views

Validations:

  • boolean

without
選填

不包含此內容視域集

Validations:

  • Must be an array of any type

name
選填

內容視域的名稱

Validations:

  • String

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


POST /katello/api/organizations/:organization_id/content_views
建立內容視域

POST /katello/api/content_views
建立內容視域

參數

參數名字 描述
organization_id
必填

組織識別子

Validations:

  • number.

name
必填

內容視域的名稱

Validations:

  • String

label
選填

內容視域標籤

Validations:

  • String

composite
選填

複合式內容視域

Validations:

  • boolean

description
選填

內容視域的描述

Validations:

  • String

repository_ids
選填

軟體庫 ID 清單

Validations:

  • Must be an array of any type

component_ids
選填

複合式視域的元件內容視域版本 ID 之清單

Validations:

  • Must be an array of any type


PUT /katello/api/content_views/:id
更新內容視域

參數

參數名字 描述
id
必填

內容視域識別子

Validations:

  • number.

name
選填

內容視域的新名稱

Validations:

  • String

description
選填

內容視域的描述

Validations:

  • String

repository_ids
選填

軟體庫 ID 清單

Validations:

  • Must be an array of any type

component_ids
選填

複合式視域的元件內容視域版本 ID 之清單

Validations:

  • Must be an array of any type


POST /katello/api/content_views/:id/publish
出版內容視域

參數

參數名字 描述
id
必填

內容視域識別子

Validations:

  • number.

description
選填

新公布的內容視域版本之描述

Validations:

  • String

force_yum_metadata_regeneration
選填

Force yum metadata regeneration on the repositories in the content view version

Validations:

  • boolean


GET /katello/api/content_views/:id
顯示內容視域

參數

參數名字 描述
id
必填

內容視域的數字識別子

Validations:

  • number.


GET /katello/api/content_views/:id/available_puppet_modules
取得能夠附加至內容視域的 puppet 模組

參數

參數名字 描述
id
必填

內容視域的數字識別子

Validations:

  • number.

name
選填

要限制模組的模組名稱

Validations:

  • String


GET /katello/api/content_views/:id/available_puppet_module_names
取得能夠附加至內容視域的 puppet 模組名稱

參數

參數名字 描述
id
必填

內容視域的數字識別子

Validations:

  • number.


DELETE /katello/api/content_views/:id/environments/:environment_id
從環境移除內容視域

參數

參數名字 描述
id
必填

內容視域的數字識別子

Validations:

  • number.

environment_id
必填

環境的數字識別子

Validations:

  • number.


PUT /katello/api/content_views/:id/remove
從內容視域中移除版本且(或)環境,並重新指定系統與金鑰

參數

參數名字 描述
id
必填

內容視域的數字識別子

Validations:

  • number.

environment_ids
選填

要移除之環境的數字識別子

Validations:

  • number.

content_view_version_ids
選填

要刪除的內容視域版本識別子

Validations:

  • number.

system_content_view_id
選填

要重新指定無主系統的目標內容視域

Validations:

  • number.

system_environment_id
選填

要重新指定無主系統的目標環境

Validations:

  • number.

key_content_view_id
選填

要重新指定無主啟動金鑰的目標內容視域

Validations:

  • number.

key_environment_id
選填

要重新指定無主啟動金鑰的目標環境

Validations:

  • number.


DELETE /katello/api/content_views/:id
刪除內容視域

參數

參數名字 描述
id
必填

內容視域的數字識別子

Validations:

  • number.


POST /katello/api/content_views/:id/copy
複製一份內容視域

參數

參數名字 描述
id
必填

內容視域的數字識別子

Validations:

  • number.

name
必填

新的內容視域名稱

Validations:

  • String