Vesta Backup

API schemas

Vesta API · 6.0.75 · Community

Schemas

AgentRegistrationKeyCreate

{
  "description": "Request model for creating agent registration key",
  "properties": {
    "agent_hostname": {
      "maxLength": 255,
      "minLength": 1,
      "title": "Agent Hostname",
      "type": "string"
    },
    "expires_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "max_uses": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Uses"
    },
    "name": {
      "title": "Name",
      "type": "string"
    }
  },
  "required": [
    "name",
    "agent_hostname"
  ],
  "title": "AgentRegistrationKeyCreate",
  "type": "object"
}

AgentRegistrationKeyUpdate

{
  "description": "Request model for updating agent registration key",
  "properties": {
    "enabled": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Enabled"
    },
    "expires_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "max_uses": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Uses"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    }
  },
  "title": "AgentRegistrationKeyUpdate",
  "type": "object"
}

AgentSettingsUpdate

{
  "additionalProperties": false,
  "properties": {
    "backup_storage_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Backup Storage Path"
    },
    "compression_level": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Compression Level"
    },
    "compression_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Compression Type"
    },
    "heartbeat_interval": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Heartbeat Interval"
    },
    "libvirt_uri": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Libvirt Uri"
    },
    "log_level": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Log Level"
    },
    "max_concurrent_backups": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Concurrent Backups"
    },
    "selected_source_namespaces": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Selected Source Namespaces"
    },
    "virtnbd_scratch_dir": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Virtnbd Scratch Dir"
    },
    "virtnbdbackup_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Virtnbdbackup Path"
    },
    "virtnbdrestore_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Virtnbdrestore Path"
    }
  },
  "title": "AgentSettingsUpdate",
  "type": "object"
}

AgentUpdateRequest

{
  "description": "Request model for updating agent",
  "properties": {
    "display_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Display Name"
    },
    "status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status"
    }
  },
  "title": "AgentUpdateRequest",
  "type": "object"
}

BackupCreate

{
  "description": "Request model for creating backup",
  "properties": {
    "backup_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": "full",
      "title": "Backup Type"
    },
    "exclude_disks": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": [],
      "title": "Exclude Disks"
    },
    "retention_days": {
      "anyOf": [
        {
          "maximum": 36500.0,
          "minimum": 1.0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": 30,
      "title": "Retention Days"
    },
    "tags": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": {},
      "title": "Tags"
    },
    "vm_id": {
      "title": "Vm Id",
      "type": "string"
    },
    "workers": {
      "description": "Per-backup worker overrides are unsupported",
      "title": "Workers",
      "type": "null"
    }
  },
  "required": [
    "vm_id"
  ],
  "title": "BackupCreate",
  "type": "object"
}

BackupQueueCreate

{
  "description": "Request model for adding backup to queue",
  "properties": {
    "backup_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": "full",
      "title": "Backup Type"
    },
    "exclude_disks": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Exclude Disks"
    },
    "priority": {
      "anyOf": [
        {
          "maximum": 100.0,
          "minimum": 0.0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": 0,
      "title": "Priority"
    },
    "retention_days": {
      "default": 30,
      "maximum": 36500.0,
      "minimum": 1.0,
      "title": "Retention Days",
      "type": "integer"
    },
    "tags": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tags"
    },
    "vm_id": {
      "title": "Vm Id",
      "type": "string"
    },
    "workers": {
      "description": "Per-backup worker overrides are unsupported",
      "title": "Workers",
      "type": "null"
    }
  },
  "required": [
    "vm_id"
  ],
  "title": "BackupQueueCreate",
  "type": "object"
}

BackupRequest

{
  "properties": {
    "backup_type": {
      "default": "full",
      "pattern": "^(full|incremental)$",
      "title": "Backup Type",
      "type": "string"
    },
    "scenario": {
      "default": "success",
      "pattern": "^(success|upload_failure)$",
      "title": "Scenario",
      "type": "string"
    },
    "vm_id": {
      "title": "Vm Id",
      "type": "string"
    }
  },
  "required": [
    "vm_id"
  ],
  "title": "BackupRequest",
  "type": "object"
}

