ScalixScalix Docs
Sign up

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

plaintext
GET /v1/compute/deployments

Returns all compute deployments for the caller's project.

Auth: Bearer API key

Responses

StatusDescription
200Deployment list
401Missing or invalid API key
500Internal error

operationId: listDeployments

Create a deployment

plaintext
POST /v1/compute/deployments

Deploys 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).

FieldTypeRequiredDescription
namestringYes
imagestringYes
cpuinteger | null (int64)No
memory_mbinteger | null (int64)No
envobject | nullNoEnvironment variables (string → string).
portsarray<integer (int64)>No
replicasinteger | null (int64)No

Responses

StatusDescription
201Deployment created
401Missing or invalid API key
500Internal error

operationId: createDeployment

Delete a deployment

plaintext
DELETE /v1/compute/deployments/{id}

Removes a compute deployment by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesDeployment id

Responses

StatusDescription
200Deployment deleted
401Missing or invalid API key
500Internal error

operationId: deleteDeployment

Get a deployment

plaintext
GET /v1/compute/deployments/{id}

Returns a single compute deployment by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesDeployment id

Responses

StatusDescription
200Deployment details
401Missing or invalid API key
500Internal error

operationId: getDeployment

List deployment instances

plaintext
GET /v1/compute/deployments/{id}/instances

Returns the running instances of a compute deployment.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesDeployment id

Responses

StatusDescription
200Instance list
401Missing or invalid API key
500Internal error

operationId: listDeploymentInstances

Get deployment logs

plaintext
GET /v1/compute/deployments/{id}/logs

Returns log output for a compute deployment.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesDeployment id

Responses

StatusDescription
200Log output
401Missing or invalid API key
500Internal error

operationId: getDeploymentLogs

Restart a deployment

plaintext
POST /v1/compute/deployments/{id}/restart

Restarts all instances of a compute deployment.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesDeployment id

Responses

StatusDescription
200Deployment restarted
401Missing or invalid API key
500Internal error

operationId: restartDeployment

Roll back a deployment

plaintext
POST /v1/compute/deployments/{id}/rollback

Rolls a compute deployment back to a previous version.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesDeployment id

Request body

Rollback request (target version)

application/json (required) — schema object.

Responses

StatusDescription
200Deployment rolled back
401Missing or invalid API key
500Internal error

operationId: rollbackDeployment

Scale a deployment

plaintext
POST /v1/compute/deployments/{id}/scale

Adjusts the instance count (min/max) for a compute deployment.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesDeployment id

Request body

Scale request (min/max instances)

application/json (required) — schema object.

Responses

StatusDescription
200Deployment scaled
401Missing or invalid API key
500Internal error

operationId: scaleDeployment

List deployment versions

plaintext
GET /v1/compute/deployments/{id}/versions

Returns the version history of a compute deployment.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesDeployment id

Responses

StatusDescription
200Deployment versions
401Missing or invalid API key
500Internal error

operationId: listDeploymentVersions

List Scalix Run services

plaintext
GET /v1/run/services

Returns all Scalix Run services for the caller's project.

Auth: Bearer API key

Responses

StatusDescription
200Service list
401Missing or invalid API key
500Internal error

operationId: listServices

Deploy a Scalix Run service

plaintext
POST /v1/run/services

Deploys 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.

FieldTypeRequiredDescription
namestringYesService name, unique within the project.
image_refstringYesContainer image to run.
portinteger | null (int32)NoPort the app listens on inside the instance. Default 8080.
envobject | nullNoEnvironment variables.
memory_mbinteger | null (int32)NoMemory per instance in MB. Default 256, minimum 128.
vcpusinteger | null (int32)NovCPUs per instance. Default 1.
min_instancesinteger | null (int32)NoMinimum instances kept warm. Default 0 (scale to zero).
max_instancesinteger | null (int32)NoMaximum instances. Default 10.
target_concurrencyinteger | null (int32)NoConcurrent requests per instance before scaling out. Default 50.
scale_down_delay_secsinteger | null (int32)NoIdle seconds before scaling in. Default 300.
health_check_pathstring | nullNoHTTP path for the readiness probe. Omit for the default check that the app is listening on port.
timeout_secsinteger | null (int32)NoPer-request timeout in seconds. Default 300.
rollout_strategystring | nullNoinstant, health_gated (default), or canary.
volumesobject | nullNoPersistent volumes. Attaching one pins the service to a single instance and the instant strategy.

Responses

StatusDescription
201Service deployed
401Missing or invalid API key
500Internal error

operationId: createService

Delete a Scalix Run service

plaintext
DELETE /v1/run/services/{id}

Removes a Scalix Run service by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesService id

Responses

StatusDescription
200Service deleted
401Missing or invalid API key
500Internal error

operationId: deleteService

Get a Scalix Run service

plaintext
GET /v1/run/services/{id}

Returns a single Scalix Run service by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesService id

Responses

StatusDescription
200Service details
401Missing or invalid API key
500Internal error

operationId: getService

Update a Scalix Run service

plaintext
PUT /v1/run/services/{id}

Updates a Scalix Run service (e.g. scaling) and returns the new state.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesService 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.

FieldTypeRequiredDescription
image_refstring | nullNo
envobject | nullNo
memory_mbinteger | null (int32)No
vcpusinteger | null (int32)No
min_instancesinteger | null (int32)No
max_instancesinteger | null (int32)No
target_concurrencyinteger | null (int32)No
scale_down_delay_secsinteger | null (int32)No
health_check_pathstring | nullNo
timeout_secsinteger | null (int32)No
rollout_strategystring | nullNoStrategy for the rollout this update triggers.
rollout_stagesobject | nullNoCanary stages, e.g. [{"pct":10,"soak_secs":60}].
ready_thresholdinteger | null (int32)NoInstances that must pass the probe before the revision is promoted.
gate_deadline_secsinteger | null (int32)NoSeconds 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

StatusDescription
200Service updated
401Missing or invalid API key
500Internal error

operationId: updateService

List service instances

plaintext
GET /v1/run/services/{id}/instances

Returns the running instances of a Scalix Run service.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesService id

Responses

StatusDescription
200Service instances
401Missing or invalid API key
500Internal error

operationId: listServiceInstances

Get service live instance state

plaintext
GET /v1/run/services/{id}/metrics

Returns 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

NameInTypeRequiredDescription
idpathstringYesService id

Responses

StatusDescription
200Live instance state
401Missing or invalid API key
500Internal error

operationId: getServiceMetrics

List service revisions

plaintext
GET /v1/run/services/{id}/revisions

Returns the revision history of a Scalix Run service.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesService id

Responses

StatusDescription
200Service revisions
401Missing or invalid API key
500Internal error

operationId: listServiceRevisions

Roll back a service

plaintext
POST /v1/run/services/{id}/rollback

Rolls a Scalix Run service back to a previous revision.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesService id

Request body

Rollback request (target revision)

application/json (required) — schema object.

Responses

StatusDescription
200Service rolled back
401Missing or invalid API key
500Internal error

operationId: rollbackService