Skip to content

Real Time Response Admin

The Real Time Response Admin service collection provides operations for managing RTR administrator commands, scripts, and put-files. Execute admin commands on single hosts or in batch, manage custom scripts and put-files for RTR sessions.

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
BatchAdminCmd
batch_admin_command
Batch executes a RTR administrator command across the hosts mapped to the given batch ID.
RTR-CheckAdminCommandStatus
check_admin_command_status
Get status of an executed RTR administrator command on a single host.
RTR-CreatePut-Files
create_put_files
Upload a new put-file to use for the RTR put command.
RTR-CreatePut-FilesV2
create_put_files_v2
Upload a new put-file to use for the RTR put command.
RTR-CreateScripts
create_scripts
Upload a new custom-script to use for the RTR runscript command.
RTR-CreateScriptsV2
create_scripts_v2
Upload a new custom-script to use for the RTR runscript command.
RTR-DeletePut-Files
delete_put_files
Delete a put-file based on the ID given.
RTR-DeleteScripts
delete_scripts
Delete a custom-script based on the ID given.
RTR-ExecuteAdminCommand
execute_admin_command
Execute a RTR administrator command on a single host.
RTR-GetFalconScripts
get_falcon_scripts
Get Falcon scripts with metadata and content of script
RTR-GetPut-Files
get_put_files
Get put-files based on the ID’s given.
RTR-GetPut-FilesV2
get_put_files_v2
Get put-files based on the ID’s given.
RTR-GetPutFileContents
get_put_file_contents
Get RTR put file contents for a given file ID
RTR-GetScripts
get_scripts
Get custom-scripts based on the ID’s given.
RTR-GetScriptsV2
get_scripts_v2
Get custom-scripts based on the ID’s given.
RTR-ListFalconScripts
list_falcon_scripts
Get a list of Falcon script IDs available to the user to run
RTR-ListPut-Files
list_put_files
Get a list of put-file ID’s that are available to the user for the put command.
RTR-ListScripts
list_scripts
Get a list of custom-script ID’s that are available to the user for the runscript command.
RTR-UpdateScripts
update_scripts
Upload a new scripts to replace an existing one.
RTR-UpdateScriptsV2
update_scripts_v2
Upload a new scripts to replace an existing one.

Batch executes a RTR administrator command across the hosts mapped to the given batch ID.

Method POST
Route /real-time-response/combined/batch-admin-command/v1
Scope Real time response (admin): WRITE
PEP 8 batch_admin_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 RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(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_admin_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
}
}
}


Get status of an executed RTR administrator command on a single host.

Method GET
Route /real-time-response/entities/admin-command/v1
Scope Real time response (admin): WRITE
PEP 8 check_admin_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 RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.check_admin_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"
}
]


Upload a new put-file to use for the RTR put command.

Method POST
Route /real-time-response/entities/put-files/v1
Scope Real time response (admin): WRITE
PEP 8 create_put_files
file body · file
put-file to upload
description body · string
File description
name body · string
File name (if different than actual file name)
comments_for_audit_log body · string
The audit log comment
data body · string
full formData payload, not required if other keywords are used.
files body · string
File to be uploaded. List of tuples. *REQUIRED* Ex: [(‘file’, (‘file.ext’, open(‘file.ext’,‘rb’).read(), ‘application/script’))]
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_put_files(data="string",
files="string",
description="string",
name="string",
comments_for_audit_log="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
}
}
}


Upload a new put-file to use for the RTR put command.

Method POST
Route /real-time-response/entities/put-files/v2
Scope Real time response (admin): WRITE
PEP 8 create_put_files_v2
file body · file
put-file to upload
description body · string
File description
name body · string
File name (if different than actual file name)
comments_for_audit_log body · string
The audit log comment
data body · string
full formData payload, not required if other keywords are used. formData.
files body · string
File to be uploaded. List of tuples. *REQUIRED* Ex: [(‘file’, (‘file.ext’, open(‘file.ext’,‘rb’).read(), ‘application/script’))]
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_put_files_v2(data="string",
files="string",
description="string",
name="string",
comments_for_audit_log="string")
print(response)
[
{
"comments_for_audit_log": "string",
"content": "string",
"created_by": "string",
"created_by_uuid": "string",
"created_timestamp": "string",
"description": "string",
"file_type": "string",
"id": "string",
"modified_by": "string",
"modified_by_uuid": "string",
"modified_timestamp": "string",
"name": "string",
"permission_type": "string",
"platform": [],
"run_attempt_count": 0,
"run_success_count": 0,
"sha256": "string",
"share_with_workflow": false,
"size": 0,
"workflow_activity_id": "string",
"workflow_input_schema": "string",
"workflow_is_disruptive": false,
"workflow_output_schema": "string",
"write_access": false
}
]