Body_confirm_export_custody_api_v1_encryption_keys_confirm_export_post

{
  "properties": {
    "file": {
      "contentMediaType": "application/octet-stream",
      "title": "File",
      "type": "string"
    },
    "location": {
      "title": "Location",
      "type": "string"
    },
    "password": {
      "title": "Password",
      "type": "string"
    }
  },
  "required": [
    "file",
    "password",
    "location"
  ],
  "title": "Body_confirm_export_custody_api_v1_encryption_keys_confirm_export_post",
  "type": "object"
}

Body_import_keys_api_v1_encryption_keys_import_post

{
  "properties": {
    "file": {
      "contentMediaType": "application/octet-stream",
      "title": "File",
      "type": "string"
    },
    "password": {
      "default": "",
      "title": "Password",
      "type": "string"
    }
  },
  "required": [
    "file"
  ],
  "title": "Body_import_keys_api_v1_encryption_keys_import_post",
  "type": "object"
}

Body_login_api_v1_auth_login_post

{
  "properties": {
    "client_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Id"
    },
    "client_secret": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "format": "password",
      "title": "Client Secret"
    },
    "grant_type": {
      "anyOf": [
        {
          "pattern": "^password$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Grant Type"
    },
    "org_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Org Id"
    },
    "password": {
      "format": "password",
      "title": "Password",
      "type": "string"
    },
    "scope": {
      "default": "",
      "title": "Scope",
      "type": "string"
    },
    "username": {
      "title": "Username",
      "type": "string"
    }
  },
  "required": [
    "username",
    "password"
  ],
  "title": "Body_login_api_v1_auth_login_post",
  "type": "object"
}

Body_update_report_api_v1_reports__report_id__put

{
  "properties": {
    "filters": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filters"
    },
    "recipients": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Recipients"
    }
  },
  "title": "Body_update_report_api_v1_reports__report_id__put",
  "type": "object"
}

BulkBackupCreate

{
  "description": "Request model for bulk backup creation",
  "properties": {
    "filter": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filter"
    },
    "retention_days": {
      "default": 30,
      "maximum": 36500.0,
      "minimum": 1.0,
      "title": "Retention Days",
      "type": "integer"
    },
    "tags": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": {},
      "title": "Tags"
    },
    "vm_ids": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vm Ids"
    },
    "workers": {
      "description": "Per-backup worker overrides are unsupported",
      "title": "Workers",
      "type": "null"
    }
  },
  "title": "BulkBackupCreate",
  "type": "object"
}

BulkBackupDelete

{
  "description": "Request model for bulk backup deletion",
  "properties": {
    "backup_ids": {
      "items": {
        "type": "string"
      },
      "title": "Backup Ids",
      "type": "array"
    }
  },
  "required": [
    "backup_ids"
  ],
  "title": "BulkBackupDelete",
  "type": "object"
}

BulkBackupTag

{
  "description": "Request model for bulk tagging",
  "properties": {
    "backup_ids": {
      "items": {
        "type": "string"
      },
      "title": "Backup Ids",
      "type": "array"
    },
    "overwrite": {
      "default": false,
      "title": "Overwrite",
      "type": "boolean"
    },
    "tags": {
      "additionalProperties": true,
      "title": "Tags",
      "type": "object"
    }
  },
  "required": [
    "backup_ids",
    "tags"
  ],
  "title": "BulkBackupTag",
  "type": "object"
}

CreateKeyRequest

