Summary
Patterns can be used to filter containers
and items
based on the name.
An asterisk (*) can be used for exact matches or prefix/suffix matches (e.g. *txt for .txt extensions). You can also use asterisks to surround a pattern to filter file and/or folder names (e.g. names that contain *text*). Use a semicolon (;) for multiple patterns (e.g. *.txt;*.tmp)
Below is a description of the three attributes:
Attribute | Description |
---|---|
text | The pattern to use to filter items. An asterisk (*) can be used for exact matches or prefix/suffix matches (e.g. *txt for .txt extensions). To filter file and/or folder names, you can use wildcard to surround a pattern (e.g. filter names that contain *text*). Use a semicolon (;) for multiple patterns (e.g. *.txt;*.tmp). Matches will ignore case. For example, a text value of "secret" will match values including secret , Secret , and SECRET . |
targets | An optional array of item types, including container , item , all , or none . By default all is used. |
type | filter_pattern or pattern are the only allowable values for this filter type. Both values signify the same filter. |
REST API - Example 1
The example below excludes any container (e.g. directory) with 'secret' as any part of its name from being transferred from the source.
POST {{url}}v1/jobs
1 |
|