List Managed Antivirus Scans
Service name: list_mav_scans
Base URL
https://{SERVER}/api/?apikey={yourAPIkey}&service=list_mav_scans
Description
Returns list of Managed Antivirus scans for a device; these could be in-progress or complete.
The information is available as summaries (details=NO) or with threats, quarantine and errors included (details=YES).
Parameters
Required parameters
Add required parameters immediately after the base URL.
https://{SERVER}/api/?apikey={yourAPIkey}&service=list_mav_scans&required_parameters={parameter-value}
Parameter | Description | Type | Options | Default |
---|---|---|---|---|
deviceid |
The deviceid must be a valid device id. |
integer |
0 |
0 |
details |
Level of information displayed YES for details; NO for summary |
string |
NO YES |
0 |
Optional parameters
Add optional parameters after the required parameters in the base URL.
https://{SERVER}/api/?apikey={yourAPIkey}&service=list_mav_scans&required_parameters={parameter-value}&optional_parameters={parameter-value}
Parameter | Description | Type | Options | Default |
---|---|---|---|---|
Optional. Returns a description of the entered call, the available parameters, an example of its output, and returned fields with descriptions. |
boolean |
true |
0 |
|
v |
Managed Antivirus engine version |
integer |
1 |
2 |
Determine parameter values
Use the following associated service calls to determine parameter values.
Parameter | Call | URL Format |
---|---|---|
deviceid | list_devices_at_client | https://{SERVER}/api/?apikey=yourAPIkey&service=list_devices_at_client&clientid=CLIENTID&devicetype=server |
list_servers | https://{SERVER}/api/?apikey=yourAPIkey&service=list_servers&siteid=SITEID | |
list_workstations | https://{SERVER}/api/?apikey=yourAPIkey&service=list_workstations&siteid=SITEID | |
siteid | list_sites | https://{SERVER}/api/?apikey=yourAPIkey&service=list_sites&clientid=CLIENTID |
clientid | list_clients | https://{SERVER}/api/?apikey=yourAPIkey&service=list_clients |
Examples
List Managed Antivirus scans for a device
https://{SERVER}/api/?apikey={yourAPIkey}&service=list_mav_scans&deviceid=DEVICEID&details=DETAIL&v=VERSION
Example response for device running the Managed Antivirus VIPRE engine
<?xml version="1.0" ?>
<result created="2024-04-05T10:48:40+01:00" host="SERVER" status="OK">
<scan>[example when details=YES]
<type>[one of: QUICK, DEEP, ACTIVE or CUSTOM]</type>
<status>[one of: NONE, PENDING, PENDING_AGENT, FINISHED, CANCELED, ERROR, PAUSED, RUNNING]</status>
<start>2013-01-15 05:41:55[UTC start time]</start>
<end>2013-01-15 05:41:55[UTC end time; only included if scanning complete]</end>
<cookies_scanned>0</cookies_scanned>
<registry_scanned>0</registry_scanned>
<files_scanned>1</files_scanned>
<folders_scanned>0</folders_scanned>
<processes_scanned>0</processes_scanned>
<threats>[only included when at least one threat is discovered AND details=YES]
<threat>
<name>Worm.Win32.Downad.Gen (v)</name>
<category>Worm.W32</category>
<status>[one of: QUARANTINED, RELEASE_PENDING, RELEASED, DELETE_PENDING, DELETED, REPORTED, FAILED_TO_QUARANTINE, FAILED_TO_RELEASE, FAILED_TO_DELETE]</status>
<quarantine>[only included when item(s) quarantined]
<item>
<guid>{55778734-483C-4BCF-A0F5-4C78ED28CBE1}</guid>
<count>1[number of files (or other scanned entities) included with this quarantine item]</count>
<deleted>[YES or NO]</deleted>
</item>
[...more item entries if they exist...]
</quarantine>
<traces>
<trace>
<type>[one of: COOKIE, PROCESS, REGISTRY_ENTRY, FILE, FOLDER, ARCHIVE, PROCESS_MODULE, DEVICE_DRIVER, DLL_EXPORT, SYSTEM_DLL_EXPORT, MASTER_BOOT RECORD, ROOTKIT, SYSTEM_MODULE, HOOK, UNKNOWN]</type>
<description>[e.g. filename, or registry key with value, or reference to a process etc.]</description>
</trace>
[...more trace entries if they exist...]
</traces>
</threat>
[...more threat entries if they exist...]
</threats>
<errors>[only included if at least one scan error occurred AND details=YES]
<error>
<item>[filename or identifier]</item>
<reason>[scan error - see below]</reason>
</error>
[...more error entries if they exist...]
</errors>
</scan>
<scan>[example when details=NO, i.e. a summary]
<type>QUICK</type>
<status>FINISHED</status>
<start>2013-01-15 08:59:50</start>
<end>2013-01-15 09:03:57</end>
<cookies_scanned>0</cookies_scanned>
<registry_scanned>29563</registry_scanned>
<files_scanned>3297</files_scanned>
<folders_scanned>818</folders_scanned>
<processes_scanned>35</processes_scanned>
<threat_count>37</threat_count>
<quarantine_count>4</quarantine_count>
<error_count>3</error_count>
</scan>
[...more scan entries if they exist...]
</result>
</example>
Returned fields
Field | Included | Description |
---|---|---|
type |
yes |
Scan type, one of:
|
status |
yes |
Scan status, one of:
Bitdefender Engine
|
start |
yes |
Scan start time, e.g. 2013-06-21 19:18:17 |
end |
if scanning complete |
Scan end time, e.g. 2013-06-21 19:27:35 |
cookies_scanned |
yes |
Number of cookies scanned |
registry_scanned |
yes |
Number of registry entries scanned |
files_scanned |
yes |
Number of files scanned |
folders_scanned |
yes |
Number of folders scanned |
processes_scanned |
yes |
Number of processes scanned |
threat_count |
if details=NO |
Count of threats found |
quarantine_count |
if details=NO |
Count of items quarantined |
error_count |
if details=NO, or if v>1 and engine is Bitdefender |
Count of errors encountered |
threats |
if details=YES |
List of threats, each threat having:
|
errors |
if details=YES and at least one scanning error occurred and the engine is VIPRE |
This field is only present for scans performed by the VIPRE engine and only when at least one scanning error occurred. It provides a list of errors which occurred while scanning, each having:
|
engine |
if v > 1 |
Managed Antivirus engine where this data originates from, either VIPRE or Bitdefender |
Field | Included | Description |
---|---|---|
threats |
if details=YES |
List of threats, each threat having:
|
Updated about 1 month ago