Object Storage quickstart
Create your first Object Storage bucket in Azion Console, the Azion CLI, or the API, upload an object, and confirm the object is stored under its key.
This guide instructs you through storing your first object in Object Storage. By the end you will have:
- Your first bucket, which the Azion platform reads without changing it.
- An object stored in that bucket, addressed by its key.
- The object listed in the bucket, which confirms the upload.
A bucket is not a public folder: an object you upload answers no request from the internet until an application is pointed at it. The result rests on three objects, in this order. The bucket is the top-level container for objects, and buckets do not nest. Each object inside it is a file, its key, and its content type. The key addresses the object: a / in a key is part of the key, not a folder. A connector of type Object Storage, paired with a Rules Engine rule on an application, is what sends a request to the bucket. This guide creates the first two and stops there.
Select the interface you will use. The prerequisites and every stage below follow that choice.
Prerequisites
- A file on your machine to upload, such as an image.
- Permission to create buckets and objects in your account. For more information, refer to Teams Permissions.
- Access to Azion Console. To sign in, refer to Access Azion Console.
Create a bucket
A bucket holds the objects you upload. This one gives the Azion platform read-only access, the level for content the platform serves without changing it.
A bucket name is 6 to 63 characters, uses letters, numbers, and the hyphen, and never begins with azion. It is unique across every Azion account, so a short generic name is likely to be taken.
To create the bucket in Azion Console:
Access Azion Console > Object Storage > Buckets.
Start a new bucket from the Buckets list. An account with no buckets yet offers Bucket on the empty list.
Under General, in Name, enter a name of your own.
Under Settings, keep Workloads Access as Read Only, the default, so the platform reads the objects but cannot modify them.
The bucket appears in Buckets, which lists its Name, Size, Last Editor, and Last Modified.
Upload an object
An object is stored under a key, and the key is how every interface addresses it afterwards. A key holds 1 to 1,024 characters.
To upload the file in Azion Console:
In Buckets, select the bucket you created.
Select Upload files, or drag the file onto the drop target. The file name becomes the object key. The Console refuses a file larger than 300 MB.
The object is stored in the bucket, under the key taken from the file name.
Confirm the object is stored
The bucket lists what it holds, so you can confirm the upload without another interface.
To find the object in Azion Console:
Access Azion Console > Object Storage > Buckets.
Select the bucket you created.
The object is listed under its key. A key that holds a /, such as images/logo.svg, groups under the segment before it: that segment is a prefix, not a folder.
The object is listed under its key, which confirms the upload.
Your first object is stored in Object Storage and addressed by its key. The bucket is reachable through Azion Console, the Azion CLI, the Azion API, and the S3 protocol, and by nothing else yet.
To serve the object to end users, point a connector of type Object Storage at the bucket. A Rules Engine rule on the application then sends matching requests to it. For more information, refer to Use a bucket as an application origin.