Skip to main content
POST
/
api
/
harbor
/
deployments
{
  "name": "my-deployment",
  "dockerfile": "FROM python:3.11-slim\\n...",
  "context_tar_base64": "H4sIA...",
  "entrypoint": "python app.py",
  "entrypoint_mode": "stdio",
  "limits": {
    "timeout_s": 300,
    "cpu_cores": 2,
    "memory_mb": 4096
  }
}
{
  "id": "dep_abc123",
  "name": "my-deployment",
  "status": "pending"
}
Create a Harbor deployment from a build spec (Dockerfile + context).
Harbor is a managed deployment surface for LocalAPI and rollout runners. It powers the SDK’s upload_harbor_deployment() and LocalAPI deploy with provider=\"harbor\".
name
string
required
Deployment name (org-unique).
dockerfile
string
required
Dockerfile contents as a string.
context_tar_base64
string
required
Base64-encoded tar.gz build context.
entrypoint
string
required
Entrypoint command.
entrypoint_mode
string
default:"file"
Entrypoint mode (file or stdio).
limits
object
Resource limits (timeout, cpu, memory, disk).
{
  "name": "my-deployment",
  "dockerfile": "FROM python:3.11-slim\\n...",
  "context_tar_base64": "H4sIA...",
  "entrypoint": "python app.py",
  "entrypoint_mode": "stdio",
  "limits": {
    "timeout_s": 300,
    "cpu_cores": 2,
    "memory_mb": 4096
  }
}
{
  "id": "dep_abc123",
  "name": "my-deployment",
  "status": "pending"
}