Object Storage
Store files as objects in buckets, reach them through the Azion API or the S3 protocol, and serve them from an application.
Object storage keeps a file whole, under a name you choose, in a flat container. There are no directories and no partial writes: a file is written once, read as a unit, and replaced whole. The name is the only address it has, so everything that reads the file later reads it by that name. The model suits anything written rarely and read often, such as images, video, archives, and build output.
Object Storage holds those files on infrastructure Azion operates, as objects inside buckets. A Connector points an application at a bucket, so a request to your domain is answered from it, and code in Azion Runtime reads and writes the same objects during a request. Use Object Storage to serve a static site, hold the assets an application delivers, receive uploads from your users, or collect the data a stream produces.
Quickstart Object Storage guidesThe bucket and the object
A bucket is created with a name and an access level. Nothing else is configured, and the bucket is ready as soon as the request returns:
An object is written into it by key, with its content as the body:
nameis unique across every Azion account, 6 to 63 characters, and cannot be changed afterwards.workloads_accessdecides what the Azion platform may do with the objects when an application serves them. It does not restrict the Azion API or the S3 protocol.- The object key is the whole address. The
assets/segment is part of the key, not a folder that had to exist first. - The stored content type comes from the
Content-Typeheader. With no header, Azion detects it.
If you have used an S3-compatible service, the model transfers: the same buckets and objects answer S3 requests signed with a credential you create.
How a request reaches an object
An object answers three kinds of caller, and they authenticate differently:
Creating a bucket exposes nothing. Until a connector names the bucket and a rule sends requests to it, the objects are reachable only by a caller holding a personal token or an S3 credential. That is the step most first setups miss.
The S3 endpoint is a management interface, dimensioned for creating, listing, and removing objects rather than for serving traffic. End users reach objects through an application, where Cache keeps a copy and the application’s own rules apply.
What Object Storage covers
- Interfaces. Azion Console, the Azion API v4, the Azion CLI, Azion Runtime, the
azionlibrary, and the S3 protocol. All six reach the same buckets. - S3 compatibility. Sixteen S3 operations, signed with an access key and secret key you create as a credential, scoped to the buckets and capabilities you name. Existing S3 tools and SDKs connect to
s3.us-east-005.azionstorage.net. - Access levels.
read_only,read_write, andrestricteddecide what the platform may do when an application serves a bucket. - Serving. A Connector of type Object Storage, plus a Rules Engine rule, put a bucket behind a domain. A prefix on the connector decides where the application’s path starts.
- Bounds. Bucket names are 6 to 63 characters and unique across every Azion account; an object key is up to 1,024 characters; a list returns up to 1,000 keys per page; a bucket is deleted only when it holds no objects and none was removed from it in the last 24 hours. Storage and operations are included per plan. For every bound, refer to Object Storage limits.
- Region. Objects are stored in
us-east-005, and the region is not selectable. - What it does not do. Object Storage does not version objects: writing to a key replaces its content, and the previous version cannot be recovered. It stores unstructured files rather than records, so query it through your own code, or use SQL Database for relational data and KV Store for key-value pairs.