{
  "properties": {
    "algorithm": {
      "default": "aes-256-gcm",
      "title": "Algorithm",
      "type": "string"
    },
    "name": {
      "maxLength": 255,
      "minLength": 1,
      "title": "Name",
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "title": "CreateKeyRequest",
  "type": "object"
}

CursorRealtimeEvent

{
  "properties": {
    "payload": {
      "additionalProperties": true,
      "title": "Payload",
      "type": "object"
    },
    "sequence": {
      "title": "Sequence",
      "type": "integer"
    },
    "timestamp": {
      "format": "date-time",
      "title": "Timestamp",
      "type": "string"
    },
    "type": {
      "title": "Type",
      "type": "string"
    }
  },
  "required": [
    "type",
    "payload",
    "timestamp",
    "sequence"
  ],
  "title": "CursorRealtimeEvent",
  "type": "object"
}

ExportKeysRequest

{
  "properties": {
    "key_ids": {
      "items": {
        "type": "string"
      },
      "title": "Key Ids",
      "type": "array"
    },
    "password": {
      "minLength": 8,
      "title": "Password",
      "type": "string"
    }
  },
  "required": [
    "key_ids",
    "password"
  ],
  "title": "ExportKeysRequest",
  "type": "object"
}

GrantEnrollment

{
  "properties": {
    "enable": {
      "default": true,
      "title": "Enable",
      "type": "boolean"
    },
    "expected_revision": {
      "exclusiveMinimum": 0.0,
      "title": "Expected Revision",
      "type": "integer"
    },
    "replace_grant_id": {
      "anyOf": [
        {
          "format": "uuid",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Replace Grant Id"
    },
    "request_id": {
      "format": "uuid",
      "title": "Request Id",
      "type": "string"
    },
    "scope_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "title": "Scope Sha256",
      "type": "string"
    }
  },
  "required": [
    "request_id",
    "expected_revision",
    "scope_sha256"
  ],
  "title": "GrantEnrollment",
  "type": "object"
}

GroupRequest

{
  "properties": {
    "name": {
      "maxLength": 80,
      "minLength": 1,
      "title": "Name",
      "type": "string"
    },
    "rules": {
      "items": {
        "$ref": "#/components/schemas/GroupRule"
      },
      "maxItems": 5,
      "minItems": 1,
      "title": "Rules",
      "type": "array"
    },
    "rules_match": {
      "default": "all",
      "pattern": "^(all|any)$",
      "title": "Rules Match",
      "type": "string"
    }
  },
  "required": [
    "name",
    "rules"
  ],
  "title": "GroupRequest",
  "type": "object"
}

GroupRule

{
  "properties": {
    "field": {
      "pattern": "^(name|state|agent_id|metadata\\.environment)$",
      "title": "Field",
      "type": "string"
    },
    "op": {
      "pattern": "^(eq|neq|in)$",
      "title": "Op",
      "type": "string"
    },
    "value": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      ],
      "title": "Value"
    }
  },
  "required": [
    "field",
    "op",
    "value"
  ],
  "title": "GroupRule",
  "type": "object"
}

HTTPValidationError

{
  "properties": {
    "detail": {
      "items": {
        "$ref": "#/components/schemas/ValidationError"
      },
      "title": "Detail",
      "type": "array"
    }
  },
  "title": "HTTPValidationError",
  "type": "object"
}

ImportRequest

{
  "properties": {
    "chain_id": {
      "title": "Chain Id",
      "type": "string"
    }
  },
  "required": [
    "chain_id"
  ],
  "title": "ImportRequest",
  "type": "object"
}

LegacyRealtimeEvent

{
  "properties": {
    "payload": {
      "additionalProperties": true,
      "title": "Payload",
      "type": "object"
    },
    "timestamp": {
      "format": "date-time",
      "title": "Timestamp",
      "type": "string"
    },
    "type": {
      "title": "Type",
      "type": "string"
    }
  },
  "required": [
    "type",
    "payload",
    "timestamp"
  ],
  "title": "LegacyRealtimeEvent",
  "type": "object"
}

OperatorAdmissionError

{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "additionalProperties": true,
          "properties": {
            "code": {
              "type": "string"
            },
            "max_targets": {
              "type": "integer"
            },
            "message": {
              "type": "string"
            },
            "outcome": {
              "type": "string"
            },
            "rotation_id": {
              "type": "string"
            }
          },
          "required": [
            "code"
          ],
          "type": "object"
        },
        {
          "items": {
            "additionalProperties": true,
            "properties": {
              "loc": {
                "items": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "integer"
                    }
                  ]
                },
                "type": "array"
              },
              "msg": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "loc",
              "msg",
              "type"
            ],
            "type": "object"
          },
          "type": "array"
        }
      ]
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

