PutBucketCopyrightProtection
Updated at:2025-11-03
API description
This API is designed to enable the original image protection function of a bucket and specify the resource field to indicate the effective resource scope. For files with original image protection function enabled, anonymous downloads or access and the access with custom image processing parameters are not allowed. Only style-based access or access with valid signatures is allowed.
Request syntax
Plain Text
1PUT /?copyrightProtection HTTP/1.1
2Host: <BucketName>.bj.bcebos.com
3x-bce-date: date
4Content-Length: request-body length
5Content-Type: application/json; charset=utf-8
6Authorization: AuthorizationString
7(request body: json string)
Request example
Plain Text
1PUT /?copyrightProtection HTTP/1.1
2Host: <BucketName>.bj.bcebos.com
3x-bce-date: 2016-04-06T06:34:40Z
4Content-Length: request-body length
5Content-Type: application/json; charset=utf-8
6Authorization: AuthorizationString
7{
8 "resource":[
9 "bucket/prefix/*",
10 "bucket/*/suffix"
11 ]
12}
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786409
3Content-Length: 0
4Date: Wed, 06 Apr 2016 06:34:40 GMT
5Server: BceBos
Note: Users must have FULL_CONTROL permission.
