Compute API
Compute API to deploy, scale, restart, roll back, and inspect container and VM workloads and Scalix Run services in Scalix Cloud.
REST API endpoints for Compute. 19 operations.
List deployments
GET /v1/compute/deploymentsReturns all compute deployments for the caller's project.
Auth: Bearer API key
Responses
| Status | Description |
|---|---|
200 | Deployment list |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listDeployments
Create a deployment
POST /v1/compute/deploymentsDeploys a container/VM compute workload and returns the created deployment.
Auth: Bearer API key
Request body
application/json (required) — schema ComputeDeployRequest.
Deploy a long-running compute service (container/VM).
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
image | string | Yes | |
cpu | integer | null (int64) | No | |
memory_mb | integer | null (int64) | No | |
env | object | null | No | Environment variables (string → string). |
ports | array<integer (int64)> | No | |
replicas | integer | null (int64) | No |
Responses
| Status | Description |
|---|---|
201 | Deployment created |
401 | Missing or invalid API key |
500 | Internal error |
operationId: createDeployment
Delete a deployment
DELETE /v1/compute/deployments/{id}Removes a compute deployment by id.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Deployment id |
Responses
| Status | Description |
|---|---|
200 | Deployment deleted |
401 | Missing or invalid API key |
500 | Internal error |
operationId: deleteDeployment
Get a deployment
GET /v1/compute/deployments/{id}Returns a single compute deployment by id.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Deployment id |
Responses
| Status | Description |
|---|---|
200 | Deployment details |
401 | Missing or invalid API key |
500 | Internal error |
operationId: getDeployment
List deployment instances
GET /v1/compute/deployments/{id}/instancesReturns the running instances of a compute deployment.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Deployment id |
Responses
| Status | Description |
|---|---|
200 | Instance list |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listDeploymentInstances
Get deployment logs
GET /v1/compute/deployments/{id}/logsReturns log output for a compute deployment.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Deployment id |
Responses
| Status | Description |
|---|---|
200 | Log output |
401 | Missing or invalid API key |
500 | Internal error |
operationId: getDeploymentLogs
Restart a deployment
POST /v1/compute/deployments/{id}/restartRestarts all instances of a compute deployment.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Deployment id |
Responses
| Status | Description |
|---|---|
200 | Deployment restarted |
401 | Missing or invalid API key |
500 | Internal error |
operationId: restartDeployment
Roll back a deployment
POST /v1/compute/deployments/{id}/rollbackRolls a compute deployment back to a previous version.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Deployment id |
Request body
Rollback request (target version)
application/json (required) — schema object.
Responses
| Status | Description |
|---|---|
200 | Deployment rolled back |
401 | Missing or invalid API key |
500 | Internal error |
operationId: rollbackDeployment
Scale a deployment
POST /v1/compute/deployments/{id}/scaleAdjusts the instance count (min/max) for a compute deployment.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Deployment id |
Request body
Scale request (min/max instances)
application/json (required) — schema object.
Responses
| Status | Description |
|---|---|
200 | Deployment scaled |
401 | Missing or invalid API key |
500 | Internal error |
operationId: scaleDeployment
List deployment versions
GET /v1/compute/deployments/{id}/versionsReturns the version history of a compute deployment.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Deployment id |
Responses
| Status | Description |
|---|---|
200 | Deployment versions |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listDeploymentVersions
List Scalix Run services
GET /v1/run/servicesReturns all Scalix Run services for the caller's project.
Auth: Bearer API key
Responses
| Status | Description |
|---|---|
200 | Service list |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listServices
Deploy a Scalix Run service
POST /v1/run/servicesDeploys a Scalix Run service and returns the created service.
Auth: Bearer API key
Request body
application/json (required) — schema RunServiceDeployRequest.
A Scalix Run service to deploy.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Service name, unique within the project. |
image_ref | string | Yes | Container image to run. |
port | integer | null (int32) | No | Port the app listens on inside the instance. Default 8080. |
env | object | null | No | Environment variables. |
memory_mb | integer | null (int32) | No | Memory per instance in MB. Default 256, minimum 128. |
vcpus | integer | null (int32) | No | vCPUs per instance. Default 1. |
min_instances | integer | null (int32) | No | Minimum instances kept warm. Default 0 (scale to zero). |
max_instances | integer | null (int32) | No | Maximum instances. Default 10. |
target_concurrency | integer | null (int32) | No | Concurrent requests per instance before scaling out. Default 50. |
scale_down_delay_secs | integer | null (int32) | No | Idle seconds before scaling in. Default 300. |
health_check_path | string | null | No | HTTP path for the readiness probe. Omit for the default check that the app is listening on port. |
timeout_secs | integer | null (int32) | No | Per-request timeout in seconds. Default 300. |
rollout_strategy | string | null | No | instant, health_gated (default), or canary. |
volumes | object | null | No | Persistent volumes. Attaching one pins the service to a single instance and the instant strategy. |
Responses
| Status | Description |
|---|---|
201 | Service deployed |
401 | Missing or invalid API key |
500 | Internal error |
operationId: createService
Delete a Scalix Run service
DELETE /v1/run/services/{id}Removes a Scalix Run service by id.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Service id |
Responses
| Status | Description |
|---|---|
200 | Service deleted |
401 | Missing or invalid API key |
500 | Internal error |
operationId: deleteService
Get a Scalix Run service
GET /v1/run/services/{id}Returns a single Scalix Run service by id.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Service id |
Responses
| Status | Description |
|---|---|
200 | Service details |
401 | Missing or invalid API key |
500 | Internal error |
operationId: getService
Update a Scalix Run service
PUT /v1/run/services/{id}Updates a Scalix Run service (e.g. scaling) and returns the new state.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Service id |
Request body
application/json (required) — schema RunServiceUpdateRequest.
Changes to apply to an existing Scalix Run service. Every field is optional; omitted fields are left as-is. Changing image_ref is what triggers a new revision and a rollout.
| Field | Type | Required | Description |
|---|---|---|---|
image_ref | string | null | No | |
env | object | null | No | |
memory_mb | integer | null (int32) | No | |
vcpus | integer | null (int32) | No | |
min_instances | integer | null (int32) | No | |
max_instances | integer | null (int32) | No | |
target_concurrency | integer | null (int32) | No | |
scale_down_delay_secs | integer | null (int32) | No | |
health_check_path | string | null | No | |
timeout_secs | integer | null (int32) | No | |
rollout_strategy | string | null | No | Strategy for the rollout this update triggers. |
rollout_stages | object | null | No | Canary stages, e.g. [{"pct":10,"soak_secs":60}]. |
ready_threshold | integer | null (int32) | No | Instances that must pass the probe before the revision is promoted. |
gate_deadline_secs | integer | null (int32) | No | Seconds the new revision has to pass its readiness gate before it is rolled back to the previous revision. Raise it for apps with a slow cold start (model loading, large runtimes) - a revision that boots fine but warms up slowly is otherwise reverted, leaving the older revision serving with its own resource settings. |
Responses
| Status | Description |
|---|---|
200 | Service updated |
401 | Missing or invalid API key |
500 | Internal error |
operationId: updateService
List service instances
GET /v1/run/services/{id}/instancesReturns the running instances of a Scalix Run service.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Service id |
Responses
| Status | Description |
|---|---|
200 | Service instances |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listServiceInstances
Get service live instance state
GET /v1/run/services/{id}/metricsReturns healthy/total instance counts and in-flight request totals for a Scalix Run service. Request-level RED metrics (requests/sec, errors/sec, latency percentiles) are served by GET /v1/metering/services/run-service/{id}/metrics, whose response carries available:false with a message when the deployment has no metrics backend.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Service id |
Responses
| Status | Description |
|---|---|
200 | Live instance state |
401 | Missing or invalid API key |
500 | Internal error |
operationId: getServiceMetrics
List service revisions
GET /v1/run/services/{id}/revisionsReturns the revision history of a Scalix Run service.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Service id |
Responses
| Status | Description |
|---|---|
200 | Service revisions |
401 | Missing or invalid API key |
500 | Internal error |
operationId: listServiceRevisions
Roll back a service
POST /v1/run/services/{id}/rollbackRolls a Scalix Run service back to a previous revision.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Service id |
Request body
Rollback request (target revision)
application/json (required) — schema object.
Responses
| Status | Description |
|---|---|
200 | Service rolled back |
401 | Missing or invalid API key |
500 | Internal error |
operationId: rollbackService