Skip to content

IT Automation

The IT Automation service collection provides operations for managing automation policies, executions, jobs, and templates. Create and manage workflows for automated IT processes across your CrowdStrike environment.

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


OperationDescription
ITAutomationCancelTaskExecution
cancel_execution
Cancel a task execution specified in the request
ITAutomationCombinedScheduledTasks
scheduled_task_details
Returns full details of scheduled tasks matching the filter query parameter.
ITAutomationCreatePolicy
create_policy
Creates a new policy of the specified type.
ITAutomationCreateScheduledTask
create_scheduled_task
Creates a scheduled task from the given request
ITAutomationCreateTask
create_task
Creates a task with details from the given request.
ITAutomationCreateTaskGroup
create_task_group
Creates a task group from the given request
ITAutomationCreateUserGroup
create_user_group
Creates a user group from the given request
ITAutomationDeletePolicy
delete_policy
Deletes 1 or more policies.
ITAutomationDeleteScheduledTasks
delete_scheduled_task
Delete one or more scheduled tasks by providing the scheduled tasks IDs
ITAutomationDeleteTask
delete_task
Deletes tasks for each provided ID
ITAutomationDeleteTaskGroups
delete_task_groups
Delete one or more task groups by providing the task group IDs
ITAutomationDeleteUserGroup
delete_user_groups
Deletes user groups for each provided ids
ITAutomationGetAssociatedTasks
get_associated_tasks
Retrieve tasks associated with the provided file id
ITAutomationGetExecutionResults
get_execution_results
Get the task execution results from an async search.
ITAutomationGetExecutionResultsSearchStatus
get_execution_results_search_status
Get the status of an async task execution results.
ITAutomationGetPolicies
get_policies
Retrieves the configuration for 1 or more policies.
ITAutomationGetScheduledTasks
get_scheduled_task
Returns scheduled tasks for each provided id
ITAutomationGetTaskExecution
get_execution
Get the task execution for the provided task execution IDs
ITAutomationGetTaskExecutionHostStatus
get_execution_host_status
Get the status of host executions by providing the execution IDs
ITAutomationGetTaskExecutionsByQuery
get_executions_by_query
Returns the list of task executions (and their details) matching the filter query parameter.
ITAutomationGetTaskGroups
get_task_group
Returns task groups for each provided id
ITAutomationGetTaskGroupsByQuery
get_task_groups_by_query
Returns full details of task groups matching the filter query parameter.
ITAutomationGetTasks
get_tasks
Returns tasks for each provided ID
ITAutomationGetTasksByQuery
get_tasks_by_query
Returns full details of tasks matching the filter query parameter.
ITAutomationGetUserGroup
get_user_group
Returns user groups for each provided id
ITAutomationQueryPolicies
query_policies
Returns the list of policy ids matching the filter query parameter.
ITAutomationRerunTaskExecution
rerun_execution
Rerun the task execution specified in the request
ITAutomationRunLiveQuery
run_live_query
Starts a new task execution from the provided query data in the request and returns the initiated task executions
ITAutomationSearchScheduledTasks
search_scheduled_tasks
Returns the list of scheduled task IDs matching the filter query parameter
ITAutomationSearchTaskExecutions
search_task_executions
Returns the list of task execution IDs matching the filter query parameter.
ITAutomationSearchTaskGroups
search_task_groups
Returns the list of task group ids matching the filter query parameter
ITAutomationSearchTasks
search_tasks
Returns the list of task IDs matching the filter query parameter.
ITAutomationSearchUserGroup
search_user_groups
Returns the list of user group ids matching the filter query parameter.
ITAutomationStartExecutionResultsSearch
execution_results_search
Starts an async task execution results search.
ITAutomationStartTaskExecution
start_execution
Starts a new task execution from an existing task provided in the request and returns the initiated task executions
ITAutomationUpdatePolicies
update_policy
Updates a new policy of the specified type.
ITAutomationUpdatePoliciesPrecedence
update_policies_precedence
Updates the policy precedence for all policies of a specific platform.
ITAutomationUpdatePolicyHostGroups
update_policy_host_groups
Manage host groups assigned to a policy.
ITAutomationUpdateScheduledTask
update_scheduled_task
Update an existing scheduled task with the supplied info
ITAutomationUpdateTask
update_task
Update a task with details from the given request.
ITAutomationUpdateTaskGroup
update_task_group
Update a task group for a given id
ITAutomationUpdateUserGroup
update_user_group
Update a user group for a given id

Cancel a task execution specified in the request

Method POST
Route /it-automation/entities/task-execution-cancel/v1
Scope IT Automation - Task Executions: WRITE
PEP 8 cancel_execution
body body · dictionary
Full body payload as JSON formatted dictionary.
task_execution_id body · string
ID of the task execution to cancel. Example: f64b95555ef54ea682619ce880d267cc
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.cancel_execution(task_execution_id="string")
print(response)
[
{
"composite_query": {},
"discover_new_hosts": false,
"discover_offline_hosts": false,
"distribute": false,
"execution_args": {},
"expiration_interval": "string",
"guardrails": {},
"id": "string",
"os_query": "string",
"platforms": [],
"queries": {},
"remediations": {},
"run_by": "string",
"run_type": "string",
"status_by_stage": {},
"target": "string",
"task_id": "string",
"task_name": "string",
"task_parameters": [],
"task_type": "string",
"trigger_condition": [],
"verification_condition": []
}
]


Returns full details of scheduled tasks matching the filter query parameter.

Method GET
Route /it-automation/combined/scheduled-tasks/v1
Scope IT Automation - Task Executions: READ
PEP 8 scheduled_task_details
filter query · string
The filter expression that should be used to limit the results
sort query · string
The sort expression that should be used to sort the results
offset query · integer
Starting index for record retrieval. Example: 100
limit query · integer
The maximum records to return. Example: 50
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.scheduled_task_details(filter="string",
sort="string",
offset=integer,
limit=integer)
print(response)
[
{
"created_by": "string",
"created_time": "string",
"discover_new_hosts": false,
"discover_offline_hosts": false,
"distribute": false,
"execution_args": {},
"expiration_interval": "string",
"groups": [],
"guardrails": {},
"id": "string",
"is_active": false,
"is_preset": false,
"last_run": "string",
"modified_by": "string",
"modified_time": "string",
"next_run_time": "string",
"schedule": {},
"schedule_name": "string",
"target": "string",
"task_id": "string",
"task_name": "string",
"task_type": "string",
"trigger_condition": []
}
]


