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
PEP 8get_associated_tasks
Retrieve tasks associated with the provided file ID
ITAutomationCombinedScheduledTasks
PEP 8scheduled_task_details
Returns full details of scheduled tasks matching the filter query parameter
ITAutomationRunLiveQuery
PEP 8run_live_query
Run a live query
ITAutomationGetPolicies
PEP 8get_policies
Retrieve policies
ITAutomationCreatePolicy
PEP 8create_policy
Create a policy
ITAutomationUpdatePolicies
PEP 8update_policy
Update policies
ITAutomationDeletePolicy
PEP 8delete_policy
Delete a policy
ITAutomationGetScheduledTasks
PEP 8get_scheduled_task
Retrieve scheduled tasks
ITAutomationCreateScheduledTask
PEP 8create_scheduled_task
Create a scheduled task
ITAutomationUpdateScheduledTask
PEP 8update_scheduled_task
Update a scheduled task
ITAutomationDeleteScheduledTasks
PEP 8delete_scheduled_task
Delete scheduled tasks
ITAutomationGetTaskExecution
PEP 8get_execution
Retrieve a task execution
ITAutomationStartTaskExecution
PEP 8start_execution
Start a task execution
ITAutomationCancelTaskExecution
PEP 8cancel_execution
Cancel a task execution
ITAutomationRerunTaskExecution
PEP 8rerun_execution
Rerun a task execution
ITAutomationGetTaskExecutionHostStatus
PEP 8get_execution_host_status
Retrieve task execution host status
ITAutomationGetExecutionResultsSearchStatus
PEP 8get_execution_results_search_status
Retrieve execution results search status
ITAutomationStartExecutionResultsSearch
PEP 8execution_results_search
Start an execution results search
ITAutomationGetExecutionResults
PEP 8get_execution_results
Retrieve execution results
ITAutomationGetTaskExecutionsByQuery
PEP 8get_executions_by_query
Retrieve task executions by query
ITAutomationGetTaskGroupsByQuery
PEP 8get_task_groups_by_query
Retrieve task groups by query
ITAutomationGetTasksByQuery
PEP 8get_tasks_by_query
Retrieve tasks by query
ITAutomationUpdatePolicyHostGroups
PEP 8update_policy_host_groups
Update policy host groups
ITAutomationUpdatePoliciesPrecedence
PEP 8update_policies_precedence
Update policies precedence
ITAutomationGetTaskGroups
PEP 8get_task_group
Retrieve task groups
ITAutomationCreateTaskGroup
PEP 8create_task_group
Create a task group
ITAutomationUpdateTaskGroup
PEP 8update_task_group
Update a task group
ITAutomationDeleteTaskGroups
PEP 8delete_task_groups
Delete task groups
ITAutomationGetTasks
PEP 8get_tasks
Retrieve tasks
ITAutomationGetUserGroup
PEP 8get_user_group
Returns user groups for each provided id
ITAutomationCreateTask
PEP 8create_task
Create a task
ITAutomationCreateUserGroup
PEP 8create_user_group
Creates a user group from the given request
ITAutomationUpdateTask
PEP 8update_task
Update a task
ITAutomationUpdateUserGroup
PEP 8update_user_group
Update a user group for a given id
ITAutomationDeleteTask
PEP 8delete_task
Delete a task
ITAutomationDeleteUserGroup
PEP 8delete_user_groups
Deletes user groups for each provided ids
ITAutomationQueryPolicies
PEP 8query_policies
Query policies
ITAutomationSearchScheduledTasks
PEP 8search_scheduled_tasks
Search scheduled tasks
ITAutomationSearchTaskExecutions
PEP 8search_task_executions
Search task executions
ITAutomationSearchTaskGroups
PEP 8search_task_groups
Search task groups
ITAutomationSearchTasks
PEP 8search_tasks
Search tasks
ITAutomationSearchUserGroup
PEP 8search_user_groups
Returns the list of user group ids matching the filter query parameter. It can be used together with the entities endpoint to retrieve full information on user groups

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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)

