0027-00000005
Updated at:
Problem description
The value of the RetentionPeriodInDays parameter that is specified for the retention policy is invalid.
Causes
You initiated a request that is related to bucket retention policy configurations, such as InitiateBucketWorm and ExtendBucketWorm, but the value of the RetentionPeriodInDays parameter is invalid.
Examples
In the following example, the value of the RetentionPeriodInDays parameter is test. This value is invalid.
POST /?worm HTTP/1.1
Date: Thu, 15 May 2014 11:18:32 GMT
Content-Length: 556
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
<InitiateWormConfiguration>
<RetentionPeriodInDays>test</RetentionPeriodInDays>
</InitiateWormConfiguration>
Solutions
The RetentionPeriodInDays parameter specifies the retention period of a retention policy. Unit: days. Valid values: 1 to 25550. Make sure that a valid value is specified for the RetentionPeriodInDays parameter.
POST /?worm HTTP/1.1
Date: Thu, 15 May 2014 11:18:32 GMT
Content-Length: 556
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
<InitiateWormConfiguration>
<RetentionPeriodInDays>365</RetentionPeriodInDays>
</InitiateWormConfiguration>
References
Is this page helpful?