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.

include_latest_upgradable
optional

Also include the latest upgradable package version for each host package

Validations:

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

status
optional

Return only packages of a particular status (upgradable or up-to-date)

Validations:

  • String

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. 'id DESC'

Validations:

  • String

full_result
optional

Whether or not to show all results

Validations:

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

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

Search fields

Field name Type Possible values
arch string
epoch string
id integer
name string
nvra string
nvrea string
release string
vendor string
version string

GET /api/host_packages/:id
Show :a_resource

GET /api/repositories/:repository_id/host_packages/:id
Show :a_resource

Params

Param name Description
repository_id
optional

repository identifier

Validations:

  • Must be a number.

organization_id
optional

organization identifier

Validations:

  • Must be a number.

id
required

:a_resource identifier

Validations:

  • String


GET /api/host_packages/compare
List :resource

Params

Param name Description
content_view_version_ids
optional

content view versions to compare

Validations:

  • Must be an array of any type

repository_id
optional

Library repository id to restrict comparisons to

Validations:

  • Must be a number.

restrict_comparison
optional

Return same, different or all results

Validations:

  • String


GET /api/host_packages/installed_packages
Return a list of installed packages distinct by name

Params

Param name Description
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. 'id DESC'

Validations:

  • String

full_result
optional

Whether or not to show all results

Validations:

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

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