🚧 Coming Soon! 🚧
Please visit HERE for more information
Last modified March 27, 2025

AWS CLI advanced commands

General commands syntax

This section is designed to explain the low-level ‘s3api’ commands for the CLI

aws s3api <Command> [<Arg> ...]

Syntax:

aws s3api --profile=jetbackup --endpoint-url=https://eu-central-2.storage.jetbackup.com <ACTION> <FILE SOURCE> <FILE DESTINATION>

Supported Low-level commands

abort-multipart-upload
complete-multipart-upload
copy-object
create-bucket
create-multipart-upload
delete-bucket
delete-bucket-cors
delete-bucket-encryption
delete-bucket-tagging
delete-object
delete-object-tagging
delete-objects
get-bucket-cors
get-bucket-encryption
get-bucket-location
get-bucket-tagging
get-bucket-versioning
get-object
get-object-attributes
get-object-legal-hold
get-object-lock-configuration
get-object-retention
get-object-tagging
head-bucket
head-object
list-buckets
list-multipart-uploads
list-object-versions
list-objects
list-objects-v2
list-parts
put-bucket-cors
put-bucket-encryption
put-bucket-tagging
put-bucket-versioning
put-object
put-object-legal-hold
put-object-lock-configuration
put-object-retention
put-object-tagging
upload-part
upload-part-copy

Examples

Operations with buckets

aws s3api list-buckets --profile=jetbackup --endpoint-url=https://eu-central-2.storage.jetbackup.com --region us-west-1
aws s3api create-bucket --profile=jetbackup --endpoint-url=https://eu-central-2.storage.jetbackup.com --bucket="my-new-bucket" --region us-west-1
aws s3api delete-bucket --profile=jetbackup --endpoint-url=https://eu-central-2.storage.jetbackup.com --bucket="my-new-bucket" --region us-west-1

Operations with objects

aws s3api list-objects --profile=jetbackup --endpoint-url=https://eu-central-2.storage.jetbackup.com --region us-west-1 --bucket="my-new-bucket"
aws s3api list-objects-v2 --profile=jetbackup --endpoint-url=https://eu-central-2.storage.jetbackup.com --region us-west-1 --bucket="my-new-bucket"
aws s3api list-object-versions --profile=jetbackup --endpoint-url=https://eu-central-2.storage.jetbackup.com --region us-west-1 --bucket="my-new-bucket"
aws s3api get-object --profile=jetbackup --endpoint-url=https://eu-central-2.storage.jetbackup.com --region us-west-1 --bucket="my-new-bucket" --key="myfile.txt" "myfile.txt"

Operations with CORS

aws s3api get-bucket-cors --profile=jetbackup --endpoint-url=https://eu-central-2.storage.jetbackup.com --region us-west-1 --bucket="my-new-bucket"
aws s3api put-bucket-cors --profile=jetbackup --endpoint-url=https://eu-central-2.storage.jetbackup.com --region us-west-1 --cors-configuration file://cors.json --bucket="my-new-bucket"
aws s3api delete-bucket-cors --profile=jetbackup --endpoint-url=https://eu-central-2.storage.jetbackup.com --region us-west-1 --bucket="my-new-bucket"

You can find more information in the AWS CLI user guide and developers guide.