Skip to main content
A newer release of this product is available.

vserver object-store-server bucket lifecycle-management-rule modify

Contributors
Suggest changes

Modify a lifecycle management rule

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The vserver object-store-server bucket lifecycle-management-rule modify command modifies a lifecycle management rule for the object store server bucket.

Parameters

-vserver <Vserver Name> - Vserver Name

This parameter specifies the name of the Vserver on which the bucket lifecycle management rule will be modified for the object store server bucket.

-bucket <TextNoCase> - Object Store Server Bucket Name

This parameter specifies the name of the object store server bucket for which the lifecycle management rule will be modified. The object store server bucket must already exist.

-rule-id <text> - Lifecycle Management Rule Identifier

This parameter specifies the rule identifier of the lifecycle management rule to be applied on the object store server bucket.

-index <integer> - Lifecycle Management Rule Index

This parameter specifies the index of the lifecycle management rule to be applied on the object store server bucket.

[-is-enabled {true|false}] - Is This Rule Enabled?

This parameter specifies whether the configured lifecycle management rule is to be enabled or disabled on the object store server bucket. The default value when a rule is created is true .

{ [-obj-age-days <integer>] - Number of Days since Creation, After Which Current Version of Objects Can be Deleted

This parameter specifies the minimum lifetime, in days since creation, after which objects can be deleted. This parameter is available for expiration actions only.

[-obj-exp-date <MM/DD/YYYY HH:MM:SS>] - Specific Date When the Objects Should Expire

This parameter specifies the expiration date when an object will expire. This parameter is available for expiration actions only.

[-expired-obj-del-marker {true|false}] - Cleanup Object Delete Markers

This parameter specifies whether to delete an object that has a delete marker or not. When set to true , an object with a delete marker will be deleted. This parameter is available for expiration actions only.

| [-new-non-curr-versions <integer>] - Number of Latest Non-current Versions to Be Retained

This parameter specifies the number of latest non-current versions to be retained. This parameter is available for non-current version expiration actions only.

[-non-curr-days <integer>] - Number of Days after Which Non-current Versions will Be Deleted

This parameter specifies the number of days after which non-current versions can be deleted. This parameter is available for non-current version expiration actions only.

| [-after-initiation-days <integer>] - Number of Days of Initiation, After Which Upload Can Be Aborted }

This parameter specifies the number of days of initiation, after which uploads can be aborted. This parameter is available for abort-incomplete multipart upload actions only.

Examples

The following example modifies an object store server bucket lifecycle management rule for Vserver vs1 and bucket1 which specifies expiration action on a set of objects.

cluster1::> vserver object-store-server bucket lifecycle-management-rule modify -vserver vs1 -bucket bucket1 -rule-id rule1 -index 1 -obj-age-days 200"