OrchestratorAPIKeyCreate

{
  "description": "Request model for creating orchestrator API key",
  "properties": {
    "expires_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "name": {
      "title": "Name",
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "title": "OrchestratorAPIKeyCreate",
  "type": "object"
}

OrchestratorAPIKeyUpdate

{
  "description": "Request model for updating orchestrator API key",
  "properties": {
    "enabled": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Enabled"
    },
    "expires_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    }
  },
  "title": "OrchestratorAPIKeyUpdate",
  "type": "object"
}

RealtimeErrorDetail

{
  "properties": {
    "code": {
      "enum": [
        "realtime_contract_unsupported",
        "realtime_parameters_conflict",
        "realtime_cursor_invalid",
        "realtime_cursor_contract_required",
        "realtime_timestamp_invalid"
      ],
      "title": "Code",
      "type": "string"
    },
    "message": {
      "title": "Message",
      "type": "string"
    }
  },
  "required": [
    "code",
    "message"
  ],
  "title": "RealtimeErrorDetail",
  "type": "object"
}

RealtimeErrorResponse

{
  "properties": {
    "detail": {
      "$ref": "#/components/schemas/RealtimeErrorDetail"
    }
  },
  "required": [
    "detail"
  ],
  "title": "RealtimeErrorResponse",
  "type": "object"
}

RealtimePage

{
  "properties": {
    "delivery": {
      "const": "best_effort",
      "title": "Delivery",
      "type": "string"
    },
    "has_more": {
      "title": "Has More",
      "type": "boolean"
    },
    "items": {
      "items": {
        "$ref": "#/components/schemas/CursorRealtimeEvent"
      },
      "title": "Items",
      "type": "array"
    },
    "next_cursor": {
      "title": "Next Cursor",
      "type": "string"
    },
    "reset_reason": {
      "anyOf": [
        {
          "enum": [
            "initial",
            "process_changed",
            "scope_changed",
            "cursor_expired",
            "history_lost"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reset Reason"
    },
    "reset_required": {
      "title": "Reset Required",
      "type": "boolean"
    },
    "retention_seconds": {
      "const": 300,
      "title": "Retention Seconds",
      "type": "integer"
    }
  },
  "required": [
    "items",
    "next_cursor",
    "has_more",
    "reset_required",
    "reset_reason",
    "retention_seconds",
    "delivery"
  ],
  "title": "RealtimePage",
  "type": "object"
}

ReportCreate

{
  "description": "Request model for creating report",
  "properties": {
    "enabled": {
      "default": true,
      "title": "Enabled",
      "type": "boolean"
    },
    "filters": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filters"
    },
    "format": {
      "default": "pdf",
      "title": "Format",
      "type": "string"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "recipients": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Recipients"
    },
    "report_type": {
      "title": "Report Type",
      "type": "string"
    },
    "schedule": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Schedule"
    }
  },
  "required": [
    "name",
    "report_type"
  ],
  "title": "ReportCreate",
  "type": "object"
}

RestoreCreateRequest

{
  "additionalProperties": false,
  "description": "Normalize defaults before identity matching; refuse ignored intent.",
  "properties": {
    "adjust_config": {
      "default": false,
      "title": "Adjust Config",
      "type": "boolean"
    },
    "auto_define": {
      "default": false,
      "title": "Auto Define",
      "type": "boolean"
    },
    "backup_id": {
      "minLength": 1,
      "title": "Backup Id",
      "type": "string"
    },
    "kubevirt_target": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Kubevirt Target"
    },
    "native_target": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Native Target"
    },
    "restore_to_original": {
      "default": true,
      "title": "Restore To Original",
      "type": "boolean"
    },
    "selected_disks": {
      "items": {
        "type": "string"
      },
      "title": "Selected Disks",
      "type": "array"
    },
    "target_vm_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Vm Name"
    },
    "until_checkpoint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Until Checkpoint"
    }
  },
  "required": [
    "backup_id"
  ],
  "title": "RestoreCreateRequest",
  "type": "object"
}

