Good afternoon,
I am using the following query to obtain the installed packages on an instance: curl -H “Authorization: Bearer xxxxxxxxx” https://landscape.xxx.com/api/v2/computers/25/packages | jq ‘.results. | select(.status == “installed”)’
This query only returns the first 3 installed packages on that instance; on this instance there are 559 installed packages.
{“name”: “adduser”,“summary”: “add and remove users and groups”,“status”: “installed”,“current_version”: “3.137ubuntu1”,“available_version”: null}{“name”: “apport-symptoms”,“summary”: “symptom scripts for apport”,“status”: “installed”,“current_version”: “0.25”,“available_version”: null}{“name”: “appstream”,“summary”: “Software component metadata management”,“status”: “installed”,“current_version”: “1.0.2-1build6”,“available_version”: null
I attach a screenshot of what the GUI shows; here it can be corroborated that it only pulls the first 3 packages.
If I don’t apply the following filter: jq ‘.results| select(.status == “installed”)’, all packages (available, security, and installed) are shown, totaling 95,767 packages.
Thanks in advance.
Regars
