IT Automation - CrowdStrike/falconpy GitHub Wiki

CrowdStrike Falcon CrowdStrike Subreddit

Using the IT Automation service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation ID Description
ITAutomationGetAssociatedTasks
PEP8 get_associated_tasks
Retrieve tasks associated with the provided file ID
ITAutomationCombinedScheduledTasks
PEP8 combined_scheduled_tasks
Returns full details of scheduled tasks matching the filter query parameter
ITAutomationRunLiveQuery
PEP8 run_live_query
Run a live query
ITAutomationGetPolicies
PEP8 get_policies
Retrieve policies
ITAutomationCreatePolicy
PEP8 create_policy
Create a policy
ITAutomationUpdatePolicies
PEP8 update_policies
Update policies
ITAutomationDeletePolicy
PEP8 delete_policy
Delete a policy
ITAutomationGetScheduledTasks
PEP8 get_scheduled_tasks
Retrieve scheduled tasks
ITAutomationCreateScheduledTask
PEP8 create_scheduled_task
Create a scheduled task
ITAutomationUpdateScheduledTask
PEP8 update_scheduled_task
Update a scheduled task
ITAutomationDeleteScheduledTasks
PEP8 delete_scheduled_tasks
Delete scheduled tasks
ITAutomationGetTaskExecution
PEP8 get_task_execution
Retrieve a task execution
ITAutomationStartTaskExecution
PEP8 start_task_execution
Start a task execution
ITAutomationCancelTaskExecution
PEP8 cancel_task_execution
Cancel a task execution
ITAutomationRerunTaskExecution
PEP8 rerun_task_execution
Rerun a task execution
ITAutomationGetTaskExecutionHostStatus
PEP8 get_task_execution_host_status
Retrieve task execution host status
ITAutomationGetExecutionResultsSearchStatus
PEP8 get_execution_results_search_status
Retrieve execution results search status
ITAutomationStartExecutionResultsSearch
PEP8 start_execution_results_search
Start an execution results search
ITAutomationGetExecutionResults
PEP8 get_execution_results
Retrieve execution results
ITAutomationGetTaskExecutionsByQuery
PEP8 get_task_executions_by_query
Retrieve task executions by query
ITAutomationGetTaskGroupsByQuery
PEP8 get_task_groups_by_query
Retrieve task groups by query
ITAutomationGetTasksByQuery
PEP8 get_tasks_by_query
Retrieve tasks by query
ITAutomationUpdatePolicyHostGroups
PEP8 update_policy_host_groups
Update policy host groups
ITAutomationUpdatePoliciesPrecedence
PEP8 update_policies_precedence
Update policies precedence
ITAutomationGetTaskGroups
PEP8 get_task_groups
Retrieve task groups
ITAutomationCreateTaskGroup
PEP8 create_task_group
Create a task group
ITAutomationUpdateTaskGroup
PEP8 update_task_group
Update a task group
ITAutomationDeleteTaskGroups
PEP8 delete_task_groups
Delete task groups
ITAutomationGetTasks
PEP8 get_tasks
Retrieve tasks
ITAutomationCreateTask
PEP8 create_task
Create a task
ITAutomationUpdateTask
PEP8 update_task
Update a task
ITAutomationDeleteTask
PEP8 delete_task
Delete a task
ITAutomationQueryPolicies
PEP8 query_policies
Query policies
ITAutomationSearchScheduledTasks
PEP8 search_scheduled_tasks
Search scheduled tasks
ITAutomationSearchTaskExecutions
PEP8 search_task_executions
Search task executions
ITAutomationSearchTaskGroups
PEP8 search_task_groups
Search task groups
ITAutomationSearchTasks
PEP8 search_tasks
Search tasks

Passing credentials

WARNING

client_id and client_secret are keyword arguments that contain your CrowdStrike API credentials. Please note that all examples below do not hard code these values. (These values are ingested as strings.)

CrowdStrike does not recommend hard coding API credentials or customer identifiers within source code.

ITAutomationGetAssociatedTasks

Retrieve tasks associated with the provided file ID

PEP8 method name

get_associated_tasks

Endpoint

Method Route
GET /it-automation/combined/associated-tasks/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
id Service Class Support Uber Class Support query string The ID of the file to fetch associated tasks for
filter Service Class Support Uber Class Support query string The filter expression that should be used to limit the results
sort Service Class Support Uber Class Support query string The sort expression that should be used to sort the results
offset Service Class Support Uber Class Support query integer Starting index for record retrieval
limit Service Class Support Uber Class Support query integer The maximum records to return
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
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)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationGetAssociatedTasks(id="string",
                                                 filter="string",
                                                 sort="string",
                                                 offset=integer,
                                                 limit=integer
                                                 )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationGetAssociatedTasks",
                           id="string",
                           filter="string",
                           sort="string",
                           offset=integer,
                           limit=integer
                           )
print(response)

ITAutomationCombinedScheduledTasks

Returns full details of scheduled tasks matching the filter query parameter

PEP8 method name

combined_scheduled_tasks

Endpoint

Method Route
GET /it-automation/combined/scheduled-tasks/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
filter Service Class Support Uber Class Support query string The filter expression that should be used to limit the results
sort Service Class Support Uber Class Support query string The sort expression that should be used to sort the results
offset Service Class Support Uber Class Support query integer Starting index for record retrieval
limit Service Class Support Uber Class Support query integer The maximum records to return
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.combined_scheduled_tasks(filter="string",
                                           sort="string",
                                           offset=integer,
                                           limit=integer
                                           )
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationCombinedScheduledTasks(filter="string",
                                                     sort="string",
                                                     offset=integer,
                                                     limit=integer
                                                     )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationCombinedScheduledTasks",
                           filter="string",
                           sort="string",
                           offset=integer,
                           limit=integer
                           )
print(response)

ITAutomationRunLiveQuery

Start a new task execution from the provided query data in the request and return the initiated task executions

PEP8 method name

run_live_query

Endpoint

