listComputers
To list specific information from multiple computers, use the listComputers query. This example returns the following for each computer in your Jamf Protect tenant:
The computer hostname and UUID
The last compliance baseline check-in date and time
A compliance baseline scorecard summary that lists the computer's compliance status with each baseline rule.
query listComputers {
listComputers {
items {
hostName
uuid
insightsUpdated
scorecard {
label
pass
}
}
}
}getComputer
To only get information about a single computer, use the getComputer query. The following query returns the same information as the example above (excluding the UUID) but only for a single computer:
query getComputer {
getComputer(uuid: "ed6553dd-28e7-4ba6-b6e5-2d58b9b37696"){
hostName
insightsUpdated
scorecard{
label
pass
}
}
}Note:
Most queries about a specific object type, such as a Computer or Plan, require the object's ID. You can get the ID of any object type using a list query like in the listComputers example above.