CompleteBucketObjectLock
Last Updated:2021-12-08
Interface Description
This interface is used to lock the compliance retention policy immediately so that the policy changes to the LOCKED status. With the compliance retention policy being in the LOCKED status, nobody can delete the policy unless this bucket is deleted.
Request
-
Request syntax
POST /?completeobjectlock 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
Example
-
Request example
POST /?completeobjectlock HTTP/1.1 Host: <BucketName>.bj.bcebos.com x-bce-date: 2016-04-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 2016 06:34:40 GMT Server: BceBos
-
Return cannotode
Results | Http Status | Error Code | Description |
---|---|---|---|
Success | 200 | - | - |
The compliance policy is not configured | 404 | NoSuchObjectLock | The compliance policy is not configured and cannot be locked. |
The compliance policy has been locked. | 409 | ObjectLockAlreadyLocked | - |
The expired compliance policy cannot be locked. | 409 | ObjectLockAlreadyExpired | - |