Compute API
Container and VM deployment
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.
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
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
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 object.
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 object.
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
application/json (required) — schema object.
Responses
| Status | Description |
|---|---|
200 | Service rolled back |
401 | Missing or invalid API key |
500 | Internal error |
operationId: rollbackService