Back to Table of Contents

ITAutomationCombinedScheduledTasks

Returns full details of scheduled tasks matching the filter query parameter

PEP8 method name

scheduled_task_details

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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-execution/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 SupportNo Uber Class SupportbodybooleanFlag indicating if this task can discover new hosts
discover_offline_hostsService Class SupportNo Uber Class SupportbodybooleanFlag indicating if this task can discover offline hosts
distributeService Class SupportNo Uber Class SupportbodybooleanFlag indicating if this task is distributed
expiration_intervalService Class SupportNo Uber Class SupportbodystringTask expiration interval
guardrailsService Class SupportNo Uber Class SupportbodydictionaryTask guardrails (limiters)
osqueryService Class SupportNo Uber Class SupportbodystringOS Query content
output_parser_configService Class SupportNo Uber Class SupportbodydictionaryOutput parser configuration
queriesService Class SupportNo Uber Class SupportbodydictionaryQueries to perform
targetService Class SupportNo Uber Class SupportbodystringExecution target
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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"
    }
}

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )


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"
    }
}

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

# Do not hardcode API credentials!
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)

Back to Table of Contents

ITAutomationGetTaskExecutionsByQuery

Retrieve task executions by query

PEP8 method name

get_executions_by_query

Endpoint

MethodRoute
GET/it-automation/combined/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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

ITAutomationGetTaskGroupsByQuery

Retrieve task groups by query

PEP8 method name

get_task_groups_by_query

Endpoint

MethodRoute
GET/it-automation/combined/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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

ITAutomationGetTasksByQuery

Retrieve tasks by query

PEP8 method name

get_tasks_by_query

Endpoint

MethodRoute
GET/it-automation/combined/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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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"
        }
    },
    "description": "string",
    "name": "string",
    "platform": "string"
}

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

Back to Table of Contents

ITAutomationUpdatePolicies

Update a new policy of the specified type

PEP8 method name

update_policy

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

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.update_policy(id="string",
                                  name="string",
                                  description="string",
                                  is_enabled=boolean,
                                  enable_script_execution=boolean,
                                  enable_python_execution=boolean,
                                  enable_os_query=boolean,
                                  execution_timeout=integer,
                                  execution_timeout_unit="string",
                                  cpu_throttle=integer,
                                  cpu_scheduling="string",
                                  memory_pressure_level="string",
                                  memory_allocation=integer,
                                  memory_allocation_unit="string",
                                  concurrent_host_limit=integer,
                                  concurrent_task_limit=integer,
                                  concurrent_host_file_transfer_limit=integer
                                  )
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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)

Back to Table of Contents

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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 SupportNo Uber Class SupportbodystringPolicy ID
host_group_idsService Class SupportNo Uber Class SupportbodyarrayList of host group IDs
actionService Class SupportNo Uber Class SupportbodystringAction to perform
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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)

Back to Table of Contents

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 SupportNo Uber Class SupportbodyarrayList of policy IDs in precedence order
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format
platformService Class SupportUber Class SupportquerystringThe policy platform for which to set the precedence order

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

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

Back to Table of Contents

ITAutomationGetScheduledTasks

Retrieve scheduled tasks

PEP8 method name

get_scheduled_task

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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
execution_argsService Class SupportNo Uber Class SupportbodydictionaryArguments to provide to the task when executed
discover_new_hostsService Class SupportNo Uber Class SupportbodybooleanAllow the task to discover new hosts
discover_offline_hostsService Class SupportNo Uber Class SupportbodybooleanAllow the task to discover offline hosts
distributeService Class SupportNo Uber Class SupportbodybooleanDistribute the task
expiration_intervalService Class SupportNo Uber Class SupportbodystringTask expiration interval
guardrailsService Class SupportNo Uber Class SupportbodydictionaryTask execution guardrails (limiters)
idService Class SupportNo Uber Class SupportbodystringThe id of the scheduled task to update
is_activeService Class SupportNo Uber Class SupportbodybooleanFlag indicating if the task is active
scheduleService Class SupportNo Uber Class SupportbodydictionaryTask schedule
targetService Class SupportNo Uber Class SupportbodystringTask target
task_idService Class SupportNo Uber Class SupportbodystringTask ID
trigger_conditionService Class SupportNo Uber Class Supportbodylist of dictionariesTask trigger conditions
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

