...
align | center |
---|
...
On This Page
Table of Contents |
---|
Overview
Files may be included in or excluded from transfers based on metadata attributes, file size, item name patterns, and extensions. This feature is useful for customers who need to transfer only a subset of items based on certain file characteristics.
Info |
---|
When using multiple filters, any include filters will be overwritten/ignored if an overlapping exclude filter is included on the job. For example, if you choose to include a specific file based on path but the file type meets a type specified in an exclude filter, the file will not transfer. |
...
Job Filter Options
For information about specific filters, refer to the corresponding documentation page.
Child pages (Children Display) |
---|
...
General REST API Format
Filters are applied through the REST API by adding a filter
block within the transfer
block of a transfer job body when calling the REST API (POST .../v1/jobs) or using the CLI to create a job. A source
or destination
block or both may be defined. Each refers to the source and destination connections for the job. Note that the filter
block is placed within the transfer
block. The action
value is set to either exclude
or include
.
Include items that match any rule: Transfer items that match any of the defined rules in this filter. Exclude all other content.
Exclude items that match any rule: Exclude items that match any of the defined rules in this filter. All other content will be transferred.
Info |
---|
If the |
Code Block |
---|
{
...
"transfer": {
...
"filter": {
"[source|destination]": [{
"action": "[exclude|include]",
"rules": [{...}],
"type": "filter_rule"
}
]
}
}
...
} |