Enabling Versioning During Bucket Creation
On Compute Cloud@Customer, you can enable object versioning during bucket creation using the CLI and API.
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 create command and required parameters to enable object versioning during bucket creation.
oci os bucket create --namespace-name <object_storage_namespace> --compartment-id <target_compartment_id> --name <bucket_name> --versioning enabled [OPTIONS]
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the CreateBucket operation to enable object versioning during bucket creation.
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.