{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/neckrez-tech/json-schema/neckrez-tech-server-schema.json",
  "title": "Server",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/neckrez-tech-openapi.json#/components/schemas/Server",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "provider": {
      "type": "string",
      "enum": [
        "vultr",
        "digitalocean",
        "linode",
        "hetzner"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "installing",
        "running",
        "stopped",
        "rebooting",
        "suspended",
        "archiving"
      ]
    },
    "ip": {
      "type": "string"
    },
    "ipv6": {
      "type": "string"
    },
    "login": {
      "type": "string"
    },
    "location": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "city": {
          "type": "string"
        }
      }
    },
    "os": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "app": {
          "type": "string"
        }
      }
    },
    "plan": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "vcpu": {
          "type": "integer"
        },
        "ram_gb": {
          "type": "number"
        },
        "disk_gb": {
          "type": "integer"
        },
        "bandwidth_tb": {
          "type": "number"
        },
        "price_month": {
          "type": "number"
        },
        "price_hour": {
          "type": "number"
        }
      }
    },
    "billing_mode": {
      "type": "string",
      "enum": [
        "hourly",
        "monthly"
      ]
    },
    "created_at": {
      "type": "number",
      "description": "Unix time"
    }
  }
}