Method Route
POST /it-automation/entities/live-query/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
body Service Class Support Uber Class Support body dictionary Full body payload provided as a dictionary
discover_new_hosts Service Class Support Uber Class Support body boolean Flag indicating if this task can discover new hosts
discover_offline_hosts Service Class Support Uber Class Support body boolean Flag indicating if this task can discover offline hosts
distribute Service Class Support Uber Class Support body boolean Flag indicating if this task is distributed
expiration_interval Service Class Support Uber Class Support body string Task expiration interval
guardrails Service Class Support Uber Class Support body dictionary Task guardrails (limiters)
osquery Service Class Support Uber Class Support body string OS Query content
output_parser_config Service Class Support Uber Class Support body dictionary Output parser configuration
queries Service Class Support Uber Class Support body dictionary Queries to perform
target Service Class Support Uber Class Support body string Execution target
parameters Service Class Support Uber Class Support body dictionary Full body payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.run_live_query(discover_new_hosts=boolean,
                                 discover_offline_hosts=boolean,
                                 distribute=boolean,
                                 expiration_interval="string",
                                 guardrails={"key":"value"},
                                 osquery="string",
                                 output_parser_config={"key":"value"},
                                 queries={"key":"value"},
                                 target="string"
                                 )
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationRunLiveQuery(discover_new_hosts=boolean,
                                           discover_offline_hosts=boolean,
                                           distribute=boolean,
                                           expiration_interval="string",
                                           guardrails={"key":"value"},
                                           osquery="string",
                                           output_parser_config={"key":"value"},
                                           queries={"key":"value"},
                                           target="string"
                                           )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "discover_new_hosts": boolean,
    "discover_offline_hosts": boolean,
    "distribute": boolean,
    "expiration_interval": "string",
    "guardrails": {
        "run_time_limit_millis": integer
    },
    "osquery": "string",
    "output_parser_config": {
        "columns": [
            {
                "name": "string"
            }
        ],
        "default_group_by": boolean,
        "delimiter": "string"
    },
    "queries": {
        "linux": {
            "action_type": "string",
            "args": "string",
            "content": "string",
            "file_ids": ["string"],
            "language": "string",
            "script_file_id": "string"
        },
        "mac": {
            "action_type": "string",
            "args": "string",
            "content": "string",
            "file_ids": ["string"],
            "language": "string",
            "script_file_id": "string"
        },
        "windows": {
            "action_type": "string",
            "args": "string",
            "content": "string",
            "file_ids": ["string"],
            "language": "string",
            "script_file_id": "string"
        }
    },
    "target": "string"
}

response = falcon.command("ITAutomationRunLiveQuery", body=body)
print(response)

ITAutomationGetTaskExecutionsByQuery

Retrieve task executions by query

PEP8 method name

get_task_executions_by_query

Endpoint

Method Route
GET /it-automation/queries/task-executions/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
filter Service Class Support Uber Class Support query string The filter expression that should be used to limit the results
sort Service Class Support Uber Class Support query string The sort expression that should be used to sort the results
offset Service Class Support Uber Class Support query integer Starting index for record retrieval
limit Service Class Support Uber Class Support query integer The maximum records to return
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.get_task_executions_by_query(filter="string",
                                               sort="string",
                                               offset=integer,
                                               limit=integer
                                               )
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationGetTaskExecutionsByQuery(filter="string",
                                                       sort="string",
                                                       offset=integer,
                                                       limit=integer
                                                       )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationGetTaskExecutionsByQuery",
                           filter="string",
                           sort="string",
                           offset=integer,
                           limit=integer
                           )
print(response)

ITAutomationGetTaskGroupsByQuery

Retrieve task groups by query

PEP8 method name

get_task_groups_by_query

Endpoint

Method Route
GET /it-automation/queries/task-groups/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
filter Service Class Support Uber Class Support query string The filter expression that should be used to limit the results
sort Service Class Support Uber Class Support query string The sort expression that should be used to sort the results
offset Service Class Support Uber Class Support query integer Starting index for record retrieval
limit Service Class Support Uber Class Support query integer The maximum records to return
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
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)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationGetTaskGroupsByQuery(filter="string",
                                                   sort="string",
                                                   offset=integer,
                                                   limit=integer
                                                   )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationGetTaskGroupsByQuery",
                           filter="string",
                           sort="string",
                           offset=integer,
                           limit=integer
                           )
print(response)

ITAutomationGetTasksByQuery

Retrieve tasks by query

PEP8 method name

get_tasks_by_query

Endpoint

Method Route
GET /it-automation/queries/tasks/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
filter Service Class Support Uber Class Support query string The filter expression that should be used to limit the results
sort Service Class Support Uber Class Support query string The sort expression that should be used to sort the results
offset Service Class Support Uber Class Support query integer Starting index for record retrieval
limit Service Class Support Uber Class Support query integer The maximum records to return
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
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)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationGetTasksByQuery(filter="string",
                                              sort="string",
                                              offset=integer,
                                              limit=integer
                                              )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationGetTasksByQuery",
                           filter="string",
                           sort="string",
                           offset=integer,
                           limit=integer
                           )
print(response)

ITAutomationGetPolicies

Retrieve policies

PEP8 method name

get_policies

Endpoint

Method Route
GET /it-automation/entities/policies/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
ids Service Class Support Uber Class Support query string or list of strings One or more policy IDs
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.get_policies(ids="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationGetPolicies(ids="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationGetPolicies", ids="string")
print(response)

ITAutomationCreatePolicy

Create a new policy of the specified type

New policies are always added at the end of the precedence list for the provided policy type.

PEP8 method name

create_policy

Endpoint

Method Route
POST /it-automation/entities/policies/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
body Service Class Support Uber Class Support body dictionary Full body payload provided as a dictionary. Not required if using other keywords
name Service Class Support Uber Class Support body string Policy name. Max: 100 characters
description Service Class Support Uber Class Support body string Policy description. Max: 500 characters
platform Service Class Support Uber Class Support body string Execution host platform. Allowed values: Windows, Linux, Mac
enable_script_execution Service Class Support Uber Class Support body boolean Enable or disable script execution
enable_python_execution Service Class Support Uber Class Support body boolean Enable or disable Python execution
enable_os_query Service Class Support Uber Class Support body boolean Enable or disable OS Query
execution_timeout Service Class Support Uber Class Support body integer Specifies the timeout value for executions
execution_timeout_unit Service Class Support Uber Class Support body string Execution timeout unit. Allowed values: Hours, Minutes
cpu_throttle Service Class Support Uber Class Support body integer Specifies the CPU throttle value
cpu_scheduling Service Class Support Uber Class Support body string Sets priority to determine the order in which a query process will run on a host's CPU
memory_pressure_level Service Class Support Uber Class Support body string Sets memory pressure level to control system resource allocation during task execution
memory_allocation Service Class Support Uber Class Support body integer Specifies the memory allocation value
memory_allocation_unit Service Class Support Uber Class Support body string Memory allocation unit. Allowed values: MB, GB
concurrent_host_limit Service Class Support Uber Class Support body integer Specifies the maximum number of concurrent hosts
concurrent_task_limit Service Class Support Uber Class Support body integer Specifies the maximum number of concurrent tasks
concurrent_host_file_transfer_limit Service Class Support Uber Class Support body integer Specifies the maximum number of concurrent file transfers
parameters Service Class Support Uber Class Support body dictionary Full body payload in JSON format

Usage

Service class example (PEP8 syntax)
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)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationCreatePolicy(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)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "config": {
        "concurrency": {
            "concurrent_host_file_transfer_limit": 3,
            "concurrent_host_limit": 8,
            "concurrent_task_limit": 2
        },
        "execution": {
            "enable_os_query": False,
            "enable_python_execution": True,
            "enable_script_execution": True,
            "execution_timeout": 60,
            "execution_timeout_unit": "Minutes"
        },
        "resources": {
            "cpu_scheduling": "Low",
            "cpu_throttle": 25,
            "memory_allocation": 2,
            "memory_allocation_unit": "GB",
            "memory_pressure_level": "High"
        }
    },
    "description": "string",
    "name": "string",
    "platform": "string"
}

