api: content listing: add comment and verification fields
for now only for PBS, since we do not have such info elsewhere Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
4558cb6eb6
commit
9778e5c216
@ -87,6 +87,26 @@ __PACKAGE__->register_method ({
|
|||||||
minimum => 0,
|
minimum => 0,
|
||||||
optional => 1,
|
optional => 1,
|
||||||
},
|
},
|
||||||
|
comment => {
|
||||||
|
description => "An optional Comment.",
|
||||||
|
type => 'string',
|
||||||
|
optional => 1,
|
||||||
|
},
|
||||||
|
verification => {
|
||||||
|
description => "Last backup verification result, only useful for PBS storages.",
|
||||||
|
type => 'object',
|
||||||
|
properties => {
|
||||||
|
state => {
|
||||||
|
description => "Last backup verification state.",
|
||||||
|
type => 'string',
|
||||||
|
},
|
||||||
|
upid => {
|
||||||
|
description => "Last backup verification UPID.",
|
||||||
|
type => 'string',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
optional => 1,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
links => [ { rel => 'child', href => "{volid}" } ],
|
links => [ { rel => 'child', href => "{volid}" } ],
|
||||||
|
|||||||
@ -525,6 +525,9 @@ sub list_volumes {
|
|||||||
ctime => $epoch,
|
ctime => $epoch,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$info->{verification} = $item->{verification} if defined($item->{verification});
|
||||||
|
$info->{comment} = $item->{comment} if defined($item->{comment});
|
||||||
|
|
||||||
push @$res, $info;
|
push @$res, $info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user