add vmid parameter to replication status
so that one can limit the status list for one vm/ct Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
9d4aa0edbb
commit
0409269617
@ -57,6 +57,10 @@ __PACKAGE__->register_method ({
|
||||
additionalProperties => 0,
|
||||
properties => {
|
||||
node => get_standard_option('pve-node'),
|
||||
vmid => get_standard_option('pve-vmid', {
|
||||
optional => 1,
|
||||
description => "Only list replication jobs for this vmid.",
|
||||
}),
|
||||
},
|
||||
},
|
||||
returns => {
|
||||
@ -80,6 +84,7 @@ __PACKAGE__->register_method ({
|
||||
my $d = $jobs->{$id};
|
||||
my $state = delete $d->{state};
|
||||
my $vmid = $d->{guest};
|
||||
next if defined($param->{vmid}) && $vmid != $param->{vmid};
|
||||
next if !$rpcenv->check($authuser, "/vms/$vmid", [ 'VM.Audit' ]);
|
||||
$d->{id} = $id;
|
||||
foreach my $k (qw(last_sync last_try fail_count error duration)) {
|
||||
|
Reference in New Issue
Block a user