Skip to content

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.

LanguageLast Update
Pythonv1.6.5
PowerShellv2.2.9
Gov0.22.0
TypeScriptv0.6.0
Rustv0.7.1
Rubyv1.4.0

This service collection has code examples posted to the repository.



OperationDescription
BatchActiveResponderCmd
batch_active_responder_command
Batch executes a RTR active-responder command across the hosts mapped to the given batch ID.
BatchCmd
batch_command
Batch executes a RTR read-only command across the hosts mapped to the given batch ID.
BatchGetCmd
batch_get_command
Batch executes get command across hosts to retrieve files.
BatchGetCmdStatus
batch_get_command_status
Retrieves the status of the specified batch get command.
BatchInitSessions
batch_init_sessions
Batch initialize a RTR session on multiple hosts.
BatchRefreshSessions
batch_refresh_sessions
Batch refresh a RTR session on multiple hosts.
RTR-AggregateSessions
aggregate_sessions
Get aggregates on session data.
RTR-CheckActiveResponderCommandStatus
check_active_responder_command_status
Get status of an executed active-responder command on a single host.
RTR-CheckCommandStatus
check_command_status
Get status of an executed command on a single host.
RTR-DeleteFile
delete_file
Delete a RTR session file.
RTR-DeleteFileV2
delete_file_v2
Delete a RTR session file.
RTR-DeleteQueuedSession
delete_queued_session
Delete a queued session command
RTR-DeleteSession
delete_session
Delete a session.
RTR-ExecuteActiveResponderCommand
execute_active_responder_command
Execute an active responder command on a single host.
RTR-ExecuteCommand
execute_command
Execute a command on a single host.
RTR-GetExtractedFileContents
get_extracted_file_contents
Get RTR extracted file contents for specified session and sha256.
RTR-InitSession
init_session
Initialize a new session with the RTR cloud.
RTR-ListAllSessions
list_all_sessions
Get a list of session_ids.
RTR-ListFiles
list_files
Get a list of files for the specified RTR session.
RTR-ListFilesV2
list_files_v2
Get a list of files for the specified RTR session.
RTR-ListQueuedSessions
list_queued_sessions
Get queued session metadata by session ID.
RTR-ListSessions
list_sessions
Get session metadata by session id.
RTR-PulseSession
pulse_session
Refresh a session timeout on a single host.

Batch executes a RTR active-responder command across the hosts mapped to the given batch ID.

Method POST
Route /real-time-response/combined/batch-active-responder-command/v1
Scope Real time response: WRITE
PEP 8 batch_active_responder_command
body body · dictionary
Full body payload as JSON formatted dictionary.
base_command body · string
Active-Responder command type we are going to execute, for example: get or cp. Refer to the RTR documentation for the full list of commands.
batch_id body · string
Batch ID to execute the command on. Received from batch_init_session.
command_string body · string
Full command string for the command. For example get some_file.txt.
optional_hosts body · array
List of a subset of hosts we want to run the command on. If this list is supplied, only these hosts will receive the command.
persist_all body · boolean
timeout query · integer
Timeout for how long to wait for the request in seconds, default timeout is 30 seconds. Maximum is 5 minutes.
timeout_duration query · string
Timeout duration for how long to wait for the request in duration syntax. Example, 10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes.
host_timeout_duration query · string
Timeout duration for how long a host has time to complete processing. Default value is a bit less than the overall timeout value. It cannot be greater than the overall request timeout. Maximum is < 5 minutes. Example, 10s. Valid units: ns, us, ms, s, m, h.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
{
"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
}
}
}


Batch executes a RTR read-only command across the hosts mapped to the given batch ID.

Method POST
Route /real-time-response/combined/batch-command/v1
Scope Real time response: READ
PEP 8 batch_command
body body · dictionary
Full body payload as JSON formatted dictionary.
base_command body · string
Active-Responder command type we are going to execute, for example: get or cp. Refer to the RTR documentation for the full list of commands.
batch_id body · string
Batch ID to execute the command on. Received from batch_init_session.
command_string body · string
Full command string for the command. For example get some_file.txt.
optional_hosts body · array
List of a subset of hosts we want to run the command on. If this list is supplied, only these hosts will receive the command.
persist_all body · boolean
timeout query · integer
Timeout for how long to wait for the request in seconds, default timeout is 30 seconds. Maximum is 5 minutes.
timeout_duration query · string
Timeout duration for how long to wait for the request in duration syntax. Example, 10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes.
host_timeout_duration query · string
Timeout duration for how long a host has time to complete processing. Default value is a bit less than the overall timeout value. It cannot be greater than the overall request timeout. Maximum is < 5 minutes. Example, 10s. Valid units: ns, us, ms, s, m, h.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
{
"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
}
}
}


