0032-00000009

问题描述

PutBucketLogging请求中的XML配置有误,您不是指定的存储日志目标Bucket的所有者。

问题原因

您发起了PutBucketLogging请求,但是请求体XML配置有误,/BucketLoggingStatus/LoggingEnabled/TargetBucket节点表示日志转存的目标Bucket,该接口要求您指定的目标Bucket必须是您所用账号所有,而您提供的Bucket不属于你所用的账号。

问题示例

比如您发起了如下请求:

PUT /?logging HTTP/1.1
Date: GMT Date
Content-Length:ContentLength
Content-Type: application/xml
Authorization: SignatureValue 
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
    <LoggingEnabled>
    		<TargetBucket>Bucket-Not-Belong</TargetBucket>
        <TargetPrefix>TargetPrefix</TargetPrefix>
    </LoggingEnabled>
</BucketLoggingStatus>

上述请求请求体XML的节点LoggingEnabled中的TargetBucket子节点值为Bucket-Not-Belong,如果该Bucket名称对应的Bucket不属于您所用的账号,则会产生该错误。

解决方案

请确保您发起的请求中XML节点TargetBucket的值正确无误,是您的账号所拥有的Bucket:

PUT /?logging HTTP/1.1
Date: GMT Date
Content-Length:ContentLength
Content-Type: application/xml
Authorization: SignatureValue 
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
    <LoggingEnabled>
        <TargetBucket>TargetBucket</TargetBucket>
        <TargetPrefix>TargetPrefix</TargetPrefix>
    </LoggingEnabled>
</BucketLoggingStatus>

相关文档