GET /<object-key>?retention HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
<Retention><Mode>COMPLIANCE</Mode><RetainUntilDate>timestamp</RetainUntilDate></Retention>
Node Name (Keyword) | Parent Node | Description | Type |
Retention | None | Period. | Container |
Mode | Retention | Object lock mode. Only the enumerated value COMPLIANCE is supported. | Enum |
RetainUntilDate | Retention | Specific to date. | String Date |
GET /temp.txt?retention HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comAuthorization: Auth String
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 87Connection: keep-aliveDate: Fri, 09 Dec 2022 08:35:49 GMTServer: tencent-cosx-cos-request-id: NjM5MmYzNjVfMjBkMDM4MGJfMWM2ND****<Retention><Mode>COMPLIANCE</Mode><RetainUntilDate>2022-12-10T08:34:48.000Z</RetainUntilDate></Retention>
Was this page helpful?