arguments = {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
}
guardrails = {
    "run_time_limit_millis": integer
}
schedule = {
    "day_of_month": integer,
    "days_of_week": ["string"],
    "end_time": "string",
    "frequency": "string",
    "interval": integer,
    "start_time": "string",
    "time": "string",
    "timezone": "string"
}
trigger_conditions = [
    {
        "groups": [None],
        "operator": "string",
        "statements": [
            {
                "data_comparator": "string",
                "data_type": "string",
                "key": "string",
                "task_id": "string",
                "value": "string"
            }
        ]
    }
]

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

arguments = {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
}
guardrails = {
    "run_time_limit_millis": integer
}
schedule = {
    "day_of_month": integer,
    "days_of_week": ["string"],
    "end_time": "string",
    "frequency": "string",
    "interval": integer,
    "start_time": "string",
    "time": "string",
    "timezone": "string"
}
trigger_conditions = [
    {
        "groups": [None],
        "operator": "string",
        "statements": [
            {
                "data_comparator": "string",
                "data_type": "string",
                "key": "string",
                "task_id": "string",
                "value": "string"
            }
        ]
    }
]

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

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "execution_args": {
        "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)

Back to Table of Contents

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 SupportNo Uber Class SupportbodybooleanAllow the task to discover new hosts
discover_offline_hostsService Class SupportNo Uber Class SupportbodybooleanAllow the task to discover offline hosts
distributeService Class SupportNo Uber Class SupportbodybooleanDistribute the task
execution_argsService Class SupportNo Uber Class SupportbodydictionaryArguments to provide to the task when executed
expiration_intervalService Class SupportNo Uber Class SupportbodystringTask expiration interval
guardrailsService Class SupportNo Uber Class SupportbodydictionaryTask execution guardrails (limiters)
idService Class SupportUber Class SupportquerystringThe id of the scheduled task to update
is_activeService Class SupportNo Uber Class SupportbodybooleanFlag indicating if the task is active
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format
scheduleService Class SupportNo Uber Class SupportbodydictionaryTask schedule
targetService Class SupportNo Uber Class SupportbodystringTask target
task_idService Class SupportNo Uber Class SupportbodystringTask ID
trigger_conditionService Class SupportNo Uber Class Supportbodylist of dictionariesTask trigger conditions

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

execution_args = {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
}
guardrails = {
    "run_time_limit_millis": integer
}
schedule = {
    "day_of_month": integer,
    "days_of_week": ["string"],
    "end_time": "string",
    "frequency": "string",
    "interval": integer,
    "start_time": "string",
    "time": "string",
    "timezone": "string"
}
trigger_conditions = [
    {
        "groups": [None],
        "operator": "string",
        "statements": [
            {
                "data_comparator": "string",
                "data_type": "string",
                "key": "string",
                "task_id": "string",
                "value": "string"
            }
        ]
    }
]

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

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

execution_args = {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
}
guardrails = {
    "run_time_limit_millis": integer
}
schedule = {
    "day_of_month": integer,
    "days_of_week": ["string"],
    "end_time": "string",
    "frequency": "string",
    "interval": integer,
    "start_time": "string",
    "time": "string",
    "timezone": "string"
}
trigger_conditions = [
    {
        "groups": [None],
        "operator": "string",
        "statements": [
            {
                "data_comparator": "string",
                "data_type": "string",
                "key": "string",
                "task_id": "string",
                "value": "string"
            }
        ]
    }
]

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

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
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)

