百度智能云

All Product Document

          Object Storage

          Enable Copyright Protection Feature of Bucket

          Interface Description

          This interface is used to enable the copyright protection feature of the bucket and specify the resource field to indicate the effective resource range. For the file with copyright protection enabled, the anonymous download and access to this file or the access with custom photo processing parameters are not allowed. Only style access or access with a legal signature is allowed.

          Note: Users must have the FULL_CONTROL permission.

          Request URI

          PUT /v1/{bucketName}/?copyrightProtection

          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

          Parameter Name Parameter Type Required? Description Example Value
          resource List No Indicate the effective resource range.

          Response Body Parameters

          Description of Data Structure for Response Body Field

          Request Example

          PUT /v1/bucketName_example/?copyrightProtection
          Common Request Header
          
          
          {
            "resource" : [ "bucket/prefix/*" ]
          }

          Response Example

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

          Error Code

          Refer to the universal error code.

          Previous
          Disable Copyright Protection Configuration of Bucket
          Next
          Get Copyright Protection Configuration of Bucket