List Managed Antivirus Quarantine
Service name: list_mav_quarantine
Base URL
https://{SERVER}/api/?apikey={yourAPIkey}&service=list_mav_quarantine
Description
Lists the contents of Managed Antivirus (MAV) quarantine. The **items **parameter controls whether to include CURRENT (default), PREVIOUS or ALL items.
Parameters
Required parameters
Add required parameters immediately after the base URL.
https://{SERVER}/api/?apikey={yourAPIkey}&service=list_mav_quarantine&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=list_mav_quarantine&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  | 
|
items  | 
  Controls whether to include CURRENT, PREVIOUS or ALL items.  | 
  string  | 
  CURRENT  | 
  current  | 
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 the contents of the MAV quarantine
https://{SERVER}/api/?apikey={yourAPIkey}&service=list_mav_quarantine&deviceid=DEVICEID&items=ITEMS&v=VERSION
Example response
<?xml version="1.0" ?>
<result created="2013-10-09T10:55:41+01:00" host="SERVER" status="OK">
  <quarantined_item>
    <quarantine_id>[unique id for the quarantine item]</quarantine_id>
    <scan_start>[start date and time of scan which quarantined this item]</scan_start>
    <scan_end>[end date and time of scan which quarantined this item]</scan_end>
    <guid>[unique quarantine identifier on the device]</guid>
    <threat_name>[name of threat]</threat_name>
    <threat_category>[category of threat]</threat_category>
    <status>
      [if current item, one of: QUARANTINED, RELEASE_PENDING, DELETE_PENDING, FAILED_TO_RELEASE, FAILED_TO_DELETE]
      [if previous item, one of: RELEASED, DELETED]
    </status>
    <scan_type>[one of: QUICK, DEEP, ACTIVE, CUSTOM]</scan_type>
    <traces>
      <trace>
        <type>[see list_mav_scans trace types]</type>
        <description>[description of what has been quarantined]</description>
      </trace>
      [...more trace entries if they exist...]
    </traces>
  </quarantined_item>
  [...more quarantined_item entries if they exist...]
</result>Returned fields
A result element containing zero or more entries (quarantined_item elements in XML), each quarantined_item having:
| Field | Description | |
|---|---|---|
quarantine_id  | 
  Unique id for the quarantined item 
  | 
  |
scan_start  | 
  Start time of scan 
  | 
  |
scan_end  | 
  End time of scan 
  | 
  |
guid  | 
  Unique identifier on the device for this quarantine item 
  | 
  |
threat_name  | 
  Name of threat  | 
  |
threat_category  | 
  Category of threat 
  | 
  |
status  | 
  Quarantine item status, one of 
  | 
  |
scan_type  | 
  Scan type, one of: 
 
  | 
  |
traces  | 
  List of threats, each threat having: 
 
  | 
  |
engine  | 
  Managed Antivirus engine where this data originates from, either VIPRE or Bitdefender (field only present where v>1)  | 
  
Updated 3 months ago