]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/API2/Storage/Status.pm
api: status: sort index and add missing "file-restore"
[pve-storage.git] / PVE / API2 / Storage / Status.pm
index d9d9b360c252c47fa792477774493ebbe7940438..8a36aefb8c5d22d0c4b80eb0f805d78ce99f0a92 100644 (file)
@@ -11,6 +11,8 @@ use PVE::Cluster;
 use PVE::RRD;
 use PVE::Storage;
 use PVE::API2::Storage::Content;
+use PVE::API2::Storage::PruneBackups;
+use PVE::API2::Storage::FileRestore;
 use PVE::RESTHandler;
 use PVE::RPCEnvironment;
 use PVE::JSONSchema qw(get_standard_option);
@@ -18,6 +20,11 @@ use PVE::Exception qw(raise_param_exc);
 
 use base qw(PVE::RESTHandler);
 
+__PACKAGE__->register_method ({
+    subclass => "PVE::API2::Storage::PruneBackups",
+    path => '{storage}/prunebackups',
+});
+
 __PACKAGE__->register_method ({
     subclass => "PVE::API2::Storage::Content",
     # set fragment delimiter (no subdirs) - we need that, because volume
@@ -26,6 +33,11 @@ __PACKAGE__->register_method ({
     path => '{storage}/content',
 });
 
+__PACKAGE__->register_method ({
+   subclass => "PVE::API2::Storage::FileRestore",
+   path => '{storage}/file-restore',
+});
+
 __PACKAGE__->register_method ({
     name => 'index',
     path => '',
@@ -209,11 +221,13 @@ __PACKAGE__->register_method ({
        my ($param) = @_;
 
        my $res = [
-           { subdir => 'status' },
            { subdir => 'content' },
-           { subdir => 'upload' },
+           { subdir => 'file-restore' },
+           { subdir => 'prunebackups' },
            { subdir => 'rrd' },
            { subdir => 'rrddata' },
+           { subdir => 'status' },
+           { subdir => 'upload' },
        ];
 
        return $res;