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:
Hannes Laimer 2021-06-28 12:40:34 +02:00 committed by Thomas Lamprecht
parent d52b1535cd
commit ac53f1f76c

View File

@ -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,