{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aquanode-io/json-schema/aquanode-io-up-deployment-schema.json",
  "title": "UpDeployment",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aquanode-io-openapi.json#/components/schemas/UpDeployment",
  "type": "object",
  "properties": {
    "template": {
      "type": "string",
      "enum": [
        "comfyui",
        "torch_and_jupyter"
      ]
    },
    "sshKeyId": {
      "type": "string",
      "minLength": 1
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "gpuModel": {
      "type": "string"
    },
    "maxPrice": {
      "type": "number",
      "minimum": 0,
      "exclusiveMinimum": true
    },
    "provider": {
      "type": "string",
      "enum": [
        "akash",
        "voltagepark",
        "datacrunch",
        "hotaisle",
        "vastai",
        "massecompute",
        "cudocompute",
        "hyperstack",
        "vultr",
        "simplepod",
        "runpod",
        "nebius",
        "jarvislabs",
        "aws"
      ]
    },
    "gpuCount": {
      "type": "integer",
      "minimum": 0,
      "exclusiveMinimum": true,
      "maximum": 8
    },
    "idlePolicy": {
      "type": "object",
      "properties": {
        "warnAfterMinutes": {
          "type": "integer",
          "minimum": 0,
          "exclusiveMinimum": true
        },
        "actAfterMinutes": {
          "type": "integer",
          "minimum": 0,
          "exclusiveMinimum": true
        },
        "gpuIdleThresholdPercent": {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        "autoStopEnabled": {
          "type": "boolean"
        }
      }
    },
    "ephemeralTtlMinutes": {
      "type": "number",
      "minimum": 0,
      "exclusiveMinimum": true
    }
  },
  "required": [
    "sshKeyId"
  ]
}