Can I Use a Lifecycle Rule to Delete Objects or Transition Storage Classes Based on Name Suffixes?
Currently, lifecycle rules do not support suffix matching. However, you can use the following methods to delete objects with specified name suffixes or transition the storage class of such objects:
- Method 1: Use the prefix filter criteria of a lifecycle rule to filter objects.
Create a specific folder (for example, test/) in the bucket to store the objects with specified name suffixes. When configuring a lifecycle rule to delete the objects or transition their storage class, set the prefix to test/ to filter out these objects.
- Method 2: Use the tag filter criteria of a lifecycle rule to filter objects.
Add the same tag (for example, with the tag key of testobs and the tag value of test) to all objects with the specified name suffix in the bucket. When configuring a lifecycle rule, set the tag filter criteria to the tag key of testobs and the tag value of test to filter out these objects.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot