CrowdStrike Falcon CrowdStrike Subreddit

Using the IT Automation service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation IDDescription
ITAutomationGetAssociatedTasks
PEP8get_associated_tasks
Retrieve tasks associated with the provided file ID
ITAutomationCombinedScheduledTasks
PEP8combined_scheduled_tasks
Returns full details of scheduled tasks matching the filter query parameter
ITAutomationRunLiveQuery
PEP8run_live_query
Run a live query
ITAutomationGetPolicies
PEP8get_policies
Retrieve policies
ITAutomationCreatePolicy
PEP8create_policy
Create a policy
ITAutomationUpdatePolicies
PEP8update_policies
Update policies
ITAutomationDeletePolicy
PEP8delete_policy
Delete a policy
ITAutomationGetScheduledTasks
PEP8get_scheduled_tasks
Retrieve scheduled tasks
ITAutomationCreateScheduledTask
PEP8create_scheduled_task
Create a scheduled task
ITAutomationUpdateScheduledTask
PEP8update_scheduled_task
Update a scheduled task
ITAutomationDeleteScheduledTasks
PEP8delete_scheduled_tasks
Delete scheduled tasks
ITAutomationGetTaskExecution
PEP8get_task_execution
Retrieve a task execution
ITAutomationStartTaskExecution
PEP8start_task_execution
Start a task execution
ITAutomationCancelTaskExecution
PEP8cancel_task_execution
Cancel a task execution
ITAutomationRerunTaskExecution
PEP8rerun_task_execution
Rerun a task execution
ITAutomationGetTaskExecutionHostStatus
PEP8get_task_execution_host_status
Retrieve task execution host status
ITAutomationGetExecutionResultsSearchStatus
PEP8get_execution_results_search_status
Retrieve execution results search status
ITAutomationStartExecutionResultsSearch
PEP8start_execution_results_search
Start an execution results search
ITAutomationGetExecutionResults
PEP8get_execution_results
Retrieve execution results
ITAutomationGetTaskExecutionsByQuery
PEP8get_task_executions_by_query
Retrieve task executions by query
ITAutomationGetTaskGroupsByQuery
PEP8get_task_groups_by_query
Retrieve task groups by query
ITAutomationGetTasksByQuery
PEP8get_tasks_by_query
Retrieve tasks by query
ITAutomationUpdatePolicyHostGroups
PEP8update_policy_host_groups
Update policy host groups
ITAutomationUpdatePoliciesPrecedence
PEP8update_policies_precedence
Update policies precedence
ITAutomationGetTaskGroups
PEP8get_task_groups
Retrieve task groups
ITAutomationCreateTaskGroup
PEP8create_task_group
Create a task group
ITAutomationUpdateTaskGroup
PEP8update_task_group
Update a task group
ITAutomationDeleteTaskGroups
PEP8delete_task_groups
Delete task groups
ITAutomationGetTasks
PEP8get_tasks
Retrieve tasks
ITAutomationCreateTask
PEP8create_task
Create a task
ITAutomationUpdateTask
PEP8update_task
Update a task
ITAutomationDeleteTask
PEP8delete_task
Delete a task
ITAutomationQueryPolicies
PEP8query_policies
Query policies
ITAutomationSearchScheduledTasks
PEP8search_scheduled_tasks
Search scheduled tasks
ITAutomationSearchTaskExecutions
PEP8search_task_executions
Search task executions
ITAutomationSearchTaskGroups
PEP8search_task_groups
Search task groups
ITAutomationSearchTasks
PEP8search_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

MethodRoute
GET/it-automation/combined/associated-tasks/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idService Class SupportUber Class SupportquerystringThe ID of the file to fetch associated tasks for
filterService Class SupportUber Class SupportquerystringThe filter expression that should be used to limit the results
sortService Class SupportUber Class SupportquerystringThe sort expression that should be used to sort the results
offsetService Class SupportUber Class SupportqueryintegerStarting index for record retrieval
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
GET/it-automation/combined/scheduled-tasks/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter expression that should be used to limit the results
sortService Class SupportUber Class SupportquerystringThe sort expression that should be used to sort the results
offsetService Class SupportUber Class SupportqueryintegerStarting index for record retrieval
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
POST/it-automation/entities/live-query/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload provided as a dictionary
discover_new_hostsService Class SupportUber Class SupportbodybooleanFlag indicating if this task can discover new hosts
discover_offline_hostsService Class SupportUber Class SupportbodybooleanFlag indicating if this task can discover offline hosts
distributeService Class SupportUber Class SupportbodybooleanFlag indicating if this task is distributed
expiration_intervalService Class SupportUber Class SupportbodystringTask expiration interval
guardrailsService Class SupportUber Class SupportbodydictionaryTask guardrails (limiters)
osqueryService Class SupportUber Class SupportbodystringOS Query content
output_parser_configService Class SupportUber Class SupportbodydictionaryOutput parser configuration
queriesService Class SupportUber Class SupportbodydictionaryQueries to perform
targetService Class SupportUber Class SupportbodystringExecution target
parametersService Class SupportUber Class SupportbodydictionaryFull 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

