0014-00000051

Updated at:

Problem description

An unsupported storage class is specified in the Transition node of the XML request body for a lifecycle rule that is based on the last access time.

Cause

You specified an unsupported storage class, such as ColdArchive or DeepColdArchive, in the StorageClass child node of the Transition node.

Examples

In the request body, StorageClass is set to ColdArchive in the Transition node. This value is not supported.

PUT /?lifecycle HTTP/1.1
Host: oss-example.oss.aliyuncs.com
Content-Length: 336
Date: Mon , 6 May 2019 15:23:20 GMT
Authorization: OSSqn6q**************:77Dv****************
<?xml version="1.0" encoding="UTF-8"?>
<LifecycleConfiguration>
  <Rule>
    <ID>rule</ID>
    <Prefix>test</Prefix>
    <Status>Enabled</Status>
    <Transition>
      <IsAccessTime>true</IsAccessTime>
      <CreatedBeforeDate>2021-12-30T00:00:00.000Z</CreatedBeforeDate>
      <StorageClass>ColdArchive</StorageClass>
      <ReturnToStdWhenVisit>true</ReturnToStdWhenVisit>
    </Transition>
  </Rule>
</LifecycleConfiguration>

Solutions

  • Change the value of the StorageClass child node to IA in the Transition node.

    PUT /?lifecycle HTTP/1.1
    Host: oss-example.oss-cn-hangzhou.aliyuncs.com
    Content-Length: 336
    Date: Mon , 6 May 2019 15:23:20 GMT
    Authorization: OSS qn6q**************:77Dv****************
    <?xml version="1.0" encoding="UTF-8"?>
    <LifecycleConfiguration>
      <Rule>
        <ID>rule</ID>
        <Prefix>test</Prefix>
        <Status>Enabled</Status>
        <Transition>
          <IsAccessTime>true</IsAccessTime>
          <Days>200</Days>
          <StorageClass>IA</StorageClass>
          <ReturnToStdWhenVisit>true</ReturnToStdWhenVisit>
        </Transition>
      </Rule>
    </LifecycleConfiguration>
  • Configure lifecycle rules in the Object Storage Service (OSS) console to avoid manually constructing the request body.

References