response = falcon.command("ITAutomationCreatePolicy", body=body)
print(response)

ITAutomationUpdatePolicies

Update a new policy of the specified type

PEP8 method name

update_policies

Endpoint

Method Route
PATCH /it-automation/entities/policies/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
body Service Class Support Uber Class Support body dictionary Full body payload provided as a dictionary. Not required if using other keywords
id Service Class Support Uber Class Support body string A valid policy ID representing the policy to be updated. Required
name Service Class Support Uber Class Support body string Policy name. Max: 100 characters
description Service Class Support Uber Class Support body string Policy description. Max: 500 characters
is_enabled Service Class Support Uber Class Support body boolean Flag controlling whether the policy is active
enable_script_execution Service Class Support Uber Class Support body boolean Enable or disable script execution
enable_python_execution Service Class Support Uber Class Support body boolean Enable or disable Python execution
enable_os_query Service Class Support Uber Class Support body boolean Enable or disable OS Query
execution_timeout Service Class Support Uber Class Support body integer Specifies the timeout value for executions
execution_timeout_unit Service Class Support Uber Class Support body string Execution timeout unit. Allowed values: Hours, Minutes
cpu_throttle Service Class Support Uber Class Support body integer Specifies the CPU throttle value
cpu_scheduling Service Class Support Uber Class Support body string Sets priority to determine the order in which a query process will run on a host's CPU
memory_pressure_level Service Class Support Uber Class Support body string Sets memory pressure level to control system resource allocation during task execution
memory_allocation Service Class Support Uber Class Support body integer Specifies the memory allocation value
memory_allocation_unit Service Class Support Uber Class Support body string Memory allocation unit. Allowed values: MB, GB
concurrent_host_limit Service Class Support Uber Class Support body integer Specifies the maximum number of concurrent hosts
concurrent_task_limit Service Class Support Uber Class Support body integer Specifies the maximum number of concurrent tasks
concurrent_host_file_transfer_limit Service Class Support Uber Class Support body integer Specifies the maximum number of concurrent file transfers
parameters Service Class Support Uber Class Support body dictionary Full body payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.update_policies(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)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationUpdatePolicies(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)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "config": {
        "concurrency": {
            "concurrent_host_file_transfer_limit": integer,
            "concurrent_host_limit": integer,
            "concurrent_task_limit": integer
        },
        "execution": {
            "enable_os_query": boolean,
            "enable_python_execution": boolean,
            "enable_script_execution": boolean,
            "execution_timeout": integer,
            "execution_timeout_unit": "string"
        },
        "resources": {
            "cpu_scheduling": "string",
            "cpu_throttle": integer,
            "memory_allocation": integer,
            "memory_allocation_unit": "string",
            "memory_pressure_level": "string"
        }
    },
    "id": "string",
    "is_enabled": boolean,
    "name": "string",
    "description": "string"
}

response = falcon.command("ITAutomationUpdatePolicies", body=body)
print(response)

ITAutomationDeletePolicy

Delete a policy

PEP8 method name

delete_policy

Endpoint

Method Route
DELETE /it-automation/entities/policies/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
ids Service Class Support Uber Class Support query string or list of strings One or more policy IDs to delete
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.delete_policy(ids="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationDeletePolicy(ids="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationDeletePolicy", ids="string")
print(response)

ITAutomationUpdatePolicyHostGroups

Update policy host groups

PEP8 method name

update_policy_host_groups

Endpoint

Method Route
PATCH /it-automation/entities/policies/host-groups/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
body Service Class Support Uber Class Support body dictionary Full body payload in JSON format
policy_id Service Class Support Uber Class Support body string Policy ID
host_group_ids Service Class Support Uber Class Support body array List of host group IDs
action Service Class Support Uber Class Support body string Action to perform
parameters Service Class Support Uber Class Support body dictionary Full body payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.update_policy_host_groups(policy_id="string",
                                            host_group_ids=["string"],
                                            action="string"
                                            )
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationUpdatePolicyHostGroups(policy_id="string",
                                                     host_group_ids=["string"],
                                                     action="string"
                                                     )

print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body =  {
            "action": "string",
            "host_group_ids": [
                "string"
            ],
            "policy_id": "string"
        }

response = falcon.command("ITAutomationUpdatePolicyHostGroups", body=body)
print(response)

ITAutomationUpdatePoliciesPrecedence

Update policies precedence

PEP8 method name

update_policies_precedence

Endpoint

Method Route
PATCH /it-automation/entities/policies/precedence/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
body Service Class Support Uber Class Support body dictionary Full body payload in JSON format
ids Service Class Support Uber Class Support body array List of policy IDs in precedence order
parameters Service Class Support Uber Class Support body dictionary Full body payload in JSON format
platform Service Class Support Uber Class Support body string The policy platform for which to set the precedence order

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.update_policies_precedence(ids=["string"],
                                             platform="string"
                                             )

print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationUpdatePoliciesPrecedence(ids=["string"],
                                                       platform="string"
                                                       )

print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "ids": ["string"],
    "platform": "string
}

response = falcon.command("ITAutomationUpdatePoliciesPrecedence", body=body)
print(response)

ITAutomationGetScheduledTasks

Retrieve scheduled tasks

PEP8 method name

get_scheduled_tasks

Endpoint

