{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexusai-run/json-schema/nexusai-run-deploy-request-schema.json",
  "title": "DeployRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexusai-run-openapi.yaml#/components/schemas/DeployRequest",
  "type": "object",
  "required": [
    "image",
    "port"
  ],
  "properties": {
    "image": {
      "type": "string",
      "description": "Docker image to deploy (e.g., nginx:latest, node:18-alpine)"
    },
    "port": {
      "type": "integer",
      "description": "Port the container listens on",
      "minimum": 1,
      "maximum": 65535
    },
    "name": {
      "type": "string",
      "description": "Optional friendly name for the deployment",
      "maxLength": 63,
      "pattern": "^[a-z0-9][a-z0-9-]*[a-z0-9]$"
    },
    "envVars": {
      "type": "object",
      "description": "Environment variables to set in the container",
      "additionalProperties": {
        "type": "string"
      }
    },
    "provider": {
      "type": "string",
      "description": "Cloud provider to use for deployment",
      "enum": [
        "docker",
        "gcp_cloud_run",
        "azure_container_apps",
        "aws_app_runner",
        "aws_ecs_fargate"
      ],
      "default": "docker"
    },
    "region": {
      "type": "string",
      "description": "Region for cloud deployments (provider-specific)"
    },
    "autoDestroyHours": {
      "type": "number",
      "description": "Automatically destroy deployment after this many hours",
      "minimum": 0.5,
      "maximum": 720
    },
    "requestId": {
      "type": "string",
      "description": "Optional idempotency key. If provided, duplicate requests with the\nsame requestId within 24 hours will return the existing deployment\ninstead of creating a new one.\n",
      "maxLength": 64
    }
  }
}