0014-00000014
Updated at:
Problem description
The number of rules in the submitted lifecycle configuration exceeds the limit.
Causes
The number of rules in the lifecycle configuration exceeds 1,000.
Examples
The maximum number of lifecycle rules allowed for a bucket is 1,000. If the number of rules exceeds 1,000, an error is returned.
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>
......
</Rule>
......(1,500 Rule nodes are omitted here)......
<Rule>
......
</Rule>
</LifecycleConfiguration>
Solutions
-
Make sure that the number of rules in the lifecycle configuration is 1,000 or less.
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>log/</Prefix> <Status>Enabled</Status> <Transition> <Days>30</Days> <StorageClass>IA</StorageClass> </Transition> <Transition> <Days>60</Days> <StorageClass>Archive</StorageClass> </Transition> <Expiration> <Days>3600</Days> </Expiration> </Rule> </LifecycleConfiguration> -
Configure lifecycle rules in the Object Storage Service (OSS) console to avoid manually creating the request body.
References
Is this page helpful?