AoS
08/12/2019, 8:47 AMcurl -k -X POST -d "{"username": "test", "Password": "test"}" -H "Content-Type: application/json" <https://url/api/v1/kolide/login>
and also curl -X POST -k --user "admin" -H "Content-Type: application/json" <https://url/api/v1/kolide/login>
Chris Broome
08/12/2019, 1:43 PMChris Broome
08/12/2019, 1:44 PMcurl -k -X POST -d '{"username": "test", "Password": "test"}' -H "Content-Type: application/json"
Chris Broome
08/12/2019, 1:44 PMAoS
08/13/2019, 8:37 AMAoS
08/13/2019, 8:39 AMAoS
08/13/2019, 8:39 AM/api/v1/kolide/queries/run
and /api/v1/kolide/queries/run_by_names
Chris Broome
08/13/2019, 2:51 PMtoken
in the responseChris Broome
08/13/2019, 2:51 PMAuthorization
headerChris Broome
08/13/2019, 2:52 PMcurl -X POST <http://url/api/v1/kolide/queries/run> -H 'Content-Type: application/json' -H 'Authorization: Bearer <the token you got from the login response>' -d '{"body": "of the request"}'