List Managed Antivirus Scans
Use this API Call to query our Data Extraction API to extract data gathered by N-sight RMM.This section shows the service name and parameters needed in the API Call query, and provides examples of some queries and system responses. For more information, see Data Extraction API.
Service name: list_mav_scans |
|
URL |
https://SERVER/api/?apikey=yourAPIkey&service=list_mav_scans &required_parameters=required_parameters [&optional_parameters=optional_parameters] |
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 |
|||||
Post Variable |
Description |
Type |
Required |
Options |
Default |
Optional. Returns a description of the service. |
boolean |
no |
true |
0 |
|
deviceid |
The deviceid must be a valid device id. |
integer |
yes |
0 |
0 |
details |
Level of information displayed YES for details; NO for summary |
string |
yes |
NO YES |
0 |
v |
Managed Antivirus engine version 1 VIPRE engine 2 Bitdefender engine
From Dashboard 2019.08.13 this call defaults to version 2 (Bitdefender). |
integer |
no |
1 2 |
2 |
Example Service Call =list_mav_scans |
https://SERVER/api/?apikey=yourAPIkey&service=list_mav_scans&deviceid=DEVICEID&details=DETAIL&v=VERSION |
Example Responses |
VIPRE engine: the following example response displays data for scans on a device running the Managed Antivirus VIPRE engine. |
<?xml version="1.0" ?> <result created="2012-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> |
Field Descriptions |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A result element containing zero or more entries (scan elements in XML), each scan having: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
field |
included |
description |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type |
yes |
Scan type, one of:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status |
yes |
Scan status, one of:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
start |
yes |
Scan start time, e.g. 2013-06-21 19:18:17 For VIPRE engine scans the time is UTC For Bitdefender engine scans the time is the agent local time. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
end |
if scanning complete |
Scan end time, e.g. 2013-06-21 19:27:35 For VIPRE engine scans the time is UTC For Bitdefender engine scans the time is the agent local time. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 Note: For Bitdefender engine scans this is always 0 as the Bitdefender engine does not scan by folder. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 |
Example Associated Service Calls | ||
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 |
The scan information for both the Bitdefender and VIPRE Managed Antivirus engines will go back for one year (where available).
Example Associated Service Calls | ||
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 |