diff --git a/object-storage/s3-features.md b/object-storage/s3-features.md index 1f00e72cf29012a98db001ba80118c248f3a9805..28650fbd55c74c0625369acde8bec7b4546071dd 100644 --- a/object-storage/s3-features.md +++ b/object-storage/s3-features.md @@ -68,6 +68,7 @@ For non versioned bucket, if an object with the same key is uploaded it overwrit ???+ note "Bucket name restrictions" The bucket name must be unique within tenant and should contain only uppercase and lowercase letters, numbers, and dashes and periods. The bucket name must only start with a letter or number and must not contain periods next to dashes or multiple periods. We also recommend **NOT using** `/` and `_` in the name, as this would make it impossible to use it via the API. + aws s3api create-bucket --bucket "bucket name" --profile "profil name" --endpoint-url=https://s3.cl2.du.cesnet.cz aws s3api get-bucket-versioning --bucket "bucket name" --profile "profil name" --endpoint-url=https://s3.cl2.du.cesnet.cz @@ -83,18 +84,23 @@ For non versioned bucket, if an object with the same key is uploaded it overwrit ### Adding the object aws s3api put-object --key "file name" --body "file path 1" --bucket "bucket name" --profile "profil name" --endpoint-url=https://s3.cl2.du.cesnet.cz + { "ETag": "\"5ec0f1a7fc3a60bf9360a738973f014d\"", "VersionId": "KdS5Yl0d06bBSYriIddtVb0h5gofiNX" } + aws s3api put-object --key "file name" --body "file path 2" --bucket "bucket name" --profile "profil name" --endpoint-url=https://s3.cl2.du.cesnet.cz + { "ETag": "\"5ec0f1a7fc3a60bf9360a738973f014d\"", "VersionId": "xNQC4pIgMYx59digj5.gk15WC4efOOa" } + aws s3api list-object-versions --bucket "bucket name" --profile "profil name" --endpoint-url=https://s3.cl2.du.cesnet.cz + { "Versions": [ {