Guides · Concept
Concepts
Organisations, projects, resources and requests, and how a change travels from your code to a running service.
The model
Four things matter, and the API is built around them.
| Thing | What it is | Who changes it |
|---|---|---|
| Organisation | Your account. People, billing, tokens, projects and everything below belong to it. | People, in the console |
| Project | A group of resources, for example one per product or environment. Access can be limited to a project. | You, in the console or with POST /projects |
| Resource | Something you own that runs: a domain, a DNS record, a function, a database, a bucket. | Only through requests |
| Request | An ask for a change. It carries who, what, when and how it went. | You create and cancel it. Colossium approves it and runs it. |
A token belongs to one organisation. There is no way to reach another organisation's data with it, and an id from another organisation behaves exactly like an id that does not exist.
Why changes are requests
You do not write to a resource. You ask for a change and follow it. This is deliberate. A request is checked when it arrives (your permission, your plan's limits, the rate, the shape of the input), waits for approval, is run by Colossium, is verified afterwards by reading the result back, and is recorded in the audit log from first to last. Nothing is marked succeeded until the result has been checked.
The same path is used by the console and the API, so a request made with a token is subject to the same checks as one made by a person.
The life of a request
| State | Means | You can |
|---|---|---|
awaiting_approval | Received and checked. Waiting for Colossium to approve it. | Wait, or cancel |
queued | Approved. Waiting to be run. | Wait, or cancel |
running | Being carried out. | Wait |
awaiting_verification | Carried out. Colossium is reading the result back to check it. | Wait |
succeeded | Done and verified. resource_id points at what was made. | Use the resource |
failed | It did not work. failure says why, in plain words. | Fix the cause and ask again with a new idempotency key |
cancelled | Withdrawn before it started. | Nothing |
The last three are final. A request waits for approval because a person decides, so it can take minutes or longer. Your code must expect that: poll gently, and never treat "still waiting" as an error. Requests and approvals has the details.
Ownership and attribution
A request made with a token is attributed to the person who created the token, and the audit log marks it as made by a token. Anyone reading the log can tell what a person did from what a token did on their behalf.
This page as MarkdownReport a problem with this pageOlympus Group Holdings, Inc.