Resource URL: /platform/<<version=3>>/antivirus/reports/scans

    Overview: This resource uses the standard collection pattern to present
              antivirus scan reports.

     Methods: GET, DELETE

********************************************************************************

Method GET: List antivirus scan reports.

       URL: GET /platform/<<version=3>>/antivirus/reports/scans

Query arguments:
     sort=<string> The field that will be used for sorting.
     status=<enum> Where <enum> is one of Finish, Succeeded, Failed, Cancelled,
                   Started, Paused, Resumed, Pending.  If present, only scan
                   reports with this status will be returned.
   resume=<string> Continue returning results from previous call using this
                   token (token should come from the previous call, resume
                   cannot be used with other options).
   limit=<integer> Return no more than this many results at once (see resume).
        dir=<enum> Where <enum> is one of ASC, DESC.  The direction of the sort.
policy_id=<string> If present, only reports for scans associated with this
                   policy will be returned.

GET response body schema:
{
  "type": "object", 
  "properties": {
    "total": {
      "type": "integer", 
      "description": "Total number of items available."
    }, 
    "reports": {
      "items": {
        "type": "object", 
        "description": "A report for an antivirus scan.", 
        "properties": {
          "files": {
            "type": "integer", 
            "description": "The number of file scanned."
          }, 
          "status": {
            "type": "string", 
            "description": "The state of the job."
          }, 
          "end": {
            "type": [
              "integer", 
              "null"
            ], 
            "description": "The time the job ended."
          }, 
          "job_id": {
            "type": [
              "integer", 
              "null"
            ], 
            "description": "The ID of the job that ran the policy.  If the scan was manually run on a single file, this field will be null."
          }, 
          "infections": {
            "type": "integer", 
            "description": "The number of infections found."
          }, 
          "bytes_sent": {
            "type": "integer", 
            "description": "The number of bytes sent to the virus definition server to be scanned."
          }, 
          "start": {
            "type": [
              "integer", 
              "null"
            ], 
            "description": "The time the job started."
          }, 
          "duration": {
            "type": "integer", 
            "description": "The length of time the job ran for."
          }, 
          "size": {
            "type": "integer", 
            "description": "The cumulative size of the file scanned."
          }, 
          "id": {
            "type": "string", 
            "description": "A unique identifier for the report."
          }, 
          "policy_id": {
            "type": "string", 
            "description": "The id of the policy that this scan job executed."
          }
        }
      }, 
      "type": "array"
    }, 
    "resume": {
      "type": [
        "string", 
        "null"
      ], 
      "description": "Continue returning results from previous call using this token (token should come from the previous call, resume cannot be used with other options)."
    }
  }
}

********************************************************************************

Method DELETE: Delete antivirus scan reports, and any threat reports associated
               with those scans.

          URL: DELETE /platform/<<version=3>>/antivirus/reports/scans

Query arguments:
age=<integer> An amount of time in seconds. If present, only reports older than
              this age are deleted.

There is no response body for this method.