Method Route
GET /it-automation/entities/scheduled-tasks/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
ids Service Class Support Uber Class Support query string or list of strings One or more scheduled task IDs
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.get_scheduled_tasks(ids="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationGetScheduledTasks(ids="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationGetScheduledTasks", ids="string")
print(response)

ITAutomationCreateScheduledTask

Create a scheduled task from the given request

PEP8 method name

create_scheduled_task

Endpoint

Method Route
POST /it-automation/entities/scheduled-tasks/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
body Service Class Support Uber Class Support body dictionary Full body payload provided as a dictionary
arguments Service Class Support Uber Class Support body dictionary Arguments to provide to the task when executed
discover_new_hosts Service Class Support Uber Class Support body boolean Allow the task to discover new hosts
discover_offline_hosts Service Class Support Uber Class Support body boolean Allow the task to discover offline hosts
distribute Service Class Support Uber Class Support body boolean Distribute the task
expiration_interval Service Class Support Uber Class Support body string Task expiration interval
guardrails Service Class Support Uber Class Support body dictionary Task execution guardrails (limiters)
id Service Class Support Uber Class Support body string The id of the scheduled task to update
is_active Service Class Support Uber Class Support body boolean Flag indicating if the task is active
schedule Service Class Support Uber Class Support body dictionary Task schedule
target Service Class Support Uber Class Support body string Task target
task_id Service Class Support Uber Class Support body string Task ID
trigger_condition Service Class Support Uber Class Support body list of dictionaries Task trigger conditions
parameters Service Class Support Uber Class Support body dictionary Full parameters payload dictionary. Not required if using other keywords

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.create_scheduled_task(arguments=dict,
                                        discover_new_hosts=boolean,
                                        discover_offline_hosts=boolean,
                                        distribute=boolean,
                                        expiration_interval="string",
                                        guardrails=dict,
                                        is_active=boolean,
                                        schedule=dict,
                                        target="string",
                                        task_id="string",
                                        trigger_conditions=list
                                        )
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationCreateScheduledTask(arguments=dict,
                                                  discover_new_hosts=boolean,
                                                  discover_offline_hosts=boolean,
                                                  distribute=boolean,
                                                  expiration_interval="string",
                                                  guardrails=dict,
                                                  is_active=boolean,
                                                  schedule=dict,
                                                  target="string",
                                                  task_id="string",
                                                  trigger_conditions=list
                                                  )

print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "arguments": {
        "additionalProp1": "string",
        "additionalProp2": "string",
        "additionalProp3": "string"
    },
    "discover_new_hosts": boolean,
    "discover_offline_hosts": boolean,
    "distribute": boolean,
    "expiration_interval": "string",
    "guardrails": {
        "run_time_limit_millis": integer
    },
    "is_active": boolean,
    "schedule": {
        "day_of_month": integer,
        "days_of_week": ["string"],
        "end_time": "string",
        "frequency": "string",
        "interval": integer,
        "start_time": "string",
        "time": "string",
        "timezone": "string"
    },
    "target": "string",
    "task_id": "string",
    "trigger_condition": [
        {
            "groups": [null],
            "operator": "string",
            "statements": [
                {
                    "data_comparator": "string",
                    "data_type": "string",
                    "key": "string",
                    "task_id": "string",
                    "value": "string"
                }
            ]
        }
    ]
}

response = falcon.command("ITAutomationCreateScheduledTask", body=body)
print(response)

ITAutomationUpdateScheduledTask

Update an existing scheduled task with the supplied info

PEP8 method name

update_scheduled_task

Endpoint

Method Route
PATCH /it-automation/entities/scheduled-tasks/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
body Service Class Support Uber Class Support body dictionary Full body payload provided as a dictionary. Not required if using other keywords
discover_new_hosts Service Class Support Uber Class Support body boolean Allow the task to discover new hosts
discover_offline_hosts Service Class Support Uber Class Support body boolean Allow the task to discover offline hosts
distribute Service Class Support Uber Class Support body boolean Distribute the task
execution_args Service Class Support Uber Class Support body dictionary Arguments to provide to the task when executed
expiration_interval Service Class Support Uber Class Support body string Task expiration interval
guardrails Service Class Support Uber Class Support body dictionary Task execution guardrails (limiters)
id Service Class Support Uber Class Support body string The id of the scheduled task to update
is_active Service Class Support Uber Class Support body boolean Flag indicating if the task is active
parameters Service Class Support Uber Class Support body dictionary Full parameters payload dictionary. Not required if using other keywords
schedule Service Class Support Uber Class Support body dictionary Task schedule
target Service Class Support Uber Class Support body string Task target
task_id Service Class Support Uber Class Support body string Task ID
trigger_condition Service Class Support Uber Class Support body list of dictionaries Task trigger conditions

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.update_scheduled_task(id="string",
                                        execution_args=dict,
                                        discover_new_hosts=boolean,
                                        discover_offline_hosts=boolean,
                                        distribute=boolean,
                                        expiration_interval="string",
                                        guardrails=dict,
                                        is_active=boolean,
                                        schedule=dict,
                                        target="string",
                                        task_id="string",
                                        trigger_conditions=list
                                        )

print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationUpdateScheduledTask(id="string",
                                                  execution_args=dict,
                                                  discover_new_hosts=boolean,
                                                  discover_offline_hosts=boolean,
                                                  distribute=boolean,
                                                  expiration_interval="string",
                                                  guardrails=dict,
                                                  is_active=boolean,
                                                  schedule=dict,
                                                  target="string",
                                                  task_id="string",
                                                  trigger_conditions=list
                                                  )

print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "id": "string",
    "discover_new_hosts": boolean,
    "discover_offline_hosts": boolean,
    "distribute": boolean,
    "execution_args": {
        "additionalProp1": "string",
        "additionalProp2": "string",
        "additionalProp3": "string"
    },
    "expiration_interval": "string",
    "guardrails": {
        "run_time_limit_millis": integer
    },
    "is_active": boolean,
    "schedule": {
        "day_of_month": integer,
        "days_of_week": ["string"],
        "end_time": "string",
        "frequency": "string",
        "interval": integer,
        "start_time": "string",
        "time": "string",
        "timezone": "string"
    },
    "target": "string",
    "task_id": "string",
    "trigger_condition": [
        {
            "groups": [null],
            "operator": "string",
            "statements": [
                {
                    "data_comparator": "string",
                    "data_type": "string",
                    "key": "string",
                    "task_id": "string",
                    "value": "string"
                }
            ]
        }
    ]
}

response = falcon.command("ITAutomationUpdateScheduledTask", body=body)
print(response)

ITAutomationDeleteScheduledTasks

Delete scheduled tasks

