GetBucketObjectLock
Last Updated:2021-12-08
Interface Description
This interface is used to get the configuration information of the compliance retention policy.
Request
-
Request syntax
GET /?objectlock HTTP/1.1 Host: <BucketName>.bj.bcebos.com Date: <Date> Authorization: <Authorization_String>
-
Request parameters
No special request parameters
-
Request header field
No special request header field.
Response
Parameters | Description |
---|---|
lockStatus | Status of the compliance retention policy. |
createDate | Creation time of the compliance retention policy |
expirationDate | Expiration time of the compliance retention policy. The compliance retention policy can expire only when it is in the IN_PROGRESS status. |
retentionDays | Protection period of the compliance retention policy (days). |
Example
-
Request example
GET /?objectlock HTTP/1.1 Host: <BucketName>.bj.bcebos.com x-bce-date: 2019-12-06T06:34:40Z Authorization: AuthorizationString
-
Response example
HTTP/1.1 200 OK x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786409 Content-Length: 0 Date: Wed, 06 Apr 2019 12:06:40 GMT Server: BceBos { "lockStatus": "IN_PROGRESS", "createDate": 1569317168, "expirationDate": 1569403568, "retentionDays": 3 }