Deployment Operations
List Deployments
deployments:read scope)
Query Parameters:
string
Filter by team ID
string
Unique deployment name
string
Deployment status:
Pending, Provisioning, Ready, Error, Deletingstring
Template name used for this deployment
string
Visibility:
public or internalarray
Array of ingress endpoints
string
Error message if status is
Errorboolean
Whether the deployment can be deleted
Create Deployment
deployments:write scope)
Request Body:
string
required
Template name to deploy (e.g., “nginx”, “postgres”)
object
Environment variables as key-value pairs
string
Deployment visibility:
public or internal (default: public)string
Generated deployment name
string
Initial status (typically
Pending)string
Template name
string
Deployment visibility
- Free: 1 deployment
- Business: 10 deployments
- Enterprise: Unlimited
403 Forbidden.
Get Deployment Status
string
required
Deployment name
string
Current status
boolean
Whether the deployment is ready to receive traffic
boolean
Whether the deployment can be deleted
boolean
Whether a new deployment request is allowed
array
Array of ingress endpoints (only when ready)
string
Additional status information or error message
Delete Deployment
desiredState as deleted, and the operator handles cleanup via finalizers.
Authentication: Required (deployments:write scope)
Request Body:
string
required
Name of the deployment to delete
- The API verifies deployment ownership before deletion
- Deployment secrets are automatically cleaned up
- Kubernetes resources are removed by the operator
- Deletion is recorded in billing events
Restart Deployment
string
required
Name of the deployment to restart
Deploy Raw Image
string
required
Container image (e.g.,
nginx:latest, myregistry.com/app:v1.2.3)string
Custom deployment name (auto-generated if not provided)
integer
Port the container listens on (default: 8080)
object
Environment variables as key-value pairs
string
Visibility:
public or internal (default: public)Get Deployment Configuration
string
required
Deployment name
object
Key-value pairs of environment variables
Update Deployment Configuration
string
required
Deployment name
object
required
New environment variables (replaces existing)
Deployment Logs
Get Deployment Logs
string
required
Deployment name
string
Service name for multi-service deployments (default: first service)
integer
Number of recent lines to return (default: 100)
boolean
Stream logs in real-time (default: false)
string
Container logs
Stream Deployment Logs
string
required
Deployment name
string
Service name for multi-service deployments
text/event-stream
Example:
Deployment Metrics
Get Deployment Metrics
string
required
Deployment name
string
Service name for multi-service deployments
string
CPU usage in millicores (e.g., “150m”)
string
Memory usage in bytes (e.g., “256Mi”)
string
ISO 8601 timestamp of measurement
Deployment History
Get Deployment History
string
required
Deployment name
array
Array of revision objects
Auto-Update Configuration
Get Auto-Update Settings
boolean
Whether auto-update is enabled
string
Update strategy (e.g., “rolling”, “recreate”)
Update Auto-Update Settings
string
required
Deployment name
boolean
required
Enable or disable auto-updates
string
Update strategy:
rolling or recreateDeployment Events
Get Deployment Events
string
required
Deployment name
array
Array of Kubernetes event objects
Error Responses
All deployment endpoints may return the following errors:string
Human-readable error message
Common Error Codes
- 400 Bad Request - Missing or invalid parameters
- 403 Forbidden - Deployment limit reached or ownership verification failed
- 404 Not Found - Deployment does not exist
- 409 Conflict - Deployment name already exists
- 500 Internal Server Error - Kubernetes API error or database failure
- 503 Service Unavailable - Operator not available