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

Params

Param name Description
host_id
required

ID of the host

Validations:

  • Must be a number.

search
optional

Search string

Validations:

  • String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return

Validations:

  • Must be a number.

order
optional

Sort field and order, eg. ‘name DESC’

Validations:

  • String

full_result
optional

Whether or not to show all results

Validations:

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

sort
optional

Hash version of ‘order’ param

Validations:

  • Hash

sort[by]
optional

Field to sort the results on

Validations:

  • String

sort[order]
optional

How to order the sorted results (e.g. ASC for ascending)

Validations:

  • String


PUT /api/hosts/:host_id/packages/install
Install packages remotely

Params

Param name Description
host_id
required

ID of the host

Validations:

  • Must be a number.

packages
optional

List of package names

Validations:

  • Must be an array of any type

groups
optional

List of package group names

Validations:

  • Must be an array of any type


PUT /api/hosts/:host_id/packages/upgrade
Update packages remotely

Params

Param name Description
host_id
required

ID of the host

Validations:

  • Must be a number.

packages
required

list of packages names

Validations:

  • Must be an array of any type


PUT /api/hosts/:host_id/packages/upgrade_all
Update packages remotely

Params

Param name Description
host_id
required

ID of the host

Validations:

  • Must be a number.


PUT /api/hosts/:host_id/packages/remove
Uninstall packages remotely

Params

Param name Description
host_id
required

ID of the host

Validations:

  • Must be a number.

packages
optional

List of package names

Validations:

  • Must be an array of any type

groups
optional

List of package group names

Validations:

  • Must be an array of any type