0014-00000067

问题描述

PutBucketLifecycle请求的请求体XML中配置的NoncurrentVersionTransition子节点数量超出限制。

问题原因

您发起了PutBucketLifecycle请求,但是请求体XML中单个Rule节点下最多允许配置3NoncurrentVersionTransition子节点。如果配置的NoncurrentVersionTransition子节点数量超出限制,则请求错误。

问题示例

以下请求体XMLRule节点下配置的NoncurrentVersionTransition子节点数量超过3个。

PUT /?lifecycle HTTP/1.1
Host: oss-example.oss.aliyuncs.com
Content-Length: 336
Date: Mon , 6 May 2019 15:23:20 GMT
Authorization: OSSWnjl3fg9fdv8fg4b****:Phuu8bBhS8dsff2a****
<?xml version="1.0" encoding="UTF-8"?>
<LifecycleConfiguration>
  <Rule>
    <ID>rule</ID>
    <Prefix>test</Prefix>
    <Status>Enabled</Status>
    <NoncurrentVersionTransition>
      <NoncurrentDays>30</NoncurrentDays>
      <StorageClass>IA</StorageClass>
    </NoncurrentVersionTransition>
    <NoncurrentVersionTransition>
      ......
    </NoncurrentVersionTransition>
    <NoncurrentVersionTransition>
      ......
    </NoncurrentVersionTransition>
    <NoncurrentVersionTransition>
      <NoncurrentDays>356</NoncurrentDays>
      <StorageClass>ColdArchive</StorageClass>
    </NoncurrentVersionTransition>
  </Rule>
</LifecycleConfiguration>

解决方案

  • 确保单个Rule节点下配置的NoncurrentVersionTransition子节点数量不超过3个。

  • 通过OSS管理控制台配置生命周期规则,避免手动构造请求体

相关文档