mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 18:30:17 +00:00
api: ceph: update return schemas
to include a more complete description of the returned data. Sort properties in alphabetical order if the list is longer. Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
This commit is contained in:
parent
7b696d5a12
commit
b62ba85ad7
@ -622,7 +622,12 @@ __PACKAGE__->register_method ({
|
|||||||
type => 'array',
|
type => 'array',
|
||||||
items => {
|
items => {
|
||||||
type => "object",
|
type => "object",
|
||||||
properties => {},
|
properties => {
|
||||||
|
name => {
|
||||||
|
description => "Name of the CRUSH rule.",
|
||||||
|
type => "string",
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
links => [ { rel => 'child', href => "{name}" } ],
|
links => [ { rel => 'child', href => "{name}" } ],
|
||||||
},
|
},
|
||||||
|
@ -212,9 +212,16 @@ __PACKAGE__->register_method ({
|
|||||||
items => {
|
items => {
|
||||||
type => "object",
|
type => "object",
|
||||||
properties => {
|
properties => {
|
||||||
name => { type => 'string' },
|
|
||||||
addr => { type => 'string', optional => 1 },
|
addr => { type => 'string', optional => 1 },
|
||||||
host => { type => 'string', optional => 1 },
|
ceph_version => { type => 'string', optional => 1 },
|
||||||
|
ceph_version_short => { type => 'string', optional => 1 },
|
||||||
|
direxists => { type => 'string', optional => 1 },
|
||||||
|
host => { type => 'boolean', optional => 1 },
|
||||||
|
name => { type => 'string' },
|
||||||
|
quorum => { type => 'boolean', optional => 1 },
|
||||||
|
rank => { type => 'integer', optional => 1 },
|
||||||
|
service => { type => 'integer', optional => 1 },
|
||||||
|
state => { type => 'string', optional => 1 },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
links => [ { rel => 'child', href => "{name}" } ],
|
links => [ { rel => 'child', href => "{name}" } ],
|
||||||
|
@ -88,6 +88,16 @@ __PACKAGE__->register_method ({
|
|||||||
# fixme: return a list instead of extjs tree format ?
|
# fixme: return a list instead of extjs tree format ?
|
||||||
returns => {
|
returns => {
|
||||||
type => "object",
|
type => "object",
|
||||||
|
items => {
|
||||||
|
type => "object",
|
||||||
|
properties => {
|
||||||
|
flags => { type => "string" },
|
||||||
|
root => {
|
||||||
|
type => "object",
|
||||||
|
description => "Tree with OSDs in the CRUSH map structure.",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
code => sub {
|
code => sub {
|
||||||
my ($param) = @_;
|
my ($param) = @_;
|
||||||
|
@ -181,6 +181,14 @@ __PACKAGE__->register_method ({
|
|||||||
description => "Flag name.",
|
description => "Flag name.",
|
||||||
type => 'string', enum => $possible_flags_list,
|
type => 'string', enum => $possible_flags_list,
|
||||||
},
|
},
|
||||||
|
description => {
|
||||||
|
description => "Flag description.",
|
||||||
|
type => 'string',
|
||||||
|
},
|
||||||
|
value => {
|
||||||
|
description => "Flag value.",
|
||||||
|
type => 'boolean',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
links => [ { rel => 'child', href => "{name}" } ],
|
links => [ { rel => 'child', href => "{name}" } ],
|
||||||
|
Loading…
Reference in New Issue
Block a user