Editing the Object Lifecycle Policy in Object Storage
Update the object lifecycle policy for an Object Storage bucket.
- Open the navigation menu and click Storage. Under Object Storage & Archive Storage, click Buckets.
- Select the compartment from the list under List Scope. All buckets in that compartment are listed in tabular form.
- Click the bucket whose lifecycle rule you want to edit. The bucket's Details page appears.
- Click Lifecycle Policy Rules under Resources. The Lifecycle Policy Rules list appears. All lifecycle policy rules are listed in tabular form.
- Click next to the rule that you want to edit, and select Edit. The Edit Lifecycle Rule dialog log appears.
- Make you edits. See Creating the Object Lifecycle Policy in Object Storage for descriptions of the settings.
- Click Save Changes.
Use the oci os object-lifecycle-policy put command and required parameters to edit the object lifecycle policy for a bucket:
Running this command for an existing lifecycle policy replaces the existing policy rules with an updated version that includes whatever changes to the configuration you make. See Creating the Object Lifecycle Policy in Object Storage for more information on configuring a lifecycle policy for a bucket.oci os object-lifecycle-policy put --bucket-name bucket_name [OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the PutObjectLifecyclePolicy operation to edit the object lifecycle policy for a bucket. Running this operation for an existing lifecycle policy replaces the existing policy rules with an updated version that includes whatever changes to the configuration you make.
See Creating the Object Lifecycle Policy in Object Storage for more information on configuring a lifecycle policy for a bucket.