Back to Table of Contents

ITAutomationDeleteScheduledTasks

Delete scheduled tasks

PEP8 method name

delete_scheduled_task

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

ITAutomationCancelTaskExecution

Cancel a task execution

PEP8 method name

cancel_execution

Endpoint

MethodRoute
POST/it-automation/entities/task-execution-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 SupportNo Uber Class SupportbodystringTask execution ID

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
        "id"="string"
       }

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

Back to Table of Contents

ITAutomationGetTaskExecutionHostStatus

Retrieve task execution host status

PEP8 method name

get_execution_host_status

Endpoint

MethodRoute
GET/it-automation/entities/task-execution-host-status/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 stringsTask 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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.get_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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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)

Back to Table of Contents

ITAutomationRerunTaskExecution

Rerun the task execution specified in the request

PEP8 method name

rerun_execution

Endpoint

MethodRoute
POST/it-automation/entities/task-execution-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 SupportNo Uber Class SupportbodystringTask run type
task_execution_idService Class SupportNo Uber Class SupportbodystringTask execution ID
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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)

Back to Table of Contents

ITAutomationGetExecutionResultsSearchStatus

Retrieve execution results search status

PEP8 method name

get_execution_results_search_status

Endpoint

MethodRoute
GET/it-automation/entities/task-execution-results-search/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idService Class SupportUber Class SupportquerystringSearch ID
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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/task-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 SupportNo Uber Class SupportbodystringTask end
filter_expressionsService Class SupportNo Uber Class Supportbodystring or list of stringsFilter expressions to apply
group_by_fieldsService Class SupportNo Uber Class Supportbodystring or list of stringsFields to use to group results
startService Class SupportNo Uber Class SupportbodystringTask start
task_execution_idService Class SupportNo Uber Class SupportbodystringTask execution ID
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

filter_expressions = ["string"]
group_by_fields = ["string"]

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

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

filter_expressions = ["string"]
group_by_fields = ["string"]

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

# Do not hardcode API credentials!
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)

Back to Table of Contents

ITAutomationGetExecutionResults

Retrieve execution results

PEP8 method name

get_execution_results

Endpoint

MethodRoute
GET/it-automation/entities/task-execution-results/v1

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
idService Class SupportUber Class SupportquerystringSearch 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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

ITAutomationGetTaskExecution

Retrieve a task execution

PEP8 method name

get_execution

Endpoint

MethodRoute
GET/it-automation/entities/task-executions/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 stringsTask execution ID
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

ITAutomationStartTaskExecution

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

PEP8 method name

start_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 SupportNo Uber 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 SupportNo Uber Class SupportbodybooleanAllow the task execution to discover new hosts
discover_offline_hostsService Class SupportNo Uber Class SupportbodybooleanAllow the task execution to discover offline hosts
distributeService Class SupportNo Uber Class SupportbodybooleanDistribute this task
expiration_intervalService Class SupportNo Uber Class SupportbodystringTask expiration interval
guardrailsService Class SupportNo Uber Class SupportbodydictionaryTask execution guardrails (limiters)
targetService Class SupportNo Uber Class SupportbodystringTask target
task_idService Class SupportNo Uber Class SupportbodystringTask ID
trigger_conditionsService Class SupportNo Uber Class Supportbodylist of dictionariesList of task triggers
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

arguments = {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
}
guardrails = {
    "run_time_limit_millis": integer
}
schedule = {
    "day_of_month": integer,
    "days_of_week": ["string"],
    "end_time": "string",
    "frequency": "string",
    "interval": integer,
    "start_time": "string",
    "time": "string",
    "timezone": "string"
}
trigger_conditions = [
    {
        "groups": [None],
        "operator": "string",
        "statements": [
            {
                "data_comparator": "string",
                "data_type": "string",
                "key": "string",
                "task_id": "string",
                "value": "string"
            }
        ]
    }
]

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

