Can object lock be applied to existing objects?
- Views:
- 232
- Visibility:
- Public
- Votes:
- 0
- Category:
- storagegrid
- Specialty:
- sgrid
- Last Updated:
- 2/25/2022, 5:49:06 PM
Applies to
- StorageGRID
- 11.5+
Answer
Yes. As long as that bucket was created with S3 Object Lock enabled.
Procedure is similar as for a new object, using a PUT with a retain date.
So like with aws cli :
aws s3api --put-object --bucket xxx
--key xxx
--object-lock-mode COMPLIANCE --object-lock-retain-until-date 2100-00-00T23:59:59