{
    "_comment": "The contents of this file should be in sync with the parameters of the add_disk command",
    "properties": {
        "address": {
            "pattern": "^\\d+(:\\d+){1,3}$",
            "type": "string"
        },
        "boot": {
            "type": "boolean"
        },
        "bus_address": {
            "type": "string"
        },
        "comments": {
            "type": "string"
        },
        "controller": {
            "enum": [
                "sata",
                "sas",
                "scsi",
                "cciss",
                "flash",
                "fibrechannel",
                "ide",
                "nvme"
            ]
        },
        "filesystem": {
            "description": "Filesystem name where the virtual disk image is stored",
            "type": "string"
        },
        "iops_limit": {
            "minimum": 0,
            "type": "integer"
        },
        "resourcegroup": {
            "description": "Name of the resourcegroup which holds the share or filesystem",
            "type": "string"
        },
        "share": {
            "description": "NAS share where the virtual disk image is stored",
            "type": "string"
        },
        "size": {
            "description": "Disk size, in GiB",
            "minimum": 0,
            "type": "integer"
        },
        "snapshot": {
            "type": "boolean"
        },
        "wwn": {
            "type": "string"
        }
    },
    "required": [
        "size",
        "controller"
    ],
    "type": "object"
}