GET /<object-key>?retention HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com
, <BucketName-APPID> is the bucket name followed by the APPID, such as examplebucket-1250000000
(see Bucket Overview > Basic Information and Bucket Overview > Bucket Naming Conventions), and <Region> is a COS region (see Regions and Access Endpoints).<?xml version="1.0" encoding="UTF-8" ?><Retention><RetainUntilDate>timestamp</RetainUntilDate></Retention>
Node Name (Keyword) | Parent Node | Description | Type |
Retention | None | Retention period (during which an object remains locked) | Container |
RetainUntilDate | Retention | Expiration date of the retention period | String |
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><RetainUntilDate>2022-12-10T08:34:48.000Z</RetainUntilDate></Retention>
Was this page helpful?