Automatically placing hold on google cloud storage objects after 24 hours

What is the best approach to placing a hold on an object in cloud storage automatically after the file reaches a certain age? A default hold policy on a bucket would put a hold on right away, so that does not work. Google Cloud Storage Object Lifecycle Management does not apply to this because placing a hold is not one of the available actions for Object Lifecycle Management. Is a Cloud Function something that would be good for this kind of thing? If so, what would be a good strategy when using one to solve this need?

3 2 127
2 REPLIES 2

Hi @evanderkarr,

Welcome to Google Cloud Community!

You can use object holds as this option could place holds by default on new objects and placing holds on individual objects as well. You can also view the hold status and manage individual object holds on other existing objects in the bucket.

Hope this helps.

Hello,

This does not help, I want to have a hold applied automatically once an object reaches a certain age. This means that applying one instantly by default does not satisfy the question, and managing individual objects manually does not either.