RestoreRequest

{
  "properties": {
    "backup_id": {
      "title": "Backup Id",
      "type": "string"
    }
  },
  "required": [
    "backup_id"
  ],
  "title": "RestoreRequest",
  "type": "object"
}

RotateKeyRequest

{
  "properties": {
    "new_name": {
      "maxLength": 255,
      "minLength": 1,
      "title": "New Name",
      "type": "string"
    }
  },
  "required": [
    "new_name"
  ],
  "title": "RotateKeyRequest",
  "type": "object"
}

ScheduleCreate

{
  "description": "Request model for creating schedule",
  "properties": {
    "backup_policy": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Backup Policy"
    },
    "backup_type": {
      "default": "full",
      "enum": [
        "full",
        "incremental",
        "automatic"
      ],
      "title": "Backup Type",
      "type": "string"
    },
    "cron_expression": {
      "title": "Cron Expression",
      "type": "string"
    },
    "enabled": {
      "default": false,
      "title": "Enabled",
      "type": "boolean"
    },
    "exclude_disks": {
      "items": {
        "type": "string"
      },
      "maxItems": 256,
      "title": "Exclude Disks",
      "type": "array"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "retention_days": {
      "default": 30,
      "maximum": 36500.0,
      "minimum": 1.0,
      "title": "Retention Days",
      "type": "integer"
    },
    "tags": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": {},
      "title": "Tags"
    },
    "vm_group_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vm Group Id"
    },
    "vm_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vm Id"
    },
    "workers": {
      "description": "Per-backup worker overrides are unsupported",
      "title": "Workers",
      "type": "null"
    }
  },
  "required": [
    "name",
    "cron_expression"
  ],
  "title": "ScheduleCreate",
  "type": "object"
}

ScheduleRequest

{
  "properties": {
    "backup_type": {
      "default": "full",
      "pattern": "^(full|incremental)$",
      "title": "Backup Type",
      "type": "string"
    },
    "cron_expression": {
      "maxLength": 80,
      "minLength": 5,
      "title": "Cron Expression",
      "type": "string"
    },
    "enabled": {
      "default": true,
      "title": "Enabled",
      "type": "boolean"
    },
    "name": {
      "maxLength": 80,
      "minLength": 1,
      "title": "Name",
      "type": "string"
    },
    "retention_days": {
      "default": 30,
      "maximum": 90.0,
      "minimum": 1.0,
      "title": "Retention Days",
      "type": "integer"
    },
    "vm_group_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vm Group Id"
    },
    "vm_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vm Id"
    }
  },
  "required": [
    "name",
    "cron_expression"
  ],
  "title": "ScheduleRequest",
  "type": "object"
}

ScheduleUpdate

{
  "description": "Request model for updating schedule",
  "properties": {
    "backup_policy": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Backup Policy"
    },
    "backup_type": {
      "anyOf": [
        {
          "enum": [
            "full",
            "incremental",
            "automatic"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Backup Type"
    },
    "cron_expression": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cron Expression"
    },
    "enabled": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Enabled"
    },
    "exclude_disks": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "maxItems": 256,
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Exclude Disks"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "retention_days": {
      "anyOf": [
        {
          "maximum": 36500.0,
          "minimum": 1.0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Retention Days"
    },
    "tags": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tags"
    },
    "workers": {
      "description": "Per-backup worker overrides are unsupported",
      "title": "Workers",
      "type": "null"
    }
  },
  "title": "ScheduleUpdate",
  "type": "object"
}

UserCreate

{
  "additionalProperties": false,
  "description": "Request model for creating user",
  "properties": {
    "email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Email"
    },
    "full_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Full Name"
    },
    "is_active": {
      "default": true,
      "title": "Is Active",
      "type": "boolean"
    },
    "password": {
      "minLength": 1,
      "title": "Password",
      "type": "string"
    },
    "role": {
      "default": "viewer",
      "enum": [
        "admin",
        "operator",
        "viewer"
      ],
      "title": "Role",
      "type": "string"
    },
    "username": {
      "maxLength": 255,
      "minLength": 1,
      "title": "Username",
      "type": "string"
    }
  },
  "required": [
    "username",
    "password"
  ],
  "title": "UserCreate",
  "type": "object"
}

