PVE::API2::Storage::Content::index - document return values
This commit is contained in:
@ -50,9 +50,36 @@ __PACKAGE__->register_method ({
|
|||||||
items => {
|
items => {
|
||||||
type => "object",
|
type => "object",
|
||||||
properties => {
|
properties => {
|
||||||
volid => {
|
volid => {
|
||||||
type => 'string'
|
description => "Volume identifier.",
|
||||||
}
|
type => 'string',
|
||||||
|
},
|
||||||
|
vmid => {
|
||||||
|
description => "Associated Owner VMID.",
|
||||||
|
type => 'integer',
|
||||||
|
optional => 1,
|
||||||
|
},
|
||||||
|
parent => {
|
||||||
|
description => "Volume identifier of parent (for linked cloned).",
|
||||||
|
type => 'string',
|
||||||
|
optional => 1,
|
||||||
|
},
|
||||||
|
'format' => {
|
||||||
|
description => "Format identifier ('raw', 'qcow2', 'subvol', 'iso', 'tgz' ...)",
|
||||||
|
type => 'string',
|
||||||
|
},
|
||||||
|
size => {
|
||||||
|
description => "Volume size in bytes.",
|
||||||
|
type => 'integer',
|
||||||
|
renderer => 'bytes',
|
||||||
|
},
|
||||||
|
used => {
|
||||||
|
description => "Used space. Please note that most storage plugins " .
|
||||||
|
"does not report anything useful here.",
|
||||||
|
type => 'integer',
|
||||||
|
renderer => 'bytes',
|
||||||
|
optional => 1,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
links => [ { rel => 'child', href => "{volid}" } ],
|
links => [ { rel => 'child', href => "{volid}" } ],
|
||||||
|
|||||||
Reference in New Issue
Block a user