CompleteBucketObjectLock
Updated at:2025-11-03
API description
The compliance retention policy will be immediately set to the LOCKED status. Once locked, the policy cannot be deleted unless the associated bucket is deleted. Please configure this with care.
Request
-
Request syntax
Plain Text1POST /?completeobjectlock HTTP/1.1 2Host: <BucketName>.bj.bcebos.com 3Date: <Date> 4Authorization: <Authorization_String> -
Request parameters
No special request parameters
-
Request headers
No special request headers
Response
Example
-
Request example
Plain Text1POST /?completeobjectlock HTTP/1.1 2Host: <BucketName>.bj.bcebos.com 3x-bce-date: 2016-04-06T06:34:40Z 4Authorization: AuthorizationString -
Response example
Plain Text1HTTP/1.1 200 OK 2x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786409 3Content-Length: 0 4Date: Wed, 06 Apr 2016 06:34:40 GMT 5Server: BceBos -
Return codes
| Result | http status | error code | Description |
|---|---|---|---|
| Succeeded | 200 | - | - |
| No compliance policy configured | 404 | NoSuchObjectLock | No compliance policy is configured; locking cannot be executed. |
| The compliance policy has already been locked | 409 | ObjectLockAlreadyLocked | - |
| Compliance policy cannot be locked upon expiration | 409 | ObjectLockAlreadyExpired | - |
