百度智能云

All Product Document

          Object Storage

          GetCopyrightProtection

          Interface Description

          This command allows you to get the copyright protection configuration of a bucket.

          Request Syntax

          GET /?copyrightProtection HTTP/1.1
          Host: <BucketName>.bj.bcebos.com
          x-bce-date: date
          Authorization: <AuthorizationString>

          Request Example

          GET /?copyrightProtection HTTP/1.1
          Host: <BucketName>.bj.bcebos.com
          x-bce-date: 2016-04-06T06:34:40Z 
          Authorization: AuthorizationString

          Response Example

          HTTP/1.1 200 OK
          Content-Length: 124
          Date: Wed, 06 Apr 2016 06:34:40 GMT
          Server: BceBos
          x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786410
          
          {	
              "resource": [
                  "bucket/prefix/*",
                  "bucket/*/suffix"
              ]
          }

          Response Example

          HTTP/1.1 404
          Date: Wed, 06 Apr 2016 06:34:40 GMT
          Server: BceBos
          x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786410

          Note: Only the requester with the FULL_CONTROL permission is allowed to view the return result. Otherwise, it returns “Error 403: AccessDenied”.

          Previous
          Compliance Retention
          Next
          PutBucketCopyrightProtection