When creating a lifecycle rule, you can define expiration periods and clean up actions at the bucket level.

You can define for the actions to take effect on all objects within a bucket, or to a subset of the objects within the bucket.

Prerequisites

Verify that you have the required set of rights to create a lifecycle rule for a bucket.
  • If you are an organization administrator, you can create rules for the buckets that users in your organization own.
  • If you are an organization user, you can create rules for the buckets that you own.

Procedure

  1. Log in to the VMware Cloud Director tenant portal.
  2. From the More drop-down menu, select Object Storage.
  3. In the Buckets pane, click the name of the bucket for which you want to create a rule.
  4. On the Lifecycle tab, click New Rule.
  5. To activate or deactivate the rule, move the Status slider.
    You can create an inactive rule and activate it later.
  6. Select the scope of the rule.
    1. You can apply the rule to all objects in the bucket, or apply the rule to specific objects within the bucket.
    2. If you select to apply the rule to specific objects, enter a prefix for the objects to which the rule is applied.
    3. (Optional) To create a folder using the prefix you entered, select the Prefix as a folder check box.
  7. Define the actions of the rule.
    To create a lifecycle rule, define at least one action.
    1. Enter an expiration period for the current version of objects.
      If you select this action, you cannot select the option to clean up the delete markers of expired objects.
    2. Enter an expiration period for previous versions of objects.
    3. To clean up the delete markers of expired object, select the check box.
      If you select this action, you cannot select an expiration period for the current version of objects.
    4. To clean up incomplete multipart uploads, enter a waiting period and select the check box.
  8. Click Save.