From ac53f1f76cdc45987ad4f34be9ce4cd584625cc8 Mon Sep 17 00:00:00 2001 From: Hannes Laimer Date: Mon, 28 Jun 2021 12:40:34 +0200 Subject: [PATCH] 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 Signed-off-by: Thomas Lamprecht --- PVE/API2/Cluster.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PVE/API2/Cluster.pm b/PVE/API2/Cluster.pm index 455f1845..418af2be 100644 --- a/PVE/API2/Cluster.pm +++ b/PVE/API2/Cluster.pm @@ -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,