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": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "total": {
          "minimum": 0, 
          "type": "integer", 
          "description": "Total number of items available.", 
          "maximum": 4294967295
        }, 
        "reports": {
          "minItems": 0, 
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "A report for an antivirus scan.", 
            "properties": {
              "files": {
                "minimum": 0, 
                "type": "integer", 
                "description": "The number of files scanned.", 
                "maximum": 4294967295
              }, 
              "status": {
                "minLength": 0, 
                "type": "string", 
                "description": "The state of the job.", 
                "maxLength": 255
              }, 
              "end": {
                "type": [
                  {
                    "minimum": 0, 
                    "type": "integer", 
                    "maximum": 4294967295
                  }, 
                  {
                    "type": "null"
                  }
                ], 
                "description": "The time the job ended."
              }, 
              "job_id": {
                "type": [
                  {
                    "minimum": 0, 
                    "type": "integer", 
                    "maximum": 4294967295
                  }, 
                  {
                    "type": "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": {
                "minimum": 0, 
                "type": "integer", 
                "description": "The number of infections found.", 
                "maximum": 4294967295
              }, 
              "bytes_sent": {
                "minimum": 0, 
                "type": "integer", 
                "description": "The number of bytes sent to the virus definition server to be scanned.", 
                "maximum": 18446744073709551615
              }, 
              "start": {
                "type": [
                  {
                    "minimum": 0, 
                    "type": "integer", 
                    "maximum": 4294967295
                  }, 
                  {
                    "type": "null"
                  }
                ], 
                "description": "The time the job started."
              }, 
              "duration": {
                "minimum": 0, 
                "type": "integer", 
                "description": "The length of time the job ran for.", 
                "maximum": 4294967295
              }, 
              "size": {
                "minimum": 0, 
                "type": "integer", 
                "description": "The cumulative size of the files scanned.", 
                "maximum": 18446744073709551615
              }, 
              "id": {
                "minLength": 0, 
                "type": "string", 
                "description": "A unique identifier for the report.", 
                "maxLength": 255
              }, 
              "policy_id": {
                "minLength": 0, 
                "type": "string", 
                "description": "The id of the policy that this scan job executed.", 
                "maxLength": 255
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }, 
        "resume": {
          "minLength": 0, 
          "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 JSON response body for this method.