MethodRoute
GET/it-automation/queries/task-executions/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter expression that should be used to limit the results
sortService Class SupportUber Class SupportquerystringThe sort expression that should be used to sort the results
offsetService Class SupportUber Class SupportqueryintegerStarting index for record retrieval
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
GET/it-automation/queries/task-groups/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter expression that should be used to limit the results
sortService Class SupportUber Class SupportquerystringThe sort expression that should be used to sort the results
offsetService Class SupportUber Class SupportqueryintegerStarting index for record retrieval
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
GET/it-automation/queries/tasks/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter expression that should be used to limit the results
sortService Class SupportUber Class SupportquerystringThe sort expression that should be used to sort the results
offsetService Class SupportUber Class SupportqueryintegerStarting index for record retrieval
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
GET/it-automation/entities/policies/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsOne or more policy IDs
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
POST/it-automation/entities/policies/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload provided as a dictionary. Not required if using other keywords
nameService Class SupportUber Class SupportbodystringPolicy name. Max: 100 characters
descriptionService Class SupportUber Class SupportbodystringPolicy description. Max: 500 characters
platformService Class SupportUber Class SupportbodystringExecution host platform. Allowed values: Windows, Linux, Mac
enable_script_executionService Class SupportUber Class SupportbodybooleanEnable or disable script execution
enable_python_executionService Class SupportUber Class SupportbodybooleanEnable or disable Python execution
enable_os_queryService Class SupportUber Class SupportbodybooleanEnable or disable OS Query
execution_timeoutService Class SupportUber Class SupportbodyintegerSpecifies the timeout value for executions
execution_timeout_unitService Class SupportUber Class SupportbodystringExecution timeout unit. Allowed values: Hours, Minutes
cpu_throttleService Class SupportUber Class SupportbodyintegerSpecifies the CPU throttle value
cpu_schedulingService Class SupportUber Class SupportbodystringSets priority to determine the order in which a query process will run on a host's CPU
memory_pressure_levelService Class SupportUber Class SupportbodystringSets memory pressure level to control system resource allocation during task execution
memory_allocationService Class SupportUber Class SupportbodyintegerSpecifies the memory allocation value
memory_allocation_unitService Class SupportUber Class SupportbodystringMemory allocation unit. Allowed values: MB, GB
concurrent_host_limitService Class SupportUber Class SupportbodyintegerSpecifies the maximum number of concurrent hosts
concurrent_task_limitService Class SupportUber Class SupportbodyintegerSpecifies the maximum number of concurrent tasks
concurrent_host_file_transfer_limitService Class SupportUber Class SupportbodyintegerSpecifies the maximum number of concurrent file transfers
parametersService Class SupportUber Class SupportbodydictionaryFull 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

MethodRoute
PATCH/it-automation/entities/policies/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload provided as a dictionary. Not required if using other keywords
idService Class SupportUber Class SupportbodystringA valid policy ID representing the policy to be updated. Required
nameService Class SupportUber Class SupportbodystringPolicy name. Max: 100 characters
descriptionService Class SupportUber Class SupportbodystringPolicy description. Max: 500 characters
is_enabledService Class SupportUber Class SupportbodybooleanFlag controlling whether the policy is active
enable_script_executionService Class SupportUber Class SupportbodybooleanEnable or disable script execution
enable_python_executionService Class SupportUber Class SupportbodybooleanEnable or disable Python execution
enable_os_queryService Class SupportUber Class SupportbodybooleanEnable or disable OS Query
execution_timeoutService Class SupportUber Class SupportbodyintegerSpecifies the timeout value for executions
execution_timeout_unitService Class SupportUber Class SupportbodystringExecution timeout unit. Allowed values: Hours, Minutes
cpu_throttleService Class SupportUber Class SupportbodyintegerSpecifies the CPU throttle value
cpu_schedulingService Class SupportUber Class SupportbodystringSets priority to determine the order in which a query process will run on a host's CPU
memory_pressure_levelService Class SupportUber Class SupportbodystringSets memory pressure level to control system resource allocation during task execution
memory_allocationService Class SupportUber Class SupportbodyintegerSpecifies the memory allocation value
memory_allocation_unitService Class SupportUber Class SupportbodystringMemory allocation unit. Allowed values: MB, GB
concurrent_host_limitService Class SupportUber Class SupportbodyintegerSpecifies the maximum number of concurrent hosts
concurrent_task_limitService Class SupportUber Class SupportbodyintegerSpecifies the maximum number of concurrent tasks
concurrent_host_file_transfer_limitService Class SupportUber Class SupportbodyintegerSpecifies the maximum number of concurrent file transfers
parametersService Class SupportUber Class SupportbodydictionaryFull 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

