Resource URL: /platform/<<version=4>>/filepool/default-policy

    Overview: This resource manages the default file pool policy.

     Methods: GET, PUT

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

Method GET: List default file pool policy.

       URL: GET /platform/<<version=4>>/filepool/default-policy

Query arguments:

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"
        }
      }
    }, 
    {
      "type": "object", 
      "description": "A default filepool policy object", 
      "properties": {
        "default-policy": {
          "type": "object", 
          "description": "A default filepool policy object", 
          "properties": {
            "actions": {
              "items": {
                "required": true, 
                "type": "object", 
                "description": "An action to apply to a file matching the policy", 
                "properties": {
                  "action_param": {
                    "required": true, 
                    "type": [
                      "string", 
                      "boolean", 
                      "object", 
                      "null"
                    ], 
                    "description": "Varies according to action_type"
                  }, 
                  "action_type": {
                    "enum": [
                      "set_requested_protection", 
                      "set_data_access_pattern", 
                      "enable_coalescer", 
                      "apply_data_storage_policy", 
                      "apply_snapshot_storage_policy", 
                      "set_cloudpool_policy", 
                      "enable_packing"
                    ], 
                    "type": "string", 
                    "required": true
                  }
                }
              }, 
              "type": "array", 
              "description": "A list of actions to be taken for matching files"
            }
          }
        }
      }
    }
  ]
}

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

Method PUT: Set default file pool policy.

       URL: PUT /platform/<<version=4>>/filepool/default-policy

There are no query arguments for this method.

PUT request body schema:
{
  "additionalProperties": false, 
  "type": "object", 
  "properties": {
    "actions": {
      "minItems": 0, 
      "items": {
        "required": true, 
        "type": "object", 
        "description": "An action to apply to a file matching the policy", 
        "properties": {
          "action_param": {
            "required": true, 
            "type": [
              "string", 
              "boolean", 
              "object", 
              "null"
            ], 
            "description": "Varies according to action_type"
          }, 
          "action_type": {
            "enum": [
              "set_requested_protection", 
              "set_data_access_pattern", 
              "enable_coalescer", 
              "apply_data_storage_policy", 
              "apply_snapshot_storage_policy", 
              "set_cloudpool_policy", 
              "enable_packing"
            ], 
            "type": "string", 
            "required": true
          }
        }
      }, 
      "type": "array", 
      "maxItems": 4294967295
    }
  }
}

There is no JSON response body for this method.
