arrow-left

All pages
1 of 1

Loading...

Versioning

This document provides instructions to manage Versioning using the CLI. Additionally, these tasks can also be performed using the DCD and APIarrow-up-right.

circle-info

Prerequisites:

  • Set up the AWS CLI by following the installation instructions.

  • Make sure to consider the supported .

hashtag
Commands

Get the versioning state of the bucket:

Enable versioning for the bucket:

List object versions for the bucket:

List object versions for the object my-object.txt:

Endpoints
aws s3api get-bucket-versioning --bucket my-bucket --endpoint-url https://s3.eu-central-2.ionoscloud.com
aws s3api put-bucket-versioning --bucket my-bucket --versioning-configuration Status=Enabled --endpoint-url https://s3.eu-central-2.ionoscloud.com
aws s3api list-object-versions --bucket my-bucket --endpoint-url https://s3.eu-central-2.ionoscloud.com
aws s3api list-object-versions --bucket my-bucket --prefix my-object.txt --endpoint-url https://s3.eu-central-2.ionoscloud.com