PEP8 method name

delete_scheduled_tasks

Endpoint

Method Route
DELETE /it-automation/entities/scheduled-tasks/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
ids Service Class Support Uber Class Support query string or list of strings One or more scheduled task IDs to delete
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.delete_scheduled_tasks(ids="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationDeleteScheduledTasks(ids="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationDeleteScheduledTasks", ids="string")
print(response)

ITAutomationCancelTaskExecution

Cancel a task execution

PEP8 method name

cancel_task_execution

Endpoint

Method Route
POST /it-automation/entities/task-executions/{id}/cancel/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
body Service Class Support Uber Class Support body dictionary Full body payload in JSON format
task_execution_id Service Class Support Uber Class Support path string Task execution ID

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.cancel_task_execution(task_execution_id="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationCancelTaskExecution(task_execution_id="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
        "id"="string"
       }

response = falcon.command("ITAutomationCancelTaskExecution", body=body)
print(response)

ITAutomationGetTaskExecutionHostStatus

Retrieve task execution host status

PEP8 method name

get_task_execution_host_status

Endpoint

Method Route
GET /it-automation/entities/task-executions/{id}/host-status/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
ids Service Class Support Uber Class Support path string or list Task execution ID
filter Service Class Support Uber Class Support query string The filter expression that should be used to limit the results
sort Service Class Support Uber Class Support query string The sort expression that should be used to sort the results
offset Service Class Support Uber Class Support query integer Starting index for record retrieval
limit Service Class Support Uber Class Support query integer The maximum records to return
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.get_task_execution_host_status(id="string",
                                                 filter="string",
                                                 sort="string",
                                                 offset=integer,
                                                 limit=integer
                                                 )
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationGetTaskExecutionHostStatus(id="string",
                                                         filter="string",
                                                         sort="string",
                                                         offset=integer,
                                                         limit=integer
                                                         )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationGetTaskExecutionHostStatus",
                           id="string",
                           filter="string",
                           sort="string",
                           offset=integer,
                           limit=integer
                           )
print(response)

ITAutomationRerunTaskExecution

Rerun the task execution specified in the request

PEP8 method name

rerun_task_execution

Endpoint

Method Route
POST /it-automation/entities/task-executions/{id}/rerun/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
body Service Class Support Uber Class Support body dictionary Full body payload provided as a dictionary. Not required if using other keywords
run_type Service Class Support Uber Class Support body string Task run type
task_execution_id Service Class Support Uber Class Support body string Task execution ID
parameters Service Class Support Uber Class Support body dictionary Full body payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.rerun_task_execution(run_type="string",
                                       task_execution_id="string"
                                       )

print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationRerunTaskExecution(run_type="string",
                                                 task_execution_id="string"
                                                 )

print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "run_type": "string",
    "task_execution_id": "string"
}

response = falcon.command("ITAutomationRerunTaskExecution", body=body)
print(response)

ITAutomationGetExecutionResultsSearchStatus

Retrieve execution results search status

PEP8 method name

get_execution_results_search_status

Endpoint

Method Route
GET /it-automation/entities/execution-results/search-status/{id}/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
id Service Class Support Uber Class Support path string Search ID
parameters Service Class Support Uber Class Support path dictionary Full path parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
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)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationGetExecutionResultsSearchStatus(id="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationGetExecutionResultsSearchStatus", id="string")
print(response)

ITAutomationStartExecutionResultsSearch

Start an asynchronous task execution results search

Poll ITAutomationGetExecutionResultsSearchStatus to determine when the search is complete.

PEP8 method name

execution_results_search

Endpoint

Method Route
POST /it-automation/entities/execution-results/search/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
body Service Class Support Uber Class Support body dictionary Full body payload provided as a dictionary. Not required if using other keywords
end Service Class Support Uber Class Support body string Task end
filter_expressions Service Class Support Uber Class Support body string or list of strings Filter expressions to apply
group_by_fields Service Class Support Uber Class Support body string or list of strings Fields to use to group results
start Service Class Support Uber Class Support body string Task start
task_execution_id Service Class Support Uber Class Support body string Task execution ID
parameters Service Class Support Uber Class Support body dictionary Full body payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.execution_results_search(end="string",
                                           filter_expressions=list,
                                           group_by_fields=list,
                                           start="string",
                                           task_execution_id="string"
                                           )

print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationStartExecutionResultsSearch(end="string",
                                                          filter_expressions=list,
                                                          group_by_fields=list,
                                                          start="string",
                                                          task_execution_id="string"
                                                          )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "end": "string",
    "filter_expressions": [
        "string"
    ],
    "group_by_fields": [
        "string"
    ],
    "start": "string",
    "task_execution_id": "string"
}

response = falcon.command("ITAutomationStartExecutionResultsSearch", body=body)
print(response)

ITAutomationGetExecutionResults

Retrieve execution results

PEP8 method name

get_execution_results

Endpoint

Method Route
GET /it-automation/entities/execution-results/{id}/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
id Service Class Support Uber Class Support path string Search ID
offset Service Class Support Uber Class Support query integer Starting index for record retrieval
limit Service Class Support Uber Class Support query integer The maximum records to return
sort Service Class Support Uber Class Support query string Sort results by one of the fields in the event results, either asc (ascending) or desc (descending)
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
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)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationGetExecutionResults(id="string",
                                                  offset=integer,
                                                  limit=integer,
                                                  sort="string"
                                                  )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationGetExecutionResults",
                           id="string",
                           offset=integer,
                           limit=integer,
                           sort="string"
                           )
print(response)

ITAutomationGetTaskExecution

Retrieve a task execution

PEP8 method name

get_task_execution

Endpoint

