Extend Protection Period of Bucket Compliance Retention Policy
Last Updated:2021-09-13
Interface Description
This interface is used to extend the protection period of the compliance retention policy.
Request URI
POST /v1/{bucketName}/?extendobjectlock
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
Parameter name | Parameter type | Required | Description | Example value |
---|---|---|---|---|
extendRetentionDays | Integer | Yes | New protection period (days). The protection period cannot be shortened. | 2 |
Response Body Parameters
Instructions for Data Structure of Response Body Field
Request Example
POST /v1/bucketName_example/?extendobjectlock
Common Request Header
{
"extendRetentionDays" : 2
}
Response Example
HTTP/1.1 200 OK
<Common response header>
{ }
Error Code
Refer to the universal error code.