0014-00000042
Updated at:
Description
The Transition element in the XML request body of the PutBucketLifecycle request is not supported in the current region.
Cause
The Transition operation element is not supported for changing the storage class in the region of the bucket specified in the PutBucketLifecycle request.
Example problems
In the following example, the region where the `oss-example` bucket is located does not support the Transition element.
PUT /?lifecycle HTTP/1.1
Host: oss-example.{regionId}.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>180</Days>
<StorageClass>IA</StorageClass>
</Transition>
</Rule>
</LifecycleConfiguration>Solutions
Contact technical support to be added to the whitelist.
Configure a lifecycle rule in the OSS console to avoid manually creating the request body.
References
Is this page helpful?