File and Object Storage

 View Only
Expand all | Collapse all

COS Manager- How to Enable Object Lock on a Bucket

  • 1.  COS Manager- How to Enable Object Lock on a Bucket

    Posted Tue October 24, 2023 10:41 AM
    Edited by Andres Parada Wed October 25, 2023 11:32 AM

    COS Manager- How to Enable Object Lock on a Bucket

    Cloud Object Storage Manager  3.17.x

    Storage Pools has  Object Lock: Enabled
    Container Vault has  Object Lock: Enabled
    Created a Bucket (Container)
    Settings > Vaults > Container Mode > Storage Account Portal (Configure) > Create Container
    Found the following 2 articles.
         Ran this via postman:  Results
         404 Not Found
         <Error>
              <Code>ObjectLockConfigurationNotFoundError</Code>
              <Message>Object Lock configuration does not exist for this bucket</Message>
         Not sure how to run this in Postman.
         Where do I get the Content-MD5 <Md5 hash>
          What authentication do I use?   
                Basic Auth: with account created on the system?
                AWS Signature:  with AccessKey and SecerityKey?





  • 2.  RE: COS Manager- How to Enable Object Lock on a Bucket

    Posted Tue November 07, 2023 10:28 AM
    Edited by Andres Parada Tue November 07, 2023 12:22 PM

    I managed to enable object lock on a COS bucket using Amazon AWS CLI.

    AWS CLI can be found here: https://aws.amazon.com/cli/

    Once AWS CLI was installed, I ran the following commands to list and enable the settings...

    Enter Storage Account credentials from COS system:
    aws configure

    List Bucket Versioning Settings:
    aws --endpoint-url {endpoint} s3api get-bucket-versioning --bucket {bucket_name}

    Enable Versioning on Bucket:
    aws --endpoint-url {endpoint} s3api put-bucket-versioning --bucket {bucket_name} --versioning-configuration Status=Enabled

    List Bucket Object Lock Settings:
    aws --endpoint-url {endpoint} s3api get-object-lock-configuration --bucket {bucket_name}

    Enable Object Lock on Bucket:
    aws --endpoint-url {endpoint} s3api put-object-lock-configuration --bucket {bucket_name} --object-lock-configuration ObjectLockEnabled=Enabled

    This is step 4 of https://www.ibm.com/docs/en/coss/3.17.5?topic=olfdd-deployment. Steps 1-3 have to be completed first but sounds like you have that completed already.



    ------------------------------
    Steven Gerbrandt
    ------------------------------