Lock Bucket Compliance Retention Policy
Last Updated:2021-09-13
Interface Description
This interface is used to lock the compliance retention policy immediately so that it changes to the LOCKED status. When the compliance retention policy is in the LOCKED status, no one can delete the policy unless this bucket is deleted.
Request URI
POST /v1/{bucketName}/?completeobjectlock
Parameter Name | Parameter Type | Required | Description | Example Value | Parameter Position |
---|---|---|---|---|---|
bucketName | String | Yes | Bucket name | "bucketName_example" | Path |
Request Body Parameters
Instructions for Data Structure of Request Body Field
Response Body Parameters
Instructions for Data Structure of Response Body Field
Request Example
POST /v1/bucketName_example/?completeobjectlock
Common Request Header
{ }
Response Example
HTTP/1.1 200 OK
<Common response header>
{ }
Error Code
Refer to the universal error code.