ESET Online Help

Search
Select the category
Select the topic

Automation

Automation calls can trigger actions on the target device via the installed platform. Swagger does not offer a complete list of supported Device tasks. ESET PROTECT Web Console refers to Device tasks as Client tasks.

Automation calls support the following Device tasks:

Device task

task.action.name

Isolate computer from network

StartNetworkIsolation

End computer isolation from network

EndNetworkIsolation

On-demand scan

OnDemandScan

Shut down computer

ShutdownComputer

Stop managing (Uninstall ESET Management Agent)

StopManaging

Software Uninstall (Third-party antivirus software)

ThirdPartyAVRemove

Operating system update

SystemUpdate

Run command

RunCommand

Kill process by PID

KillProcessByPid

Log Out

LogOffComputerUser

You can define the task type using the task.action.name attribute.


important

Use the following examples with your own Universally Unique Identifiers (UUIDs) and task settings. Device domain calls provide the UUID of groups and devices.

Isolate computer from network

arrow_down_businessIsolate computer from network example

End computer isolation from network

arrow_down_businessEnd computer isolation from network example

On-demand scan and Shut down computer tasks

For OnDemandScan and ShutdownComputer, configure additional task settings with task.action.params:

 

Parameter

Value

restart

If restart is set to true, the computer will restart; if it is set to false, the computer will shut down.

actions

The parameter that specifies which actions device users are allowed to take, such as postponing or canceling.

cancelAction

If true, the user will be able to cancel the action.

postpone

The parameter that specifies the duration to postpone the action. Available postpone values are:

Cannot (Default value)

OneHour

ThreeHours

FiveHours

OneDay

ThreeDays

SevenDays

FifteenDays

TwentyDays

ThirtyDays

OnDemandScan parameters:

 

Parameter

Value

cleaningEnabled

If true, cleaning is enabled.

customProfileName

A custom profile name for a custom scan profile.

scanProfile

The parameter that specifies the scan profile to use during the scan. Available scanProfile values are:

InDepth

Smart

ContextMenu

MyProfile

Custom

scanTargets

A list of scan targets. An empty list or an item equals eset://AllTargets which means the full scan.

shutdownEnabled

If true, shutdown is enabled after the scan completion.

shutdownLocked

If true, shutdown is enforced after the scan (cannot be canceled).

powerActions

The parameter that specifies which actions device users can do.

cancelAction

If true, the user will be able to cancel the action.

postpone

The parameter that specifies the duration to postpone the action. Available postpone values are:

Cannot (Default value)

OneHour

ThreeHours

FiveHours

OneDay

ThreeDays

SevenDays

FifteenDays

TwentyDays

ThirtyDays

Example result of OnDemandScan in task_runs[:]:

Parameter

Value

scannedTargets

A list of scanned targets separated by semicolon.

scanned

A number of scanned files.

infected

A number of infected files.

cleaned

A number of cleaned files.

severity

A severity of scan task.

arrow_down_businessOn-demand scan example
arrow_down_businessShut down computer example

Stop managing (Uninstall ESET Management Agent)

arrow_down_businessStop managing (Uninstall ESET Management Agent) example

Software Uninstall (Third-party antivirus software)

arrow_down_businessSoftware Uninstall (Third-party antivirus software) example

Operating system update task

SystemUpdate parameters:

 

Parameter

Value

acceptEula

If set to true, the EULA is accepted automatically if any request for updates is made (only for the Windows platform).

installOptionalUpdates

If set to true, optional updates should be installed (only on the Windows platform).

allowReboot

If set to true, a restart is allowed if an update requests it.

rebootActions

The parameter that specifies which reboot actions device users can do.

cancelAction

If true, the user will be able to cancel the reboot.

postpone

The parameter that specifies the duration to postpone the action. Available postpone values are:

Cannot (Default value)

OneHour

ThreeHours

FiveHours

OneDay

ThreeDays

SevenDays

FifteenDays

TwentyDays

ThirtyDays

arrow_down_businessOperating system update example

Run command task

RunCommand parameters:

 

Parameter

Value

commandLine

A platform dependent command line that will be put into the script file and executed.

currentDirectory

The working directory for the script file.

arrow_down_businessRun command example

Kill process by PID task

KillProcessByPid parameters:

 

Parameter

Value

pid

An integer value of the local Process ID as seen by the operating system.

executableHashSha1

SHA1 hash of the process executable. At least one executable_hash_sha1 or executable_hash_sha2_256 must be set; otherwise, 400 BAD REQUEST will be thrown.

executableHashSha2_256

SHA2-256 hash of the process executable. At least one executable_hash_sha1 or executable_hash_sha2_256 must be set; otherwise, 400 BAD REQUEST will be thrown.

arrow_down_businessKill process by PID example

Log Out task

arrow_down_businessLog Out task example

 


Browse the methods below or in Table of Contents.

Method

Path

Summary

GET

/v1/device_tasks

List device tasks

POST

/v1/device_tasks

Creates [device task].

GET

/v1/device_tasks/{taskUuid}

Get task

DELETE

/v1/device_tasks/{taskUuid}

Delete specified task

GET

/v1/device_tasks/{taskUuid}/runs

List task history

POST

/v1/device_tasks/{taskUuid}:updateTaskTargets

Update task targets

POST

/v1/device_tasks/{taskUuid}:updateTaskTriggers

Update list of task triggers