GET /katello/api/products/:product_id/repository_sets
列出产品的库集合

参数

参数名字 描述
product_id
必填

列出库集合的产品 ID

Validations:

  • number.

name
选填

要在其中进行搜索到库集合名称

Validations:

  • String

enabled
选填

If true, only return repository sets that have been enabled. Defaults to false

Validations:

  • boolean

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


GET /katello/api/products/:product_id/repository_sets/:id
获取库集合信息

参数

参数名字 描述
id
必填

库集合 ID

Validations:

  • number.

product_id
必填

列出库集合的产品 ID

Validations:

  • number.


GET /katello/api/products/:product_id/repository_sets/:id/available_repositories
Get list of available repositories for the repository set

参数

参数名字 描述
id
必填

库集合 ID

Validations:

  • number.

product_id
必填

列出库集合的产品 ID

Validations:

  • number.


PUT /katello/api/products/:product_id/repository_sets/:id/enable
在集合中启用库

参数

参数名字 描述
id
必填

设置为启用的库 ID

Validations:

  • number.

product_id
必填

包含库集合的产品 ID

Validations:

  • number.

basearch
选填

要启用的 Basearch

Validations:

  • String

releasever
选填

要启用的 releasever

Validations:

  • String


PUT /katello/api/products/:product_id/repository_sets/:id/disable
Disable a repository from the set

参数

参数名字 描述
id
必填

ID of the repository set to disable

Validations:

  • number.

product_id
必填

包含库集合的产品 ID

Validations:

  • number.

basearch
选填

要禁用的 Basearch

Validations:

  • String

releasever
选填

要禁用的 releasever

Validations:

  • String