MethodRoute
DELETE/it-automation/entities/policies/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsOne or more policy IDs to delete
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
PATCH/it-automation/entities/policies/host-groups/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
policy_idService Class SupportUber Class SupportbodystringPolicy ID
host_group_idsService Class SupportUber Class SupportbodyarrayList of host group IDs
actionService Class SupportUber Class SupportbodystringAction to perform
parametersService Class SupportUber Class SupportbodydictionaryFull 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

MethodRoute
PATCH/it-automation/entities/policies/precedence/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
idsService Class SupportUber Class SupportbodyarrayList of policy IDs in precedence order
parametersService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
platformService Class SupportUber Class SupportbodystringThe 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

MethodRoute
GET/it-automation/entities/scheduled-tasks/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsOne or more scheduled task IDs
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
POST/it-automation/entities/scheduled-tasks/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload provided as a dictionary
argumentsService Class SupportUber Class SupportbodydictionaryArguments to provide to the task when executed
discover_new_hostsService Class SupportUber Class SupportbodybooleanAllow the task to discover new hosts
discover_offline_hostsService Class SupportUber Class SupportbodybooleanAllow the task to discover offline hosts
distributeService Class SupportUber Class SupportbodybooleanDistribute the task
expiration_intervalService Class SupportUber Class SupportbodystringTask expiration interval
guardrailsService Class SupportUber Class SupportbodydictionaryTask execution guardrails (limiters)
idService Class SupportUber Class SupportbodystringThe id of the scheduled task to update
is_activeService Class SupportUber Class SupportbodybooleanFlag indicating if the task is active
scheduleService Class SupportUber Class SupportbodydictionaryTask schedule
targetService Class SupportUber Class SupportbodystringTask target
task_idService Class SupportUber Class SupportbodystringTask ID
trigger_conditionService Class SupportUber Class Supportbodylist of dictionariesTask trigger conditions
parametersService Class SupportUber Class SupportbodydictionaryFull 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

MethodRoute
PATCH/it-automation/entities/scheduled-tasks/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload provided as a dictionary. Not required if using other keywords
discover_new_hostsService Class SupportUber Class SupportbodybooleanAllow the task to discover new hosts
discover_offline_hostsService Class SupportUber Class SupportbodybooleanAllow the task to discover offline hosts
distributeService Class SupportUber Class SupportbodybooleanDistribute the task
execution_argsService Class SupportUber Class SupportbodydictionaryArguments to provide to the task when executed
expiration_intervalService Class SupportUber Class SupportbodystringTask expiration interval
guardrailsService Class SupportUber Class SupportbodydictionaryTask execution guardrails (limiters)
idService Class SupportUber Class SupportbodystringThe id of the scheduled task to update
is_activeService Class SupportUber Class SupportbodybooleanFlag indicating if the task is active
parametersService Class SupportUber Class SupportbodydictionaryFull parameters payload dictionary. Not required if using other keywords
scheduleService Class SupportUber Class SupportbodydictionaryTask schedule
targetService Class SupportUber Class SupportbodystringTask target
task_idService Class SupportUber Class SupportbodystringTask ID
trigger_conditionService Class SupportUber Class Supportbodylist of dictionariesTask 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

MethodRoute
DELETE/it-automation/entities/scheduled-tasks/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsOne or more scheduled task IDs to delete
parametersService Class SupportUber Class SupportquerydictionaryFull 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

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

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
task_execution_idService Class SupportUber Class SupportpathstringTask 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

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

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportpathstring or listTask execution ID
filterService Class SupportUber Class SupportquerystringThe filter expression that should be used to limit the results
sortService Class SupportUber Class SupportquerystringThe sort expression that should be used to sort the results
offsetService Class SupportUber Class SupportqueryintegerStarting index for record retrieval
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return
parametersService Class SupportUber Class SupportquerydictionaryFull 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

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

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload provided as a dictionary. Not required if using other keywords
run_typeService Class SupportUber Class SupportbodystringTask run type
task_execution_idService Class SupportUber Class SupportbodystringTask execution ID
parametersService Class SupportUber Class SupportbodydictionaryFull 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

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

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idService Class SupportUber Class SupportpathstringSearch ID
parametersService Class SupportUber Class SupportpathdictionaryFull 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