Upload a new custom-script to use for the RTR runscript command.

Method POST
Route /real-time-response/entities/scripts/v1
Scope Real time response (admin): WRITE
PEP 8 create_scripts
file body · file
custom-script file to upload. These should be powershell scripts.
description body · string
File description
name body · string
File name (if different than actual file name)
comments_for_audit_log body · string
The audit log comment
permission_type body · string
Permission for the custom-script. Valid permission values: - private, usable by only the user who uploaded it - group, usable by all RTR Admins - public, usable by all active-responders and RTR admins
Available values (3)
private
usable only by the user who upload it
group
usable by all RTR admins
public
usable by all active-responders and RTR admins
content body · string
The script text that you want to use to upload
platform body · string or list of strings
Platforms for the file. Currently supports: windows, mac, linux, . If no platform is provided, it will default to ‘windows’
data body · string
full formData payload, not required if other keywords are used.
files body · string
File to be uploaded. List of tuples. *REQUIRED* Ex: [(‘file’, (‘file.ext’, open(‘file.ext’,‘rb’).read(), ‘application/script’))]
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_scripts(data="string",
files="string",
description="string",
name="string",
comments_for_audit_log="string",
permission_type="string",
content="string",
platform="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
}
}
}


Upload a new custom-script to use for the RTR runscript command.

Method POST
Route /real-time-response/entities/scripts/v2
Scope Real time response (admin): WRITE
PEP 8 create_scripts_v2
file body · file
custom-script file to upload. These should be powershell scripts.
description body · string
File description
name body · string
File name (if different than actual file name)
comments_for_audit_log body · string
The audit log comment
permission_type body · string
Permission for the custom-script. Valid permission values: - private, usable by only the user who uploaded it - group, usable by all RTR Admins - public, usable by all active-responders and RTR admins
content body · string
The script text that you want to use to upload
platform body · string or list of strings
Platforms for the file. Currently supports: windows, mac, linux, . If no platform is provided, it will default to ‘windows’
data body · string
full formData payload, not required if other keywords are used. formData.
files body · string
File to be uploaded. List of tuples. *REQUIRED* Ex: [(‘file’, (‘file.ext’, open(‘file.ext’,‘rb’).read(), ‘application/script’))]
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_scripts_v2(data="string",
files="string",
description="string",
name="string",
comments_for_audit_log="string",
permission_type="string",
content="string",
platform="string")
print(response)
[
{
"comments_for_audit_log": "string",
"content": "string",
"created_by": "string",
"created_by_uuid": "string",
"created_timestamp": "string",
"description": "string",
"file_type": "string",
"id": "string",
"modified_by": "string",
"modified_by_uuid": "string",
"modified_timestamp": "string",
"name": "string",
"permission_type": "string",
"platform": [],
"run_attempt_count": 0,
"run_success_count": 0,
"sha256": "string",
"share_with_workflow": false,
"size": 0,
"workflow_activity_id": "string",
"workflow_input_schema": "string",
"workflow_is_disruptive": false,
"workflow_output_schema": "string",
"write_access": false
}
]


Delete a put-file based on the ID given.