Method Route
GET /it-automation/entities/task-executions/{id}/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
id Service Class Support Uber Class Support path string Task execution ID
parameters Service Class Support Uber Class Support path dictionary Full path parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.get_task_execution(id="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationGetTaskExecution(id="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationGetTaskExecution", id="string")
print(response)

ITAutomationStartTaskExecution

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

PEP8 method name

start_task_execution

Endpoint

Method Route
POST /it-automation/entities/task-executions/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
arguments Service Class Support Uber Class Support body dictionary Arguments to pass to the execution
body Service Class Support Uber Class Support body dictionary Full body payload provided as a dictionary. Not required if using other keywords
discover_new_hosts Service Class Support Uber Class Support body boolean Allow the task execution to discover new hosts
discover_offline_hosts Service Class Support Uber Class Support body boolean Allow the task execution to discover offline hosts
distribute Service Class Support Uber Class Support body boolean Distribute this task
expiration_interval Service Class Support Uber Class Support body string Task expiration interval
guardrails Service Class Support Uber Class Support body dictionary Task execution guardrails (limiters)
target Service Class Support Uber Class Support body string Task target
task_id Service Class Support Uber Class Support body string Task ID
trigger_conditions Service Class Support Uber Class Support body list of dictionaries List of task triggers
parameters Service Class Support Uber Class Support body dictionary Full body payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.start_task_execution(arguments=dict,
                                       discover_new_hosts=boolean,
                                       discover_offline_hosts=boolean,
                                       distribute=boolean,
                                       expiration_interval="string",
                                       guardrails=dict,
                                       is_active=boolean,
                                       schedule=dict,
                                       target="string",
                                       task_id="string",
                                       trigger_conditions=list
                                       )
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationStartTaskExecution(arguments=dict,
                                                 discover_new_hosts=boolean,
                                                 discover_offline_hosts=boolean,
                                                 distribute=boolean,
                                                 expiration_interval="string",
                                                 guardrails=dict,
                                                 is_active=boolean,
                                                 schedule=dict,
                                                 target="string",
                                                 task_id="string",
                                                 trigger_conditions=list
                                                 )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "arguments": {
        "additionalProp1": "string",
        "additionalProp2": "string",
        "additionalProp3": "string"
    },
    "discover_new_hosts": boolean,
    "discover_offline_hosts": boolean,
    "distribute": boolean,
    "expiration_interval": "string",
    "guardrails": {
        "run_time_limit_millis": integer
    },
    "target": "string",
    "task_id": "string",
    "trigger_condition": [
        {
            "groups": [
                null
            ],
            "operator": "string",
            "statements": [
                {
                    "data_comparator": "string",
                    "data_type": "string",
                    "key": "string",
                    "task_id": "string",
                    "value": "string"
                }
            ]
        }
    ]
}

response = falcon.command("ITAutomationStartTaskExecution", body=body)
print(response)

ITAutomationGetTaskGroups

Retrieve task groups

PEP8 method name

get_task_groups

Endpoint

Method Route
GET /it-automation/entities/task-groups/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
ids Service Class Support Uber Class Support query string or list of strings One or more task group IDs
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.get_task_groups(ids="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationGetTaskGroups(ids="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationGetTaskGroups", ids="string")
print(response)

ITAutomationCreateTaskGroup

Create a task group

PEP8 method name

create_task_group

Endpoint

Method Route
POST /it-automation/entities/task-groups/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
body Service Class Support Uber Class Support body dictionary Full body payload in JSON format
name Service Class Support Uber Class Support body string Task group name
description Service Class Support Uber Class Support body string Task group description
task_ids Service Class Support Uber Class Support body string Task IDs to add to the group. String or list of strings.

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "name": "string",
    "description": "string",
    "task_ids":"string
}

response = falcon.create_task_group(name="string",
                                    description="string",
                                    task_ids="string"
                                    )
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )


response = falcon.ITAutomationCreateTaskGroup(name="string",
                                              description="string",
                                              task_ids="string"
                                              )

print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
            "access_type": "Public",
            "assigned_user_group_ids": [
                "string"
            ],
            "assigned_user_ids": [
                "string"
            ],
            "description": "string",
            "name": "string",
            "task_ids": [
                "string"
            ]
        }

response = falcon.command("ITAutomationCreateTaskGroup", body=body)
print(response)

ITAutomationUpdateTaskGroup

Update a task group for a given ID

PEP8 method name

update_task_group

Endpoint

Method Route
PATCH /it-automation/entities/task-groups/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
access_type Service Class Support Uber Class Support body string Task group access type
add_assigned_user_group_ids Service Class Support Uber Class Support body string or list of strings User group IDs to add
add_assigned_user_ids Service Class Support Uber Class Support body string or list of strings User IDs to add
add_task_ids Service Class Support Uber Class Support body string or list of strings Task IDs to add to the group
body Service Class Support Uber Class Support body dictionary Full body payload provided as a dictionary. Not required if using other keywords
description Service Class Support Uber Class Support body string Task group description
id Service Class Support Uber Class Support body string The ID of the task group to update
name Service Class Support Uber Class Support body string Task group name
parameters Service Class Support Uber Class Support body dictionary Full parameters payload dictionary. Not required if using other keywords
remove_assigned_user_group_ids Service Class Support Uber Class Support body string or list of strings User group IDs to be removed
remove_assigned_user_ids Service Class Support Uber Class Support body string or list of strings User IDs to be removed
remove_task_ids Service Class Support Uber Class Support body string or list of strings Task IDs to be removed

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.update_task_group(id="string",
                                    name="string,
                                    description="string",
                                    access_type="string",
                                    add_assigned_user_ids=list,
                                    add_assigned_user_group_ids=list,
                                    add_task_ids=list,
                                    remove_assigned_user_ids=list,
                                    remove_assigned_user_group_ids=list,
                                    remove_task_ids=list
                                    )
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )


response = falcon.ITAutomationUpdateTaskGroup(id="string",
                                              name="string,
                                              description="string",
                                              access_type="string",
                                              add_assigned_user_ids=list,
                                              add_assigned_user_group_ids=list,
                                              add_task_ids=list,
                                              remove_assigned_user_ids=list,
                                              remove_assigned_user_group_ids=list,
                                              remove_task_ids=list
                                              )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "access_type": "string",
    "add_assigned_user_group_ids": [
        "string"
    ],
    "add_assigned_user_ids": [
        "string"
    ],
    "add_task_ids": [
        "string"
    ],
    "description": "string",
    "id": "string",
    "name": "string",
    "remove_assigned_user_group_ids": [
        "string"
    ],
    "remove_assigned_user_ids": [
        "string"
    ],
    "remove_task_ids": [
        "string"
    ]
}

response = falcon.command("ITAutomationUpdateTaskGroup", body=body)
print(response)

ITAutomationDeleteTaskGroups

Delete task groups

PEP8 method name

delete_task_groups

Endpoint

