Object lock keeps a locked object version from being overwritten or deleted until its retention ends. The default lock puts a retention on every new object uploaded to the bucket.
Object lock is turned on with Enable Object Lock when you create the bucket, and that is the only time it can be. To get it for objects in an existing bucket, create a new bucket with object lock and copy the objects across. See Create a bucket.
Set the default retention
Section titled “Set the default retention”Object lock supports the governance mode only.
- In the list, select the bucket and open its Object Lock tab.
- Tick Enable Governance Lock on the objects of this bucket.
- Enter the Retention period in days, from 1 to 36,500. Any other value shows “Enter a value between 1 and 36500”.
- Select Save.
The tab then shows “Governance Lock is enabled on this bucket” and the Retention period. The retention counts from the upload date and applies to new objects only. When you change it, objects already stored and objects already under another retention stay as they are.
Change or remove the default lock
Section titled “Change or remove the default lock”To change the retention period, edit it on the Object Lock tab. To remove the lock, select Remove Lock and confirm. The default lock then stops applying to new uploads. Versions that already took a retention keep it, and you can still set a custom lock on a single version.
Remove the default lock before you delete the bucket. To lock one version, see Lock one object version or place a legal hold. For help with a message, see Troubleshooting TIR Object Storage.
Was this page helpful?