{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lium-io/json-schema/lium-io-pod-schema.json",
  "title": "Pod",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lium-io-openapi.json#/components/schemas/Pod",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updated At"
    },
    "executor_id": {
      "type": "string",
      "format": "uuid",
      "title": "Executor Id"
    },
    "pod_name": {
      "type": "string",
      "title": "Pod Name",
      "default": ""
    },
    "user_id": {
      "type": "string",
      "format": "uuid",
      "title": "User Id"
    },
    "created_by_api_key_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created By Api Key Id"
    },
    "workspace_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Workspace Id"
    },
    "created_by_user_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created By User Id"
    },
    "template_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Template Id"
    },
    "volume_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Volume Id"
    },
    "container_name": {
      "type": "string",
      "title": "Container Name",
      "default": ""
    },
    "create_command_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Create Command Id"
    },
    "create_command_state": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Create Command State"
    },
    "volume_name": {
      "type": "string",
      "title": "Volume Name",
      "default": ""
    },
    "local_volume_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Local Volume Path"
    },
    "ports_mapping": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "string"
        }
      ],
      "title": "Ports Mapping",
      "default": "{}"
    },
    "ssh_connect_cmd": {
      "type": "string",
      "title": "Ssh Connect Cmd",
      "default": ""
    },
    "gpu_name": {
      "type": "string",
      "title": "Gpu Name",
      "default": ""
    },
    "gpu_count": {
      "type": "string",
      "title": "Gpu Count",
      "default": ""
    },
    "cpu_name": {
      "type": "string",
      "title": "Cpu Name",
      "default": ""
    },
    "cpu_count": {
      "type": "integer",
      "title": "Cpu Count",
      "default": 0
    },
    "ram_total": {
      "type": "integer",
      "title": "Ram Total",
      "default": 0
    },
    "volume_limit_gb": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Volume Limit Gb"
    },
    "storage_limit_gb": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Storage Limit Gb"
    },
    "status": {
      "anyOf": [
        {
          "$ref": "#/$defs/PodStatus"
        },
        {
          "type": "null"
        }
      ]
    },
    "disk_paused_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Disk Paused At"
    },
    "retries": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Retries"
    },
    "user_public_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Public Key"
    },
    "skip_add_agent_ssh_key": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Skip Add Agent Ssh Key",
      "default": false
    },
    "removal_scheduled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Removal Scheduled At"
    },
    "termination_hours": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Termination Hours"
    },
    "no_interrupt_until": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "No Interrupt Until"
    },
    "removal_mail_due_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Removal Mail Due At"
    },
    "removal_mailed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Removal Mailed At"
    },
    "is_manual_rental": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Manual Rental",
      "default": false
    },
    "holds_whole_host": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Holds Whole Host"
    },
    "cluster_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cluster Id"
    },
    "cluster_node_index": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cluster Node Index"
    },
    "cluster_wireguard_conf": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cluster Wireguard Conf"
    },
    "cluster_ssh_private_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cluster Ssh Private Key"
    },
    "cluster_ssh_authorized_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cluster Ssh Authorized Key"
    },
    "cluster_endpoint_host": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cluster Endpoint Host"
    },
    "enable_jupyter": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Enable Jupyter",
      "default": false
    },
    "enable_volume_encryption": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Enable Volume Encryption"
    },
    "volume_encryption_status": {
      "anyOf": [
        {
          "$ref": "#/$defs/VolumeEncryptionStatus"
        },
        {
          "type": "null"
        }
      ]
    },
    "volume_encrypted": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Volume Encrypted"
    },
    "volume_mounted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Volume Mounted At"
    },
    "jupyter_installation_status": {
      "anyOf": [
        {
          "$ref": "#/$defs/JupyterInstallationStatus"
        },
        {
          "type": "null"
        }
      ]
    },
    "jupyter_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Jupyter Url"
    },
    "jupyter_installation_started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Jupyter Installation Started At"
    },
    "ssh_unreachable_since": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssh Unreachable Since"
    },
    "ssh_reachability_reported_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssh Reachability Reported At"
    },
    "price": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Price"
    },
    "pending_price": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pending Price"
    },
    "price_change_effective_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Price Change Effective At"
    },
    "price_change_notified_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Price Change Notified At"
    },
    "price_change_notice_attempted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Price Change Notice Attempted At"
    },
    "price_fixed_until_end_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Price Fixed Until End At"
    },
    "discord_channel_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Discord Channel Id"
    },
    "dockerfile_content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dockerfile Content"
    },
    "build_context_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Build Context Key"
    },
    "is_favorite": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Favorite"
    }
  },
  "type": "object",
  "required": [
    "executor_id",
    "user_id",
    "template_id",
    "volume_id",
    "retries"
  ],
  "$defs": {
    "JupyterInstallationStatus": {
      "type": "string",
      "enum": [
        "INSTALLING",
        "SUCCESS",
        "FAILED"
      ],
      "title": "JupyterInstallationStatus"
    },
    "PodStatus": {
      "type": "string",
      "enum": [
        "PENDING",
        "RUNNING",
        "STOPPED",
        "FAILED",
        "DELETING",
        "STOP_PENDING",
        "START_PENDING",
        "CREATION_FAILED",
        "BROKEN",
        "REBOOT_PENDING",
        "REBOOT_FAILED"
      ],
      "title": "PodStatus"
    },
    "VolumeEncryptionStatus": {
      "type": "string",
      "enum": [
        "ENABLED",
        "UNSUPPORTED_IMAGE",
        "DISABLED",
        "FAILED"
      ],
      "title": "VolumeEncryptionStatus"
    }
  }
}