Method Route
DELETE /it-automation/entities/task-groups/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
ids Service Class Support Uber Class Support query string or list of strings One or more task group IDs to delete
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.delete_task_groups(ids="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationDeleteTaskGroups(ids="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationDeleteTaskGroups", ids="string")
print(response)

ITAutomationGetTasks

Retrieve tasks

PEP8 method name

get_tasks

Endpoint

Method Route
GET /it-automation/entities/tasks/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
ids Service Class Support Uber Class Support query string or list of strings One or more task IDs
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.get_tasks(ids="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationGetTasks(ids="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationGetTasks", ids="string")
print(response)

ITAutomationCreateTask

Create a task with details from the given request

PEP8 method name

create_task

Endpoint

Method Route
POST /it-automation/entities/tasks/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
access_type Service Class Support Uber Class Support body string Task access type
add_assigned_user_group_ids Service Class Support Uber Class Support body string or list of strings User group IDs to add
add_assigned_user_ids Service Class Support Uber Class Support body string or list of strings User IDs to add
body Service Class Support Uber Class Support body dictionary Full body payload provided as a dictionary. Not required if using other keywords
description Service Class Support Uber Class Support body string Task description
name Service Class Support Uber Class Support body string Task name
os_query Service Class Support Uber Class Support body string OS query detail
output_parser_config Service Class Support Uber Class Support body dictionary Parser output configuration
queries Service Class Support Uber Class Support body dictionary Queries to perform (by OS)
remediations Service Class Support Uber Class Support body dictionary Remediations to perform (by OS)
remove_assigned_user_group_ids Service Class Support Uber Class Support body string or list of strings User group IDs to be removed
remove_assigned_user_ids Service Class Support Uber Class Support body string or list of strings User IDs to be removed
target Service Class Support Uber Class Support body string Task target
task_group_id Service Class Support Uber Class Support body string Task group ID
task_parameters Service Class Support Uber Class Support body list of dictionaries Task parameters
task_type Service Class Support Uber Class Support body string Task type
trigger_condition Service Class Support Uber Class Support body list of dictionaries Trigger conditions
verification_condition Service Class Support Uber Class Support body list of dictionaries Verification conditions
parameters Service Class Support Uber Class Support body dictionary Full body payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.create_task(name="string",
                              description="string",
                              access_type="string",
                              task_type="string",
                              target="string",
                              os_query="string",
                              add_assigned_user_ids=list,
                              add_assigned_user_group_ids=list,
                              task_group_id="string",
                              output_parser_config=dict,
                              queries=dict
                              task_parameters=dict
                              trigger_condition=list
                              )
print(response)
Service class example (Operation ID Syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationCreateTask(name="string",
                                         description="string",
                                         access_type="string",
                                         task_type="string",
                                         target="string",
                                         os_query="string",
                                         add_assigned_user_ids=list,
                                         add_assigned_user_group_ids=list,
                                         task_group_id="string",
                                         output_parser_config=dict,
                                         queries=dict
                                         task_parameters=dict
                                         trigger_condition=list
                                         )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "access_type": "string",
    "add_assigned_user_group_ids": ["string"],
    "add_assigned_user_ids": ["string"],
    "description": "string",
    "name": "string",
    "os_query": "string",
    "output_parser_config": {
        "columns": [{"name": "string"}],
        "default_group_by": boolean,
        "delimiter": "string"
    },
    "queries": {
        "linux": {
            "action_type": "string",
            "args": "string",
            "content": "string",
            "file_ids": ["string"],
            "language": "string",
            "script_file_id": "string"
        },
        "mac": {
            "action_type": "string",
            "args": "string",
            "content": "string",
            "file_ids": ["string"],
            "language": "string",
            "script_file_id": "string"
        },
        "windows": {
            "action_type": "string",
            "args": "string",
            "content": "string",
            "file_ids": ["string"],
            "language": "string",
            "script_file_id": "string"
        }
    },
    "remediations": {
        "linux": {
            "action_type": "string",
            "args": "string",
            "content": "string",
            "file_ids": ["string"],
            "language": "string",
            "script_file_id": "string"
        },
        "mac": {
            "action_type": "string",
            "args": "string",
            "content": "string",
            "file_ids": ["string"],
            "language": "string",
            "script_file_id": "string"
        },
        "windows": {
            "action_type": "string",
            "args": "string",
            "content": "string",
            "file_ids": ["string"],
            "language": "string",
            "script_file_id": "string"
        }
    },
    "remove_assigned_user_group_ids": ["string"],
    "remove_assigned_user_ids": ["string"],
    "target": "string",
    "task_group_id": "string",
    "task_parameters": [
        {
            "custom_validation_message": "string",
            "custom_validation_regex": "string",
            "default_value": "string",
            "input_type": "string",
            "key": "string",
            "label": "string",
            "options": [{"key": "string", "value": "string"}],
            "validation_type": "string"
        }
    ],
    "task_type": "string",
    "trigger_condition": [
        {
            "groups": [null],
            "operator": "string",
            "statements": [
                {
                    "data_comparator": "string",
                    "data_type": "string",
                    "key": "string",
                    "task_id": "string",
                    "value": "string"
                }
            ]
        }
    ],
    "verification_condition": [
        {
            "groups": [null],
            "operator": "string",
            "statements": [
                {
                    "data_comparator": "string",
                    "data_type": "string",
                    "key": "string",
                    "task_id": "string",
                    "value": "string"
                }
            ]
        }
    ]
}

response = falcon.command("ITAutomationCreateTask", body=body)
print(response)

ITAutomationUpdateTask

Update a task with details from the given request

PEP8 method name

update_task

Endpoint

Method Route
PATCH /it-automation/entities/tasks/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
access_type Service Class Support Uber Class Support body string Task access type
add_assigned_user_group_ids Service Class Support Uber Class Support body string or list of strings User group IDs to add
add_assigned_user_ids Service Class Support Uber Class Support body string or list of strings User IDs to add
body Service Class Support Uber Class Support body dictionary Full body payload provided as a dictionary. Not required if using other keywords
description Service Class Support Uber Class Support body string Task description
id Service Class Support Uber Class Support body string ID of the task to update. Use ITAutomationSearchTasks to fetch IDs
name Service Class Support Uber Class Support body string Task name
os_query Service Class Support Uber Class Support body string OS query detail
output_parser_config Service Class Support Uber Class Support body dictionary Parser output configuration
parameters Service Class Support Uber Class Support body dictionary Full parameters payload dictionary. Not required if ID keyword is used
queries Service Class Support Uber Class Support body dictionary Queries to perform (by OS)
remediations Service Class Support Uber Class Support body dictionary Remediations to perform (by OS)
remove_assigned_user_group_ids Service Class Support Uber Class Support body string or list of strings User group IDs to be removed
remove_assigned_user_ids Service Class Support Uber Class Support body string or list of strings User IDs to be removed
target Service Class Support Uber Class Support body string Task target
task_group_id Service Class Support Uber Class Support body string Task group ID
task_parameters Service Class Support Uber Class Support body list of dictionaries Task parameters
task_type Service Class Support Uber Class Support body string Task type
trigger_condition Service Class Support Uber Class Support body list of dictionaries Trigger conditions
verification_condition Service Class Support Uber Class Support body list of dictionaries Verification conditions

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.update_task(access_type="string",
                              add_assigned_user_group_ids=list,
                              add_assigned_user_ids=list,
                              description="string",
                              name="string",
                              os_query="string",
                              output_parser_config=dict,
                              queries=dict,
                              remediations=dict,
                              remove_assigned_user_group_ids=list,
                              remove_assigned_user_ids=list,
                              target="string",
                              task_group_id="string",
                              task_parameters=list,
                              task_type="string",
                              trigger_condition=list,
                              verification_condition=list
                              )
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationUpdateTask(access_type="string",
                                         add_assigned_user_group_ids=list,
                                         add_assigned_user_ids=list,
                                         description="string",
                                         name="string",
                                         os_query="string",
                                         output_parser_config=dict,
                                         queries=dict,
                                         remediations=dict,
                                         remove_assigned_user_group_ids=list,
                                         remove_assigned_user_ids=list,
                                         target="string",
                                         task_group_id="string",
                                         task_parameters=list,
                                         task_type="string",
                                         trigger_condition=list,
                                         verification_condition=list
                                         )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
            "access_type": "Public",
            "add_assigned_user_group_ids": [
                "string"
            ],
            "add_assigned_user_ids": [
                "string"
            ],
            "description": "string",
            "name": "string",
            "os_query": "string",
            "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"
                }
            },
            "remove_assigned_user_group_ids": [
                "string"
            ],
            "remove_assigned_user_ids": [
                "string"
            ],
            "target": "string",
            "task_group_id": "string",
            "task_parameters": [
                {
                    "custom_validation_message": "string",
                    "custom_validation_regex": "string",
                    "default_value": "string",
                    "input_type": "text",
                    "key": "string",
                    "label": "string",
                    "options": [
                        {
                            "key": "string",
                            "value": "string"
                        }
                    ],
                    "validation_type": "text"
                }
            ],
            "task_type": "query",
            "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.command("ITAutomationUpdateTask", body=body)
