...
On This Page
Table of Contents |
---|
Overview
There are two filters available that allow you to filter content by date range or age.
Filter by Date Range
...
The date range filter allows you to
...
filter content based on its created on, modified on, and/or
...
Age
...
last touched date. You can choose to use the After or Before date field but not both. Type the date you want to use as
...
the
...
filter
...
or
...
Attributes
...
Attribute
...
Description
...
targets
...
An array of date targets to which the filter applies. These targets include: none
, created_on
, modified_on
, accessed_on
, and all
.
...
range
...
use
...
type
: Allowed values include day
(default), week
, month
, year
, and range
. The day
, week
, month
, and year
values are used in conjunction with value
to define a sliding range (to
/from
not used). Use range
with to
and from
attributes to define a fixed range.
from
: The date and time the filter begins - a date-time offset in UNIX time format (e.g. 1508544000
for October 21, 2017 12:00 AM UTC)
to
: The date and time the filter ends; see the from attribute for format details
value
: For a sliding range, this value represents the quantity of the range as an integer (e.g. for a type "day"
and value
5
with targets
set to created_on
, the filter will apply to files created within the last five days).
...
type
...
filter_date or date
are the only allowable values for this filter type. Both values signify the same filter.
Example 1
The following example excludes files created between June 25, 2017 and August 25, 2017 from being transferred from the source.
Code Block |
---|
{
...
"transfer": {
...
"filter": {
"source": [{
"action": "exclude",
"rules": [{
"targets": "created_on",
"range": {
"type": "range",
"from": 1508457600,
"to": 1508544000
},
"type": "filter_date"
}
],
"type": "filter_rule"
}
]
}
}
...
} |
Example 2
The following example will only transfer files modified within the last five days.
...
the calendar tool to select the date.