Method DELETE
Route /real-time-response/entities/put-files/v1
Scope Real time response (admin): WRITE
PEP 8 delete_put_files
ids query · string
File id
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(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_put_files(ids=id_list)
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 custom-script based on the ID given.

Method DELETE
Route /real-time-response/entities/scripts/v1
Scope Real time response (admin): WRITE
PEP 8 delete_scripts
ids query · string
File id
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(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_scripts(ids=id_list)
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 a RTR administrator command on a single host.

Method POST
Route /real-time-response/entities/admin-command/v1
Scope Real time response (admin): WRITE
PEP 8 execute_admin_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 RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.execute_admin_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 Falcon scripts with metadata and content of script

Method GET
Route /real-time-response/entities/falcon-scripts/v1
Scope Real time response (admin): WRITE
PEP 8 get_falcon_scripts
ids query · string or list of strings
IDs of the Falcon scripts you want to retrieve
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_falcon_scripts(ids=id_list)
print(response)
[
{
"access_roles": [],
"categories": [],
"content": "string",
"created_by": "string",
"created_timestamp": "string",
"description": "string",
"id": "string",
"is_disruptive": false,
"modified_by": "string",
"modified_timestamp": "string",
"modifies_system": false,
"name": "string",
"platform": "string",
"required_skus": [],
"revision": 0,
"sha256": "string",
"size": 0,
"use_case": "string",
"workflow_enabled": false,
"workflow_input_schema": "string",
"workflow_output_schema": "string",
"workflow_tags": []
}
]


Get put-files based on the ID’s given.

Method GET
Route /real-time-response/entities/put-files/v1
Scope Real time response (admin): WRITE
PEP 8 get_put_files
ids query · string or list of strings
File IDs
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_put_files(ids=id_list)
print(response)
[
{
"comments_for_audit_log": "string",
"content": "string",
"created_by": "string",
"created_by_uuid": "string",
"created_timestamp": "string",
"description": "string",
"file_type": "string",
"id": "string",
"modified_by": "string",
"modified_by_uuid": "string",
"modified_timestamp": "string",
"name": "string",
"permission_type": "string",
"platform": [],
"run_attempt_count": 0,
"run_success_count": 0,
"sha256": "string",
"size": 0,
"write_access": false
}
]


Get put-files based on the ID’s given.

Method GET
Route /real-time-response/entities/put-files/v2
Scope Real time response (admin): WRITE
PEP 8 get_put_files_v2
ids query · string or list of strings
File IDs
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_put_files_v2(ids=id_list)
print(response)
[
{
"comments_for_audit_log": "string",
"content": "string",
"created_by": "string",
"created_by_uuid": "string",
"created_timestamp": "string",
"description": "string",
"file_type": "string",
"id": "string",
"modified_by": "string",
"modified_by_uuid": "string",
"modified_timestamp": "string",
"name": "string",
"permission_type": "string",
"platform": [],
"run_attempt_count": 0,
"run_success_count": 0,
"sha256": "string",
"share_with_workflow": false,
"size": 0,
"workflow_activity_id": "string",
"workflow_input_schema": "string",
"workflow_is_disruptive": false,
"workflow_output_schema": "string",
"write_access": false
}
]


Get RTR put file contents for a given file ID

Method GET
Route /real-time-response/entities/put-file-contents/v1
Scope Real time response (admin): WRITE
PEP 8 get_put_file_contents
id query · string
put file ID
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("output_file", "wb") as save_file:
response = falcon.get_put_file_contents(id="string", stream=boolean)
save_file.write(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": {}
}


Get custom-scripts based on the ID’s given.

Method GET
Route /real-time-response/entities/scripts/v1
Scope Real time response (admin): WRITE
PEP 8 get_scripts
ids query · string or list of strings
File IDs
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_scripts(ids=id_list)
print(response)
[
{
"comments_for_audit_log": "string",
"content": "string",
"created_by": "string",
"created_by_uuid": "string",
"created_timestamp": "string",
"description": "string",
"file_type": "string",
"id": "string",
"modified_by": "string",
"modified_by_uuid": "string",
"modified_timestamp": "string",
"name": "string",
"permission_type": "string",
"platform": [],
"run_attempt_count": 0,
"run_success_count": 0,
"sha256": "string",
"size": 0,
"write_access": false
}
]


Get custom-scripts based on the ID’s given.

Method GET
Route /real-time-response/entities/scripts/v2
Scope Real time response (admin): WRITE
PEP 8 get_scripts_v2
ids query · string or list of strings
File IDs
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_scripts_v2(ids=id_list)
print(response)
[
{
"comments_for_audit_log": "string",
"content": "string",
"created_by": "string",
"created_by_uuid": "string",
"created_timestamp": "string",
"description": "string",
"file_type": "string",
"id": "string",
"modified_by": "string",
"modified_by_uuid": "string",
"modified_timestamp": "string",
"name": "string",
"permission_type": "string",
"platform": [],
"run_attempt_count": 0,
"run_success_count": 0,
"sha256": "string",
"share_with_workflow": false,
"size": 0,
"workflow_activity_id": "string",
"workflow_input_schema": "string",
"workflow_is_disruptive": false,
"workflow_output_schema": "string",
"write_access": false
}
]


Get a list of Falcon script IDs available to the user to run

Method GET
Route /real-time-response/queries/falcon-scripts/v1
Scope Real time response (admin): WRITE
PEP 8 list_falcon_scripts
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.
offset query · integer
Starting index of overall result set from which to return ids.
limit query · integer
Number of ids to return.
sort query · string
asc’.
Available values (3)
created_timestampmodified_timestampname
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.list_falcon_scripts(filter="string",
limit=integer,
offset=integer,
sort="string")
print(response)
[
"string"
]


Get a list of put-file ID’s that are available to the user for the put command.

Method GET
Route /real-time-response/queries/put-files/v1
Scope Real time response (admin): WRITE
PEP 8 list_put_files
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.
Available values (1)
user_id
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.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.list_put_files(filter="string",
limit=integer,
offset="string",
sort="string")
print(response)
[
"string"
]


Get a list of custom-script ID’s that are available to the user for the runscript command.

Method GET
Route /real-time-response/queries/scripts/v1
Scope Real time response (admin): WRITE
PEP 8 list_scripts
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.
Available values (1)
user_id
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.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.list_scripts(filter="string",
limit=integer,
offset="string",
sort="string")
print(response)
[
"string"
]


Upload a new scripts to replace an existing one.

Method PATCH
Route /real-time-response/entities/scripts/v1
Scope Real time response (admin): WRITE
PEP 8 update_scripts
id body · string
ID to update
file body · file
custom-script file to upload. These should be powershell scripts.
description body · string
File description
name body · string
File name (if different than actual file name)
comments_for_audit_log body · string
The audit log comment
permission_type body · string
Permission for the custom-script. Valid permission values: - private, usable by only the user who uploaded it - group, usable by all RTR Admins - public, usable by all active-responders and RTR admins
Available values (3)
private
usable only by the user who upload it
group
usable by all RTR admins
public
usable by all active-responders and RTR admins
content body · string
The script text that you want to use to upload
platform body · string or list of strings
Platforms for the file. Currently supports: windows, mac, linux,
data body · string
full formData payload, not required if other keywords are used.
files body · string
File to be uploaded. List of tuples. *REQUIRED* Ex: [(‘file’, (‘file.ext’, open(‘file.ext’,‘rb’).read(), ‘application/script’))]
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_scripts(data="string",
files="string",
description="string",
id="string",
name="string",
comments_for_audit_log="string",
permission_type="string",
content="string",
platform="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
}
}
}


