mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-03 11:36:47 +00:00
api: cluster/resources: add 'name' property to return schema
VM names are returned by the endpoint anyway, therefore it makes sense to add it to the endpoint specification so it also appears in the API docs and is visible when using pvesh with text output. Signed-off-by: Hannes Laimer <h.laimer@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
d52b1535cd
commit
ac53f1f76c
@ -226,6 +226,11 @@ __PACKAGE__->register_method({
|
||||
type => 'string',
|
||||
optional => 1,
|
||||
},
|
||||
name => {
|
||||
description => "Name of the resource.",
|
||||
type => 'string',
|
||||
optional => 1,
|
||||
},
|
||||
node => get_standard_option('pve-node', {
|
||||
description => "The cluster node name (when type in node,storage,qemu,lxc).",
|
||||
optional => 1,
|
||||
|
Loading…
Reference in New Issue
Block a user