- 02 Feb 2023
- Print
- PDF
Object Locking
- Updated on 02 Feb 2023
- Print
- PDF
Object locking can help prevent objects from being deleted or overwritten for a fixed amount of time or indefinitely. Versioning must be enabled on a bucket before locking can be enabled. Both steps are described below.
Enabling Object Locking
- Toggle Bucket Versioning on the Create Bucket window.
- Toggle Enable Object Locking.
- Click NEXT. The following is displayed.
- Click CREATE BUCKET to create a bucket with object locking enabled.

Setting Object Locking Defaults
When Object Locking is enabled for a bucket, the OBJECT LOCKING tab will be displayed on the settings page for the bucket.
- To see the modes, toggle to enable Bucket-Level Object Retention. By default, Governance Mode is enabled.
- Configure the Retention Time (Number of Days and Time Scale).
- Click APPLY.When you update the retention time, it will apply to newly uploaded objects and not for existing objects.
- Type CONFIRM and then click the CONFIRM button to save selected mode settings.
If you attempt to rename an object that has an active retention, this alert is displayed: “Failed to rename.”
To disable the bucket level object lock settings, toggle off the Bucket-Level Object Retention option and click APPLY.
Viewing Object Lock Information for an Object
- Click on the bucket.
- Click the Bucket Versioning icon
.
- Click on any object.
If object locking is configured on either the bucket or object:
The “Mode,” “Retain Until” date, and “Legal Hold” status are displayed.
If you want to modify the “Mode” and/or “Retain Until” date, click Edit (to the right of Object Locking). After making your change, click APPLY to save the Object Locking changes.
If object locking was not previously configured on the object:
You can click Enable (to the right of Object Locking) to set the “Mode” and “Retain Until” date for the object.
- You can toggle the Legal Hold on or off for the object. When you toggle the Legal Hold, an alert will appear:
- Click CONFIRM to apply the Legal Hold status change.