mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 17:06:09 +00:00
A ready backup's Restore button becomes a menu: as a new VM, over the VM (offered when the backup has its VM row) and one disk. Restoring over the VM shows each disk's volume now and the new one before it is confirmed, and why not when it cannot be done. The API gains restore-over and restore-disk actions, answered 202 with the job.
18 lines
738 B
Python
18 lines
738 B
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = "vmbackups"
|
|
|
|
urlpatterns = [
|
|
path("", views.index, name="index"),
|
|
path("<uuid:uuid>/delete/", views.delete, name="delete"),
|
|
path("<uuid:uuid>/restore/", views.restore, name="restore"),
|
|
path("<uuid:uuid>/restore-over/", views.restore_over, name="restore_over"),
|
|
path("<uuid:uuid>/restore-disk/", views.restore_disk, name="restore_disk"),
|
|
path("schedules/", views.policies, name="policies"),
|
|
path("schedules/<int:policy_id>/", views.policy, name="policy"),
|
|
path("targets/", views.targets, name="targets"),
|
|
path("targets/<int:target_id>/", views.target, name="target"),
|
|
path("vm/<int:instance_id>/create/", views.create, name="create"),
|
|
]
|