Torch Object Storage
Name | Location | Type | Required | Sample Value | Description |
Name | Location | Type | Required | Sample Value | Description |
object-lock | Query | String | Yes | - | A special identifier representing the PutBucketObjectLockConfiguration request. |
Name | Type | Required | Sample Value | Description |
Name | Type | Required | Sample Value | Description |
ObjectLockEnabled | String | Yes | Enabled | Whether to enable the retention policy; the only valid value is Enabled, which indicates that the retention policy is enabled. |
Rule | Object | No | - | Bucket retention policy rules. |
DefaultRetention | Object | No | - | Default retention policy for buckets. Parent Node: Rule. |
Days | Integer | No | 1 | Object lock duration: During the specified number of days, the object cannot be deleted or overwritten. The unit is days, with a valid range of 1 to 36,500 days. tip Only one of the Days or Years parameters needs to be set. Parent Node: DefaultRetention |
Years | Integer | No | 1 | Object lock duration: During the specified number of years, the object cannot be deleted or overwritten. The unit is years, with a valid range of 1 to 100 years. One year is defined as 365 days. tip Only one of the Days or Years parameters needs to be set. Parent Node: DefaultRetention |
Mode | String | No | COMPLIANCE | Retention policy mode, with the only valid value being COMPLIANCE, indicates compliance mode, in which no user can delete or overwrite locked objects during the retention period. Parent Node: DefaultRetention |