Batch executes get command across hosts to retrieve files.

Method POST
Route /real-time-response/combined/batch-get-command/v1
Scope Real time response: WRITE
PEP 8 batch_get_command
body body · dictionary
Full body payload as JSON formatted dictionary.
batch_id body · string
Batch ID to execute the command on. Received from batch_init_session.
file_path body · string
Full path to the file that is to be retrieved from each host in the batch.
optional_hosts body · array
List of a subset of hosts we want to run the command on. If this list is supplied, only these hosts will receive the command.
timeout query · integer
Timeout for how long to wait for the request in seconds, default timeout is 30 seconds. Maximum is 5 minutes.
timeout_duration query · string
Timeout duration for how long to wait for the request in duration syntax. Example, 10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes.
host_timeout_duration query · string
Timeout duration for how long a host has time to complete processing. Default value is a bit less than the overall timeout value. It cannot be greater than the overall request timeout. Maximum is < 5 minutes. Example, 10s. Valid units: ns, us, ms, s, m, h.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
{
"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
}
}
}


Retrieves the status of the specified batch get command.

Method GET
Route /real-time-response/combined/batch-get-command/v1
Scope Real time response: WRITE
PEP 8 batch_get_command_status
timeout query · integer
Timeout for how long to wait for the request in seconds, default timeout is 30 seconds. Maximum is 5 minutes.
timeout_duration query · string
Timeout duration for how long to wait for the request in duration syntax. Example, 10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes.
batch_get_cmd_req_id query · string
Batch Get Command Request ID received from /real-time-response/combined/get-command/v1
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from 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)
{}


Batch initialize a RTR session on multiple hosts.

Method POST
Route /real-time-response/combined/batch-init-session/v1
Scope Real time response: READ
PEP 8 batch_init_sessions
body body · dictionary
Full body payload as JSON formatted dictionary.
existing_batch_id body · string
Optional batch ID. Use an existing batch ID if you want to initialize new hosts and add them to the existing batch.
host_ids body · array
List of host agent ID’s to initialize a RTR session on.
queue_offline body · boolean
Boolean indicating if the command should be queued for execution when the host returns online.
timeout query · integer
Timeout for how long to wait for the request in seconds, default timeout is 30 seconds. Maximum is 5 minutes.
timeout_duration query · string
Timeout duration for how long to wait for the request in duration syntax. Example, 10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes.
host_timeout_duration query · string
Timeout duration for how long a host has time to complete processing. Default value is a bit less than the overall timeout value. It cannot be greater than the overall request timeout. Maximum is < 5 minutes. Example, 10s. Valid units: ns, us, ms, s, m, h.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
{}


Batch refresh a RTR session on multiple hosts.

Method POST
Route /real-time-response/combined/batch-refresh-session/v1
Scope Real time response: READ
PEP 8 batch_refresh_sessions
body body · dictionary
Full body payload as JSON formatted dictionary.
batch_id body · string
Batch ID to execute the command on. Received from batch_init_session.
hosts_to_remove body · array
Hosts to remove from the batch session. Heartbeats will no longer happen on these hosts and the sessions will expire.
timeout query · integer
Timeout for how long to wait for the request in seconds, default timeout is 30 seconds. Maximum is 5 minutes.
timeout_duration query · string
Timeout duration for how long to wait for the request in duration syntax. Example, 10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
{}


Get aggregates on session data.

