Ari Weinberg
05/11/2023, 5:31 PMKathy Satterlee
05/11/2023, 6:12 PMAri Weinberg
05/11/2023, 6:31 PMcurl -v \
-X POST \
--location \
"<https://internalfleet/api/v1/fleet/queries/run>" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer TOKEN' \
-d '{"query_ids":["21"],"host_ids":["523"]}'
Fleet 0.0.0-SNAPSHOT-77d8b0b • Go go1.19.8
Kathy Satterlee
05/11/2023, 9:23 PMAri Weinberg
05/11/2023, 9:24 PMKathy Satterlee
05/11/2023, 9:24 PMcurl -v \
-X GET \
--location \
'<https://dogfood.fleetdm.com/api/v1/fleet/queries/run>' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer H176qK4ANbTMZDEPM0UG2lTM5mt87wAZHlsxWXJ8PUzi1gG8YHVPIeWp0We3fhqDL4nRZbD8bkoo1ag/TZACIQ==' \
-d '{"query_ids": [1], "host_ids":[1]}'
[...]
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
* We are completely uploaded and fine
< HTTP/2 200
< date: Thu, 11 May 2023 21:26:27 GMT
< content-type: application/json; charset=utf-8
<
{
"summary": {
"targeted_host_count": 1,
"responded_host_count": 1
},
"live_query_results": [
{
"query_id": 778,
"results": [
{
"host_id": 125,
"rows": [
{
"action": "add",
"datetime": "2023-05-09 21:56:47",
"path": "/Volumes/DataGrip",
"vendor": "Apple"
},
{
"action": "add",
[...]
Ari Weinberg
05/11/2023, 9:48 PMKathy Satterlee
05/11/2023, 10:16 PM