Problem description
The retention policy (Write-Once-Read-Many, WORM) feature is not supported in the current region.
Causes
The bucket you targeted is in a region where the WORM retention policy feature is unavailable. This error occurs when any of the following API operations is called against a bucket in an unsupported region:
InitiateBucketWormAbortBucketWormCompleteBucketWorm
Examples
The following request calls InitiateBucketWorm against a bucket in the US (Virginia) (oss-us-east-1) region, which does not support retention policies.
POST /?worm HTTP/1.1
Date: Thu, 15 May 2014 11:18:32 GMT
Content-Length: 556
Content-Type: application/xml
Host: BucketName.oss-us-east-1.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
<InitiateWormConfiguration>
<RetentionPeriodInDays>365</RetentionPeriodInDays>
</InitiateWormConfiguration>Solutions
Retention policies are only available in the regions listed below. Buckets in other regions cannot use InitiateBucketWorm, AbortBucketWorm, or CompleteBucketWorm.
Recreate the bucket in one of the following regions:
China (Hangzhou), China (Shanghai), China (Fuzhou-Local Region-Decommissioning), China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu), China (Hong Kong), US (Silicon Valley), Japan (Tokyo), South Korea (Seoul), Singapore, Malaysia (Kuala Lumpur), Indonesia (Jakarta), Philippines (Manila), Thailand (Bangkok), Germany (Frankfurt), UK (London), and UAE (Dubai).
References
For more information, see Retention policies.