Real Time Response
The Real Time Response service collection provides operations for managing and executing real-time response sessions on CrowdStrike Falcon-protected hosts. Initialize single or batch RTR sessions, execute read-only and active-responder commands, retrieve command status, manage session files, handle queued sessions, and query session IDs.
| Language | Last Update |
|---|---|
| Python | v1.6.5 |
| PowerShell | v2.2.9 |
| Go | v0.22.0 |
| TypeScript | v0.6.0 |
| Rust | v0.7.1 |
| Ruby | v1.4.0 |
This service collection has code examples posted to the repository.
Table of Contents
Section titled “Table of Contents”| Operation | Description |
|---|---|
BatchActiveResponderCmdbatch_active_responder_command | Batch executes a RTR active-responder command across the hosts mapped to the given batch ID. |
BatchCmdbatch_command | Batch executes a RTR read-only command across the hosts mapped to the given batch ID. |
BatchGetCmdbatch_get_command | Batch executes get command across hosts to retrieve files. |
BatchGetCmdStatusbatch_get_command_status | Retrieves the status of the specified batch get command. |
BatchInitSessionsbatch_init_sessions | Batch initialize a RTR session on multiple hosts. |
BatchRefreshSessionsbatch_refresh_sessions | Batch refresh a RTR session on multiple hosts. |
RTR-AggregateSessionsaggregate_sessions | Get aggregates on session data. |
RTR-CheckActiveResponderCommandStatuscheck_active_responder_command_status | Get status of an executed active-responder command on a single host. |
RTR-CheckCommandStatuscheck_command_status | Get status of an executed command on a single host. |
RTR-DeleteFiledelete_file | Delete a RTR session file. |
RTR-DeleteFileV2delete_file_v2 | Delete a RTR session file. |
RTR-DeleteQueuedSessiondelete_queued_session | Delete a queued session command |
RTR-DeleteSessiondelete_session | Delete a session. |
RTR-ExecuteActiveResponderCommandexecute_active_responder_command | Execute an active responder command on a single host. |
RTR-ExecuteCommandexecute_command | Execute a command on a single host. |
RTR-GetExtractedFileContentsget_extracted_file_contents | Get RTR extracted file contents for specified session and sha256. |
RTR-InitSessioninit_session | Initialize a new session with the RTR cloud. |
RTR-ListAllSessionslist_all_sessions | Get a list of session_ids. |
RTR-ListFileslist_files | Get a list of files for the specified RTR session. |
RTR-ListFilesV2list_files_v2 | Get a list of files for the specified RTR session. |
RTR-ListQueuedSessionslist_queued_sessions | Get queued session metadata by session ID. |
RTR-ListSessionslist_sessions | Get session metadata by session id. |
RTR-PulseSessionpulse_session | Refresh a session timeout on a single host. |
BatchActiveResponderCmd
Section titled “BatchActiveResponderCmd”Batch executes a RTR active-responder command across the hosts mapped to the given batch ID.
batch_active_responder_commandParameters
Section titled “Parameters”get or cp. Refer to the RTR documentation for the full list of commands.get some_file.txt.10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes.10s. Valid units: ns, us, ms, s, m, h. from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.batch_active_responder_command(base_command="string", batch_id="string", command_string="string", host_timeout_duration="string", optional_hosts=id_list, persist_all=boolean, timeout=integer, timeout_duration="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.BatchActiveResponderCmd(base_command="string", batch_id="string", command_string="string", host_timeout_duration="string", optional_hosts=id_list, persist_all=boolean, timeout=integer, timeout_duration="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
body_payload = { "base_command": "string", "batch_id": "string", "command_string": "string", "optional_hosts": ["string"], "persist_all": boolean}
response = falcon.command("BatchActiveResponderCmd", timeout=integer, timeout_duration="string", host_timeout_duration="string", body=body_payload)print(response)Invoke-FalconResponderCommand -Command "string" -BatchId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.BatchActiveResponderCmd( &real_time_response.BatchActiveResponderCmdParams{ Timeout: integer, TimeoutDuration: "string", HostTimeoutDuration: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.batchActiveResponderCmd( { // body baseCommand: "string", batchId: "string", commandString: "string", optionalHosts: [], persistAll: boolean }, integer, // timeout "string", // timeoutDuration "string" // hostTimeoutDuration);
console.log(response);use rusty_falcon::apis::real_time_response_api::batch_active_responder_cmd;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::DomainBatchExecuteCommandRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = DomainBatchExecuteCommandRequest { base_command: Some("string".to_string()), batch_id: Some("string".to_string()), command_string: Some("string".to_string()), optional_hosts: vec!["string".to_string()], persist_all: Some(boolean), ..Default::default() };
let response = batch_active_responder_cmd( &falcon.cfg, // configuration body, // body Some(integer), // timeout Some("string"), // timeout_duration Some("string"), // host_timeout_duration ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
body = { base_command: 'string', batch_id: 'string', command_string: 'string', optional_hosts: [], persist_all: boolean}
response = api.batch_active_responder_cmd(body)
puts response{ "combined": { "resources": {} }, "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}BatchCmd
Section titled “BatchCmd”Batch executes a RTR read-only command across the hosts mapped to the given batch ID.
batch_commandParameters
Section titled “Parameters”get or cp. Refer to the RTR documentation for the full list of commands.get some_file.txt.10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes.10s. Valid units: ns, us, ms, s, m, h. from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.batch_command(base_command="string", batch_id="string", command_string="string", host_timeout_duration="string", optional_hosts=id_list, persist_all=boolean, timeout=integer, timeout_duration="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.BatchCmd(base_command="string", batch_id="string", command_string="string", host_timeout_duration="string", optional_hosts=id_list, persist_all=boolean, timeout=integer, timeout_duration="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
body_payload = { "base_command": "string", "batch_id": "string", "command_string": "string", "optional_hosts": ["string"], "persist_all": boolean}
response = falcon.command("BatchCmd", timeout=integer, timeout_duration="string", host_timeout_duration="string", body=body_payload)print(response)Invoke-FalconCommand -Command "string" -BatchId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.BatchCmd( &real_time_response.BatchCmdParams{ Timeout: integer, TimeoutDuration: "string", HostTimeoutDuration: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.batchCmd( { // body baseCommand: "string", batchId: "string", commandString: "string", optionalHosts: [], persistAll: boolean }, integer, // timeout "string", // timeoutDuration "string" // hostTimeoutDuration);
console.log(response);use rusty_falcon::apis::real_time_response_api::batch_cmd;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::DomainBatchExecuteCommandRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = DomainBatchExecuteCommandRequest { base_command: Some("string".to_string()), batch_id: Some("string".to_string()), command_string: Some("string".to_string()), optional_hosts: vec!["string".to_string()], persist_all: Some(boolean), ..Default::default() };
let response = batch_cmd( &falcon.cfg, // configuration body, // body Some(integer), // timeout Some("string"), // timeout_duration Some("string"), // host_timeout_duration ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
body = { base_command: 'string', batch_id: 'string', command_string: 'string', optional_hosts: [], persist_all: boolean}
response = api.batch_cmd(body)
puts response{ "combined": { "resources": {} }, "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}BatchGetCmd
Section titled “BatchGetCmd”Batch executes get command across hosts to retrieve files.
batch_get_commandParameters
Section titled “Parameters”10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes.10s. Valid units: ns, us, ms, s, m, h. from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.batch_get_command(batch_id="string", file_path="string", host_timeout_duration="string", optional_hosts=id_list, timeout=integer, timeout_duration="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.BatchGetCmd(batch_id="string", file_path="string", host_timeout_duration="string", optional_hosts=id_list, timeout=integer, timeout_duration="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
body_payload = { "batch_id": "string", "file_path": "string", "optional_hosts": ["string"]}
response = falcon.command("BatchGetCmd", timeout=integer, timeout_duration="string", host_timeout_duration="string", body=body_payload)print(response)Invoke-FalconBatchGet -FilePath "string" -BatchId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.BatchGetCmd( &real_time_response.BatchGetCmdParams{ Timeout: integer, TimeoutDuration: "string", HostTimeoutDuration: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.batchGetCmd( { // body batchId: "string", filePath: "string", optionalHosts: [] }, integer, // timeout "string", // timeoutDuration "string" // hostTimeoutDuration);
console.log(response);use rusty_falcon::apis::real_time_response_api::batch_get_cmd;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::DomainBatchGetCommandRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = DomainBatchGetCommandRequest { batch_id: Some("string".to_string()), file_path: Some("string".to_string()), optional_hosts: vec!["string".to_string()], ..Default::default() };
let response = batch_get_cmd( &falcon.cfg, // configuration body, // body Some(integer), // timeout Some("string"), // timeout_duration Some("string"), // host_timeout_duration ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
body = { batch_id: 'string', file_path: 'string', optional_hosts: []}
response = api.batch_get_cmd(body)
puts response{ "batch_get_cmd_req_id": "string", "combined": { "resources": {} }, "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}BatchGetCmdStatus
Section titled “BatchGetCmdStatus”Retrieves the status of the specified batch get command.
batch_get_command_statusParameters
Section titled “Parameters”10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes./real-time-response/combined/get-command/v1from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.batch_get_command_status(timeout=integer, timeout_duration="string", batch_get_cmd_req_id="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.BatchGetCmdStatus(timeout=integer, timeout_duration="string", batch_get_cmd_req_id="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("BatchGetCmdStatus", timeout=integer, timeout_duration="string", batch_get_cmd_req_id="string")print(response)Confirm-FalconGetFile -BatchGetCmdReqId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.BatchGetCmdStatus( &real_time_response.BatchGetCmdStatusParams{ Timeout: integer, TimeoutDuration: "string", BatchGetCmdReqID: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.batchGetCmdStatus( "string", // batchGetCmdReqId integer, // timeout "string" // timeoutDuration);
console.log(response);use rusty_falcon::apis::real_time_response_api::batch_get_cmd_status;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = batch_get_cmd_status( &falcon.cfg, // configuration "string", // batch_get_cmd_req_id Some(integer), // timeout Some("string"), // timeout_duration ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
response = api.batch_get_cmd_status('string')
puts response{}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}BatchInitSessions
Section titled “BatchInitSessions”Batch initialize a RTR session on multiple hosts.
batch_init_sessionsParameters
Section titled “Parameters”10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes.10s. Valid units: ns, us, ms, s, m, h. from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.batch_init_sessions(existing_batch_id="string", host_ids=id_list, host_timeout_duration="string", queue_offline=boolean, timeout=integer, timeout_duration="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.BatchInitSessions(existing_batch_id="string", host_ids=id_list, host_timeout_duration="string", queue_offline=boolean, timeout=integer, timeout_duration="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
body_payload = { "existing_batch_id": "string", "host_ids": ["string"], "queue_offline": boolean}
response = falcon.command("BatchInitSessions", timeout=integer, timeout_duration="string", host_timeout_duration="string", body=body_payload)print(response)Start-FalconSession -Id @("ID1", "ID2")package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.BatchInitSessions( &real_time_response.BatchInitSessionsParams{ Timeout: integer, TimeoutDuration: "string", HostTimeoutDuration: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.batchInitSessions( { // body existingBatchId: "string", hostIds: [], queueOffline: boolean }, integer, // timeout "string", // timeoutDuration "string" // hostTimeoutDuration);
console.log(response);use rusty_falcon::apis::real_time_response_api::batch_init_sessions;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::DomainBatchInitSessionRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = DomainBatchInitSessionRequest { existing_batch_id: Some("string".to_string()), host_ids: vec!["string".to_string()], queue_offline: Some(boolean), ..Default::default() };
let response = batch_init_sessions( &falcon.cfg, // configuration body, // body Some(integer), // timeout Some("string"), // timeout_duration Some("string"), // host_timeout_duration ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
body = { existing_batch_id: 'string', host_ids: [], queue_offline: boolean}
response = api.batch_init_sessions(body)
puts response{}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}BatchRefreshSessions
Section titled “BatchRefreshSessions”Batch refresh a RTR session on multiple hosts.
batch_refresh_sessionsParameters
Section titled “Parameters”10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes.from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.batch_refresh_sessions(batch_id="string", hosts_to_remove=id_list, timeout=integer, timeout_duration="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.BatchRefreshSessions(batch_id="string", hosts_to_remove=id_list, timeout=integer, timeout_duration="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
body_payload = { "batch_id": "string", "hosts_to_remove": ["string"]}
response = falcon.command("BatchRefreshSessions", timeout=integer, timeout_duration="string", body=body_payload)print(response)Update-FalconSession -BatchId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.BatchRefreshSessions( &real_time_response.BatchRefreshSessionsParams{ Timeout: integer, TimeoutDuration: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.batchRefreshSessions( { // body batchId: "string", hostsToRemove: [] }, integer, // timeout "string" // timeoutDuration);
console.log(response);use rusty_falcon::apis::real_time_response_api::batch_refresh_sessions;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::DomainBatchRefreshSessionRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = DomainBatchRefreshSessionRequest { batch_id: Some("string".to_string()), hosts_to_remove: vec!["string".to_string()], ..Default::default() };
let response = batch_refresh_sessions( &falcon.cfg, // configuration body, // body Some(integer), // timeout Some("string"), // timeout_duration ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
body = { batch_id: 'string', hosts_to_remove: []}
response = api.batch_refresh_sessions(body)
puts response{}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}RTR-AggregateSessions
Section titled “RTR-AggregateSessions”Get aggregates on session data.
aggregate_sessionsParameters
Section titled “Parameters”Available values (6)
year | month | week |
day | hour | minute |
Available values (2)
_count_termAvailable values (10)
date_histogramdate_rangetermsrangecardinalitymaxminavgsumpercentilesfrom falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
date_ranges = [ { "from": "string", "to": "string" }]
ranges = [ { "From": 0, "To": 0 }]
response = falcon.aggregate_sessions(date_ranges=date_ranges, exclude="string", field="string", filter="string", from=integer, include="string", interval="string", max_doc_count=integer, min_doc_count=integer, missing="string", name="string", q="string", ranges=ranges, size=integer, sort="string", sub_aggregates=["string"], time_zone="string", type="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
date_ranges = [ { "from": "string", "to": "string" }]
ranges = [ { "From": 0, "To": 0 }]
response = falcon.RTR_AggregateSessions(date_ranges=date_ranges, exclude="string", field="string", filter="string", from=integer, include="string", interval="string", max_doc_count=integer, min_doc_count=integer, missing="string", name="string", q="string", ranges=ranges, size=integer, sort="string", sub_aggregates=["string"], time_zone="string", type="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = [ { "date_ranges": [ { "from": "string", "to": "string" } ], "exclude": "string", "extended_bounds": { "max": "string", "min": "string" }, "field": "string", "filter": "string", "filters_spec": { "filters": {}, "other_bucket": boolean, "other_bucket_key": "string" }, "from": integer, "include": "string", "interval": "string", "max_doc_count": integer, "min_doc_count": integer, "missing": "string", "name": "string", "percents": ["string"], "q": "string", "ranges": [ { "from": integer, "to": integer } ], "size": integer, "sort": "string", "sub_aggregates": [ { "date_ranges": ["string"], "exclude": "string", "extended_bounds": {}, "field": "string", "filter": "string", "filters_spec": {}, "from": integer, "include": "string", "interval": "string", "max_doc_count": integer, "min_doc_count": integer, "missing": "string", "name": "string", "percents": ["string"], "q": "string", "ranges": ["string"], "size": integer, "sort": "string", "sub_aggregates": ["string"], "time_zone": "string", "type": "string" } ], "time_zone": "string", "type": "string" }]
response = falcon.command("RTR_AggregateSessions", body=body_payload)print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response" "github.com/crowdstrike/gofalcon/falcon/models")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
from := "string" to := "string" exclude := "string" field := "string" filter := "string" from := integer include := "string" interval := "string" max_doc_count := integer min_doc_count := integer missing := "string" name := "string" q := "string" From := integer To := integer size := integer sort := "string" time_zone := "string" typeVar := "string"
response, err := client.RealTimeResponse.RTRAggregateSessions( &real_time_response.RTRAggregateSessionsParams{ Body: []*models.MsaAggregateQueryRequest{ { DateRanges: []interface{}{ { From: &from, To: &to, }, }, Exclude: &exclude, ExtendedBounds: &struct{}{}, Field: &field, Filter: &filter, FiltersSpec: &struct{}{}, From: &from, Include: &include, Interval: &interval, MaxDocCount: &max_doc_count, MinDocCount: &min_doc_count, Missing: &missing, Name: &name, Percents: []interface{}{}, Q: &q, Ranges: []interface{}{ { From: &From, To: &To, }, }, Size: &size, Sort: &sort, SubAggregates: []interface{}{ { DateRanges: []interface{}{ { From: &from, To: &to, }, }, Exclude: &exclude, ExtendedBounds: &struct{}{}, Field: &field, Filter: &filter, FiltersSpec: &struct{}{}, From: &from, Include: &include, Interval: &interval, MaxDocCount: &max_doc_count, MinDocCount: &min_doc_count, Missing: &missing, Name: &name, Percents: []interface{}{}, Q: &q, Ranges: []interface{}{ { From: &From, To: &To, }, }, Size: &size, Sort: &sort, SubAggregates: []interface{}{ { DateRanges: []interface{}{}, Exclude: &exclude, ExtendedBounds: &struct{}{}, Field: &field, Filter: &filter, FiltersSpec: &struct{}{}, From: &from, Include: &include, Interval: &interval, MaxDocCount: &max_doc_count, MinDocCount: &min_doc_count, Missing: &missing, Name: &name, Percents: []interface{}{}, Q: &q, Ranges: []interface{}{}, Size: &size, Sort: &sort, SubAggregates: []interface{}{}, TimeZone: &time_zone, Type: &typeVar, }, }, TimeZone: &time_zone, Type: &typeVar, }, }, TimeZone: &time_zone, Type: &typeVar, }, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRAggregateSessions( [{ dateRanges: [{ from: "string", to: "string" }], exclude: "string", extendedBounds: { max: "string", min: "string" }, field: "string", filter: "string", filtersSpec: { filters: {}, otherBucket: boolean, otherBucketKey: "string" }, from: integer, include: "string", interval: "string", maxDocCount: integer, minDocCount: integer, missing: "string", name: "string", percents: [], q: "string", ranges: [{ From: integer, To: integer }], size: integer, sort: "string", subAggregates: [{ dateRanges: [{ from: "string", to: "string" }], exclude: "string", extendedBounds: { max: "string", min: "string" }, field: "string", filter: "string", filtersSpec: { filters: {}, otherBucket: boolean, otherBucketKey: "string" }, from: integer, include: "string", interval: "string", maxDocCount: integer, minDocCount: integer, missing: "string", name: "string", percents: [], q: "string", ranges: [{ From: integer, To: integer }], size: integer, sort: "string", subAggregates: [{ dateRanges: [], exclude: "string", extendedBounds: {}, field: "string", filter: "string", filtersSpec: {}, from: integer, include: "string", interval: "string", maxDocCount: integer, minDocCount: integer, missing: "string", name: "string", percents: [], q: "string", ranges: [], size: integer, sort: "string", subAggregates: [], timeZone: "string", type: "string" }], timeZone: "string", type: "string" }], timeZone: "string", type: "string"}] // body);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_aggregate_sessions;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::MsaAggregateQueryRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = vec![MsaAggregateQueryRequest { date_ranges: vec![DateRangeSpec { from: Some("string".to_string()), to: Some("string".to_string()), ..Default::default() }], exclude: Some("string".to_string()), field: Some("string".to_string()), filter: Some("string".to_string()), filters_spec: Default::default(), from: Some(integer), include: Some("string".to_string()), interval: Some("string".to_string()), missing: Some("string".to_string()), name: Some("string".to_string()), percents: vec![], q: Some("string".to_string()), ranges: vec![RangeSpec { from: Some(integer), to: Some(integer), ..Default::default() }], size: Some(integer), sort: Some("string".to_string()), sub_aggregates: vec![AggregateQueryRequest { date_ranges: vec![DateRangeSpec { from: Some("string".to_string()), to: Some("string".to_string()), ..Default::default() }], exclude: Some("string".to_string()), field: Some("string".to_string()), filter: Some("string".to_string()), filters_spec: Default::default(), from: Some(integer), include: Some("string".to_string()), interval: Some("string".to_string()), missing: Some("string".to_string()), name: Some("string".to_string()), percents: vec![], q: Some("string".to_string()), ranges: vec![RangeSpec { from: Some(integer), to: Some(integer), ..Default::default() }], size: Some(integer), sort: Some("string".to_string()), sub_aggregates: vec![AggregateQueryRequest { date_ranges: vec![], exclude: Some("string".to_string()), field: Some("string".to_string()), filter: Some("string".to_string()), filters_spec: Default::default(), from: Some(integer), include: Some("string".to_string()), interval: Some("string".to_string()), missing: Some("string".to_string()), name: Some("string".to_string()), percents: vec![], q: Some("string".to_string()), ranges: vec![], size: Some(integer), sort: Some("string".to_string()), sub_aggregates: vec![], time_zone: Some("string".to_string()), type: Some("string".to_string()), ..Default::default() }], time_zone: Some("string".to_string()), type: Some("string".to_string()), ..Default::default() }], time_zone: Some("string".to_string()), type: Some("string".to_string()), ..Default::default() }];
let response = r_tr_aggregate_sessions( &falcon.cfg, // configuration body, // body ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
body = {}
response = api.r_tr_aggregate_sessions(body)
puts response[ { "buckets": [], "doc_count_error_upper_bound": 0, "hits": {}, "name": "string", "sum_other_doc_count": 0 }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-CheckActiveResponderCommandStatus
Section titled “RTR-CheckActiveResponderCommandStatus”Get status of an executed active-responder command on a single host.
check_active_responder_command_statusParameters
Section titled “Parameters”from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.check_active_responder_command_status(cloud_request_id="string", sequence_id=integer)print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.RTR_CheckActiveResponderCommandStatus(cloud_request_id="string", sequence_id=integer)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("RTR_CheckActiveResponderCommandStatus", cloud_request_id="string", sequence_id=integer)print(response)Confirm-FalconResponderCommand -CloudRequestId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.RTRCheckActiveResponderCommandStatus( &real_time_response.RTRCheckActiveResponderCommandStatusParams{ CloudRequestID: "string", SequenceID: integer, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRCheckActiveResponderCommandStatus( "string", // cloudRequestId integer // sequenceId);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_check_active_responder_command_status;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = r_tr_check_active_responder_command_status( &falcon.cfg, // configuration "string", // cloud_request_id integer, // sequence_id ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
response = api.r_tr_check_active_responder_command_status('string', integer)
puts response[ { "base_command": "string", "complete": false, "sequence_id": 0, "session_id": "string", "stderr": "string", "stdout": "string", "task_id": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-CheckCommandStatus
Section titled “RTR-CheckCommandStatus”Get status of an executed command on a single host.
check_command_statusParameters
Section titled “Parameters”from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.check_command_status(cloud_request_id="string", sequence_id=integer)print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.RTR_CheckCommandStatus(cloud_request_id="string", sequence_id=integer)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("RTR_CheckCommandStatus", cloud_request_id="string", sequence_id=integer)print(response)Confirm-FalconCommand -CloudRequestId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.RTRCheckCommandStatus( &real_time_response.RTRCheckCommandStatusParams{ CloudRequestID: "string", SequenceID: integer, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRCheckCommandStatus( "string", // cloudRequestId integer // sequenceId);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_check_command_status;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = r_tr_check_command_status( &falcon.cfg, // configuration "string", // cloud_request_id integer, // sequence_id ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
response = api.r_tr_check_command_status('string', integer)
puts response[ { "base_command": "string", "complete": false, "sequence_id": 0, "session_id": "string", "stderr": "string", "stdout": "string", "task_id": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-DeleteFile
Section titled “RTR-DeleteFile”Delete a RTR session file.
delete_fileParameters
Section titled “Parameters”from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_file(ids=id_list, session_id="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.RTR_DeleteFile(ids=id_list, session_id="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("RTR_DeleteFile", ids="string", session_id="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.RTRDeleteFile( &real_time_response.RTRDeleteFileParams{ Ids: "string", SessionID: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRDeleteFile( "string", // ids "string" // sessionId);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_delete_file;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = r_tr_delete_file( &falcon.cfg, // configuration "string", // ids "string", // session_id ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
response = api.r_tr_delete_file('string', 'string')
puts response{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-DeleteFileV2
Section titled “RTR-DeleteFileV2”Delete a RTR session file.
delete_file_v2Parameters
Section titled “Parameters”from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_file_v2(ids=id_list, session_id="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.RTR_DeleteFileV2(ids=id_list, session_id="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("RTR_DeleteFileV2", ids="string", session_id="string")print(response)Remove-FalconGetFile -SessionId "string" -Id "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.RTRDeleteFileV2( &real_time_response.RTRDeleteFileV2Params{ Ids: "string", SessionID: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRDeleteFileV2( "string", // ids "string" // sessionId);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_delete_file_v2;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = r_tr_delete_file_v2( &falcon.cfg, // configuration "string", // ids "string", // session_id ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
response = api.r_tr_delete_file_v2('string', 'string')
puts response{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-DeleteQueuedSession
Section titled “RTR-DeleteQueuedSession”Delete a queued session command
delete_queued_sessionParameters
Section titled “Parameters”from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.delete_queued_session(cloud_request_id="string", session_id="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.RTR_DeleteQueuedSession(cloud_request_id="string", session_id="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("RTR_DeleteQueuedSession", session_id="string", cloud_request_id="string")print(response)Remove-FalconCommand -SessionId "string" -CloudRequestId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.RTRDeleteQueuedSession( &real_time_response.RTRDeleteQueuedSessionParams{ SessionID: "string", CloudRequestID: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRDeleteQueuedSession( "string", // sessionId "string" // cloudRequestId);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_delete_queued_session;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = r_tr_delete_queued_session( &falcon.cfg, // configuration "string", // session_id "string", // cloud_request_id ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
response = api.r_tr_delete_queued_session('string', 'string')
puts response[ "string"]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-DeleteSession
Section titled “RTR-DeleteSession”Delete a session.
delete_sessionParameters
Section titled “Parameters”from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.delete_session(session_id="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.RTR_DeleteSession(session_id="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("RTR_DeleteSession", session_id="string")print(response)Remove-FalconSession -Id "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.RTRDeleteSession( &real_time_response.RTRDeleteSessionParams{ SessionID: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRDeleteSession("string"); // sessionId
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_delete_session;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = r_tr_delete_session( &falcon.cfg, // configuration "string", // session_id ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
response = api.r_tr_delete_session('string')
puts response{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-ExecuteActiveResponderCommand
Section titled “RTR-ExecuteActiveResponderCommand”Execute an active responder command on a single host.
execute_active_responder_commandParameters
Section titled “Parameters”get or cp. Refer to the RTR documentation for the full list of commands.get some_file.txt.from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.execute_active_responder_command(base_command="string", command_string="string", device_id="string", id=integer, persist=boolean, session_id="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.RTR_ExecuteActiveResponderCommand(base_command="string", command_string="string", device_id="string", id=integer, persist=boolean, session_id="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "base_command": "string", "command_string": "string", "device_id": "string", "id": integer, "persist": boolean, "session_id": "string"}
response = falcon.command("RTR_ExecuteActiveResponderCommand", body=body_payload)print(response)Invoke-FalconResponderCommand -Command "string" -SessionId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response" "github.com/crowdstrike/gofalcon/falcon/models")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
base_command := "string" command_string := "string" device_id := "string" id := integer persist := boolean session_id := "string"
response, err := client.RealTimeResponse.RTRExecuteActiveResponderCommand( &real_time_response.RTRExecuteActiveResponderCommandParams{ Body: &models.DomainCommandExecuteRequest{ BaseCommand: &base_command, CommandString: &command_string, DeviceID: &device_id, ID: &id, Persist: &persist, SessionID: &session_id, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRExecuteActiveResponderCommand( { baseCommand: "string", commandString: "string", deviceId: "string", id: integer, persist: boolean, sessionId: "string"} // body);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_execute_active_responder_command;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::DomainCommandExecuteRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = DomainCommandExecuteRequest { base_command: Some("string".to_string()), command_string: Some("string".to_string()), device_id: Some("string".to_string()), id: Some(integer), persist: Some(boolean), session_id: Some("string".to_string()), ..Default::default() };
let response = r_tr_execute_active_responder_command( &falcon.cfg, // configuration body, // body ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
body = { base_command: 'string', command_string: 'string', device_id: 'string', id: integer, persist: boolean, session_id: 'string'}
response = api.r_tr_execute_active_responder_command(body)
puts response[ { "cloud_request_id": "string", "queued_command_offline": false, "session_id": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-ExecuteCommand
Section titled “RTR-ExecuteCommand”Execute a command on a single host.
execute_commandParameters
Section titled “Parameters”get or cp. Refer to the RTR documentation for the full list of commands.get some_file.txt.from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.execute_command(base_command="string", command_string="string", device_id="string", id=integer, persist=boolean, session_id="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.RTR_ExecuteCommand(base_command="string", command_string="string", device_id="string", id=integer, persist=boolean, session_id="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "base_command": "string", "command_string": "string", "device_id": "string", "id": integer, "persist": boolean, "session_id": "string"}
response = falcon.command("RTR_ExecuteCommand", body=body_payload)print(response)Invoke-FalconCommand -Command "string" -SessionId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response" "github.com/crowdstrike/gofalcon/falcon/models")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
base_command := "string" command_string := "string" device_id := "string" id := integer persist := boolean session_id := "string"
response, err := client.RealTimeResponse.RTRExecuteCommand( &real_time_response.RTRExecuteCommandParams{ Body: &models.DomainCommandExecuteRequest{ BaseCommand: &base_command, CommandString: &command_string, DeviceID: &device_id, ID: &id, Persist: &persist, SessionID: &session_id, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRExecuteCommand( { baseCommand: "string", commandString: "string", deviceId: "string", id: integer, persist: boolean, sessionId: "string"} // body);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_execute_command;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::DomainCommandExecuteRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = DomainCommandExecuteRequest { base_command: Some("string".to_string()), command_string: Some("string".to_string()), device_id: Some("string".to_string()), id: Some(integer), persist: Some(boolean), session_id: Some("string".to_string()), ..Default::default() };
let response = r_tr_execute_command( &falcon.cfg, // configuration body, // body ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
body = { base_command: 'string', command_string: 'string', device_id: 'string', id: integer, persist: boolean, session_id: 'string'}
response = api.r_tr_execute_command(body)
puts response[ { "cloud_request_id": "string", "queued_command_offline": false, "session_id": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-GetExtractedFileContents
Section titled “RTR-GetExtractedFileContents”Get RTR extracted file contents for specified session and sha256.
get_extracted_file_contentsParameters
Section titled “Parameters”from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.get_extracted_file_contents(session_id="string", sha256="string", filename="string", stream=boolean)print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.RTR_GetExtractedFileContents(session_id="string", sha256="string", filename="string", stream=boolean)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("RTR_GetExtractedFileContents", session_id="string", sha256="string", filename="string")print(response)Receive-FalconGetFile -Sha256 "string" -SessionId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
filename := "string"
response, err := client.RealTimeResponse.RTRGetExtractedFileContents( &real_time_response.RTRGetExtractedFileContentsParams{ SessionID: "string", Sha256: "string", Filename: &filename, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRGetExtractedFileContents( "string", // sessionId "string", // sha256 "string" // filename);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_get_extracted_file_contents;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = r_tr_get_extracted_file_contents( &falcon.cfg, // configuration "string", // session_id "string", // sha256 Some("string"), // filename ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
response = api.r_tr_get_extracted_file_contents('string', 'string')
puts response{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}RTR-InitSession
Section titled “RTR-InitSession”Initialize a new session with the RTR cloud.
init_sessionParameters
Section titled “Parameters”10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes.from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.init_session(device_id="string", origin="string", queue_offline=boolean, timeout=integer, timeout_duration="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.RTR_InitSession(device_id="string", origin="string", queue_offline=boolean, timeout=integer, timeout_duration="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "device_id": "string", "origin": "string", "queue_offline": boolean}
response = falcon.command("RTR_InitSession", timeout=integer, timeout_duration="string", body=body_payload)print(response)Start-FalconSession -Id @("ID1", "ID2")package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.RTRInitSession( &real_time_response.RTRInitSessionParams{ Timeout: integer, TimeoutDuration: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRInitSession( { // body deviceId: "string", origin: "string", queueOffline: boolean }, integer, // timeout "string" // timeoutDuration);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_init_session;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::DomainInitRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = DomainInitRequest { device_id: Some("string".to_string()), origin: Some("string".to_string()), queue_offline: Some(boolean), ..Default::default() };
let response = r_tr_init_session( &falcon.cfg, // configuration body, // body Some(integer), // timeout Some("string"), // timeout_duration ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
body = { device_id: 'string', origin: 'string', queue_offline: boolean}
response = api.r_tr_init_session(body)
puts response[ { "created_at": "string", "device_id": "string", "existing_aid_sessions": 0, "offline_queued": false, "platform": "string", "previous_commands": [], "pwd": "string", "scripts": [], "session_id": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}RTR-ListAllSessions
Section titled “RTR-ListAllSessions”Get a list of session_ids.
list_all_sessionsParameters
Section titled “Parameters”Available values (14)
id | created_at | updated_at |
deleted_at | aid | hostname |
user_id | origin | cloud_request_id |
command_string | base_command | offline_queued |
commands_queued | user_id |
from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.list_all_sessions(filter="string", limit=integer, offset="string", sort="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.RTR_ListAllSessions(filter="string", limit=integer, offset="string", sort="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("RTR_ListAllSessions", offset="string", limit=integer, sort="string", filter="string")print(response)Get-FalconSession -Filter "string" ` -Sort "string" ` -Limit integer ` -Offset integerpackage main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
offset := "string" limit := int64(0) sort := "string" filter := "string"
response, err := client.RealTimeResponse.RTRListAllSessions( &real_time_response.RTRListAllSessionsParams{ Offset: &offset, Limit: &limit, Sort: &sort, Filter: &filter, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRListAllSessions( "string", // offset integer, // limit "string", // sort "string" // filter);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_list_all_sessions;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = r_tr_list_all_sessions( &falcon.cfg, // configuration Some("string"), // offset Some(integer), // limit Some("string"), // sort Some("string"), // filter ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
response = api.r_tr_list_all_sessions(offset: 'string', limit: integer, sort: 'string', filter: 'string')
puts response[ "string"]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-ListFiles
Section titled “RTR-ListFiles”Get a list of files for the specified RTR session.
list_filesParameters
Section titled “Parameters”from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.list_files(session_id="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.RTR_ListFiles(session_id="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("RTR_ListFiles", session_id="string")print(response)Examples coming soon.
package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.RTRListFiles( &real_time_response.RTRListFilesParams{ SessionID: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRListFiles("string"); // sessionId
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_list_files;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = r_tr_list_files( &falcon.cfg, // configuration "string", // session_id ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
response = api.r_tr_list_files('string')
puts response[ { "cloud_request_id": "string", "created_at": "string", "deleted_at": "string", "id": 0, "name": "string", "session_id": "string", "sha256": "string", "size": 0, "updated_at": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-ListFilesV2
Section titled “RTR-ListFilesV2”Get a list of files for the specified RTR session.
list_files_v2Parameters
Section titled “Parameters”from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.list_files_v2(session_id="string")print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.RTR_ListFilesV2(session_id="string")print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.command("RTR_ListFilesV2", session_id="string")print(response)Confirm-FalconGetFile -SessionId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.RTRListFilesV2( &real_time_response.RTRListFilesV2Params{ SessionID: "string", Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRListFilesV2("string"); // sessionId
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_list_files_v2;use rusty_falcon::easy::client::FalconHandle;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let response = r_tr_list_files_v2( &falcon.cfg, // configuration "string", // session_id ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
response = api.r_tr_list_files_v2('string')
puts response[ { "cloud_request_id": "string", "complete": false, "created_at": "string", "deleted_at": "string", "error_message": "string", "id": "string", "name": "string", "progress": 0.0, "session_id": "string", "sha256": "string", "size": 0, "stage": "string", "status": "string", "updated_at": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-ListQueuedSessions
Section titled “RTR-ListQueuedSessions”Get queued session metadata by session ID.
list_queued_sessionsParameters
Section titled “Parameters”from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.list_queued_sessions(ids=id_list)print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.RTR_ListQueuedSessions(ids=id_list)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
body_payload = { "ids": ["string"]}
response = falcon.command("RTR_ListQueuedSessions", body=body_payload)print(response)Get-FalconQueuepackage main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response" "github.com/crowdstrike/gofalcon/falcon/models")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.RTRListQueuedSessions( &real_time_response.RTRListQueuedSessionsParams{ Body: &models.MsaIdsRequest{ Ids: []string{"string"}, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRListQueuedSessions( { ids: []} // body);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_list_queued_sessions;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::MsaIdsRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = MsaIdsRequest { ids: vec!["string".to_string()], ..Default::default() };
let response = r_tr_list_queued_sessions( &falcon.cfg, // configuration body, // body ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
body = Falcon::MsaIdsRequest.new( ids: [])
response = api.r_tr_list_queued_sessions(body)
puts response[ { "Commands": [], "aid": "string", "created_at": "string", "deleted_at": "string", "id": "string", "status": "string", "updated_at": "string", "user_id": "string", "user_uuid": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-ListSessions
Section titled “RTR-ListSessions”Get session metadata by session id.
list_sessionsParameters
Section titled “Parameters”from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.list_sessions(ids=id_list)print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.RTR_ListSessions(ids=id_list)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
body_payload = { "ids": ["string"]}
response = falcon.command("RTR_ListSessions", body=body_payload)print(response)Get-FalconSession -Id @("ID1", "ID2")package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response" "github.com/crowdstrike/gofalcon/falcon/models")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
response, err := client.RealTimeResponse.RTRListSessions( &real_time_response.RTRListSessionsParams{ Body: &models.MsaIdsRequest{ Ids: []string{"string"}, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRListSessions( { ids: []} // body);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_list_sessions;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::MsaIdsRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = MsaIdsRequest { ids: vec!["string".to_string()], ..Default::default() };
let response = r_tr_list_sessions( &falcon.cfg, // configuration body, // body ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
body = Falcon::MsaIdsRequest.new( ids: [])
response = api.r_tr_list_sessions(body)
puts response[ { "cid": "string", "cloud_request_ids": [], "commands": {}, "commands_queued": false, "created_at": "string", "deleted_at": "string", "device_details": {}, "device_id": "string", "duration": 0.0, "execution_id": "string", "hostname": "string", "id": "string", "logs": [], "offline_queued": false, "origin": "string", "platform_id": 0, "platform_name": "string", "pwd": "string", "updated_at": "string", "user_id": "string", "user_uuid": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}RTR-PulseSession
Section titled “RTR-PulseSession”Refresh a session timeout on a single host.
pulse_sessionParameters
Section titled “Parameters”from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.pulse_session(device_id="string", origin="string", queue_offline=boolean)print(response)from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
response = falcon.RTR_PulseSession(device_id="string", origin="string", queue_offline=boolean)print(response)from falconpy import APIHarnessV2
falcon = APIHarnessV2(client_id=CLIENT_ID, client_secret=CLIENT_SECRET )
body_payload = { "device_id": "string", "origin": "string", "queue_offline": boolean}
response = falcon.command("RTR_PulseSession", body=body_payload)print(response)Update-FalconSession -HostId "string"package main
import ( "context" "fmt" "os"
"github.com/crowdstrike/gofalcon/falcon" "github.com/crowdstrike/gofalcon/falcon/client/real_time_response" "github.com/crowdstrike/gofalcon/falcon/models")
func main() { client, err := falcon.NewClient(&falcon.ApiConfig{ ClientId: os.Getenv("FALCON_CLIENT_ID"), ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"), Context: context.Background(), }) if err != nil { panic(err) }
device_id := "string" origin := "string" queue_offline := boolean
response, err := client.RealTimeResponse.RTRPulseSession( &real_time_response.RTRPulseSessionParams{ Body: &models.DomainInitRequest{ DeviceID: &device_id, Origin: &origin, QueueOffline: &queue_offline, }, Context: context.Background(), }, ) if err != nil { panic(falcon.ErrorExplain(err)) }
fmt.Printf("%+v\n", response.Payload)}import { FalconClient } from "crowdstrike-falcon";
const client = new FalconClient({ cloud: process.env.FALCON_CLOUD!, clientId: process.env.FALCON_CLIENT_ID!, clientSecret: process.env.FALCON_CLIENT_SECRET!,});
const response = await client.realTimeResponse.rTRPulseSession( { deviceId: "string", origin: "string", queueOffline: boolean} // body);
console.log(response);use rusty_falcon::apis::real_time_response_api::r_tr_pulse_session;use rusty_falcon::easy::client::FalconHandle;use rusty_falcon::models::DomainInitRequest;
#[tokio::main]async fn main() { let falcon = FalconHandle::from_env().await.expect("Could not authenticate");
let body = DomainInitRequest { device_id: Some("string".to_string()), origin: Some("string".to_string()), queue_offline: Some(boolean), ..Default::default() };
let response = r_tr_pulse_session( &falcon.cfg, // configuration body, // body ).await.expect("API call failed");
println!("{:?}", response);}require "crimson-falcon"
Falcon.configure do |config| config.client_id = ENV["FALCON_CLIENT_ID"] config.client_secret = ENV["FALCON_CLIENT_SECRET"] config.cloud = ENV["FALCON_CLOUD"]end
api = Falcon::RealTimeResponse.new
body = Falcon::DomainInitRequest.new( device_id: 'string', origin: 'string', queue_offline: boolean)
response = api.r_tr_pulse_session(body)
puts response[ { "created_at": "string", "device_id": "string", "existing_aid_sessions": 0, "offline_queued": false, "platform": "string", "previous_commands": [], "pwd": "string", "scripts": [], "session_id": "string" }]{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }}{ "errors": [ { "code": 0, "id": "string", "message": "string" } ], "meta": { "pagination": { "limit": 0, "offset": 0, "total": 0 }, "powered_by": "string", "query_time": 0.0, "trace_id": "string", "writes": { "resources_affected": 0 } }, "resources": {}}