MethodRoute
POST/it-automation/entities/execution-results/search/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload provided as a dictionary. Not required if using other keywords
endService Class SupportUber Class SupportbodystringTask end
filter_expressionsService Class SupportUber Class Supportbodystring or list of stringsFilter expressions to apply
group_by_fieldsService Class SupportUber Class Supportbodystring or list of stringsFields to use to group results
startService Class SupportUber Class SupportbodystringTask start
task_execution_idService Class SupportUber Class SupportbodystringTask execution ID
parametersService Class SupportUber Class SupportbodydictionaryFull 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

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

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idService Class SupportUber Class SupportpathstringSearch ID
offsetService Class SupportUber Class SupportqueryintegerStarting index for record retrieval
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return
sortService Class SupportUber Class SupportquerystringSort results by one of the fields in the event results, either asc (ascending) or desc (descending)
parametersService Class SupportUber Class SupportquerydictionaryFull 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

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

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idService Class SupportUber Class SupportpathstringTask execution ID
parametersService Class SupportUber Class SupportpathdictionaryFull 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

MethodRoute
POST/it-automation/entities/task-executions/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
argumentsService Class SupportUber Class SupportbodydictionaryArguments to pass to the execution
bodyService Class SupportUber Class SupportbodydictionaryFull body payload provided as a dictionary. Not required if using other keywords
discover_new_hostsService Class SupportUber Class SupportbodybooleanAllow the task execution to discover new hosts
discover_offline_hostsService Class SupportUber Class SupportbodybooleanAllow the task execution to discover offline hosts
distributeService Class SupportUber Class SupportbodybooleanDistribute this task
expiration_intervalService Class SupportUber Class SupportbodystringTask expiration interval
guardrailsService Class SupportUber Class SupportbodydictionaryTask execution guardrails (limiters)
targetService Class SupportUber Class SupportbodystringTask target
task_idService Class SupportUber Class SupportbodystringTask ID
trigger_conditionsService Class SupportUber Class Supportbodylist of dictionariesList of task triggers
parametersService Class SupportUber Class SupportbodydictionaryFull 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

MethodRoute
GET/it-automation/entities/task-groups/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsOne or more task group IDs
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
POST/it-automation/entities/task-groups/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryFull body payload in JSON format
nameService Class SupportUber Class SupportbodystringTask group name
descriptionService Class SupportUber Class SupportbodystringTask group description
task_idsService Class SupportUber Class SupportbodystringTask 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

MethodRoute
PATCH/it-automation/entities/task-groups/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
access_typeService Class SupportUber Class SupportbodystringTask group access type
add_assigned_user_group_idsService Class SupportUber Class Supportbodystring or list of stringsUser group IDs to add
add_assigned_user_idsService Class SupportUber Class Supportbodystring or list of stringsUser IDs to add
add_task_idsService Class SupportUber Class Supportbodystring or list of stringsTask IDs to add to the group
bodyService Class SupportUber Class SupportbodydictionaryFull body payload provided as a dictionary. Not required if using other keywords
descriptionService Class SupportUber Class SupportbodystringTask group description
idService Class SupportUber Class SupportbodystringThe ID of the task group to update
nameService Class SupportUber Class SupportbodystringTask group name
parametersService Class SupportUber Class SupportbodydictionaryFull parameters payload dictionary. Not required if using other keywords
remove_assigned_user_group_idsService Class SupportUber Class Supportbodystring or list of stringsUser group IDs to be removed
remove_assigned_user_idsService Class SupportUber Class Supportbodystring or list of stringsUser IDs to be removed
remove_task_idsService Class SupportUber Class Supportbodystring or list of stringsTask 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

