Resource URL: /platform/<<version=3>>/antivirus/policies

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

     Methods: GET, POST, DELETE

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

Method GET: List antivirus scan policies.

       URL: GET /platform/<<version=3>>/antivirus/policies

Query arguments:
  sort=<string> The field that will be used for sorting.
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.
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).

GET response body schema:
{
  "type": "object", 
  "properties": {
    "total": {
      "type": "integer", 
      "description": "Total number of items available."
    }, 
    "policies": {
      "items": {
        "type": "object", 
        "description": "An antivirus scan policy.", 
        "properties": {
          "impact": {
            "type": [
              "string", 
              "null"
            ], 
            "description": "The priority of the antivirus scan job.  Must be a valid job engine impact policy, or null to use the default impact."
          }, 
          "paths": {
            "items": {
              "pattern": "^/ifs.*", 
              "type": "string"
            }, 
            "type": "array", 
            "description": "Paths to include in the scan."
          }, 
          "description": {
            "type": "string", 
            "description": "A description for the policy."
          }, 
          "schedule": {
            "type": [
              "string", 
              "null"
            ], 
            "description": "The schedule for running scans in isi date format.  Examples include: 'every Friday' or 'every day at 4:00'.  A null value means the policy is manually scheduled."
          }, 
          "recursion_depth": {
            "type": "integer", 
            "description": "The depth to recurse in directories.  The default of -1 gives unlimited recursion."
          }, 
          "enabled": {
            "type": "boolean", 
            "description": "Whether the policy is enabled."
          }, 
          "last_run": {
            "type": "integer", 
            "description": "The epoch time of the last run of this policy."
          }, 
          "force_run": {
            "type": "boolean", 
            "description": "Forces the scan to run regardless of whether the files were recently scanned."
          }, 
          "id": {
            "type": "string", 
            "description": "A unique identifier for the policy."
          }, 
          "name": {
            "type": "string", 
            "description": "The name of the policy."
          }
        }
      }, 
      "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 POST: Create new antivirus scan policies.

        URL: POST /platform/<<version=3>>/antivirus/policies

There are no query arguments for this method.

POST request body schema:
{
  "type": [
    {
      "type": "object", 
      "description": "An antivirus scan policy.", 
      "properties": {
        "impact": {
          "type": [
            "string", 
            "null"
          ], 
          "description": "The priority of the antivirus scan job.  Must be a valid job engine impact policy, or null to use the default impact."
        }, 
        "paths": {
          "items": {
            "pattern": "^/ifs.*", 
            "type": "string"
          }, 
          "type": "array", 
          "description": "Paths to include in the scan."
        }, 
        "description": {
          "type": "string", 
          "description": "A description for the policy."
        }, 
        "schedule": {
          "type": [
            "string", 
            "null"
          ], 
          "description": "The schedule for running scans in isi date format.  Examples include: 'every Friday' or 'every day at 4:00'.  A null value means the policy is manually scheduled."
        }, 
        "recursion_depth": {
          "type": "integer", 
          "description": "The depth to recurse in directories.  The default of -1 gives unlimited recursion."
        }, 
        "enabled": {
          "type": "boolean", 
          "description": "Whether the policy is enabled."
        }, 
        "force_run": {
          "type": "boolean", 
          "description": "Forces the scan to run regardless of whether the files were recently scanned."
        }, 
        "name": {
          "required": true, 
          "type": "string", 
          "description": "The name of the policy."
        }
      }
    }, 
    {
      "items": {
        "type": "object", 
        "description": "An antivirus scan policy.", 
        "properties": {
          "impact": {
            "type": [
              "string", 
              "null"
            ], 
            "description": "The priority of the antivirus scan job.  Must be a valid job engine impact policy, or null to use the default impact."
          }, 
          "paths": {
            "items": {
              "pattern": "^/ifs.*", 
              "type": "string"
            }, 
            "type": "array", 
            "description": "Paths to include in the scan."
          }, 
          "description": {
            "type": "string", 
            "description": "A description for the policy."
          }, 
          "schedule": {
            "type": [
              "string", 
              "null"
            ], 
            "description": "The schedule for running scans in isi date format.  Examples include: 'every Friday' or 'every day at 4:00'.  A null value means the policy is manually scheduled."
          }, 
          "recursion_depth": {
            "type": "integer", 
            "description": "The depth to recurse in directories.  The default of -1 gives unlimited recursion."
          }, 
          "enabled": {
            "type": "boolean", 
            "description": "Whether the policy is enabled."
          }, 
          "force_run": {
            "type": "boolean", 
            "description": "Forces the scan to run regardless of whether the files were recently scanned."
          }, 
          "name": {
            "required": true, 
            "type": "string", 
            "description": "The name of the policy."
          }
        }
      }, 
      "type": "array"
    }
  ]
}

POST response body schema:
{
  "type": [
    {
      "type": "object", 
      "properties": {
        "id": {
          "required": true, 
          "type": "string", 
          "description": "ID of created item that can be used to refer to item in the collection-item resource path."
        }
      }
    }, 
    {
      "items": {
        "type": "object", 
        "properties": {
          "id": {
            "required": true, 
            "type": "string", 
            "description": "ID of created item that can be used to refer to item in the collection-item resource path."
          }
        }
      }, 
      "type": "array"
    }
  ]
}

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

Method DELETE: Delete all antivirus scan policies.

          URL: DELETE /platform/<<version=3>>/antivirus/policies

There are no query arguments for this method.

There is no response body for this method.
