百度智能云

All Product Document

          Object Storage

          Lock Bucket Compliance Retention Policy

          Interface Description

          This interface is used to lock the compliance retention policy immediately so that it changes to the LOCKED status. When the compliance retention policy is in the LOCKED status, no one can delete the policy unless this bucket is deleted.

          Request URI

          POST /v1/{bucketName}/?completeobjectlock

          Parameter Name Parameter Type Required Description Example Value Parameter Position
          bucketName String Yes Bucket name "bucketName_example" Path

          Request Body Parameters

          Instructions for Data Structure of Request Body Field

          Response Body Parameters

          Instructions for Data Structure of Response Body Field

          Request Example

          POST /v1/bucketName_example/?completeobjectlock
          Common Request Header
          
          
          { }

          Response Example

          HTTP/1.1 200 OK
          <Common response header>
          
          { }

          Error Code

          Refer to the universal error code.

          Previous
          Initialize Compliance Retention Policy
          Next
          Copyright Protection