GET /api/hosts/:host_id/packages
列出安装在该主机中的软件包

参数

参数名字 描述
host_id
必填

主机 ID

Validations:

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


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

参数

参数名字 描述
host_id
必填

主机 ID

Validations:

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

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

Validations:

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

packages
必填

软件包名称列表

Validations:

  • Must be an array of any type


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

参数

参数名字 描述
host_id
必填

主机 ID

Validations:

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


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

参数

参数名字 描述
host_id
必填

主机 ID

Validations:

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

packages
选填

软件包名称列表

Validations:

  • Must be an array of any type

groups
选填

软件包组名称列表

Validations:

  • Must be an array of any type