Skip to main content

Get JAMF computer inventory via API

Updated over 3 weeks ago

Issue Description

Admin wants to get Computer inventory info via API, API "/computers/id/$ID" is classic and looking for the a call in the newer version. This can be helpful when pulling info into other systems like Microsoft Power BI.

Troubleshooting Steps

  1. Setup an advanced search for all the device you want

  2. Adjust the fields you want it to display

  3. Save it

  4. curl -X 'GET' \ 'https://YOU_JAMF_URL/JSSResource/advancedcomputersearches/id/<ID NUMBER>' \ -H 'accept: application/xml' \ -H 'Authorization: Bearer TOKEN_REMOVED' Create an advanced search with all the fields you need and do and API to the Advanced search group

This allows you to output the data in a single call. Be aware that if this is a very large group, it will not output in the swagger UI page and will give a time out error but works just find in the command line.

Did this answer your question?