Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

set

Enable or suspend versioning on a bucket

Usage

ionosctl object-storage bucket versioning set [flags]

Aliases

For bucket command:

[b]

For versioning command:

[ver]

For set command:

[s]

Description

Set a bucket's versioning status to Enabled or Suspended.

Enabled starts keeping a distinct version for every overwrite/delete, protecting against accidental data loss. Suspended stops creating new versions from that point on but does NOT delete versions already stored, and does not return the bucket to a truly unversioned state. There is no way to fully disable versioning once it has been enabled.

Existing versions keep incurring storage cost; pair versioning with a lifecycle NoncurrentVersionExpiration rule if you want old versions cleaned up automatically. Versioning is also required for Object Lock.

Options

Examples

Last updated

Was this helpful?