How to download an object from an Edge Storage bucket

This guide walks you through downloading an object from an Edge Storage bucket using the Azion API and Azion Runtime.

Downloading an object from a bucket

To download the object, run the following GET request in your terminal, replacing [TOKEN VALUE] with your personal token, <bucket_name> with the name of your bucket, and <object_key> with the key created for the object:

Terminal window
curl --location 'https://api.azion.com/v4/storage/buckets/<bucket_name>/objects/<object_key>' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]'

You should now see the contents of the object in your terminal.


Contributors