Creates a new policy of the specified type.

Method POST
Route /it-automation/entities/policies/v1
Scope IT Automation - Policies: WRITE
PEP 8 create_policy
body body · dictionary
Full body payload as JSON formatted dictionary.
config body · object
Configuration settings for the policy
description body · string
Description of the policy
name body · string
The name of the policy
platform body · string
The platform for the policy
Available values (3)
WindowsMacLinux
enable_script_execution body · boolean
Enable or disable script execution.
enable_python_execution body · boolean
Enable or disable Python execution.
enable_os_query body · boolean
Enable or disable OS Query.
execution_timeout body · integer
Specifies the timeout value for executions.
execution_timeout_unit body · string
Execution timeout unit. Allowed values:
Available values (2)
HoursMinutes
cpu_throttle body · integer
Specifies the CPU throttle value.
cpu_scheduling body · string
Sets priority to determine the order in which a query process will run on a host’s CPU.
memory_pressure_level body · string
Sets memory pressure level to control system resource allocation during task execution.
memory_allocation body · integer
Specifies the memory allocation value.
memory_allocation_unit body · string
Memory allocation unit. Allowed values:
Available values (2)
MBGB
concurrent_host_limit body · integer
Specifies the maximum number of concurrent hosts.
concurrent_task_limit body · integer
Specifies the maximum number of concurrent tasks.
concurrent_host_file_transfer_limit body · integer
Specifies the maximum number of concurrent file transfers.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_policy(name="string",
description="string",
platform="string",
enable_script_execution=boolean,
enable_python_execution=boolean,
enable_os_query=boolean,
execution_timeout=integer,
execution_timeout_unit="string",
cpu_throttle=integer,
cpu_scheduling="string",
memory_pressure_level="string",
memory_allocation=integer,
memory_allocation_unit="string",
concurrent_host_limit=integer,
concurrent_task_limit=integer,
concurrent_host_file_transfer_limit=integer)
print(response)
[
{
"config": {},
"created_at": "string",
"created_by": "string",
"description": "string",
"host_groups": [],
"id": "string",
"is_enabled": false,
"modified_at": "string",
"modified_by": "string",
"name": "string",
"precedence": 0,
"target": "string"
}
]


Creates a scheduled task from the given request

Method POST
Route /it-automation/entities/scheduled-tasks/v1
Scope IT Automation - Task Executions: WRITE
PEP 8 create_scheduled_task
body body · dictionary
Full body payload as JSON formatted dictionary.
discover_new_hosts body · boolean
Whether to discover new hosts for the scheduled task. Example: true
discover_offline_hosts body · boolean
Whether to discover offline hosts for the scheduled task. Example: true
distribute body · boolean
Whether to distribute the scheduled task. Example: true
execution_args body · object
Additional arguments for the scheduled task. Example: {“state”: “running”}
expiration_interval body · string
Duration for which the task stays active. Once expired, new and offline hosts won’t be targeted. Example: 1m
guardrails body · object
Safety limits for task execution
is_active body · boolean
Whether the scheduled task is active. Example: true
schedule body · object
Schedule details for the task execution
schedule_name body · string
Custom name for the scheduled task. Example: Weekly Security Scan
target body · string
Filter expression to select target hosts. Example: platform_name:‘Windows’
task_id body · string
Unique identifier of the task to be scheduled. Example: f64b95555ef54ea682619ce880d267cc
trigger_condition body · array
Conditions that trigger remediation actions
arguments body · dictionary
Arguments to provide to the task when executed.
id body · string
The id of the scheduled task to update.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
arguments = {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
guardrails = {
"run_time_limit_millis": 0
}
schedule = {
"day_of_month": 0,
"days_of_week": [
"string"
],
"end_time": "2025-07-13T13:39:00.637Z",
"frequency": "One-Time",
"interval": 0,
"start_time": "2025-07-13T13:39:00.637Z",
"time": "string",
"timezone": "string"
}
trigger_condition = [
{
"groups": [
null
],
"operator": "AND",
"statements": [
{
"data_comparator": "LessThan",
"data_type": "StringType",
"key": "string",
"task_id": "string",
"value": "string"
}
]
}
]
response = falcon.create_scheduled_task(arguments=arguments,
discover_new_hosts=boolean,
discover_offline_hosts=boolean,
distribute=boolean,
expiration_interval="string",
guardrails=guardrails,
id="string",
is_active=boolean,
schedule=schedule,
target="string",
task_id="string",
trigger_condition=trigger_condition)
print(response)
[
{
"created_by": "string",
"created_time": "string",
"discover_new_hosts": false,
"discover_offline_hosts": false,
"distribute": false,
"execution_args": {},
"expiration_interval": "string",
"groups": [],
"guardrails": {},
"id": "string",
"is_active": false,
"is_preset": false,
"last_run": "string",
"modified_by": "string",
"modified_time": "string",
"next_run_time": "string",
"schedule": {},
"schedule_name": "string",
"target": "string",
"task_id": "string",
"task_name": "string",
"task_type": "string",
"trigger_condition": []
}
]


Creates a task with details from the given request.

Method POST
Route /it-automation/entities/tasks/v1
Scope IT Automation - Tasks: WRITE
PEP 8 create_task
body body · dictionary
Full body payload as JSON formatted dictionary.
access_type body · string
Access type of the task
Available values (2)
PublicShared
assigned_user_group_ids body · array
Assigned user group IDs of the task, when access_type is Shared. Use GET /it-automation/queries/it-user-groups/v1 to fetch user group IDs
assigned_user_ids body · array
Assigned user IDs of the task, when access_type is Shared. Use GET /user-management/queries/users/v1 to fetch user IDs
composite_query body · object
Composite query configuration containing task IDs and host attributes for multi-task execution
description body · string
Detailed description of what the task does. Example: User Table Validation Check
name body · string
Name of the task. Example: OSQuery Check
os_query body · string
OSQuery to execute. Example: select * from users
output_parser_config body · object
Specifies the columns and delimiter used to parse script execution results
queries body · object
Script queries to run per platform
remediations body · object
Remediation scripts to run per platform
rows_parser_config body · object
Configuration for parsing script output into multiple rows
target body · string
Target filter in FQL format. Example: platform_name: ‘Windows’
task_group_id body · string
ID of the task group to associate this task with
task_parameters body · array
Parameters for the task
task_type body · string
Type of task
Available values (2)
queryremediation
trigger_condition body · array
Conditions that trigger remediation scripts execution
verification_condition body · array
Conditions that verify the outcome of the remediation scripts execution
add_assigned_user_group_ids body · string or list of strings
User group IDs to add.
add_assigned_user_ids body · string or list of strings
User IDs to add.
removed_assigned_user_group_ids body · string or list of strings
User group IDs to be removed.
remove_assigned_user_ids body · string or list of strings
User IDs to be removed.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
output_parser_config = {
"columns": [
{
"name": "string"
}
],
"default_group_by": "boolean",
"delimiter": "string"
}
queries = {
"linux": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
},
"mac": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
},
"windows": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
}
}
remediations = {
"linux": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
},
"mac": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
},
"windows": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
}
}
trigger_condition = [
{
"groups": [
null
],
"operator": "AND",
"statements": [
{
"data_comparator": "LessThan",
"data_type": "StringType",
"key": "string",
"task_id": "string",
"value": "string"
}
]
}
]
verification_condition = [
{
"groups": [
null
],
"operator": "AND",
"statements": [
{
"data_comparator": "LessThan",
"data_type": "StringType",
"key": "string",
"task_id": "string",
"value": "string"
}
]
}
]
response = falcon.create_task(access_type="string",
add_assigned_user_group_ids=id_list,
add_assigned_user_ids=id_list,
description="string",
name="string",
os_query="string",
output_parser_config=output_parser_config,
queries=queries,
remediations=remediations,
removed_assigned_user_group_ids=id_list,
remove_assigned_user_ids=id_list,
target="string",
task_parameters=["string"],
task_group_id="string",
task_type="string",
trigger_condition=trigger_condition,
verification_condition=verification_condition)
print(response)
[
{
"access_type": "string",
"assigned_user_group_ids": [],
"assigned_user_ids": [],
"composite_query": {},
"created_by": "string",
"created_time": "string",
"description": "string",
"groups": [],
"has_task_parameters": false,
"id": "string",
"last_run_time": "string",
"modified_by": "string",
"modified_time": "string",
"name": "string",
"os_query": "string",
"output_parser_config": {},
"queries": {},
"remediations": {},
"rows_parser_config": {},
"runs": 0,
"supported_os": [],
"target": "string",
"task_parameters": [],
"task_type": "string",
"trigger_condition": [],
"verification_condition": []
}
]


Creates a task group from the given request

Method POST
Route /it-automation/entities/task-groups/v1
Scope IT Automation - Tasks: WRITE
PEP 8 create_task_group
body body · dictionary
Full body payload as JSON formatted dictionary.
access_type body · string
Access type of the group
Available values (2)
PublicShared
assigned_user_group_ids body · array
Assigned user group IDs of the group, when access_type is Shared. Use GET /it-automation/queries/it-user-groups/v1 to fetch user group IDs
assigned_user_ids body · array
Assigned user IDs of the group, when access_type is Shared. Use GET /user-management/queries/users/v1 to fetch user IDs
description body · string
Description of the task group
name body · string
Name of the task group
task_ids body · array
IDs of existing tasks to add to task group upon creation. Use PATCH /it-automation/entities/task-groups/v1 to add task ids later
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.create_task_group(access_type="string",
assigned_user_group_ids=id_list,
assigned_user_ids=id_list,
description="string",
name="string",
task_ids=id_list)
print(response)
[
{
"access_type": "string",
"assigned_user_group_ids": [],
"assigned_user_ids": [],
"created_by": "string",
"created_time": "string",
"description": "string",
"id": "string",
"is_preset": false,
"modified_by": "string",
"modified_time": "string",
"name": "string",
"supported_os": [],
"task_ids": []
}
]


Creates a user group from the given request

Method POST
Route /it-automation/entities/it-user-groups/v1
Scope IT Automation - User Groups: WRITE
PEP 8 create_user_group
body body · dictionary
Full body payload as JSON formatted dictionary.
description body · string
Description of the user group
name body · string
Name of the user group
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.create_user_group(description="string", name="string")
print(response)
[
{
"created_by": "string",
"created_time": "string",
"description": "string",
"id": "string",
"modified_by": "string",
"modified_time": "string",
"name": "string",
"task_group_ids": [],
"task_ids": [],
"users": []
}
]


Deletes 1 or more policies.

