Posted on 02-02-2022 12:17 AM
Hi,
We're trying to get all computers in our jamf pro instance using the classic API, but it seems like the "/JSSResource/computers" endpoint does not return computers that are in pre-stage enrollment. Can someone please confirm if this is intended functionality, and if so, what is the solution.
Thanks!
Solved! Go to Solution.
Posted on 02-02-2022 08:59 AM
I could be wrong here, but I dont think Jamf has that information if the device has not been enrolled yet.
If it is enrolled, you can use the serial from that API command to run a call against the computers endpoint for that specific device to get more info, but I dont think you would be able to get the other info from jamf pre-enrollment
Posted on 02-02-2022 08:20 AM
Are you saying that computers that are enrolled in Jamf via prestage aren't showing if you use the API to navigate to that endpoint?
Or are you asking if its expected for computers assigned to a prestage, but not yet enrolled in jamf would not be seen - this example is expected as that endpoint should only return computers that are enrolled
Does that help? If not, can you clarify further?
Posted on 02-02-2022 08:33 AM
@ljcacioppo wrote:- this example is expected as that endpoint should only return computers that are enrolled
So is it possible to fetch computers that are assigned to a prestage but not yet enrolled? Is there a different endpoint for that? Thanks for the reply!
Posted on 02-02-2022 08:37 AM
I'm not sure that information is available via the classic API. But you can go to your JamfURL/api and click on Jamf Pro API. The endpoint that you are likely looking for there is the computer-prestages endpoint
Posted on 02-02-2022 08:45 AM
https://developer.jamf.com/jamf-pro/reference/get_v2-computer-prestages-id-scope
It seems like this endpoint only gives me the serial number of the prestage device. Is it possible for me to get complete information (storage, OS, memory etc) of that device like I do through the /computers endpoint. Does jamf even store this information for a prestage device that has not yet been enrolled?
Posted on 02-02-2022 08:59 AM
I could be wrong here, but I dont think Jamf has that information if the device has not been enrolled yet.
If it is enrolled, you can use the serial from that API command to run a call against the computers endpoint for that specific device to get more info, but I dont think you would be able to get the other info from jamf pre-enrollment