Enabling or Suspending Versioning
On Compute Cloud@Customer, object versioning provides data protection against accidental or malicious object updates and deletions.
This task isn't available in the Console.
Use the oci os bucket update command and required parameters to enable or suspend versioning.
For the
--versioning
option, choose one of these values:Enabled
orSuspended
.oci os bucket update --namespace-name <object_storage_namespace> --compartment-id <target_compartment_id> --bucket-name <bucket_name> --versioning <enabled | suspended> [OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the UpdateBucket operation to enable or suspend versioning.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.