Method DELETE
Route /it-automation/entities/policies/v1
Scope IT Automation - Policies: WRITE
PEP 8 delete_policy
ids query · string or list of strings
list of task ids to delete
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(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_policy(ids=id_list)
print(response)
[
"string"
]


Delete one or more scheduled tasks by providing the scheduled tasks IDs

Method DELETE
Route /it-automation/entities/scheduled-tasks/v1
Scope IT Automation - Task Executions: WRITE
PEP 8 delete_scheduled_task
ids query · string or list of strings
Comma separated values of scheduled task IDs to delete
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(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_scheduled_task(ids=id_list)
print(response)
[
"string"
]


Deletes tasks for each provided ID

Method DELETE
Route /it-automation/entities/tasks/v1
Scope IT Automation - Tasks: WRITE
PEP 8 delete_task
ids query · string or list of strings
IDs of tasks to delete. Use ITAutomationSearchTasks to fetch IDs
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(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_task(ids=id_list)
print(response)
[
"string"
]


Delete one or more task groups by providing the task group IDs

Method DELETE
Route /it-automation/entities/task-groups/v1
Scope IT Automation - Tasks: WRITE
PEP 8 delete_task_groups
ids query · string or list of strings
Comma separated values of task group IDs to delete
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(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_task_groups(ids=id_list)
print(response)
[
"string"
]


Deletes user groups for each provided ids

Method DELETE
Route /it-automation/entities/it-user-groups/v1
Scope IT Automation - User Groups: WRITE
PEP 8 delete_user_groups
ids query · string or list of strings
Comma separated values of user group ids to delete
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(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_user_groups(ids=id_list)
print(response)
[
"string"
]


Retrieve tasks associated with the provided file id

Method GET
Route /it-automation/combined/associated-tasks/v1
Scope IT Automation - Tasks: READ
PEP 8 get_associated_tasks
id query · string
The ID of the file to fetch associated tasks for
filter query · string
The filter expression that should be used to limit the results
sort query · string
The sort expression that should be used to sort the results
offset query · integer
Starting index for record retrieval. Example: 100
limit query · integer
The maximum records to return. Example: 50
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_associated_tasks(id="string",
filter="string",
sort="string",
offset=integer,
limit=integer)
print(response)
[
{
"id": "string",
"name": "string"
}
]


Get the task execution results from an async search.

Method GET
Route /it-automation/entities/task-execution-results/v1
Scope IT Automation - Task Executions: READ
PEP 8 get_execution_results
id query · string
The Job ID to fetch. Use the value returned from ITAutomationStartExecutionResultsSearch
offset query · integer
The offset to start retrieving records from
limit query · integer
The maximum number of event results to return
sort query · string
Sort results by one of the fields in the event results, either asc (ascending) or desc (descending)
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_execution_results(id="string",
offset=integer,
limit=integer,
sort="string")
print(response)
[
{}
]


ITAutomationGetExecutionResultsSearchStatus

Section titled “ITAutomationGetExecutionResultsSearchStatus”

Get the status of an async task execution results.

Method GET
Route /it-automation/entities/task-execution-results-search/v1
Scope IT Automation - Task Executions: READ
PEP 8 get_execution_results_search_status
id query · string
Search Job ID to fetch. UseITAutomationStartExecutionResultsSearch to get the job id
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_execution_results_search_status(id="string")
print(response)
[
{
"event_count": 0,
"is_pending": false,
"job_id": "string",
"percent_complete": 0,
"result_count": 0,
"status": "string"
}
]


Retrieves the configuration for 1 or more policies.

Method GET
Route /it-automation/entities/policies/v1
Scope IT Automation - Policies: READ
PEP 8 get_policies
ids query · string or list of strings
One or more (up to 500) policy ids in the form of ids=ID1&ids=ID2
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(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_policies(ids=id_list)
print(response)
[
{
"config": {},
"created_at": "string",
"created_by": "string",
"description": "string",
"host_groups": [],
"id": "string",
"is_enabled": false,
"modified_at": "string",
"modified_by": "string",
"name": "string",
"precedence": 0,
"target": "string"
}
]


Returns scheduled tasks for each provided id

Method GET
Route /it-automation/entities/scheduled-tasks/v1
Scope IT Automation - Task Executions: READ
PEP 8 get_scheduled_task
ids query · string or list of strings
Scheduled task IDs to fetch. Use ITAutomationSearchScheduledTasks to fetch scheduled task IDs
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(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_scheduled_task(ids=id_list)
print(response)
[
{
"created_by": "string",
"created_time": "string",
"discover_new_hosts": false,
"discover_offline_hosts": false,
"distribute": false,
"execution_args": {},
"expiration_interval": "string",
"groups": [],
"guardrails": {},
"id": "string",
"is_active": false,
"is_preset": false,
"last_run": "string",
"modified_by": "string",
"modified_time": "string",
"next_run_time": "string",
"schedule": {},
"schedule_name": "string",
"target": "string",
"task_id": "string",
"task_name": "string",
"task_type": "string",
"trigger_condition": []
}
]


Get the task execution for the provided task execution IDs

Method GET
Route /it-automation/entities/task-executions/v1
Scope IT Automation - Task Executions: READ
PEP 8 get_execution
ids query · string or list of strings
Task execution IDs to fetch. Use ITAutomationSearchTaskExecutions to get the execution id
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(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_execution(ids=id_list)
print(response)
[
{
"composite_query": {},
"discover_new_hosts": false,
"discover_offline_hosts": false,
"distribute": false,
"execution_args": {},
"expiration_interval": "string",
"guardrails": {},
"id": "string",
"os_query": "string",
"platforms": [],
"queries": {},
"remediations": {},
"run_by": "string",
"run_type": "string",
"status_by_stage": {},
"target": "string",
"task_id": "string",
"task_name": "string",
"task_parameters": [],
"task_type": "string",
"trigger_condition": [],
"verification_condition": []
}
]


Get the status of host executions by providing the execution IDs

Method GET
Route /it-automation/entities/task-execution-host-status/v1
Scope IT Automation - Task Executions: READ
PEP 8 get_execution_host_status
ids query · string or list of strings
Task execution IDs to get statuses for. Use ITAutomationSearchTaskExecutions to fetch execution IDs
filter query · string
The filter expression that should be used to limit the results
sort query · string
The sort expression that should be used to sort the results
offset query · integer
Starting index for record retrieval. Example: 100
limit query · integer
The maximum records to return. Example: 50
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(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_execution_host_status(ids=id_list,
filter="string",
sort="string",
offset=integer,
limit=integer)
print(response)
[
{
"end_time": "string",
"host_id": "string",
"hostname": "string",
"it_automation_policy": {},
"platform": "string",
"reason": "string",
"remote_response_policy": {},
"stage": "string",
"start_time": "string",
"status": "string",
"task_execution_id": "string",
"total_results": 0
}
]


Returns the list of task executions (and their details) matching the filter query parameter.

Method GET
Route /it-automation/combined/task-executions/v1
Scope IT Automation - Task Executions: READ
PEP 8 get_executions_by_query
filter query · string
The filter expression that should be used to limit the results
sort query · string
The sort expression that should be used to sort the results
offset query · integer
Starting index for record retrieval. Example: 100
limit query · integer
The maximum records to return. Example: 50
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_executions_by_query(filter="string",
sort="string",
offset=integer,
limit=integer)
print(response)
[
{
"composite_query": {},
"discover_new_hosts": false,
"discover_offline_hosts": false,
"distribute": false,
"execution_args": {},
"expiration_interval": "string",
"guardrails": {},
"id": "string",
"os_query": "string",
"platforms": [],
"queries": {},
"remediations": {},
"run_by": "string",
"run_type": "string",
"status_by_stage": {},
"target": "string",
"task_id": "string",
"task_name": "string",
"task_parameters": [],
"task_type": "string",
"trigger_condition": [],
"verification_condition": []
}
]


Returns task groups for each provided id

Method GET
Route /it-automation/entities/task-groups/v1
Scope IT Automation - Tasks: READ
PEP 8 get_task_group
ids query · string or list of strings
Comma separated values of task group ids to fetch
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(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_task_group(ids=id_list)
print(response)
[
{
"access_type": "string",
"assigned_user_group_ids": [],
"assigned_user_ids": [],
"created_by": "string",
"created_time": "string",
"description": "string",
"id": "string",
"is_preset": false,
"modified_by": "string",
"modified_time": "string",
"name": "string",
"supported_os": [],
"task_ids": []
}
]


Returns full details of task groups matching the filter query parameter.

Method GET
Route /it-automation/combined/task-groups/v1
Scope IT Automation - Tasks: READ
PEP 8 get_task_groups_by_query
filter query · string
The filter expression that should be used to limit the results
sort query · string
The sort expression that should be used to sort the results
offset query · integer
Starting index for record retrieval. Example: 100
limit query · integer
The maximum records to return. Example: 50
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_task_groups_by_query(filter="string",
sort="string",
offset=integer,
limit=integer)
print(response)
[
{
"access_type": "string",
"assigned_user_group_ids": [],
"assigned_user_ids": [],
"created_by": "string",
"created_time": "string",
"description": "string",
"id": "string",
"is_preset": false,
"modified_by": "string",
"modified_time": "string",
"name": "string",
"supported_os": [],
"task_ids": []
}
]


Returns tasks for each provided ID

Method GET
Route /it-automation/entities/tasks/v1
Scope IT Automation - Tasks: READ
PEP 8 get_tasks
ids query · string or list of strings
IDs of tasks to fetch. Use ITAutomationSearchTasks to fetch IDs
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(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_tasks(ids=id_list)
print(response)
[
{
"access_type": "string",
"assigned_user_group_ids": [],
"assigned_user_ids": [],
"composite_query": {},
"created_by": "string",
"created_time": "string",
"description": "string",
"groups": [],
"has_task_parameters": false,
"id": "string",
"last_run_time": "string",
"modified_by": "string",
"modified_time": "string",
"name": "string",
"os_query": "string",
"output_parser_config": {},
"queries": {},
"remediations": {},
"rows_parser_config": {},
"runs": 0,
"supported_os": [],
"target": "string",
"task_parameters": [],
"task_type": "string",
"trigger_condition": [],
"verification_condition": []
}
]


Returns full details of tasks matching the filter query parameter.

Method GET
Route /it-automation/combined/tasks/v1
Scope IT Automation - Tasks: READ
PEP 8 get_tasks_by_query
filter query · string
The filter expression that should be used to limit the results
sort query · string
The sort expression that should be used to sort the results
offset query · integer
Starting index for record retrieval. Example: 100
limit query · integer
The maximum records to return. Example: 50
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_tasks_by_query(filter="string",
sort="string",
offset=integer,
limit=integer)
print(response)
[
{
"access_type": "string",
"assigned_user_group_ids": [],
"assigned_user_ids": [],
"composite_query": {},
"created_by": "string",
"created_time": "string",
"description": "string",
"groups": [],
"has_task_parameters": false,
"id": "string",
"last_run_time": "string",
"modified_by": "string",
"modified_time": "string",
"name": "string",
"os_query": "string",
"output_parser_config": {},
"queries": {},
"remediations": {},
"rows_parser_config": {},
"runs": 0,
"supported_os": [],
"target": "string",
"task_parameters": [],
"task_type": "string",
"trigger_condition": [],
"verification_condition": []
}
]


Returns user groups for each provided id

Method GET
Route /it-automation/entities/it-user-groups/v1
Scope IT Automation - User Groups: READ
PEP 8 get_user_group
ids query · string or list of strings
Comma separated values of user group ids to fetch
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(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_user_group(ids=id_list)
print(response)
[
{
"created_by": "string",
"created_time": "string",
"description": "string",
"id": "string",
"modified_by": "string",
"modified_time": "string",
"name": "string",
"task_group_ids": [],
"task_ids": [],
"users": []
}
]


Returns the list of policy ids matching the filter query parameter.

Method GET
Route /it-automation/queries/policies/v1
Scope IT Automation - Policies: READ
PEP 8 query_policies
offset query · integer
The offset to start retrieving records from. Defaults to 0 if not specified.
limit query · integer
The maximum number of ids to return. Defaults to 100 if not specified. The maximum number of results that can be returned in a single call is 500.
sort query · string
The sort expression that should be used to sort the results
platform query · string
The platform of policies to retrieve
Available values (3)
WindowsMacLinux
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_policies(offset=integer,
limit=integer,
sort="string",
platform="string")
print(response)
[
"string"
]


Rerun the task execution specified in the request

Method POST
Route /it-automation/entities/task-execution-rerun/v1
Scope IT Automation - Task Executions: WRITE
PEP 8 rerun_execution
body body · dictionary
Full body payload as JSON formatted dictionary.
run_type body · string
[Deprecated: use run_types] Type of rerun. When set to hosts, re-run on same hosts again. When set to failed, re-run only on failed hosts. When set to offline, re-run only on offline hosts. When set to target, re-run on all the hosts resolved to set criteria.
Available values (4)
hostsfailedoffline
target
run_types body · array
Types of reruns to combine with OR logic. Cannot be used with run_type. Example: [‘failed’, ‘offline’]
Available values (7)
hostsfailedoffline
targetcompletedcanceled
expired
task_execution_id body · string
ID of the task execution to rerun. Example: f64b95555ef54ea682619ce880d267cc
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.rerun_execution(run_type="string", task_execution_id="string")
print(response)
[
"string"
]


Starts a new task execution from the provided query data in the request and returns the initiated task executions

Method POST
Route /it-automation/entities/live-query-execution/v1
Scope IT Automation - Task Executions: WRITE
PEP 8 run_live_query
body body · dictionary
Full body payload as JSON formatted dictionary.
composite_query body · object
Specifies task ids and host attributes for composite querying
discover_new_hosts body · boolean
Whether to discover new hosts for the scheduled task. Example: true
discover_offline_hosts body · boolean
Whether to discover offline hosts for the scheduled task. Example: true
distribute body · boolean
Whether to distribute the scheduled task. Example: true
expiration_interval body · string
Duration for which the task stays active. Once expired, new and offline hosts won’t be targeted. Example: 1m
guardrails body · object
Execution guardrails and limits
osquery body · string
OSQuery to execute. Example: select * from users
output_parser_config body · object
Specifies columns and delimiter for parsing script execution results
queries body · object
Script queries to run per platform
rows_parser_config body · object
Configuration for parsing script output into multiple rows
target body · string
Target filter in FQL format. Example: platform_name: ‘Windows’
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
guardrails = {
"run_time_limit_millis": 0
}
output_parser_config = {
"columns": [
{
"name": "string"
}
],
"default_group_by": "boolean",
"delimiter": "string"
}
queries = {
"linux": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
},
"mac": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
},
"windows": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
}
}
response = falcon.run_live_query(discover_new_hosts=boolean,
discover_offline_hosts=boolean,
distribute=boolean,
expiration_interval="string",
guardrails=guardrails,
osquery="string",
output_parser_config=output_parser_config,
queries=queries,
target="string")
print(response)
[
"string"
]


Returns the list of scheduled task IDs matching the filter query parameter

Method GET
Route /it-automation/queries/scheduled-tasks/v1
Scope IT Automation - Task Executions: READ
PEP 8 search_scheduled_tasks
filter query · string
The filter expression that should be used to limit the results
sort query · string
The sort expression that should be used to sort the results
offset query · integer
Starting index for record retrieval. Example: 100
limit query · integer
The maximum records to return. Example: 50
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.search_scheduled_tasks(filter="string",
sort="string",
offset=integer,
limit=integer)
print(response)
[
"string"
]


Returns the list of task execution IDs matching the filter query parameter.

Method GET
Route /it-automation/queries/task-executions/v1
Scope IT Automation - Task Executions: READ
PEP 8 search_task_executions
filter query · string
The filter expression that should be used to limit the results
sort query · string
The sort expression that should be used to sort the results
offset query · integer
Starting index for record retrieval. Example: 100
limit query · integer
The maximum records to return. Example: 50
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.search_task_executions(filter="string",
sort="string",
offset=integer,
limit=integer)
print(response)
[
"string"
]


Returns the list of task group ids matching the filter query parameter

Method GET
Route /it-automation/queries/task-groups/v1
Scope IT Automation - Tasks: READ
PEP 8 search_task_groups
filter query · string
The filter expression that should be used to limit the results
sort query · string
The sort expression that should be used to sort the results
offset query · integer
Starting index for record retrieval. Example: 100
limit query · integer
The maximum records to return. Example: 50
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.search_task_groups(filter="string",
sort="string",
offset=integer,
limit=integer)
print(response)
[
"string"
]


Returns the list of task IDs matching the filter query parameter.

Method GET
Route /it-automation/queries/tasks/v1
Scope IT Automation - Tasks: READ
PEP 8 search_tasks
filter query · string
The filter expression that should be used to limit the results
sort query · string
The sort expression that should be used to sort the results
offset query · integer
Starting index for record retrieval. Example: 100
limit query · integer
The maximum records to return. Example: 50
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.search_tasks(filter="string",
sort="string",
offset=integer,
limit=integer)
print(response)
[
"string"
]


Returns the list of user group ids matching the filter query parameter.

Method GET
Route /it-automation/queries/it-user-groups/v1
Scope IT Automation - User Groups: READ
PEP 8 search_user_groups
filter query · string
The filter expression that should be used to limit the results
sort query · string
The sort expression that should be used to sort the results
offset query · integer
Starting index for record retrieval. Example: 100
limit query · integer
The maximum records to return. Example: 50
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.search_user_groups(filter="string",
sort="string",
offset=integer,
limit=integer)
print(response)
[
"string"
]


Starts an async task execution results search.

Method POST
Route /it-automation/entities/task-execution-results-search/v1
Scope IT Automation - Task Executions: READ
PEP 8 execution_results_search
body body · dictionary
Full body payload as JSON formatted dictionary.
filter_expressions body · array
Filter expressions to limit results. Example: [“hostname:*prod*“]
group_by_fields body · array
Fields to group results by. Example: [“hostname”, “status”]
search_end body · string
End time for the search period. Example: now
search_start body · string
Start time for the search period. Example: -1d
task_execution_id body · string
Unique identifier of the task execution to search. Example: f64b95555ef54ea682619ce880d267cc
end body · string
Task end.
start body · string
Task start.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.execution_results_search(end="string",
filter_expressions=id_list,
group_by_fields=id_list,
start="string",
task_execution_id="string")
print(response)
[
{
"event_count": 0,
"is_pending": false,
"job_id": "string",
"percent_complete": 0,
"result_count": 0,
"status": "string"
}
]


Starts a new task execution from an existing task provided in the request and returns the initiated task executions

Method POST
Route /it-automation/entities/task-executions/v1
Scope IT Automation - Task Executions: WRITE
PEP 8 start_execution
body body · dictionary
Full body payload as JSON formatted dictionary.
discover_new_hosts body · boolean
Whether to discover new hosts for the scheduled task. Example: true
discover_offline_hosts body · boolean
Whether to discover offline hosts for the scheduled task. Example: true
distribute body · boolean
Whether to distribute the scheduled task. Example: true
execution_args body · object
Key-value pairs of argument values to pass to the execution. Example: {‘api_key’: ‘abc123’, ‘region’: ‘us-east-1’}
expiration_interval body · string
Duration for which the task stays active. Once expired, new and offline hosts won’t be targeted. Example: 1m
guardrails body · object
Execution guardrails and limits
scheduled_task_id body · string
Unique identifier of existing scheduled task. Scheduled task fields override all other request fields. Example: f64b95555ef54ea682619ce880d267cc
target body · string
Target filter in FQL format. Example: platform_name: ‘Windows’
task_id body · string
Unique identifier of existing saved task. Example: f64b95555ef54ea682619ce880d267cc
trigger_condition body · array
Conditions that trigger remediation scripts execution
arguments body · dictionary
Arguments to pass to the execution.
trigger_conditions body · list of dictionaries
List of task triggers.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
arguments = {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
guardrails = {
"run_time_limit_millis": 0
}
response = falcon.start_execution(arguments=arguments,
discover_new_hosts=boolean,
discover_offline_hosts=boolean,
distribute=boolean,
expiration_interval="string",
guardrails=guardrails,
target="string",
task_id="string",
trigger_conditions=[{"key": "value"}])
print(response)
[
"string"
]


Updates a new policy of the specified type.

Method PATCH
Route /it-automation/entities/policies/v1
Scope IT Automation - Policies: WRITE
PEP 8 update_policy
body body · dictionary
Full body payload as JSON formatted dictionary.
config body · object
Configuration settings for the policy
description body · string
Description of the policy.Example: windows policy check
id body · string
ID of the policy. Example: f64b95555ef54ea682619ce880d267cc
is_enabled body · boolean
Whether the policy is enabled or disabled
name body · string
Name of the policy. Example: platform_policy
enable_script_execution body · boolean
Enable or disable script execution.
enable_python_execution body · boolean
Enable or disable Python execution.
enable_os_query body · boolean
Enable or disable OS Query.
execution_timeout body · integer
Specifies the timeout value for executions.
execution_timeout_unit body · string
Execution timeout unit. Allowed values:
Available values (2)
HoursMinutes
cpu_throttle body · integer
Specifies the CPU throttle value.
cpu_scheduling body · string
Sets priority to determine the order in which a query process will run on a host’s CPU.
memory_pressure_level body · string
Sets memory pressure level to control system resource allocation during task execution.
memory_allocation body · integer
Specifies the memory allocation value.
memory_allocation_unit body · string
Memory allocation unit. Allowed values:
Available values (2)
MBGB
concurrent_host_limit body · integer
Specifies the maximum number of concurrent hosts.
concurrent_task_limit body · integer
Specifies the maximum number of concurrent tasks.
concurrent_host_file_transfer_limit body · integer
Specifies the maximum number of concurrent file transfers.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.update_policy(id="string",
name="string",
description="string",
is_enabled=boolean,
enable_script_execution=boolean,
enable_python_execution=boolean,
enable_os_query=boolean,
execution_timeout=integer,
execution_timeout_unit="string",
cpu_throttle=integer,
cpu_scheduling="string",
memory_pressure_level="string",
memory_allocation=integer,
memory_allocation_unit="string",
concurrent_host_limit=integer,
concurrent_task_limit=integer,
concurrent_host_file_transfer_limit=integer)
print(response)
[
{
"config": {},
"created_at": "string",
"created_by": "string",
"description": "string",
"host_groups": [],
"id": "string",
"is_enabled": false,
"modified_at": "string",
"modified_by": "string",
"name": "string",
"precedence": 0,
"target": "string"
}
]


Updates the policy precedence for all policies of a specific platform.

Method PATCH
Route /it-automation/entities/policies-precedence/v1
Scope IT Automation - Policies: WRITE
PEP 8 update_policies_precedence
body body · dictionary
Full body payload as JSON formatted dictionary.
ids body · array
IDs of all the policy in precedence order for a give platform.
platform query · string
The policy platform for which to set the precedence order, must be one of:
Available values (3)
WindowsLinuxMac
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.update_policies_precedence(ids=id_list, platform="string")
print(response)
[
"string"
]


Manage host groups assigned to a policy.

Method PATCH
Route /it-automation/entities/policies-host-groups/v1
Scope IT Automation - Policies: WRITE
PEP 8 update_policy_host_groups
body body · dictionary
Full body payload as JSON formatted dictionary.
action body · string
The action to perform with the provided ids, must be one of:
Available values (2)
assignunassign
host_group_ids body · array
The ids of the host groups on which to perform the action.
policy_id body · string
The id of the policy on which to perform the action.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.update_policy_host_groups(action="string",
host_group_ids=id_list,
policy_id="string")
print(response)
[
{
"config": {},
"created_at": "string",
"created_by": "string",
"description": "string",
"host_groups": [],
"id": "string",
"is_enabled": false,
"modified_at": "string",
"modified_by": "string",
"name": "string",
"precedence": 0,
"target": "string"
}
]


Update an existing scheduled task with the supplied info

Method PATCH
Route /it-automation/entities/scheduled-tasks/v1
Scope IT Automation - Task Executions: WRITE
PEP 8 update_scheduled_task
body body · dictionary
Full body payload as JSON formatted dictionary.
discover_new_hosts body · boolean
Whether to discover new hosts for the scheduled task. Example: true
discover_offline_hosts body · boolean
Whether to discover offline hosts for the scheduled task. Example: true
distribute body · boolean
Whether to distribute the scheduled task. Example: true
execution_args body · object
Additional arguments for the scheduled task
expiration_interval body · string
Duration for which the task stays active. Once expired, new and offline hosts won’t be targeted. Example: 1m
guardrails body · object
Safety limits for task execution
is_active body · boolean
Whether the scheduled task is active. Example: true
schedule body · object
Schedule details for the task execution
schedule_name body · string
Custom name for the scheduled task. Example: Weekly Security Scan
target body · string
Filter expression to select target hosts. Example: hostname:*prod*
task_id body · string
Unique identifier of the task to be scheduled. Example: f64b95555ef54ea682619ce880d267cc
trigger_condition body · array
Conditions that trigger remediation actions
id query · string
The id of the scheduled task to update
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
guardrails = {
"run_time_limit_millis": 0
}
schedule = {
"day_of_month": 0,
"days_of_week": [
"string"
],
"end_time": "2025-07-13T13:39:00.637Z",
"frequency": "One-Time",
"interval": 0,
"start_time": "2025-07-13T13:39:00.637Z",
"time": "string",
"timezone": "string"
}
trigger_condition = [
{
"groups": [
null
],
"operator": "AND",
"statements": [
{
"data_comparator": "LessThan",
"data_type": "StringType",
"key": "string",
"task_id": "string",
"value": "string"
}
]
}
]
response = falcon.update_scheduled_task(discover_new_hosts=boolean,
discover_offline_hosts=boolean,
distribute=boolean,
execution_args={},
expiration_interval="string",
guardrails=guardrails,
id="string",
is_active=boolean,
schedule=schedule,
target="string",
task_id="string",
trigger_condition=trigger_condition)
print(response)
[
{
"created_by": "string",
"created_time": "string",
"discover_new_hosts": false,
"discover_offline_hosts": false,
"distribute": false,
"execution_args": {},
"expiration_interval": "string",
"groups": [],
"guardrails": {},
"id": "string",
"is_active": false,
"is_preset": false,
"last_run": "string",
"modified_by": "string",
"modified_time": "string",
"next_run_time": "string",
"schedule": {},
"schedule_name": "string",
"target": "string",
"task_id": "string",
"task_name": "string",
"task_type": "string",
"trigger_condition": []
}
]


Update a task with details from the given request.

Method PATCH
Route /it-automation/entities/tasks/v1
Scope IT Automation - Tasks: WRITE
PEP 8 update_task
body body · dictionary
Full body payload as JSON formatted dictionary.
access_type body · string
Access type of the task
Available values (2)
PublicShared
add_assigned_user_group_ids body · array
User group IDs to add to the assigned user group IDs of the task, when access_type is Shared. Use GET /it-automation/queries/it-user-groups/v1 to fetch user group IDs
add_assigned_user_ids body · array
User IDs to add to the assigned user IDs of the task, when access_type is Shared. Use GET /user-management/queries/users/v1 to fetch user IDs
composite_query body · object
Composite query configuration containing task IDs and host attributes for multi-task execution
description body · string
Detailed description of what the task does. Example: User Table Validation Check
name body · string
Name of the task. Example: OSQuery Check
os_query body · string
OSQuery to execute. Example: select * from users
output_parser_config body · object
Specifies the columns and delimiter used to parse script execution results
queries body · object
Script queries to run per platform
remediations body · object
Remediation scripts to run per platform
remove_assigned_user_group_ids body · array
User group IDs to remove from the assigned user group IDs of the task, when access_type is Shared. Use GET /it-automation/queries/it-user-groups/v1 to fetch user group IDs
remove_assigned_user_ids body · array
User IDs to remove from the assigned user IDs of the task, when access_type is Shared. Use GET /user-management/queries/users/v1 to fetch user IDs
rows_parser_config body · object
Configuration for parsing script output into multiple rows
target body · string
Target filter in FQL format. Example: platform_name: ‘Windows’
task_group_id body · string
ID of the task group to associate this task with
task_parameters body · array
Parameters for the task
task_type body · string
Type of task
Available values (2)
queryremediation
trigger_condition body · array
Conditions that trigger remediation scripts execution
verification_condition body · array
Conditions that verify the outcome of the remediation scripts execution
id query · string
ID of the task to update. Use ITAutomationSearchTasks to fetch IDs
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
removed_assigned_user_group_ids body · string or list of strings
User group IDs to be removed.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
output_parser_config = {
"columns": [
{
"name": "string"
}
],
"default_group_by": "boolean",
"delimiter": "string"
}
queries = {
"linux": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
},
"mac": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
},
"windows": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
}
}
remediations = {
"linux": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
},
"mac": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
},
"windows": {
"action_type": "script",
"args": "string",
"content": "string",
"file_ids": [
"string"
],
"language": "bash",
"script_file_id": "string"
}
}
trigger_condition = [
{
"groups": [
null
],
"operator": "AND",
"statements": [
{
"data_comparator": "LessThan",
"data_type": "StringType",
"key": "string",
"task_id": "string",
"value": "string"
}
]
}
]
verification_condition = [
{
"groups": [
null
],
"operator": "AND",
"statements": [
{
"data_comparator": "LessThan",
"data_type": "StringType",
"key": "string",
"task_id": "string",
"value": "string"
}
]
}
]
response = falcon.update_task(access_type="string",
add_assigned_user_group_ids=id_list,
add_assigned_user_ids=id_list,
description="string",
id="string",
name="string",
os_query="string",
output_parser_config=output_parser_config,
queries=queries,
remediations=remediations,
removed_assigned_user_group_ids=id_list,
remove_assigned_user_ids=id_list,
target="string",
task_parameters=["string"],
task_group_id="string",
task_type="string",
trigger_condition=trigger_condition,
verification_condition=verification_condition)
print(response)
[
{
"access_type": "string",
"assigned_user_group_ids": [],
"assigned_user_ids": [],
"composite_query": {},
"created_by": "string",
"created_time": "string",
"description": "string",
"groups": [],
"has_task_parameters": false,
"id": "string",
"last_run_time": "string",
"modified_by": "string",
"modified_time": "string",
"name": "string",
"os_query": "string",
"output_parser_config": {},
"queries": {},
"remediations": {},
"rows_parser_config": {},
"runs": 0,
"supported_os": [],
"target": "string",
"task_parameters": [],
"task_type": "string",
"trigger_condition": [],
"verification_condition": []
}
]


Update a task group for a given id

Method PATCH
Route /it-automation/entities/task-groups/v1
Scope IT Automation - Tasks: WRITE
PEP 8 update_task_group
body body · dictionary
Full body payload as JSON formatted dictionary.
access_type body · string
Access type of the group
Available values (2)
PublicShared
add_assigned_user_group_ids body · array
User group IDs to add to the group, when access_type is Shared. Use GET /it-automation/queries/it-user-groups/v1 to fetch user group IDs
add_assigned_user_ids body · array
User IDs to add to the group, when access_type is Shared. Use GET /user-management/queries/users/v1 to fetch user IDs
add_task_ids body · array
IDs of existing tasks to add to task group. Get task ids via GET /it-automation/queries/task-groups/v1
description body · string
Description of the task group
name body · string
Name of the task group
remove_assigned_user_group_ids body · array
User group IDs to remove from the group, when access_type is Shared. Use GET /it-automation/queries/it-user-groups/v1 to fetch user group IDs
remove_assigned_user_ids body · array
User IDs to remove from the group, when access_type is Shared. Use GET /user-management/queries/users/v1 to fetch user IDs
remove_task_ids body · array
IDs of existing tasks to remove from task group. Get task ids via GET /it-automation/queries/task-groups/v1
id query · string
The id of the task group to update
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
removed_assigned_user_group_ids body · string or list of strings
User group IDs to be removed.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.update_task_group(access_type="string",
add_assigned_user_group_ids=id_list,
add_assigned_user_ids=id_list,
add_task_ids=id_list,
description="string",
id="string",
name="string",
removed_assigned_user_group_ids=id_list,
remove_assigned_user_ids=id_list,
remove_task_ids=id_list)
print(response)
[
{
"access_type": "string",
"assigned_user_group_ids": [],
"assigned_user_ids": [],
"created_by": "string",
"created_time": "string",
"description": "string",
"id": "string",
"is_preset": false,
"modified_by": "string",
"modified_time": "string",
"name": "string",
"supported_os": [],
"task_ids": []
}
]


Update a user group for a given id

Method PATCH
Route /it-automation/entities/it-user-groups/v1
Scope IT Automation - User Groups: WRITE
PEP 8 update_user_group
body body · dictionary
Full body payload as JSON formatted dictionary.
add_user_ids body · array
IDs of the users being added to the user group
description body · string
Description of the user group
name body · string
Name of the user group
remove_user_ids body · array
IDs of the users being removed from the user group
id query · string
The id of the user groups to update
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import ITAutomation
falcon = ITAutomation(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.update_user_group(add_user_ids=id_list,
description="string",
name="string",
id="string",
remove_user_ids=id_list)
print(response)
[
{
"created_by": "string",
"created_time": "string",
"description": "string",
"id": "string",
"modified_by": "string",
"modified_time": "string",
"name": "string",
"task_group_ids": [],
"task_ids": [],
"users": []
}
]