How to create and modify an Edge Storage bucket
Azion Edge Storage allows you to create buckets and integrate your object storage with your edge infrastructure. This guide covers how to create, modify, and delete a bucket using the Azion API.
Go to Edge Storage referenceRead How to upload and download objects from an Edge Storage bucket to learn about object operations.
Creating a read-only bucket via API
Run the following POST
request in your terminal, replacing [TOKEN VALUE]
with your personal token and name
with the desired bucket name to create a new read-only bucket:
You should receive the following response:
Now you can use the bucket name to upload and download objects from the bucket.
Attributing read-write permission to bucket
Run the following PATCH
request in your terminal, replacing [TOKEN VALUE]
with your personal token and bucket_name
with the name of the bucket to attribute the read-write permission:
You should receive the following response:
Removing bucket
Run the following DELETE
request in your terminal, replacing [TOKEN VALUE]
with your personal token and bucket_name
with the name of the bucket you want to delete: