{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stackit/json-schema/stackit-provider-options-schema.json",
  "title": "ProviderOptions",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stackit-provider-options-api-openapi.yml#/components/schemas/ProviderOptions",
  "properties": {
    "availabilityZones": {
      "items": {
        "$ref": "#/$defs/AvailabilityZone"
      },
      "type": "array"
    },
    "kubernetesVersions": {
      "items": {
        "$ref": "#/$defs/KubernetesVersion"
      },
      "title": "List of supported Kubernetes versions",
      "type": "array"
    },
    "machineImages": {
      "items": {
        "$ref": "#/$defs/MachineImage"
      },
      "type": "array"
    },
    "machineTypes": {
      "items": {
        "$ref": "#/$defs/MachineType"
      },
      "title": "List of supported machine types",
      "type": "array"
    },
    "volumeTypes": {
      "items": {
        "$ref": "#/$defs/VolumeType"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "AvailabilityZone": {
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "CRI": {
      "properties": {
        "name": {
          "enum": [
            "containerd"
          ],
          "title": "Name of the cri library",
          "type": "string"
        }
      },
      "type": "object"
    },
    "KubernetesVersion": {
      "properties": {
        "expirationDate": {
          "format": "date-time",
          "title": "Expiration date until the version will be supported if known yet",
          "type": "string"
        },
        "featureGates": {
          "additionalProperties": {
            "type": "string"
          },
          "title": "List of feature gates supported by the Kubernetes version",
          "type": "object"
        },
        "state": {
          "title": "State of the kubernetes version",
          "type": "string"
        },
        "version": {
          "pattern": "^\\d+\\.\\d+\\.\\d+$",
          "title": "Kubernetes version",
          "type": "string"
        }
      },
      "type": "object"
    },
    "MachineImage": {
      "properties": {
        "name": {
          "title": "Image name",
          "type": "string"
        },
        "versions": {
          "items": {
            "$ref": "#/$defs/MachineImageVersion"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "MachineImageVersion": {
      "properties": {
        "cri": {
          "items": {
            "$ref": "#/$defs/CRI"
          },
          "title": "supported container runtimes",
          "type": "array"
        },
        "expirationDate": {
          "format": "date-time",
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "version": {
          "pattern": "^\\d+\\.\\d+\\.\\d+$",
          "title": "Image version",
          "type": "string"
        }
      },
      "type": "object"
    },
    "MachineType": {
      "properties": {
        "architecture": {
          "title": "architecture",
          "type": "string"
        },
        "cpu": {
          "format": "int32",
          "title": "number of CPU cores",
          "type": "integer"
        },
        "gpu": {
          "format": "int32",
          "title": "number of GPUs",
          "type": "integer"
        },
        "memory": {
          "format": "int32",
          "title": "memory in GiB",
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "VolumeType": {
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}