FilePolicies

Create file policy

Create new file policy.

post/filePolicies

Request

  • Base URL
    https://localhost:8446/api/v2
  • Auth
    API key in header Authorization

Request body

namestring required

File policy name. Must be unique.

case_insensitiveboolean required

Case sensitivity ON/OFF for rules lists.

hydrationstring required

List of hydration rules. Must not contain empty strings. Must contain only valid regular expressions.

exclusionstring required

List of exclusion rules. Must not contain empty strings. Must contain only valid regular expressions.

pinningstring required

List of pinning rules. Must not contain empty strings. Must contain only valid regular expressions.

size_limit_typestring required

Type of size limit.

size_limitnumber required

Cache size limit. Must be greater than 0. Max value is 100, if size_limit_type is equal 'percent'.

clear_cache_whennumber required

Clear cache when percent of used cache storage is equal to specified value. Must be integer. Must be greater than or equal to 0. Must be less than or equal to 100.

clear_cache_untilnumber required

Clear cache cache until percent of used cache storage is back to specified value. Must be integer. Must be greater than or equal to 0. Must be less than or equal to 100. Must be less than clear_cache_when

priority_typestring required

Type of priority.

priority_by_mtimestring

Type of priority by mtime. Required if priority_type is equal 'mtime'. Ignored if other priority_type is selected.

priority_by_namestring

List of names. Required if priority_type is equal 'name'. Ignored if other priority_type is selected. Must not contain empty strings. Must be in correct format and contain only valid regular expressions.

Response

Successful response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.