You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/d/online_archive.html.markdown
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,12 @@ data "mongodbatlas_online_archive" "test" {
33
33
## Attributes reference
34
34
*`db_name` - Name of the database that contains the collection.
35
35
*`coll_name` - Name of the collection.
36
-
*`collection_type` - Classification of MongoDB database collection that you want to return, "TIMESERIES" or "STANDARD". Default is "STANDARD".
36
+
*`collection_type` - Type of MongoDB collection that you want to return. This value can be "TIMESERIES" or "STANDARD". Default is "STANDARD".
37
+
*`criteria` - Criteria to use for archiving data. See [criteria](#criteria).
38
+
*`data_expiration_rule` - Rule for specifying when data should be deleted from the archive. See [data expiration rule](#data-expiration-rule).
39
+
*`schedule` - Regular frequency and duration when archiving process occurs. See [schedule](#schedule).
40
+
*`partition_fields` - Fields to use to partition data. You can specify up to two frequently queried fields to use for partitioning data. Queries that don’t contain the specified fields require a full collection scan of all archived documents, which takes longer and increases your costs. To learn more about how partition improves query performance, see [Data Structure in S3](https://docs.mongodb.com/datalake/admin/optimize-query-performance/#data-structure-in-s3). The value of a partition field can be up to a maximum of 700 characters. Documents with values exceeding 700 characters are not archived. See [partition fields](#partition).
41
+
*`paused` - State of the online archive. This is required for pausing an active online archive or resuming a paused online archive. If the collection has another active online archive, the resume request fails.
37
42
*`state` - Status of the online archive. Valid values are: Pending, Archiving, Idle, Pausing, Paused, Orphaned and Deleted
38
43
39
44
### Criteria
@@ -43,6 +48,10 @@ data "mongodbatlas_online_archive" "test" {
43
48
*`expire_after_days` - Number of days after the value in the criteria.dateField when MongoDB Cloud archives data in the specified cluster. Set this parameter when `type` is `DATE`.
44
49
*`query` - JSON query to use to select documents for archiving. Atlas uses the specified query with the db.collection.find(query) command. The empty document {} to return all documents is not supported. Set this parameter when `type` is `CUSTOM`.
45
50
51
+
### Data Expiration Rule
52
+
*`expire_after_days` - Number of days used in the date criteria for nominating documents for deletion. Value must be between 7 and 9215.
53
+
54
+
46
55
### Schedule
47
56
48
57
*`type` - Type of schedule. Valid values: `DEFAULT`, `DAILY`, `MONTHLY`, `WEEKLY`.
Copy file name to clipboardExpand all lines: website/docs/d/online_archives.html.markdown
+22-14Lines changed: 22 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,27 +36,35 @@ In addition to all arguments above, the following attributes are exported:
36
36
37
37
# Online Archive
38
38
## Attributes reference
39
-
*`db_name` - Name of the database that contains the collection.
40
-
*`coll_name` - Name of the collection.
41
-
*`collection_type` - Classification of MongoDB database collection that you want to return, "TIMESERIES" or "STANDARD". Default is "STANDARD".
42
-
*`state` - Status of the online archive. Valid values are: Pending, Archiving, Idle, Pausing, Paused, Orphaned and Deleted
39
+
*`db_name` - Name of the database that contains the collection.
40
+
*`coll_name` - Name of the collection.
41
+
*`collection_type` - Type of MongoDB collection that you want to return. This value can be "TIMESERIES" or "STANDARD". Default is "STANDARD".
42
+
*`criteria` - Criteria to use for archiving data. See [criteria](#criteria).
43
+
*`data_expiration_rule` - Rule for specifying when data should be deleted from the archive. See [data expiration rule](#data-expiration-rule).
44
+
*`schedule` - Regular frequency and duration when archiving process occurs. See [schedule](#schedule).
45
+
*`partition_fields` - Fields to use to partition data. You can specify up to two frequently queried fields to use for partitioning data. Queries that don’t contain the specified fields require a full collection scan of all archived documents, which takes longer and increases your costs. To learn more about how partition improves query performance, see [Data Structure in S3](https://docs.mongodb.com/datalake/admin/optimize-query-performance/#data-structure-in-s3). The value of a partition field can be up to a maximum of 700 characters. Documents with values exceeding 700 characters are not archived. See [partition fields](#partition).
46
+
*`paused` - State of the online archive. This is required for pausing an active online archive or resuming a paused online archive. If the collection has another active online archive, the resume request fails.
47
+
*`state` - Status of the online archive. Valid values are: Pending, Archiving, Idle, Pausing, Paused, Orphaned and Deleted
43
48
44
49
### Criteria
45
-
*`type`- Type of criteria (DATE, CUSTOM)
46
-
*`date_field`- Indexed database parameter that stores the date that determines when data moves to the online archive. MongoDB Cloud archives the data when the current date exceeds the date in this database parameter plus the number of days specified through the expireAfterDays parameter. Set this parameter when `type` is `DATE`.
47
-
*`date_format`- Syntax used to write the date after which data moves to the online archive. Date can be expressed as ISO 8601 or Epoch timestamps. The Epoch timestamp can be expressed as nanoseconds, milliseconds, or seconds. Set this parameter when `type` is `DATE`. You must set `type` to `DATE` if `collectionType` is `TIMESERIES`. Valid values: ISODATE (default), EPOCH_SECONDS, EPOCH_MILLIS, EPOCH_NANOSECONDS.
50
+
*`type` - Type of criteria (DATE, CUSTOM)
51
+
*`date_field` - Indexed database parameter that stores the date that determines when data moves to the online archive. MongoDB Cloud archives the data when the current date exceeds the date in this database parameter plus the number of days specified through the expireAfterDays parameter. Set this parameter when `type` is `DATE`.
52
+
*`date_format` - Syntax used to write the date after which data moves to the online archive. Date can be expressed as ISO 8601 or Epoch timestamps. The Epoch timestamp can be expressed as nanoseconds, milliseconds, or seconds. Set this parameter when `type` is `DATE`. You must set `type` to `DATE` if `collectionType` is `TIMESERIES`. Valid values: ISODATE (default), EPOCH_SECONDS, EPOCH_MILLIS, EPOCH_NANOSECONDS.
48
53
*`expire_after_days` - Number of days after the value in the criteria.dateField when MongoDB Cloud archives data in the specified cluster. Set this parameter when `type` is `DATE`.
49
54
*`query` - JSON query to use to select documents for archiving. Atlas uses the specified query with the db.collection.find(query) command. The empty document {} to return all documents is not supported. Set this parameter when `type` is `CUSTOM`.
50
55
56
+
### Data Expiration Rule
57
+
*`expire_after_days` - Number of days used in the date criteria for nominating documents for deletion. Value must be between 7 and 9215.
58
+
51
59
### Schedule
52
60
53
-
*`type`- Type of schedule (`DAILY`, `MONTHLY`, `WEEKLY`).
54
-
*`start_hour`- Hour of the day when the when the scheduled window to run one online archive starts.
55
-
*`end_hour`- Hour of the day when the scheduled window to run one online archive ends.
56
-
*`start_minute`- Minute of the hour when the scheduled window to run one online archive starts.
57
-
*`end_minute`- Minute of the hour when the scheduled window to run one online archive ends.
58
-
*`day_of_month`- Day of the month when the scheduled archive starts.
59
-
*`day_of_week`- Day of the week when the scheduled archive starts. The week starts with Monday (1) and ends with Sunday (7).
61
+
*`type` - Type of schedule (`DAILY`, `MONTHLY`, `WEEKLY`).
62
+
*`start_hour` - Hour of the day when the when the scheduled window to run one online archive starts.
63
+
*`end_hour` - Hour of the day when the scheduled window to run one online archive ends.
64
+
*`start_minute` - Minute of the hour when the scheduled window to run one online archive starts.
65
+
*`end_minute` - Minute of the hour when the scheduled window to run one online archive ends.
66
+
*`day_of_month` - Day of the month when the scheduled archive starts.
67
+
*`day_of_week` - Day of the week when the scheduled archive starts. The week starts with Monday (1) and ends with Sunday (7).
60
68
61
69
### Partition
62
70
*`field_name` - Human-readable label that identifies the parameter that MongoDB Cloud uses to partition data. To specify a nested parameter, use the dot notation.
0 commit comments