Upload a new scripts to replace an existing one.

Method PATCH
Route /real-time-response/entities/scripts/v2
Scope Real time response (admin): WRITE
PEP 8 update_scripts_v2
id body · string
ID to update
file body · file
custom-script file to upload. These should be powershell scripts.
description body · string
File description
name body · string
File name (if different than actual file name)
comments_for_audit_log body · string
The audit log comment
permission_type body · string
Permission for the custom-script. Valid permission values: - private, usable by only the user who uploaded it - group, usable by all RTR Admins - public, usable by all active-responders and RTR admins
Available values (3)
private
usable only by the user who uploaded it
group
usable by all RTR admins
public
usable by all active-responders and RTR admins
content body · string
The script text that you want to use to upload
platform body · string or list of strings
Platforms for the file. Currently supports: windows, mac, linux,
data body · string
full formData payload, not required if other keywords are used. formData.
files body · string
File to be uploaded. List of tuples. *REQUIRED* Ex: [(‘file’, (‘file.ext’, open(‘file.ext’,‘rb’).read(), ‘application/script’))]
from falconpy import RealTimeResponseAdmin
falcon = RealTimeResponseAdmin(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_scripts_v2(data="string",
files="string",
description="string",
id="string",
name="string",
comments_for_audit_log="string",
permission_type="string",
content="string",
platform="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
}
},
"resources": [
{
"comments_for_audit_log": "string",
"content": "string",
"created_by": "string",
"created_by_uuid": "string",
"created_timestamp": "string",
"description": "string",
"file_type": "string",
"id": "string",
"modified_by": "string",
"modified_by_uuid": "string",
"modified_timestamp": "string",
"name": "string",
"permission_type": "string",
"platform": [],
"run_attempt_count": 0,
"run_success_count": 0,
"sha256": "string",
"share_with_workflow": false,
"size": 0,
"workflow_activity_id": "string",
"workflow_input_schema": "string",
"workflow_is_disruptive": false,
"workflow_output_schema": "string",
"write_access": false
}
]
}