MethodRoute
DELETE/it-automation/entities/task-groups/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsOne or more task group IDs to delete
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
GET/it-automation/entities/tasks/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsOne or more task IDs
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
POST/it-automation/entities/tasks/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
access_typeService Class SupportUber Class SupportbodystringTask access type
add_assigned_user_group_idsService Class SupportUber Class Supportbodystring or list of stringsUser group IDs to add
add_assigned_user_idsService Class SupportUber Class Supportbodystring or list of stringsUser IDs to add
bodyService Class SupportUber Class SupportbodydictionaryFull body payload provided as a dictionary. Not required if using other keywords
descriptionService Class SupportUber Class SupportbodystringTask description
nameService Class SupportUber Class SupportbodystringTask name
os_queryService Class SupportUber Class SupportbodystringOS query detail
output_parser_configService Class SupportUber Class SupportbodydictionaryParser output configuration
queriesService Class SupportUber Class SupportbodydictionaryQueries to perform (by OS)
remediationsService Class SupportUber Class SupportbodydictionaryRemediations to perform (by OS)
remove_assigned_user_group_idsService Class SupportUber Class Supportbodystring or list of stringsUser group IDs to be removed
remove_assigned_user_idsService Class SupportUber Class Supportbodystring or list of stringsUser IDs to be removed
targetService Class SupportUber Class SupportbodystringTask target
task_group_idService Class SupportUber Class SupportbodystringTask group ID
task_parametersService Class SupportUber Class Supportbodylist of dictionariesTask parameters
task_typeService Class SupportUber Class SupportbodystringTask type
trigger_conditionService Class SupportUber Class Supportbodylist of dictionariesTrigger conditions
verification_conditionService Class SupportUber Class Supportbodylist of dictionariesVerification conditions
parametersService Class SupportUber Class SupportbodydictionaryFull 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

MethodRoute
PATCH/it-automation/entities/tasks/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
access_typeService Class SupportUber Class SupportbodystringTask access type
add_assigned_user_group_idsService Class SupportUber Class Supportbodystring or list of stringsUser group IDs to add
add_assigned_user_idsService Class SupportUber Class Supportbodystring or list of stringsUser IDs to add
bodyService Class SupportUber Class SupportbodydictionaryFull body payload provided as a dictionary. Not required if using other keywords
descriptionService Class SupportUber Class SupportbodystringTask description
idService Class SupportUber Class SupportbodystringID of the task to update. Use ITAutomationSearchTasks to fetch IDs
nameService Class SupportUber Class SupportbodystringTask name
os_queryService Class SupportUber Class SupportbodystringOS query detail
output_parser_configService Class SupportUber Class SupportbodydictionaryParser output configuration
parametersService Class SupportUber Class SupportbodydictionaryFull parameters payload dictionary. Not required if ID keyword is used
queriesService Class SupportUber Class SupportbodydictionaryQueries to perform (by OS)
remediationsService Class SupportUber Class SupportbodydictionaryRemediations to perform (by OS)
remove_assigned_user_group_idsService Class SupportUber Class Supportbodystring or list of stringsUser group IDs to be removed
remove_assigned_user_idsService Class SupportUber Class Supportbodystring or list of stringsUser IDs to be removed
targetService Class SupportUber Class SupportbodystringTask target
task_group_idService Class SupportUber Class SupportbodystringTask group ID
task_parametersService Class SupportUber Class Supportbodylist of dictionariesTask parameters
task_typeService Class SupportUber Class SupportbodystringTask type
trigger_conditionService Class SupportUber Class Supportbodylist of dictionariesTrigger conditions
verification_conditionService Class SupportUber Class Supportbodylist of dictionariesVerification 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

MethodRoute
DELETE/it-automation/entities/tasks/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerystring or list of stringsOne or more task IDs to delete
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
GET/it-automation/queries/policies/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
sortService Class SupportUber Class SupportquerystringThe sort expression that should be used to sort the results
offsetService Class SupportUber Class SupportqueryintegerStarting index for record retrieval
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
GET/it-automation/queries/scheduled-tasks/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter expression that should be used to limit the results
sortService Class SupportUber Class SupportquerystringThe sort expression that should be used to sort the results
offsetService Class SupportUber Class SupportqueryintegerStarting index for record retrieval
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
GET/it-automation/queries/task-executions/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter expression that should be used to limit the results
sortService Class SupportUber Class SupportquerystringThe sort expression that should be used to sort the results
offsetService Class SupportUber Class SupportqueryintegerStarting index for record retrieval
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
GET/it-automation/queries/task-groups/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter expression that should be used to limit the results
sortService Class SupportUber Class SupportquerystringThe sort expression that should be used to sort the results
offsetService Class SupportUber Class SupportqueryintegerStarting index for record retrieval
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return
parametersService Class SupportUber Class SupportquerydictionaryFull 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

MethodRoute
GET/it-automation/queries/tasks/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe filter expression that should be used to limit the results
sortService Class SupportUber Class SupportquerystringThe sort expression that should be used to sort the results
offsetService Class SupportUber Class SupportqueryintegerStarting index for record retrieval
limitService Class SupportUber Class SupportqueryintegerThe maximum records to return
parametersService Class SupportUber Class SupportquerydictionaryFull 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)