Using a life cycle policy
  • PDF

Using a life cycle policy

  • PDF

It is available in a Classic/VPC environment.

NAVER Cloud Platform provides a life cycle policy feature that automatically deletes objects or transfers them to Archive Storage according to the storage period.
If you store frequently-used data in Object Storage with high input and output speed, and transfer data that needs to be stored for a long time for compliance and future analysis to Archive Storage, then you can reduce the total cost of ownership (TCO) and manage data systematically.

  • No additional use fees are charged for the life cycle policy feature.
  • You can't apply a life cycle policy to the bucket to which encryption settings (KMS) are applied.
  • To automatically transfer data to Archive Storage by setting a life cycle policy, you need to request the Archive Storage subscription first. For details about Archive Storage, refer to Service > Storage > Archive Storage in the portal.
  • Automatic transfer to Archive Storage may fail due to constraints on the object name (e.g., exceeding the byte limit, using duplicate slashes (/)).
  • The SSE-C setting object can't use the Archive Storage transfer feature.
  • Data transfer may be delayed a little, depending on the infrastructure situation.
  • The file overwrite feature is not supported by the life cycle policy. Even if the original of the transferred object is changed in Object Storage, it is not reflected in Archive Storage.
Note

The Archive Storage transfer feature is available in Korea region only. Only the feature for deletion at the time of expiration is available in remaining regions.

Lifecycle Management page

The following describes the Lifecycle Management page for using the life cycle policy.

objectstorage-use-lifecycle_screen_ko

Field Description
① Menu name Name of the menu currently being viewed
② Basic features adds a life cycle policy, views the Object Storage details, refreshes the Lifecycle Management page
③ Post-creation features deletes, restarts, and stops the created life cycle policy
④ Life cycle policy list views the list and information of life cycle policies

Viewing the life cycle policy list

You can view the information on each policy in the list of life cycle policies. The following describes how to view the information.

Note
  • The list can be viewed when there is more than one life cycle policy. If there is no life cycle policy, then the list is not displayed in the Lifecycle Management page.
  • Some items may not be displayed in the list, depending on the region.
  1. Click the Services > Storage > Object Storage menus in order in the NAVER Cloud Platform console.
  2. Click the Lifecycle Management menu.
  3. View the information on each policy when the list of life cycle policies is displayed.
    objectstorage-use-lifecycle_list_ko
    • Life cycle Policy
      • Policy type: type of the life cycle policy
      • Application point of time: point of time when the life cycle policy is applied
      • Status: activation status of the life cycle policy
        • ON: policy is activated and can be executed at the time of application
        • OFF: policy is deactivated and can't be executed at the time of application
    • Source
      • Bucket: target bucket for applying the life cycle policy
      • Object naming rule (prefix): prefix that limits the management target object
    • Target
      • Bucket: bucket of Archive Storage where data is transferred when transfer/deletion after transfer is selected
      • Detailed path: detailed path in the bucket of Archive Storage where data is transferred

Creating a life cycle policy

The following describes how to create a new life cycle policy.

  1. Click the Services > Storage > Object Storage menus in order in the NAVER Cloud Platform console.
  2. Click the Lifecycle Management menu.
  3. Click the [Add life cycle policy] button.
  4. When the Add life cycle policy pop-up window is displayed, set the policy.
    • Policy type: Select the type of the policy.
      • Delete upon expiration: The object is deleted after a certain period of time.
      • Transfer: Saves the object in Archive Storage after a certain period of time. (Keep the original in Object Storage.)
      • Delete after transfer: Saves the object in Archive Storage after a certain period of time and delete the original from Object Storage.
    • Transfer time (after creation): point of time when the policy is applied Specify when the object will be deleted or transferred after saving.
    Note

    The transfer/delete after transfer option is available in Korea region only.

  5. Set the management target.
    • Target bucket: target bucket for applying the life cycle policy
    • Object naming rule (prefix): Enter the prefix that will constrain the application target object ( /apache/log/access_).
      • The prefix policy applies to the entire path of the object including the folder and file name.
        If 'test10' is applied as a prefix, the policy is applied to the file name "test101.jpg" and to the file path "test1010/img1.jpg" as well.
  6. When transfer/delete after transfer is selected, set the path of Archive Storage to move the object.
    • Container (bucket) name: Select a bucket in Archive Storage.
    • Detailed path: Sets the detailed path of the transfer destination in the selected bucket ( /apache_log/).
  7. Click the [Next] button.
  8. After checking the content, click the [Finish] button.
    • The life cycle policy is created and its status is automatically set to ON.
Note
  • If the file name of the transfer target is more than 215 bytes, it may not be transferred to Archive Storage.
  • If the file name of the transfer target contains duplicate slashes (/), then it may not be transferred to Archive Storage.

Stopping a life cycle policy

The created life cycle policy can be stopped to prevent its application. The following describes how to stop the policy.

  1. Click the Services > Storage > Object Storage menus in order in the NAVER Cloud Platform console.
  2. Click the Lifecycle Management menu.
  3. Select a policy to be stopped and click the [Stop] button.
  4. When the Stop policy pop-up window is displayed, click the [OK] button.
    • The policy in the life cycle policy list is displayed as OFF.

Restarting a life cycle policy

You can restart the stopped life cycle policy. The following describes how to restart the policy.

  1. Click the Services > Storage > Object Storage menus in order in the NAVER Cloud Platform console.
  2. Click the Lifecycle Management menu.
  3. Select a policy to be restarted and click the [Start] button.
  4. When the Start policy pop-up window is displayed, click the [OK] button.
    • The policy in the life cycle policy list is displayed as ON.

Deleting a life cycle policy

You can delete the life cycle policy that was created. The following describes how to delete it.

Caution

When the life cycle policy is deleted, it can't be restored.

  1. Click the Services > Storage > Object Storage menus in order in the NAVER Cloud Platform console.
  2. Click the Lifecycle Management menu.
  3. Select a policy to be deleted and click the [Delete] button.
  4. When the Delete policy pop-up window is displayed, click the [OK] button.
    • The policy is automatically stopped and cleared in the life cycle policy list.

Was this article helpful?