arguments = {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
}
guardrails = {
    "run_time_limit_millis": integer
}
schedule = {
    "day_of_month": integer,
    "days_of_week": ["string"],
    "end_time": "string",
    "frequency": "string",
    "interval": integer,
    "start_time": "string",
    "time": "string",
    "timezone": "string"
}
trigger_conditions = [
    {
        "groups": [None],
        "operator": "string",
        "statements": [
            {
                "data_comparator": "string",
                "data_type": "string",
                "key": "string",
                "task_id": "string",
                "value": "string"
            }
        ]
    }
]

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

# Do not hardcode API credentials!
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)

Back to Table of Contents

ITAutomationGetTaskGroups

Retrieve task groups

PEP8 method name

get_task_group

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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
access_typeService Class SupportNo Uber Class SupportbodystringAccess type for the task group
assigned_user_group_idsService Class SupportNo Uber Class Supportbodystring or list of stringsAssigned user group IDs
assigned_user_idsService Class SupportNo Uber Class Supportbodystring or list of stringsAssigned user IDs
nameService Class SupportNo Uber Class SupportbodystringTask group name
descriptionService Class SupportNo Uber Class SupportbodystringTask group description
task_idsService Class SupportNo Uber Class SupportbodystringTask IDs to add to the group. String or list of strings.

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )


response = falcon.ITAutomationCreateTaskGroup(name="string",
                                              description="string",
                                              task_ids="string",
                                              access_type="string",
                                              assigned_user_group_ids=["string"],
                                              assigned_user_ids=["string"]
                                              )

print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
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)

Back to Table of Contents

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 SupportNo Uber Class SupportbodystringTask group access type
add_assigned_user_group_idsService Class SupportNo Uber Class Supportbodystring or list of stringsUser group IDs to add
add_assigned_user_idsService Class SupportNo Uber Class Supportbodystring or list of stringsUser IDs to add
add_task_idsService Class SupportNo Uber 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 SupportNo Uber Class SupportbodystringTask group description
idService Class SupportUber Class SupportquerystringThe ID of the task group to update
nameService Class SupportNo Uber Class SupportbodystringTask group name
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format
remove_assigned_user_group_idsService Class SupportNo Uber Class Supportbodystring or list of stringsUser group IDs to be removed
remove_assigned_user_idsService Class SupportNo Uber Class Supportbodystring or list of stringsUser IDs to be removed
remove_task_idsService Class SupportNo Uber Class Supportbodystring or list of stringsTask IDs to be removed

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

add_assigned_user_ids = ["string"]
add_assigned_user_group_ids = ["string"]
add_task_ids = ["string"]
remove_assigned_user_ids = ["string"]
remove_assigned_user_group_ids = ["string"]
remove_task_ids = ["string"]

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

add_assigned_user_ids = ["string"]
add_assigned_user_group_ids = ["string"]
add_task_ids = ["string"]
remove_assigned_user_ids = ["string"]
remove_assigned_user_group_ids = ["string"]
remove_task_ids = ["string"]

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

# Do not hardcode API credentials!
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)

Back to Table of Contents

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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 SupportNo Uber Class SupportbodystringTask access type
add_assigned_user_group_idsService Class SupportNo Uber Class Supportbodystring or list of stringsUser group IDs to add
add_assigned_user_idsService Class SupportNo Uber 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 SupportNo Uber Class SupportbodystringTask description
nameService Class SupportNo Uber Class SupportbodystringTask name
os_queryService Class SupportNo Uber Class SupportbodystringOS query detail
output_parser_configService Class SupportNo Uber Class SupportbodydictionaryParser output configuration
queriesService Class SupportNo Uber Class SupportbodydictionaryQueries to perform (by OS)
remediationsService Class SupportNo Uber Class SupportbodydictionaryRemediations to perform (by OS)
remove_assigned_user_group_idsService Class SupportNo Uber Class Supportbodystring or list of stringsUser group IDs to be removed
remove_assigned_user_idsService Class SupportNo Uber Class Supportbodystring or list of stringsUser IDs to be removed
targetService Class SupportNo Uber Class SupportbodystringTask target
task_group_idService Class SupportNo Uber Class SupportbodystringTask group ID
task_parametersService Class SupportNo Uber Class Supportbodylist of dictionariesTask parameters
task_typeService Class SupportNo Uber Class SupportbodystringTask type
trigger_conditionService Class SupportNo Uber Class Supportbodylist of dictionariesTrigger conditions
verification_conditionService Class SupportNo Uber Class Supportbodylist of dictionariesVerification conditions
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

