Problem description
The Expiration
element is not supported in the current region.
Causes
You initiated a PutBucketLifecycle request, but the region in which the bucket is located does not support the Expiration
element.
Examples
In the following PutBucketLifecycle request, the Expiration
element exists in the XML body. As a result, an error is reported.
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>
<Expiration>
<Days>180</Days>
</Expiration>
</Rule>
</LifecycleConfiguration>
Replace {RegionId} with the region in which the bucket is located.
Solutions
Contact technical support to configure a whitelist.