0015-00000204

Updated at:

Problem description

The x-oss-acl header in your PutBucketAcl request contains a value that Object Storage Service (OSS) does not support.

Causes

OSS accepts only the following access control list (ACL) values for the x-oss-acl header:

  • private

  • public-read

  • public-read-write

Any other value causes this error.

Examples

The following request triggers the error because not-support-acl is not a valid ACL value:

PUT / HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 24 Feb 2017 03:15:40 GMT
x-oss-acl: not-support-acl
Authorization: OSS qn6q**************:77Dv****************
<?xml version="1.0" encoding="UTF-8"?>
<CreateBucketConfiguration>
    <StorageClass>Standard</StorageClass>
    <DataRedundancyType>LRS</DataRedundancyType>
</CreateBucketConfiguration>

Solutions

Replace the unsupported ACL value with one of the three valid values. The following example uses private:

PUT / HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 24 Feb 2017 03:15:40 GMT
x-oss-acl: private
Authorization: OSS qn6q**************:77Dv****************
<?xml version="1.0" encoding="UTF-8"?>
<CreateBucketConfiguration>
    <StorageClass>Standard</StorageClass>
    <DataRedundancyType>LRS</DataRedundancyType>
</CreateBucketConfiguration>

References

PutBucket