0014-00000044

Updated at:

Problem description

The storage class specified in the Transition node in the XML request body of the PutBucketLifecycle request is invalid.

Causes

You sent a PutBucketLifecycle request, but the storage class specified in the Transition node of the XML request body is invalid.

Examples

In the following example, StorageClass is set to test in the first Transition node. This value is invalid and causes the request to fail.

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>
      <StorageClass>test</StorageClass>
    </Transition>
    <Transition>
      <Days>356</Days>
      <StorageClass>ColdArchive</StorageClass>
    </Transition>
  </Rule>
</LifecycleConfiguration>

Solutions

  • Ensure that the value of the StorageClass child node within the Transition node is valid.

    The StorageClass child node specifies the storage class to which objects are transitioned. Valid values are:

    • 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 creating the request body.

References