Posted on 05-28-2025 10:14 AM
Hello all.
When I use the following API point:
--url $JAMFServer/api/v1/managed-software-updates/update-statuses/
I get a long list of info. This indicates I have permissions to access this data.
However if I use "--url $JAMFServer/api/v1/managed-software-updates/update-statuses/filter=status=="installing" "
I get a 403 error.
Which is "Forbidden". It doesn't matter what filter I use, no go. Anyone know what permission needs to be set to get access to this info?
Thanks.
05-28-2025 10:31 AM - edited 05-28-2025 10:45 AM
@Chris_Cover I don't see anything in the API reference that indicates you can ask for only the status messages containing "installing" when using the managed-software-updates/update-statuses/ endpoint, so you'd need to us jq to parse out the installing response when calling the endpoint with filter=status.
Posted on 05-28-2025 11:12 AM
Thanks for the response but you can actually get other statuses. I figured out what I was doing wrong.
So:
--url $JAMFServer/api/v1/managed-software-updates/update-statuses?filter=status=="DOWNLOAD_INSUFFICIENT_SPACE" \
Will give you devices that failed due to insufficient space.
I'm now stuck on the jq command that thinks I have null data..
The suffering never ends.
Posted on 05-28-2025 12:56 PM
Interesting, and good to know. You might submit a documentation update request at ideas.jamf.com to update the reference for that endpoint to illustrate filtering on specific statuses.
Posted on 06-02-2025 04:57 AM
The documentation is there. It's just not what I would consider "clear". It assumes you know certain things (which may be a reasonable assumption if you are digging into the API). Once I "freed my mind" I was able to figure out what was required.