add_assigned_user_ids = ["string"]
add_assigned_user_group_ids = ["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"
    }
}
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"
    }
]
trigger_condition = [
    {
        "groups": [None],
        "operator": "string",
        "statements": [
            {
                "data_comparator": "string",
                "data_type": "string",
                "key": "string",
                "task_id": "string",
                "value": "string"
            }
        ]
    }
]

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

add_assigned_user_ids = ["string"]
add_assigned_user_group_ids = ["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"
    }
}
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"
    }
]
trigger_condition = [
    {
        "groups": [None],
        "operator": "string",
        "statements": [
            {
                "data_comparator": "string",
                "data_type": "string",
                "key": "string",
                "task_id": "string",
                "value": "string"
            }
        ]
    }
]

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

# Do not hardcode API credentials!
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)

Back to Table of Contents

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 SupportNo Uber Class SupportbodystringTask access type
add_assigned_user_group_idsService Class SupportNo Uber Class Supportbodystring or list of stringsUser group IDs to add
add_assigned_user_idsService Class SupportNo Uber 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 SupportNo Uber Class SupportbodystringTask description
idService Class SupportUber Class SupportquerystringID of the task to update. Use ITAutomationSearchTasks to fetch IDs
nameService Class SupportNo Uber Class SupportbodystringTask name
os_queryService Class SupportNo Uber Class SupportbodystringOS query detail
output_parser_configService Class SupportNo Uber Class SupportbodydictionaryParser output configuration
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format
queriesService Class SupportNo Uber Class SupportbodydictionaryQueries to perform (by OS)
remediationsService Class SupportNo Uber Class SupportbodydictionaryRemediations to perform (by OS)
remove_assigned_user_group_idsService Class SupportNo Uber Class Supportbodystring or list of stringsUser group IDs to be removed
remove_assigned_user_idsService Class SupportNo Uber Class Supportbodystring or list of stringsUser IDs to be removed
targetService Class SupportNo Uber Class SupportbodystringTask target
task_group_idService Class SupportNo Uber Class SupportbodystringTask group ID
task_parametersService Class SupportNo Uber Class Supportbodylist of dictionariesTask parameters
task_typeService Class SupportNo Uber Class SupportbodystringTask type
trigger_conditionService Class SupportNo Uber Class Supportbodylist of dictionariesTrigger conditions
verification_conditionService Class SupportNo Uber Class Supportbodylist of dictionariesVerification conditions

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

add_assigned_user_group_ids = ["string"]
add_assigned_user_ids = ["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"]
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"
    }
]
trigger_condition = [
    {
        "groups": [None],
        "operator": "AND",
        "statements": [
            {
                "data_comparator": "LessThan",
                "data_type": "StringType",
                "key": "string",
                "task_id": "string",
                "value": "string"
            }
        ]
    }
]
verification_condition = [
    {
        "groups": [None],
        "operator": "AND",
        "statements": [
            {
                "data_comparator": "LessThan",
                "data_type": "StringType",
                "key": "string",
                "task_id": "string",
                "value": "string"
            }
        ]
    }
]

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

