NO.80 A cloud consultant is working on implementation project on OCI. As part of the compliance requirements, the objects placed in object storage should be automatically archived first and then deleted. He is testing a Lifecycle Policy on Object Storage and created a policy as below:
[ { “name”: “Archive_doc”, “action”: “ARCHIVE”, “objectNameFilter”: { “inclusionPrefixes”: “doc”] },
“timeAmount”: 5, “timeunit”: “DAYS”, “isEnabled”: true },
{ “name”: “Delete_doc”, “action”: “DELETE”, “objectNameFilter”: “inclusionPrefixes”: [ “doc”]
1.”timeAmount”: 5, “timeunit”: “DAYS”, “isEnabled”: true }
What will happen after this policy is applied?
Object Lifecycle Management works by defining rules that instruct Object Storage to archive or delete objects on your behalf within a given bucket. A bucket’s lifecycle rules are collectively known as an object lifecycle policy.
You can use a rule to either archive or delete objects and specify the number of days until the specified action is taken.
A rule that deletes an object always takes priority over a rule that would archive that same object.
Recent Comments