Upload, Download, Delete Objects
Once you’ve created a bucket in Akave O3, you can use standard AWS CLI commands to manage your objects. Below are examples using both aws s3api
and the simpler aws s3
CLI syntax.
Upload an Object
Using aws s3api
:
aws s3api put-object \
--bucket my-akave-bucket \
--key myfile.txt \
--body ./myfile.txt \
--endpoint-url https://o3-rc2.akave.xyz
Using aws s3
:
aws s3 cp ./myfile.txt s3://my-akave-bucket/myfile.txt \
--endpoint-url https://o3-rc2.akave.xyz
Download an Object
Using aws s3api
:
aws s3api get-object \
--bucket my-akave-bucket \
--key myfile.txt \
./downloaded-myfile.txt \
--endpoint-url https://o3-rc2.akave.xyz
Using aws s3
:
aws s3 cp s3://my-akave-bucket/myfile.txt ./downloaded-myfile.txt \
--endpoint-url https://o3-rc2.akave.xyz
List Objects
Using aws s3api
:
aws s3api list-objects \
--bucket my-akave-bucket \
--endpoint-url https://o3-rc2.akave.xyz
Using aws s3
:
aws s3 ls s3://my-akave-bucket \
--endpoint-url https://o3-rc2.akave.xyz
Delete an Object
Using aws s3api
:
aws s3api delete-object \
--bucket my-akave-bucket \
--key myfile.txt \
--endpoint-url https://o3-rc2.akave.xyz
Using aws s3
:
aws s3 rm s3://my-akave-bucket/myfile.txt \
--endpoint-url https://o3-rc2.akave.xyz
ℹ️
Akave O3 supports safe characters for object naming only. If using characters that require special handling please be aware that these are not fully supported and may cause issues with the O3 API. See Naming Amazon S3 objects for more information.
Last updated on