Parameter | Description
|
Status | Specify the status of the lifecycle rule. You can select Enabled or Disabled.
After you enable a lifecycle rule, objects are deleted based on the configured lifecycle rule. After you disable a lifecycle rule, lifecycle tasks of the lifecycle rule are interrupted.
|
Applied To | Specify the objects on which you want the lifecycle rule to take effect. You can select Objects with Specified Prefix or Whole Bucket.
|
Allow Overlapped Prefixes | Specify whether to allow prefixes that overlap. By default, OSS checks whether the prefix of each lifecycle rule overlaps with that of another lifecycle rule. For example, if the bucket has an existing lifecycle rule (Rule 1) and you want to configure another lifecycle rule (Rule 2) that contains an overlapping prefix:
Rule 1: All objects whose names contain the dir1/ prefix in the bucket are deleted 180 days after the objects are last modified. Rule 2: All objects whose names contain the dir1/dir2/ prefix in the bucket are deleted 30 days after the objects are last modified.
If you do not allow prefix overlapping in the lifecycle configuration, EOS detects that objects in the dir1/dir2/ directory match two deletion rules. Therefore, the two lifecycle rules do not take effect.
If you allow prefix overlapping in the lifecycle configuration, the objects in the dir1/dir2/ directory are deleted after 30 days. Other objects in the dir1/ directory are deleted after 180 days.
|
Prefix | Specify the prefix in the names of objects on which you want the lifecycle rule to take effect.
If you set the prefix to test, all objects whose names contain the test prefix, such as testObj.png and test/testObj.jpg match the lifecycle rule. If you set the prefix to test/, all objects whose names contain the test/ prefix, such as test/example.jpg and test/test.jpg , match the lifecycle rule.
|
Object Lifecycle | Configure rules for objects to specify when the objects expire. Valid values: Days Overdue and Expired At.
|
Lifecycle-based Rules | Configure lifecycle rules to delete expired objects.
For example, you select Modified Time, set Expired At to June 30, 2023, and specify that objects that are last modified before this date are automatically deleted. In this case, objects that are last modified before June 30, 2023 are automatically deleted. The deleted objects cannot be restored.
|