API¶
The console, the command-line client, the Go SDK, the Terraform provider and the GitHub Actions all use the same GraphQL API.
| Endpoint | https://gateway.cloud.rso.dev/graphql |
| Authentication | Authorization: Bearer <access token> (see Service accounts) |
| Tenant | X-Tenant: <tenant-id> on every request |
| Region | X-Region: BG_CENTRAL_1 (optional) |
curl -s https://gateway.cloud.rso.dev/graphql \
-H "Authorization: Bearer $RSO_DEV_ACCESS_TOKEN" \
-H "X-Tenant: <tenant-id>" \
-H "Content-Type: application/json" \
-d '{"query":"query { quota { name used limit } }"}'
Where things run is the platform's business: the arguments clusterId and namespace that some
operations still accept are optional, and a tenant never has to send them.
Conventions¶
- Errors come back in the GraphQL
errorsarray with a machine-readableextensions.code, for exampleAUTHENTICATION_ERROR,NOT_FOUND,QUOTA_EXCEEDED. - Long-running operations (creating an instance) return a task id; poll
taskProgress(taskId)untilCOMPLETEDorFAILED. - Request ids: every response carries
X-Request-Id; send your own to correlate with the audit log. - Limits: query depth 15, 500 selections per operation, 50 operations per batch. Schema introspection is disabled in production.
Every query, mutation and type is listed in the reference, generated from the schema on each gateway release, with the built-in role each operation requires. Finer control is described under Access management. Earlier names of some operations still work; they are listed once, under Deprecated names.
Configuration document¶
GET https://gateway.cloud.rso.dev/.well-known/rso-configuration needs no token and tells a
client where everything is, so nothing has to be hard-coded:
| Field | Meaning |
|---|---|
api_version |
Version of this document |
graphql_endpoint, queues_endpoint, inference_endpoint |
The API addresses |
issuer, token_endpoint, device_authorization_endpoint |
Where to sign in |
client_id |
The public client to sign in as |
scopes_supported, grant_types_supported |
What the sign-in accepts: a service account's name and secret, a device code for a person, and renewal |
The command-line client and the SDK read it on their own.
HTTP data APIs¶
Two products are used over plain HTTP, with the same token and X-Tenant header:
| Base path | Product |
|---|---|
https://gateway.cloud.rso.dev/ai |
AI models: OpenAI-compatible inference |
https://gateway.cloud.rso.dev/queues/v1 |
Queues and topics: publish and receive messages |
Everything else, creating and managing resources, goes through GraphQL. For automation prefer the command-line client or the Go SDK.