Device List - Managed Antivirus
Service name: mav_scan_device_list
Base URL
https://{SERVER}/api/?apikey={yourAPIkey}&service=mav_scan_device_list
Description
Managed Antivirus specified device list.
Parameters
Required parameters
Add required parameters immediately after the base URL.
https://{SERVER}/api/?apikey={yourAPIkey}&service=mav_scan_device_list&required_parameters={parameter-value}
| Parameter | Description | Type | Options | Default | 
|---|---|---|---|---|
| deviceid | The deviceid must be a valid device id. | integer | 0 | 0 | 
Optional parameters
Add optional parameters after the required parameters in the base URL.
https://{SERVER}/api/?apikey={yourAPIkey}&service=mav_scan_device_list&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
Device list
https://{SERVER}/api/?apikey={yourAPIkey}&service=mav_scan_device_list&deviceid=DEVICEID&v=VERSION
Example response
<?xml version="1.0" ?>
<scans>
  <scan>
    <threateventid>136</threateventid>
    <deviceid>6164</deviceid>
    <status>3</status>
    <scantype>Deep scan</scantype>
    <event_type>1</event_type>
    <scanstartdatetime>2024-05-18 12:00:01</scanstartdatetime>
    <scanenddatetime>2024-05-18 12:30:49</scanenddatetime>
    <threat_count>1</threat_count>
    <trace_count>1</trace_count>
    <quarantine_count>1</quarantine_count>
    <cookies_scanned>0</cookies_scanned>
    <files_scanned>20837</files_scanned>
    <folders_scanned>2046</folders_scanned>
    <registry_scanned>16528</registry_scanned>
    <processes_scanned>25</processes_scanned>
    <scan_errors>2</scan_errors>
    <duration>00:30:48</duration>
  </scan>
</scans>Returned fields
| Field | Type | Can Be Empty | Description | 
|---|---|---|---|
threateventid  | 
  integer  | 
  no  | 
  Unique identifier of the threat.  | 
deviceid  | 
  integer  | 
  no  | 
  Unique identifier of the device being monitored  | 
statusid  | 
  integer  | 
  no  | 
  Numeric representation of the scan status, one of: VIPRE Engine Bitdefender Engine  | 
scantype  | 
  string  | 
  yes  | 
  Scan type, one of VIPRE Engine Bitdefender Engine VIPRE Engine: Please note that where a scan is still running the VIPRE engine will have in progress appended to the scantype.  | 
event_type  | 
  integer  | 
  yes  | 
  Event type, one of: VIPRE Engine Bitdefender Engine  | 
engine  | 
  string  | 
  no  | 
  Managed Antivirus engine where this data originates from, either VIPRE or Bitdefender (field only present where v>1)  | 
scanstartdatetime  | 
  datetime  | 
  no  | 
  Scan start date and time in agent local time. For VIPRE engine scans currently in progress the time string also includes the number of days/hours/minutes since the scan began.  | 
scanenddatetime  | 
  datetime  | 
  yes  | 
  Scan end date and time in agent local time (for scans that have already completed)  | 
threat_count  | 
  integer  | 
  no  | 
  Number of threats detected  | 
trace_count  | 
  integer  | 
  no  | 
  Number of traces detected  | 
quarantine_count  | 
  integer  | 
  no  | 
  Number of threats quarantined  | 
cookies_scanned  | 
  integer  | 
  no  | 
  Number of cookies scanned  | 
files_scanned  | 
  integer  | 
  no  | 
  Number of files scanned  | 
folders_scanned  | 
  integer  | 
  no  | 
  Number of folders scanned Note: for Bitdefender engine scans this is always 0 as Bitdefender does not scan by folder.  | 
registry_scanned  | 
  integer  | 
  no  | 
  Number of registry entries scanned  | 
processes_scanned  | 
  integer  | 
  no  | 
  Number of processes scanned  | 
scan_errors  | 
  integer  | 
  no  | 
  Number of scan errors Note: for Bitdefender engine scans this is always 0.  | 
duration  | 
  hours:min:sec  | 
  yes  | 
  Time taken to carry out scan in hours, minutes, and seconds. This field is empty for scans that are still in progress.  | 
engine  | 
  string  | 
  no  | 
  Managed Antivirus engine where this data originates from, either VIPRE or Bitdefender (field only present where v>1)  | 
Updated 3 months ago