An object-level retention policy (Object WORM) applies WORM compliance to individual objects, letting you set a separate retention mode and expiration date for each. This topic explains how to use Go SDK V2 to enable Object WORM, query its configuration, and manage object-level retention policies.
Usage notes
This feature is currently available by invitation only. To request access, contact technical support. This feature is available only in the China (Hangzhou), China (Chengdu), China (Shenzhen), China (Guangzhou), China (Qingdao), China (Beijing), China (Hohhot), China (Heyuan), China (Hong Kong), Germany (Frankfurt), Japan (Tokyo), South Korea (Seoul), Singapore, Malaysia (Kuala Lumpur), Indonesia (Jakarta), Philippines (Manila), Thailand (Bangkok), Saudi Arabia (Riyadh), and UAE (Dubai) regions.
The code examples in this topic use the China (Hangzhou) region ID (
cn-hangzhou). These examples use public endpoints by default. If you want to access OSS from other Alibaba Cloud services in the same region, use an internal endpoint. For information about the regions and endpoints that OSS supports, see Regions and Endpoints.