]> git.proxmox.com Git - pve-storage.git/commit
file-restore: pass in volume ID or name
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 23 Apr 2021 10:34:26 +0000 (12:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Apr 2021 12:09:54 +0000 (14:09 +0200)
commitc1ec1acbdebb31c72e5fba94bc0cc3917f4de11f
treece90449475540181ceffb66e769fa42c1f886f82
parent82f764e119539349cf49258f8228d6f7200d6645
file-restore: pass in volume ID or name

instead of just the snapshot for consistency with other API endpoints,
and possible future extension to VMA backups (where 'snapshot' would be
a rather strange terminology).

add some additional checks (pbs storage type, backup volume type),
completion and magic (allow passing in either a full volume ID with
correct storage, or just the volume name, or just the snapshot for
easier API/CLI usage/convenience).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/API2/Storage/FileRestore.pm