User Tools

Site Tools


storage:ibm_cos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
storage:ibm_cos [2024/07/27 10:45]
manu [Bucket Object Lock]
storage:ibm_cos [2024/07/27 12:37] (current)
manu
Line 152: Line 152:
   * Create bucket and run commands to enable Versioning and Object Lock on the individual bucket.   * Create bucket and run commands to enable Versioning and Object Lock on the individual bucket.
  
 +__NOTE__ Enabling Object lock will not affect the existing vaults.
  
 The below is an example which I tried in my lab to enable Versioning and then Object Lock. Maybe you can try The below is an example which I tried in my lab to enable Versioning and then Object Lock. Maybe you can try
Line 159: Line 160:
  
 <cli prompt='​%'>​ <cli prompt='​%'>​
-% curl -X PUT http://​10.10.64.98:​8337/​container/​testlockbucket -u jeff:​password -d +% curl -X PUT http://​10.10.64.98:​8337/​container/​testlockbucket -u jeff:​password -d '​{"​storage_location":"​cv1","​service_instance":"​jeff1"​}'​ -H "​Content-Type:​ application/​json"​
-'​{"​storage_location":"​cv1","​service_instance":"​jeff1"​}'​ -H "​Content-Type:​ application/​json"​+
 </​cli>​ </​cli>​
 <​code>​ <​code>​
Line 197: Line 197:
 </​code>​ </​code>​
 <cli prompt='​%'>​ <cli prompt='​%'>​
-% aws s3api get-bucket-versioning --endpoint-url http://​10.10.64.98 --bucket testlockbucket --profile +% aws s3api get-bucket-versioning --endpoint-url http://​10.10.64.98 --bucket testlockbucket --profile jeff-lab2
-jeff-lab2+
 </​cli>​ </​cli>​
 <​code>​ <​code>​
Line 219: Line 218:
  
 <cli prompt='​%'>​ <cli prompt='​%'>​
-% aws s3api put-object-lock-configuration --endpoint-url http://​10.10.64.98 --bucket testlockbucket +% aws s3api put-object-lock-configuration --endpoint-url http://​10.10.64.98 --bucket testlockbucket --object-lock-configuration ObjectLockEnabled=Enabled --profile jeff-lab2
---object-lock-configuration ObjectLockEnabled=Enabled --profile jeff-lab2+
 </​cli>​ </​cli>​
 <cli prompt='​%'>​ <cli prompt='​%'>​
storage/ibm_cos.1722069937.txt.gz · Last modified: 2024/07/27 10:45 by manu