Attached Object Storage Engine — OQENS Cloud Docs
Attached object storage buckets, file uploads, CDN acceleration, and quota sharing.
Every DBaaS project includes an integrated Object Storage system backed by the OQENS Custom Origin Storage (COS) daemon.
Bucket Management
POST /api/dbaas/v2/projects/:slug/storage/buckets
curl -X POST https://db.echo.oqens.me/api/dbaas/v2/projects/:slug/storage/buckets \
-H "Authorization: Bearer oq_live_..." \
-H "Content-Type: application/json" \
-d '{"bucket_name": "avatars", "is_public": true}'
File Uploads & Direct URLs
Files uploaded to public buckets generate permanent CDN URLs formatted as:
https://echo.oqens.me/storage/:tenant_id/:project_slug/:bucket_name/:filename.
Quota Allocation
Storage buckets draw from the project's allocated disk quota (default 20% of tenant total storage), preventing runaway storage consumption.