JJ
05/10/2024, 10:07 AM{
"timestamp": "0000-00-00T00:00:00Z",
"policy": {
"id": 1,
"name": "Is Gatekeeper enabled?",
"query": "SELECT 1 FROM gatekeeper WHERE assessments_enabled = 1;",
"description": "Checks if gatekeeper is enabled on macOS devices.",
"author_id": 1,
"author_name": "John",
"author_email": "john@example.com",
"resolution": "Turn on Gatekeeper feature in System Preferences.",
"passing_host_count": 2000,
"failing_host_count": 300
},
"hosts": [
{
"id": 1,
"hostname": "macbook-1",
"url": "<https://fleet.example.com/hosts/1>"
},
{
"id": 2,
"hostname": "macbbook-2",
"url": "<https://fleet.example.com/hosts/2>"
}
]
}
Grant Bilstad
05/10/2024, 6:32 PMpolicy_id
on the hosts endpoint. Not sure if this is exactly what looking at for the data.
example-
curl -LSs -H 'Authorization: Bearer <APITOKEN>' -H 'Content-Type:application/json' '<https://dogfood.fleetdm.com/api/latest/fleet/hosts?policy_id=2261&policy_response=failing>'
JJ
05/13/2024, 1:34 PM