{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/neckrez-tech/json-schema/neckrez-tech-bulk-deploy-in-schema.json",
  "title": "BulkDeployIn",
  "description": "Several servers in one call: either an explicit `servers` list, or\n`count` copies of one `template` (named <name>-1, <name>-2, ...).",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/neckrez-tech-openapi.json#/components/schemas/BulkDeployIn",
  "properties": {
    "servers": {
      "items": {
        "$ref": "#/$defs/DeployIn"
      },
      "type": "array",
      "maxItems": 10,
      "title": "Servers"
    },
    "count": {
      "type": "integer",
      "maximum": 10.0,
      "minimum": 0.0,
      "title": "Count",
      "default": 0
    },
    "template": {
      "anyOf": [
        {
          "$ref": "#/$defs/DeployIn"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "$defs": {
    "DeployIn": {
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 60,
          "minLength": 1,
          "title": "Name"
        },
        "provider": {
          "type": "string",
          "title": "Provider"
        },
        "location_code": {
          "type": "string",
          "title": "Location Code"
        },
        "os_id": {
          "type": "string",
          "title": "Os Id",
          "default": ""
        },
        "os_version": {
          "type": "string",
          "title": "Os Version",
          "default": ""
        },
        "app_id": {
          "type": "string",
          "title": "App Id",
          "default": ""
        },
        "plan_id": {
          "type": "string",
          "title": "Plan Id"
        },
        "root_password": {
          "type": "string",
          "title": "Root Password",
          "default": ""
        },
        "addon_auto_backups": {
          "type": "boolean",
          "title": "Addon Auto Backups",
          "default": false
        },
        "addon_ddos": {
          "type": "boolean",
          "title": "Addon Ddos",
          "default": false
        },
        "addon_limited_user": {
          "type": "boolean",
          "title": "Addon Limited User",
          "default": false
        },
        "cloud_init": {
          "type": "string",
          "maxLength": 16384,
          "title": "Cloud Init",
          "default": ""
        },
        "ssh_key": {
          "type": "string",
          "maxLength": 8192,
          "title": "Ssh Key",
          "default": ""
        },
        "billing": {
          "type": "string",
          "enum": [
            "hourly",
            "monthly"
          ],
          "title": "Billing",
          "default": "hourly"
        }
      },
      "type": "object",
      "required": [
        "name",
        "provider",
        "location_code",
        "plan_id"
      ],
      "title": "DeployIn"
    }
  }
}