GET /katello/api/products
列出產品

GET /katello/api/subscriptions/:subscription_id/products
訂閱中的訂閱產品清單

GET /katello/api/activation_keys/:activation_key_id/products
啟動金鑰中的訂閱產品清單

GET /katello/api/organizations/:organization_id/products
ㄧ個組織中的產品清單

GET /katello/api/sync_plans/:sync_plan_id/products
List of Products for sync plan

GET /katello/api/organizations/:organization_id/sync_plans/:sync_plan_id/products
List of Products for sync plan

參數

參數名字 描述
organization_id
必填

以組織來篩選產品

Validations:

  • Must be a number.

subscription_id
選填

以訂閱來篩選產品

Validations:

  • Must be a number.

name
選填

以名稱來篩選產品

Validations:

  • String

enabled
選填

以啟用或停用狀態來篩選產品

Validations:

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

custom
選填

以自訂方式來篩選產品

Validations:

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

include_available_content
選填

Whether to include available content attribute in results

Validations:

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

sync_plan_id
選填

Filter products by sync plan id

Validations:

  • Must be a number.

available_for
選填

Interpret specified object to return only Products that can be associated with specified object. Only 'sync_plan' is supported.

Validations:

  • String

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


POST /katello/api/products
建立產品

參數

參數名字 描述
organization_id
必填

組織的 ID

Validations:

  • Must be a number.

description
選填

產品描述

Validations:

  • String

gpg_key_id
選填

GPG 金鑰的識別子

Validations:

  • Must be a number.

ssl_ca_cert_id
選填

Idenifier of the SSL CA Cert

Validations:

  • Must be a number.

ssl_client_cert_id
選填

Identifier of the SSL Client Cert

Validations:

  • Must be a number.

ssl_client_key_id
選填

Identifier of the SSL Client Key

Validations:

  • Must be a number.

sync_plan_id
選填 , 允許空值

計畫的數字識別元

Validations:

  • Must be a number.

name
必填

產品名稱

Validations:

  • String

label
選填

Validations:

  • String


GET /katello/api/products/:id
顯示產品

參數

參數名字 描述
id
必填

產品的數字識別子

Validations:

  • Must be a number.


PUT /katello/api/products/:id
更新產品

參數

參數名字 描述
id
必填

產品的數字識別子

Validations:

  • Must be a number.

description
選填

產品描述

Validations:

  • String

gpg_key_id
選填

GPG 金鑰的識別子

Validations:

  • Must be a number.

ssl_ca_cert_id
選填

Idenifier of the SSL CA Cert

Validations:

  • Must be a number.

ssl_client_cert_id
選填

Identifier of the SSL Client Cert

Validations:

  • Must be a number.

ssl_client_key_id
選填

Identifier of the SSL Client Key

Validations:

  • Must be a number.

sync_plan_id
選填 , 允許空值

計畫的數字識別元

Validations:

  • Must be a number.

name
選填

產品名稱

Validations:

  • String


DELETE /katello/api/products/:id
銷毀產品

參數

參數名字 描述
id
選填

產品的數字識別子

Validations:

  • Must be a number.


POST /katello/api/products/:id/sync
Sync all repositories for a product

參數

參數名字 描述
id
必填

product ID

Validations:

  • Must be a number.