print(response)

ITAutomationDeleteTask

Delete a task

PEP8 method name

delete_task

Endpoint

Method Route
DELETE /it-automation/entities/tasks/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
ids Service Class Support Uber Class Support query string or list of strings One or more task IDs to delete
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.delete_task(ids="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationDeleteTask(ids="string")
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationDeleteTask", ids="string")
print(response)

ITAutomationQueryPolicies

Query policies

PEP8 method name

query_policies

Endpoint

Method Route
GET /it-automation/queries/policies/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
sort Service Class Support Uber Class Support query string The sort expression that should be used to sort the results
offset Service Class Support Uber Class Support query integer Starting index for record retrieval
limit Service Class Support Uber Class Support query integer The maximum records to return
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.query_policies(sort="string",
                                 offset=integer,
                                 limit=integer
                                 )
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationQueryPolicies(sort="string",
                                            offset=integer,
                                            limit=integer
                                            )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationQueryPolicies",
                           sort="string",
                           offset=integer,
                           limit=integer
                           )
print(response)

ITAutomationSearchScheduledTasks

Search scheduled tasks

PEP8 method name

search_scheduled_tasks

Endpoint

Method Route
GET /it-automation/queries/scheduled-tasks/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
filter Service Class Support Uber Class Support query string The filter expression that should be used to limit the results
sort Service Class Support Uber Class Support query string The sort expression that should be used to sort the results
offset Service Class Support Uber Class Support query integer Starting index for record retrieval
limit Service Class Support Uber Class Support query integer The maximum records to return
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
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)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationSearchScheduledTasks(filter="string",
                                                   sort="string",
                                                   offset=integer,
                                                   limit=integer
                                                   )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationSearchScheduledTasks",
                           filter="string",
                           sort="string",
                           offset=integer,
                           limit=integer
                           )
print(response)

ITAutomationSearchTaskExecutions

Search task executions

PEP8 method name

search_task_executions

Endpoint

Method Route
GET /it-automation/queries/task-executions/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
filter Service Class Support Uber Class Support query string The filter expression that should be used to limit the results
sort Service Class Support Uber Class Support query string The sort expression that should be used to sort the results
offset Service Class Support Uber Class Support query integer Starting index for record retrieval
limit Service Class Support Uber Class Support query integer The maximum records to return
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
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)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationSearchTaskExecutions(filter="string",
                                                   sort="string",
                                                   offset=integer,
                                                   limit=integer
                                                   )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationSearchTaskExecutions",
                           filter="string",
                           sort="string",
                           offset=integer,
                           limit=integer
                           )
print(response)

ITAutomationSearchTaskGroups

Search task groups

PEP8 method name

search_task_groups

Endpoint

Method Route
GET /it-automation/queries/task-groups/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
filter Service Class Support Uber Class Support query string The filter expression that should be used to limit the results
sort Service Class Support Uber Class Support query string The sort expression that should be used to sort the results
offset Service Class Support Uber Class Support query integer Starting index for record retrieval
limit Service Class Support Uber Class Support query integer The maximum records to return
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
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)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationSearchTaskGroups(filter="string",
                                               sort="string",
                                               offset=integer,
                                               limit=integer
                                               )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationSearchTaskGroups",
                           filter="string",
                           sort="string",
                           offset=integer,
                           limit=integer
                           )
print(response)

ITAutomationSearchTasks

Search tasks

PEP8 method name

search_tasks

Endpoint

Method Route
GET /it-automation/queries/tasks/v1

Required Scope

it_automation

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

Name Service Uber Type Data type Description
filter Service Class Support Uber Class Support query string The filter expression that should be used to limit the results
sort Service Class Support Uber Class Support query string The sort expression that should be used to sort the results
offset Service Class Support Uber Class Support query integer Starting index for record retrieval
limit Service Class Support Uber Class Support query integer The maximum records to return
parameters Service Class Support Uber Class Support query dictionary Full query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
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)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationSearchTasks(filter="string",
                                          sort="string",
                                          offset=integer,
                                          limit=integer
                                          )
print(response)
Uber class example
from falconpy import APIHarnessV2

falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationSearchTasks",
                           filter="string",
                           sort="string",
                           offset=integer,
                           limit=integer
                           )
print(response)
⚠️ **GitHub.com Fallback** ⚠️