add_assigned_user_group_ids = ["string"]
add_assigned_user_ids = ["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"]
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"
    }
]
trigger_condition = [
    {
        "groups": [None],
        "operator": "AND",
        "statements": [
            {
                "data_comparator": "LessThan",
                "data_type": "StringType",
                "key": "string",
                "task_id": "string",
                "value": "string"
            }
        ]
    }
]
verification_condition = [
    {
        "groups": [None],
        "operator": "AND",
        "statements": [
            {
                "data_comparator": "LessThan",
                "data_type": "StringType",
                "key": "string",
                "task_id": "string",
                "value": "string"
            }
        ]
    }
]

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

# Do not hardcode API credentials!
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)

Back to Table of Contents

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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
platformService Class SupportUber Class SupportquerystringRequired. The platform of policies to retrieve. Allowed values: Windows, Mac, Linux
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents

ITAutomationGetUserGroup

Returns user groups for each provided id

PEP8 method name

get_user_group

Endpoint

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

Required Scope

it_automation

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerylist of stringsUser group IDs
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationGetUserGroup(ids=["string", "string"])
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationGetUserGroup",
                           ids=["string", "string"]
                           )
print(response)

Back to Table of Contents

ITAutomationCreateUserGroup

Creates a user group from the given request

PEP8 method name

create_user_group

Endpoint

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

Required Scope

it_automation

Content-Type

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

Keyword Arguments

NameServiceUberTypeData typeDescription
bodyService Class SupportUber Class SupportbodydictionaryRequired parameter.

Full body payload in JSON format
descriptionService Class SupportNo Uber Class SupportbodystringDescription of the user group.
nameService Class SupportNo Uber Class SupportbodystringName of the user group.

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationCreateUserGroup(description="string",
                                              name="string"
                                              )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

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

Back to Table of Contents

ITAutomationUpdateUserGroup

Update a user group for a given id

PEP8 method name

update_user_group

Endpoint

MethodRoute
PATCH/it-automation/entities/it-user-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. Not required if using other keywords.
add_user_idsService Class SupportNo Uber Class Supportbodylist of stringsList of user IDs to add.
descriptionService Class SupportNo Uber Class SupportbodystringThe updated user group description.
idService Class SupportUber Class SupportquerystringThe ID of the user group to update.
nameService Class SupportNo Uber Class SupportbodystringThe updated user group name.
remove_user_idsService Class SupportNo Uber Class Supportbodylist of stringsList of user IDs to remove.

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.update_user_group(add_user_ids=["string"],
                                    description="string",
                                    name="string",
                                    remove_user_ids=["string"]
                                    )
print(response)
Service class example (Operation ID syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationUpdateUserGroup(add_user_ids=["string"],
                                              description="string",
                                              name="string",
                                              remove_user_ids=["string"]
                                              )
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

body = {
    "add_user_ids": [
        "string"
    ],
    "description": "string",
    "name": "string",
    "remove_user_ids": [
        "string"
    ]
}

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

Back to Table of Contents

ITAutomationDeleteUserGroup

Deletes user groups for each provided ids

PEP8 method name

delete_user_groups

Endpoint

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

Required Scope

it_automation

Content-Type

  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
idsService Class SupportUber Class Supportquerylist of stringsUser group IDs
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format

Usage

Service class example (PEP8 syntax)
from falconpy import ITAutomation

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.ITAutomationDeleteUserGroup(ids=["string", "string"])
print(response)
Uber class example
from falconpy import APIHarnessV2

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

response = falcon.command("ITAutomationDeleteUserGroup",
                           ids=["string", "string"]
                           )
print(response)

Back to Table of Contents

ITAutomationSearchUserGroup

Returns the list of user group ids matching the filter query parameter. It can be used together with the entities endpoint to retrieve full information on user groups

PEP8 method name

search_user_groups

Endpoint

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

Required Scope

it_automation

Content-Type

  • 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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = ITAutomation(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
                      client_secret=CLIENT_SECRET
                      )

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

Back to Table of Contents