List Deployments
POST/deploy-svc/deployments
Retrieve a list of deployments.
Request
- application/json
Body
List Deploys Request
object
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
deployments
object[]
autoScaling
object
CPU usage threshold for scaling (as a percentage)
Maximum number of replicas to run
Minimum number of replicas to run
DefinitionId is the id of the definition
Description of what this deployment does
Details provides additional information about the deployment's current state, including both success and failure conditions (e.g., "Deployment in progress", "Error pulling image").
envars
object
Envars is a map of environment variables that will be passed down to service instances (see Registry Svc Instance) Also see the Registry Svc Definition for required envars.
ID of the deployment (e.g., "depl_dbOdi5eLQK")
Short name for easy reference (e.g., "user-service-v2")
Number of container instances to run
resources
object
CPU limit, e.g., "500m" for 0.5 cores
Memory limit, e.g., "128Mi"
Optional: GPU VRAM requirement, e.g., "48GB"
Possible values: [OK
, Error
, Pending
, Failed
, Deploying
]
strategy
object
Max extra replicas during update
Max unavailable replicas during update
Possible values: [RollingUpdate
, Recreate
]
Deployment strategy type (RollingUpdate, Recreate, etc.)
targetRegions
object[]
Target deployment regions or clusters
Cluster or node where service should be deployed (e.g., "us-west1", "local-docker")
Optional: Specific zone for the deployment
{
"deployments": [
{
"autoScaling": {
"cpuThreshold": 0,
"maxReplicas": 0,
"minReplicas": 0
},
"definitionId": "def_deBXZMpxrQ",
"description": "Handles user service requests",
"details": "Deployment is in progress",
"envars": {},
"id": "depl_dbOdi5eLQK",
"name": "user-service-v2",
"replicas": 0,
"resources": {
"cpu": "string",
"memory": "string",
"vram": "string"
},
"status": "OK",
"strategy": {
"maxSurge": 0,
"maxUnavailable": 0,
"type": "RollingUpdate"
},
"targetRegions": [
{
"cluster": "string",
"zone": "string"
}
]
}
]
}
Invalid JSON
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}