UserUpdate

{
  "additionalProperties": false,
  "description": "Request model for updating user",
  "properties": {
    "email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Email"
    },
    "full_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Full Name"
    },
    "is_active": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Active"
    },
    "password": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Password"
    },
    "role": {
      "anyOf": [
        {
          "enum": [
            "admin",
            "operator",
            "viewer"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Role"
    },
    "role_source": {
      "anyOf": [
        {
          "enum": [
            "local",
            "oidc"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Role Source"
    },
    "username": {
      "anyOf": [
        {
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Username"
    }
  },
  "title": "UserUpdate",
  "type": "object"
}

VMGroupAddVMs

{
  "description": "Request model for adding VMs to group",
  "properties": {
    "vm_ids": {
      "items": {
        "type": "string"
      },
      "title": "Vm Ids",
      "type": "array"
    }
  },
  "required": [
    "vm_ids"
  ],
  "title": "VMGroupAddVMs",
  "type": "object"
}

VMGroupCreate

{
  "description": "Request model for creating VM group",
  "properties": {
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "group_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": "static",
      "title": "Group Type"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "rules": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rules"
    },
    "rules_match": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": "all",
      "title": "Rules Match"
    },
    "tags": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": [],
      "title": "Tags"
    }
  },
  "required": [
    "name"
  ],
  "title": "VMGroupCreate",
  "type": "object"
}

VMGroupUpdate

{
  "description": "Request model for updating VM group",
  "properties": {
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "group_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Group Type"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "rules": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rules"
    },
    "rules_match": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rules Match"
    },
    "tags": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tags"
    }
  },
  "title": "VMGroupUpdate",
  "type": "object"
}

ValidationError

{
  "properties": {
    "ctx": {
      "title": "Context",
      "type": "object"
    },
    "input": {
      "title": "Input"
    },
    "loc": {
      "items": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "integer"
          }
        ]
      },
      "title": "Location",
      "type": "array"
    },
    "msg": {
      "title": "Message",
      "type": "string"
    },
    "type": {
      "title": "Error Type",
      "type": "string"
    }
  },
  "required": [
    "loc",
    "msg",
    "type"
  ],
  "title": "ValidationError",
  "type": "object"
}

VerificationCommand

{
  "additionalProperties": false,
  "properties": {
    "action": {
      "default": "start",
      "enum": [
        "start",
        "resume",
        "cancel"
      ],
      "title": "Action",
      "type": "string"
    },
    "verification_id": {
      "title": "Verification Id",
      "type": "string"
    }
  },
  "required": [
    "verification_id"
  ],
  "title": "VerificationCommand",
  "type": "object"
}

Security schemes

AgentCandidate

{
  "description": "Pending candidate proof authorizes only its exact activation route.",
  "in": "header",
  "name": "X-Agent-Key",
  "type": "apiKey"
}

AgentKey

{
  "in": "header",
  "name": "X-Agent-Key",
  "type": "apiKey"
}

AgentMTLS

{
  "description": "Transport-verified client certificate; never a caller-supplied fingerprint header.",
  "type": "mutualTLS"
}

DemoSession

{
  "in": "cookie",
  "name": "vnbui_demo_session",
  "type": "apiKey"
}

OAuth2PasswordBearer

{
  "flows": {
    "password": {
      "scopes": {},
      "tokenUrl": "/api/v1/auth/login"
    }
  },
  "type": "oauth2"
}

OIDCPKCE

{
  "in": "cookie",
  "name": "oidc_pkce",
  "type": "apiKey"
}

OIDCState

{
  "in": "cookie",
  "name": "oidc_state",
  "type": "apiKey"
}

RegistrationKey

{
  "in": "header",
  "name": "X-API-Key",
  "type": "apiKey"
}