0014-00000045

Updated at:

Problem description

The StorageClass child node is missing from the Transition node in the XML request body of a PutBucketLifecycle request.

Causes

You initiated a PutBucketLifecycle request, but the required StorageClass child node is missing from the Transition node in the XML request body. The StorageClass child node specifies the storage class to which an object transitions.

Problem examples

The following request fails because the required StorageClass child node is missing from 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>
      <Days>30</Days>
    </Transition>
  </Rule>
</LifecycleConfiguration>

Solutions

  • Add the StorageClass child node to the Transition node in the XML request body. Make sure to specify a valid value for the StorageClass child node.

    The StorageClass child node specifies the storage class to which an object transitions. Valid values:

    • IA: Infrequent Access

    • Archive: Archive Storage

    • ColdArchive: Cold Archive

    • DeepColdArchive: Deep Cold Archive

  • You can configure lifecycle rules in the Object Storage Service (OSS) console to avoid manually constructing the request body.

References