Method POST
Route /real-time-response/aggregates/sessions/GET/v1
Scope Real time response: READ
PEP 8 aggregate_sessions
body body · dictionary
Full body payload as JSON formatted dictionary.
date_ranges body · array
If peforming a date range query specify the from and to date ranges. These can be in common date formats like 2019-07-18 or now.
exclude body · string
Fields to exclude.
extended_bounds body · object
field body · string
Term you want to aggregate on. If doing a date_range query, this is the date field you want to apply the date ranges to.
filter body · string
Optional filter criteria in the form of an FQL query. For more information about FQL queries, see our FQL documentation in Falcon.
filters_spec body · object
from body · integer
include body · string
Fields to include.
interval body · string
Available values (6)
yearmonthweek
dayhourminute
max_doc_count body · integer
Maximum number of documents.
min_doc_count body · integer
Minimum number of documents.
missing body · string
name body · string
Scan name.
percents body · array
q body · string
FQL syntax.
ranges body · array
size body · integer
sort body · string
FQL syntax.
Available values (2)
_count
sort by document count
_term
sort by the string value alphabetically
sub_aggregates body · array
time_zone body · string
type body · string
String. This method does not support body payload validation.
Available values (10)
date_histogram
Aggregates counts on a specified time interval. Requires use of “interval” field.
date_range
Aggregates counts on custom defined date range buckets. Can include multiple ranges. (Similar to time series, but the bucket sizes are variable). Date formats to follow ISO 8601.
terms
Buckets alerts by the value of a specified field. For example, if field used is scenario, then alerts will be bucketed by the various alert scenario names.
range
Buckets alerts by specified (numeric) ranges of a specified field. For example, if doing a range aggregation on the max_severity field, the alerts will be counted by the specified ranges of severity.
cardinality
Returns the count of distinct values in a specified field.
max
Returns the maximum value of a specified field.
min
Returns the minimum value of a specified field.
avg
Returns the average value of the specified field.
sum
Returns the total sum of all values for the specified field.
percentiles
Returns the following percentiles for the specified field: 1, 5, 25, 50, 75, 95, 99.
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.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)
[
{
"buckets": [],
"doc_count_error_upper_bound": 0,
"hits": {},
"name": "string",
"sum_other_doc_count": 0
}
]


Get status of an executed active-responder command on a single host.

Method GET
Route /real-time-response/entities/active-responder-command/v1
Scope Real time response: WRITE
PEP 8 check_active_responder_command_status
cloud_request_id query · string
Cloud Request ID of the executed command to query
sequence_id query · integer
Sequence ID that we want to retrieve. Command responses are chunked across sequences
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
[
{
"base_command": "string",
"complete": false,
"sequence_id": 0,
"session_id": "string",
"stderr": "string",
"stdout": "string",
"task_id": "string"
}
]


Get status of an executed command on a single host.

Method GET
Route /real-time-response/entities/command/v1
Scope Real time response: READ
PEP 8 check_command_status
cloud_request_id query · string
Cloud Request ID of the executed command to query
sequence_id query · integer
Sequence ID that we want to retrieve. Command responses are chunked across sequences
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
[
{
"base_command": "string",
"complete": false,
"sequence_id": 0,
"session_id": "string",
"stderr": "string",
"stdout": "string",
"task_id": "string"
}
]


Delete a RTR session file.

Method DELETE
Route /real-time-response/entities/file/v1
Scope Real time response: WRITE
PEP 8 delete_file
ids query · string
RTR Session file id
session_id query · string
RTR Session id
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
{
"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
}
}
}


Delete a RTR session file.

Method DELETE
Route /real-time-response/entities/file/v2
Scope Real time response: WRITE
PEP 8 delete_file_v2
ids query · string
RTR Session file id
session_id query · string
RTR Session id
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
{
"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
}
}
}


Delete a queued session command

Method DELETE
Route /real-time-response/entities/queued-sessions/command/v1
Scope Real time response: READ
PEP 8 delete_queued_session
session_id query · string
RTR Session id
cloud_request_id query · string
Cloud Request ID of the executed command to query
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
[
"string"
]


Delete a session.

Method DELETE
Route /real-time-response/entities/sessions/v1
Scope Real time response: READ
PEP 8 delete_session
session_id query · string
RTR Session id
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.delete_session(session_id="string")
print(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
}
}
}


Execute an active responder command on a single host.

Method POST
Route /real-time-response/entities/active-responder-command/v1
Scope Real time response: WRITE
PEP 8 execute_active_responder_command
body body · dictionary
Full body payload as JSON formatted dictionary.
base_command body · string
Active-Responder command type we are going to execute, for example: get or cp. Refer to the RTR documentation for the full list of commands.
command_string body · string
Full command string for the command. For example get some_file.txt.
device_id body · string
ID of the device to execute the command on.
id body · integer
Command sequence.
persist body · boolean
Execute this command when host returns to service.
session_id body · string
RTR session ID.
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)
[
{
"cloud_request_id": "string",
"queued_command_offline": false,
"session_id": "string"
}
]


Execute a command on a single host.

Method POST
Route /real-time-response/entities/command/v1
Scope Real time response: READ
PEP 8 execute_command
body body · dictionary
Full body payload as JSON formatted dictionary.
base_command body · string
Active-Responder command type we are going to execute, for example: get or cp. Refer to the RTR documentation for the full list of commands.
command_string body · string
Full command string for the command. For example get some_file.txt.
device_id body · string
ID of the device to execute the command on.
id body · integer
Command sequence.
persist body · boolean
Execute this command when host returns to service.
session_id body · string
RTR session ID.
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)
[
{
"cloud_request_id": "string",
"queued_command_offline": false,
"session_id": "string"
}
]


