{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema#",
  "description": "Parameters to instantiate resilient KVM",
  "unevaluatedProperties": false,
  "allOf": [
    {
      "$ref": "./instance-kvm-input-schema.json#/$defs/instance-parameters"
    }
  ],
  "properties": {
    "resilient-clone-number": {
      "title": "Amount of backup(s) to create",
      "description": "Amount of backup(s) to create. Each backup consists of a Pull Backup Server and a clone.",
      "type": "integer",
      "default": 1,
      "optional": true
    },
    "-sla-0-computer_guid": {
      "title": "Target computer for main instance",
      "description": "Target computer GUID for main instance.",
      "type": "string",
      "optional": true
    },
    "-sla-1-computer_guid": {
      "title": "Target computer for first clone",
      "description": "Target computer for first clone and PBS.",
      "type": "string",
      "optional": true
    },
    "-sla-pbs1-computer_guid": {
      "title": "Target computer for first PBS",
      "description": "Target computer for first PBS instance.",
      "type": "string",
      "optional": true
    },
    "-sla-2-computer_guid": {
      "title": "Target computer for second clone",
      "description": "Target computer for second clone and PBS.",
      "type": "string",
      "optional": true
    },
    "-sla-pbs2-computer_guid": {
      "title": "Target computer for second PBS",
      "description": "Target computer for second PBS instance.",
      "type": "string",
      "optional": true
    },
    "resiliency-backup-periodicity": {
      "title": "Periodicity of backup",
      "description": "Periodicity of backup, in cron format.",
      "type": "string",
      "optional": true
    },
    "remove-backup-older-than": {
      "title": "Remove backups older than...",
      "description": "Remove all the backups in PBS that are older than specified value. It should be rdiff-backup-compatible.",
      "type": "string",
      "default": "2W",
      "optional": true
    }
  }
}
