V3 Policy structure for Create/Update

Policy structure to create or update a new policy.

🚧

Warning

Updating a policy requires to send a whole data that was used for creation a policy with modification to be applied. There is no partial update.

AppliesTo

Configuration applies to policy

FieldTypeRequiredDescription
dataTypestringYesThe list of data types that policy should apply to. Can't be empty. Can be one of [“Messages","RoomMeta", "SignalMeta", "FileContent", "FileMeta"].
actionstringYesAction to be taken on violation detection.
Can be one of ["Block", "Warn", "LogOnly"]. The default is "LogOnly".
Required - No for Action
rulesrules

array_object

See Rules
YesA Rule defines the matching specification for the policy.
It holds a type and a corresponding configuration.The properties of the rule are used to build the match implementation.
Only one of the following configuration properties should be set - [textMatchConfig, filePasswordConfig, fileClassifierConfig].

Rules

A Rule defines the matching specification for the policy.

FieldTypeRequiredDescription
typestringYesType of the rule used by the policy. Only one of the following configuration properties should be set - [“TEXT_MATCH", ","FILE_PASSWORD", "FILE_CLASSIFIER"].
namestringYesName for rule.
textMatchConfigobjectOnly one of the configuration property should be set [textMatchConfig, fileClassifierConfig, filePasswordConfig].This is a configuration that can be used to match text or regex. Configuration that can be used by a rule. This is a configuration that can be used to match text or regex. This configuration also corresponds to V2 TextMatch/RegexMatch of dictionaries. See TextMatchConfig
filePasswordConfigobjectOnly one of the configuration property should be set [textMatchConfig, fileClassifierConfig, filePasswordConfig].Password protected detection config for files that are password protected or not.
fileClassifierConfigobjectOnly one of the configuration property should be set [textMatchConfig, fileClassifierConfig, filePasswordConfig].File classifier config
to check If files contain k-v pairs in the classifers map

TextMatchConfig

FieldTypeRequiredDescription
dictionariesarray_object
see DictionaryMeta
YesList of dictionaries to apply in config. See DictionaryMeta
countUniqueOccurrencesstringYesCount of unique occurrences to be matched.
applicableFileTypesarray_stringFile types must be applied only for rule type "FileContent", otherwise must be empty.Can be ["PDF", "WORD", "EXCEL", "POWERPOINT", "ZIP", "CSV", "TXT"].

Field

DictionaryMeta

FieldTypeRequiredDescription
dictIdstringYesUnique dictionary identifier.
namestringYesDictionary version.
versionstringYesDictionary name.

FileClassifierConfig

FieldTypeRequiredDescription
classifiersMap<String, String>YesClassifier is defined as a Key and its Value: e.g.: "classification": "Internal". Name and value can contain UTF-8 characters. Neither the name nor value cannot be left empty.
Maximum 30 characters for the name and value, case insensitive.
If files contains k-v pairs in the classifers map, it means a match. Maximum 30 classifiers per policy.
applicableFileTypesarray_stringYesFile types that can be applied. Can be ["PDF", "WORD", "EXCEL", "POWERPOINT", "ZIP", "CSV", "TXT"].

FilePasswordConfig

FieldTypeRequiredDescription
applicableFileTypesarray_stringYesFile types that can be applied. Can be ["PDF", "WORD", "EXCEL", "POWERPOINT", "ZIP", "CSV", "TXT"].
matchCriteriaarray_stringYesBased on the criteria, whether a file is password protected or not means a match.Can be ["PASSWORD_PROTECTED". "NOT_PASSWORD_PROTECTED"]. The default is "NOT_PASSWORD_PROTECTED".