X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=PVE%2FAPI2%2FStorage%2FStatus.pm;h=8a36aefb8c5d22d0c4b80eb0f805d78ce99f0a92;hb=ead6be934d37989105034d04e92c0229270389eb;hp=d9d9b360c252c47fa792477774493ebbe7940438;hpb=7dd31e686ca3ee218a0f77e3c4dd87fc137adccf;p=pve-storage.git diff --git a/PVE/API2/Storage/Status.pm b/PVE/API2/Storage/Status.pm index d9d9b36..8a36aef 100644 --- a/PVE/API2/Storage/Status.pm +++ b/PVE/API2/Storage/Status.pm @@ -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;