PVE::API2::Storage::Replication - add directory index

This commit is contained in:
Dietmar Maurer
2017-05-05 10:01:26 +02:00
parent 76c358149a
commit 07dff26749

View File

@ -11,8 +11,37 @@ use PVE::RESTHandler;
use base qw(PVE::RESTHandler);
__PACKAGE__->register_method ({
name => 'list',
path => 'list',
name => 'index',
path => '',
method => 'GET',
permissions => { user => 'all' },
description => "Directory index.",
parameters => {
additionalProperties => 0,
properties => {
node => get_standard_option('pve-node'),
},
},
returns => {
type => 'array',
items => {
type => "object",
properties => {},
},
links => [ { rel => 'child', href => "{name}" } ],
},
code => sub {
my ($param) = @_;
return [
{ name => 'jobs' },
];
}});
__PACKAGE__->register_method ({
name => 'jobs',
path => 'jobs',
method => 'GET',
description => "List of all replication jobs.",
permissions => {