Baidu AI Cloud
中国站

百度智能云

Object Storage

Extend Protection Period of Bucket Compliance Retention Policy

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.

Previous
Delete Compliance Retention Policy
Next
Get Bucket Compliance Retention Policy