Start Query Run
POST {{cb_url}}/livequery/v1/orgs/{{cb_org_key}}/runs
Initiate a new LiveQuery search.
RBAC Permissions Required
Permission (.notation name) | Operation(s) |
---|---|
livequery.manage | CREATE |
Request Body
{"notify_on_finish"=>false, "name"=>"Autoexecs", "device_filter"=>{"os"=>["LINUX", "MAC", "WINDOWS"]}, "sql"=>"SELECT name, path, source FROM autoexec;"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"org_key":"7desj9gn","name":"Bitlocker Status","id":"em2hewgryfy8sggjy5jcbuvss9ehinac","sql":"SELECT drive_letter, CASE protection_status WHEN 0 THEN \"OFF\" WHEN 1 THEN \"ON (Unlocked)\" WHEN 2 THEN \"ON (Locked)\" END \"Bitlocker Status\" FROM bitlocker_info;","created_by":"YPR5RZ4H2B","destinations":["LQ"],"create_time":"2021-05-24T23:04:03.233Z","status_update_time":"2021-05-24T23:04:03.233Z","timeout_time":"2021-05-31T23:04:03.233Z","cancellation_time":null,"cancelled_by":null,"archive_time":null,"archived_by":null,"notify_on_finish":false,"active_org_devices":49,"status":"ACTIVE","device_filter":{"policy_id":null,"os":["WINDOWS"],"device_id":null,"deployment_type":null,"policy_ids":null,"device_types":["WINDOWS"],"device_ids":null},"recommended_query_id":null,"template_id":null,"schedule":null,"schema":null,"last_result_time":null,"total_results":0,"not_started_count":49,"match_count":0,"no_match_count":0,"success_count":0,"in_progress_count":0,"error_count":0,"not_supported_count":0,"cancelled_count":0}