How to list objects in an Edge Storage bucket

This guide walks you through listing the objects in an Edge Storage bucket using the Azion API, Azion CLI, and Azion Runtime.

Listing a bucket’s objects

To list the objects in a bucket, run the following GET request in your terminal, replacing [TOKEN VALUE] with your personal token and <bucket_name> with the name of your bucket:

curl --location 'https://api.azion.com/v4/storage/buckets/<bucket_name>/objects?page_size=10&page=1' \
--header 'Accept: application/json' \
--header 'Authorization: Token [TOKEN VALUE]'

You should receive the following response:

{ "continuation_token": null, "results": [ { "key": "index.html", "last_modified": "2024-01-18T18:47:18.886000Z", "size": 217 } ]
}

Contributors