The MASV API allows Team Owners and Admins to route files within a package to specific Portal cloud connections by creating and applying filters.
A filter is a named collection of filter rules used to determine which files should be transferred to the associated connection. This allows you to ingest packages with a single MASV Portal and transfer only specific files to the connections you want. For example, for a package that includes three different file types, you can apply a MASV filter to route each file type to a different connection.
A filter combines all rules into a single expression using the AND operation. A filter must have at least one rule. The maximum number of rules per filter is 20. Each rule in the filter must reference a unique criterion. For example, you cannot have two rules in the same filter with a criterion set to file_name.
A filter rule is composed of the following components:
An action
A criterion
An operator
Value(s)
The basic structure of a filter rule is: “action files when/where criterion operator values”. For example, “include files where file name regex matches \.(?i)(jpe?g|png|gif)$”.
A value refers to the input specified for a rule and uses a pattern determined by the type of operator and criterion. Values are constrained by the following requirements:
If the file_name criterion is selected and the operator is regex_match, the value must be a valid regex string.