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

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

     Methods: GET

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

Method GET: List antivirus threat reports.

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

Query arguments:
       sort=<string> The field that will be used for sorting.
    scan_id=<string> If present, only returns threat reports associated with
                     the given scan report.
     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).
       file=<string> If present, only returns threat reports for the given file.
remediation=<string> If present, only returns threat reports with the given
                     remediation.
          dir=<enum> Where <enum> is one of ASC, DESC.  The direction of the
                     sort.

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 threat.", 
            "properties": {
              "scan_id": {
                "minLength": 0, 
                "type": "string", 
                "description": "The id of the scan report this threat is associated with.", 
                "maxLength": 255
              }, 
              "file": {
                "minLength": 0, 
                "type": "string", 
                "description": "The file that contained the threat.", 
                "maxLength": 4096
              }, 
              "threat": {
                "minLength": 0, 
                "type": "string", 
                "description": "A description of the threat that was found.", 
                "maxLength": 255
              }, 
              "time": {
                "type": [
                  {
                    "minimum": 0, 
                    "type": "integer", 
                    "maximum": 4294967295
                  }, 
                  {
                    "type": "null"
                  }
                ], 
                "description": "The time that the threat was found, in Unix epoch seconds."
              }, 
              "remediation": {
                "minLength": 0, 
                "type": "string", 
                "description": "The action that was taken to remediate the threat.", 
                "maxLength": 255
              }, 
              "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 found this threat.", 
                "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)."
        }
      }
    }
  ]
}
