{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-dedicated-installation-template-template-partitions-schema.json",
  "title": "dedicated.installationTemplate.templatePartitions",
  "description": " Partitions defined in this partitioning scheme",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-dedicated-installationTemplate-openapi.yml#/components/schemas/dedicated.installationTemplate.templatePartitions",
  "type": "object",
  "properties": {
    "filesystem": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.server.FileSystemEnum"
        }
      ],
      "description": "Partition filesytem",
      "readOnly": true
    },
    "mountpoint": {
      "type": "string",
      "description": "Partition mount point",
      "readOnly": true
    },
    "order": {
      "type": "integer",
      "description": "specifies the creation order of the partition on the disk",
      "readOnly": true
    },
    "raid": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.server.PartitionRaidEnum"
        }
      ],
      "description": "Partition raid",
      "nullable": true,
      "readOnly": true
    },
    "size": {
      "allOf": [
        {
          "$ref": "#/$defs/complexType.UnitAndValue_long"
        }
      ],
      "description": "Partition size (unit: MB GB TB, MB by default), 0 => rest of the space",
      "readOnly": true
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/dedicated.TemplatePartitionTypeEnum"
        }
      ],
      "description": "Partition type",
      "readOnly": true
    },
    "volumeName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Logical volume name (required if type is lv) or optional zpool name if filesystem is ZFS",
      "readOnly": true
    }
  },
  "$defs": {
    "complexType.UnitAndValue_long": {
      "type": "object",
      "description": "A numeric value tagged with its unit",
      "properties": {
        "unit": {
          "type": "string"
        },
        "value": {
          "type": "integer"
        }
      }
    },
    "dedicated.TemplatePartitionTypeEnum": {
      "type": "string",
      "description": "partition type",
      "enum": [
        "logical",
        "lv",
        "primary"
      ]
    },
    "dedicated.server.FileSystemEnum": {
      "type": "string",
      "description": "FileSystems",
      "enum": [
        "btrfs",
        "ext3",
        "ext4",
        "fat16",
        "none",
        "ntfs",
        "reiserfs",
        "swap",
        "ufs",
        "vmfs5",
        "vmfs6",
        "vmfsl",
        "xfs",
        "zfs"
      ]
    },
    "dedicated.server.PartitionRaidEnum": {
      "type": "string",
      "description": "partition raid type",
      "enum": [
        "0",
        "1",
        "10",
        "5",
        "6",
        "7"
      ]
    }
  }
}