Get RTR extracted file contents for specified session and sha256.

Method GET
Route /real-time-response/entities/extracted-file-contents/v1
Scope Real time response: WRITE
PEP 8 get_extracted_file_contents
session_id query · string
RTR Session id
sha256 query · string
Extracted SHA256 (e.g. ‘efa256a96af3b556cd3fc9d8b1cf587d72807d7805ced441e8149fc279db422b’)
filename query · string
Filename to use for the archive name and the file within the archive.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
stream body · boolean
Enabling streaming download for the requested file.
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)
{
"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": {}
}


Initialize a new session with the RTR cloud.

Method POST
Route /real-time-response/entities/sessions/v1
Scope Real time response: READ
PEP 8 init_session
body body · dictionary
Full body payload as JSON formatted dictionary.
device_id body · string
The host agent ID to initialize the RTR session on. RTR will retrieve an existing session for the calling user on this host.
origin body · string
queue_offline body · boolean
timeout query · integer
Timeout for how long to wait for the request in seconds, default timeout is 30 seconds. Maximum is 5 minutes.
timeout_duration query · string
Timeout duration for how long to wait for the request in duration syntax. Example, 10s. Valid units: ns, us, ms, s, m, h. Maximum is 5 minutes.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
[
{
"created_at": "string",
"device_id": "string",
"existing_aid_sessions": 0,
"offline_queued": false,
"platform": "string",
"previous_commands": [],
"pwd": "string",
"scripts": [],
"session_id": "string"
}
]


Get a list of session_ids.

Method GET
Route /real-time-response/queries/sessions/v1
Scope Real time response: READ
PEP 8 list_all_sessions
offset query · string
Starting index of overall result set from which to return ids.
limit query · integer
Number of ids to return.
sort query · string
The property to sort by.
filter query · string
Optional filter criteria in the form of an FQL query. For more information about FQL queries, see our FQL documentation in Falcon. “user_id” can accept a special value ‘@me’ which will restrict results to records with current user’s ID.
Available values (14)
idcreated_atupdated_at
deleted_ataidhostname
user_idorigincloud_request_id
command_stringbase_commandoffline_queued
commands_queueduser_id
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
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)
[
"string"
]


Get a list of files for the specified RTR session.

Method GET
Route /real-time-response/entities/file/v1
Scope Real time response: WRITE
PEP 8 list_files
session_id query · string
RTR Session id
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.list_files(session_id="string")
print(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"
}
]


Get a list of files for the specified RTR session.

Method GET
Route /real-time-response/entities/file/v2
Scope Real time response: WRITE
PEP 8 list_files_v2
session_id query · string
RTR Session id
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponse
falcon = RealTimeResponse(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.list_files_v2(session_id="string")
print(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"
}
]


Get queued session metadata by session ID.

Method POST
Route /real-time-response/entities/queued-sessions/GET/v1
Scope Real time response: READ
PEP 8 list_queued_sessions
body body · dictionary
Full body payload as JSON formatted dictionary.
ids body · array
List of RTR sessions to retrieve. RTR will only return the sessions that were created by the calling user.
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)
[
{
"Commands": [],
"aid": "string",
"created_at": "string",
"deleted_at": "string",
"id": "string",
"status": "string",
"updated_at": "string",
"user_id": "string",
"user_uuid": "string"
}
]


Get session metadata by session id.

Method POST
Route /real-time-response/entities/sessions/GET/v1
Scope Real time response: READ
PEP 8 list_sessions
body body · dictionary
Full body payload as JSON formatted dictionary.
ids body · array
List of RTR sessions to retrieve. RTR will only return the sessions that were created by the calling user.
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)
[
{
"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"
}
]


Refresh a session timeout on a single host.

Method POST
Route /real-time-response/entities/refresh-session/v1
Scope Real time response: READ
PEP 8 pulse_session
body body · dictionary
Full body payload as JSON formatted dictionary.
device_id body · string
The host agent ID to initialize the RTR session on. RTR will retrieve an existing session for the calling user on this host.
origin body · string
queue_offline body · boolean
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)
[
{
"created_at": "string",
"device_id": "string",
"existing_aid_sessions": 0,
"offline_queued": false,
"platform": "string",
"previous_commands": [],
"pwd": "string",
"scripts": [],
"session_id": "string"
}
]