Lifecycle Rule of a Bucket
Namespace
obs.Rule
Parameter Description
|
Field |
Type |
Optional or Mandatory |
Description |
|---|---|---|---|
|
id |
str |
Optional when used as a request parameter |
Rule ID. It is a 1-255 character string. |
|
prefix |
str |
Mandatory when used as a request parameter |
Object name prefix identifying one or more objects to which the rule applies The value can be empty, indicating that the rule applies to all objects in the bucket. |
|
status |
str |
Mandatory when used as a request parameter |
Whether this rule is enabled. Possible values are:
|
|
transition |
or list of Transition |
Optional when used as a request parameter |
Object transition policy |
|
expiration |
Optional when used as a request parameter |
Expiration time of the object |
|
|
noncurrentVersionTransition |
or list of NoncurrentVersionTransition |
Optional when used as a request parameter |
Transition policy of the noncurrent object version |
|
noncurrentVersionExpiration |
Optional when used as a request parameter |
Expiration time of a noncurrent object version |
transition, expiration, noncurrentVersionTransition, and noncurrentVersionExpiration cannot be all null.
Last Article: Bucket Lifecycle Settings
Next Article: Object Transition Policy
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.