GET /api/hosts/980190962/packages 200 { "total": 0, "subtotal": 0, "selectable": 0, "page": 1, "per_page": 20, "error": null, "search": null, "sort": { "by": "name", "order": "asc" }, "results": [] }
Param name | Description |
---|---|
host_id
required |
ID of the host Validations:
|
include_latest_upgradable
optional |
Also include the latest upgradable package version for each host package Validations:
|
status
optional |
Return only packages of a particular status (upgradable or up-to-date) Validations:
|
search
optional |
Search string Validations:
|
page
optional |
Page number, starting at 1 Validations:
|
per_page
optional |
Number of results per page to return Validations:
|
order
optional |
Sort field and order, eg. 'id DESC' Validations:
|
full_result
optional |
Whether or not to show all results Validations:
|
sort_by
optional |
Field to sort the results on Validations:
|
sort_order
optional |
How to order the sorted results (e.g. ASC for ascending) Validations:
|
Field name | Type | Possible values |
---|---|---|
arch | string | |
epoch | string | |
id | integer | |
name | string | |
nvra | string | |
nvrea | string | |
release | string | |
vendor | string | |
version | string |
DEPRECATED
PUT /api/hosts/980190962/packages/remove { "packages": [ { "name": "foo" } ], "host_package": { "packages": [ { "name": "foo" } ] } } 400 { "displayMessage": "{\"name\"=>\"foo\"} is not a valid package name", "errors": [ "{\"name\"=>\"foo\"} is not a valid package name" ] }
Param name | Description |
---|---|
host_id
required |
ID of the host Validations:
|
packages
optional |
List of package names Validations:
|
groups
optional |
List of package group names (Deprecated) Validations:
|
DEPRECATED
PUT /api/hosts/980190962/packages/remove { "packages": [ { "name": "foo" } ], "host_package": { "packages": [ { "name": "foo" } ] } } 400 { "displayMessage": "{\"name\"=>\"foo\"} is not a valid package name", "errors": [ "{\"name\"=>\"foo\"} is not a valid package name" ] }
Param name | Description |
---|---|
host_id
required |
ID of the host Validations:
|
packages
required |
list of packages names Validations:
|
DEPRECATED
PUT /api/hosts/980190962/packages/upgrade_all { "host_package": {} } 202 { "id": null, "label": null, "pending": null, "username": null, "started_at": null, "ended_at": null, "state": null, "result": null, "progress": null, "input": null, "output": {}, "humanized": null, "cli_example": null, "available_actions": { "cancellable": null, "resumable": null } }
Param name | Description |
---|---|
host_id
required |
ID of the host Validations:
|
DEPRECATED
PUT /api/hosts/980190962/packages/remove { "packages": [ "foo" ], "host_package": { "packages": [ "foo" ] } } 202 { "id": null, "label": null, "pending": null, "username": null, "started_at": null, "ended_at": null, "state": null, "result": null, "progress": null, "input": null, "output": {}, "humanized": null, "cli_example": null, "available_actions": { "cancellable": null, "resumable": null } }
Param name | Description |
---|---|
host_id
required |
ID of the host Validations:
|
packages
optional |
List of package names Validations:
|
groups
optional |
List of package group names (Deprecated) Validations:
|