GET /api/hosts/:host_id/packages
List packages installed on the host

参数

参数名字 描述
host_id
必填

ID of the host

Validations:

  • Must be a number.

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


PUT /api/hosts/:host_id/packages/install
远程安装软件包

参数

参数名字 描述
host_id
必填

ID of the host

Validations:

  • Must be a number.

packages
选填

软件包名称列表

Validations:

  • Must be an array of any type

groups
选填

软件包组名称列表

Validations:

  • Must be an array of any type


PUT /api/hosts/:host_id/packages/upgrade
远程更新软件包

参数

参数名字 描述
host_id
必填

ID of the host

Validations:

  • Must be a number.

packages
必填

软件包名称列表

Validations:

  • Must be an array of any type


PUT /api/hosts/:host_id/packages/upgrade_all
远程更新软件包

参数

参数名字 描述
host_id
必填

ID of the host

Validations:

  • Must be a number.


PUT /api/hosts/:host_id/packages/remove
远程卸载软件包

参数

参数名字 描述
host_id
必填

ID of the host

Validations:

  • Must be a number.

packages
选填

软件包名称列表

Validations:

  • Must be an array of any type

groups
选填

软件包组名称列表

Validations:

  • Must be an array of any type