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

Parametry

Nazwa parametru Opis
host_id
wymagany

ID of the host

Validations:

  • number.

search
opcjonalny

Search string

Validations:

  • String

page
opcjonalny

Page number, starting at 1

Validations:

  • number.

per_page
opcjonalny

Number of results per page to return

Validations:

  • number.

order
opcjonalny

Sort field and order, eg. 'name DESC'

Validations:

  • String

full_result
opcjonalny

Whether or not to show all results

Validations:

  • boolean

sort
opcjonalny

Hash version of 'order' param

Validations:

  • Hash

sort[by]
opcjonalny

Field to sort the results on

Validations:

  • String

sort[order]
opcjonalny

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

Validations:

  • String


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

Parametry

Nazwa parametru Opis
host_id
wymagany

ID of the host

Validations:

  • number.

packages
opcjonalny

List of package names

Validations:

  • Must be an array of any type

groups
opcjonalny

List of package group names

Validations:

  • Must be an array of any type


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

Parametry

Nazwa parametru Opis
host_id
wymagany

ID of the host

Validations:

  • number.

packages
wymagany

list of packages names

Validations:

  • Must be an array of any type


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

Parametry

Nazwa parametru Opis
host_id
wymagany

ID of the host

Validations:

  • number.


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

Parametry

Nazwa parametru Opis
host_id
wymagany

ID of the host

Validations:

  • number.

packages
opcjonalny

List of package names

Validations:

  • Must be an array of any type

groups
opcjonalny

List of package group names

Validations:

  • Must be an array of any type