{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/noderings-com/json-schema/noderings-com-v1-create-node-request-schema.json",
  "title": "v1CreateNodeRequest",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/noderings-com-openapi.json#/components/schemas/v1CreateNodeRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "platformId": {
      "type": "string"
    },
    "regionId": {
      "type": "string"
    },
    "cpuOverallocatePercent": {
      "type": "integer",
      "format": "int32"
    },
    "memoryOverallocatePercent": {
      "type": "integer",
      "format": "int32"
    },
    "storageOverallocatePercent": {
      "type": "integer",
      "format": "int32"
    },
    "vmidSeed": {
      "type": "integer",
      "format": "int32"
    },
    "maintenanceMode": {
      "type": "boolean"
    },
    "vmStorageDestination": {
      "type": "string"
    },
    "backupStorageDestination": {
      "type": "string"
    },
    "backupStorageCompression": {
      "$ref": "#/$defs/v1BackupStorageCompression"
    },
    "networkBridge": {
      "type": "string",
      "description": "Node provisioning settings (server-side defaults applied when omitted)\nProxmox Linux bridge for VM primary NIC. Default: vmbr0."
    },
    "networkName": {
      "type": "string",
      "description": "Proxmox net device key for primary NIC (net0, net1, ...). Default: net0."
    },
    "networkVlanId": {
      "type": "integer",
      "format": "int32",
      "description": "802.1Q VLAN tag on primary NIC (Proxmox tag=); 0 = untagged."
    },
    "networkModel": {
      "type": "string",
      "description": "Proxmox NIC model for primary NIC. Default: virtio."
    },
    "computeType": {
      "$ref": "#/$defs/v1NodeComputeType"
    },
    "topologyPaste": {
      "type": "string",
      "description": "Raw topology paste (output of the documented lscpu/sysfs command block).\nRequired when compute_type is dedicated; ignored otherwise."
    },
    "metadata": {
      "type": "object",
      "description": "Optional node metadata (VirtFusion hypervisor_id / group_id live under metadata.virtfusion)."
    },
    "wingsNodeName": {
      "type": "string"
    },
    "pterodactylLocationId": {
      "type": "integer",
      "format": "int32"
    },
    "panelNodeId": {
      "type": "integer",
      "format": "int32"
    }
  },
  "$defs": {
    "v1BackupStorageCompression": {
      "type": "string",
      "enum": [
        "BACKUP_STORAGE_COMPRESSION_UNSPECIFIED",
        "BACKUP_STORAGE_COMPRESSION_NONE",
        "BACKUP_STORAGE_COMPRESSION_LZO",
        "BACKUP_STORAGE_COMPRESSION_GZIP",
        "BACKUP_STORAGE_COMPRESSION_ZSTD"
      ],
      "default": "BACKUP_STORAGE_COMPRESSION_UNSPECIFIED",
      "description": "Proxmox vzdump --compress (must not be UNSPECIFIED on create/update node)."
    },
    "v1NodeComputeType": {
      "type": "string",
      "enum": [
        "NODE_COMPUTE_TYPE_UNSPECIFIED",
        "NODE_COMPUTE_TYPE_SHARED",
        "NODE_COMPUTE_TYPE_DEDICATED"
      ],
      "default": "NODE_COMPUTE_TYPE_UNSPECIFIED",
      "description": "Compute product hosted by a node. Exclusive: a node is shared XOR dedicated\n(docs/README-DEDICATED-CPU-CORES.md, design decision D1).\n\n - NODE_COMPUTE_TYPE_SHARED: Shared vCPU hosting (CPU oversubscription allowed). Default.\n - NODE_COMPUTE_TYPE_DEDICATED: Dedicated pinned CPU cores (no CPU overallocation)."
    }
  }
}