[pve-devel] [PATCH pve-manager] api: cluster: add permission description to log endpoint

Hannes Laimer h.laimer at proxmox.com
Fri Oct 3 12:38:12 CEST 2025


Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
This came up in support, and without looking at the code the behaviour
was not clear. This should help with that.

 PVE/API2/Cluster.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/PVE/API2/Cluster.pm b/PVE/API2/Cluster.pm
index e7d245fb..47980396 100644
--- a/PVE/API2/Cluster.pm
+++ b/PVE/API2/Cluster.pm
@@ -178,7 +178,10 @@ __PACKAGE__->register_method({
     path => 'log',
     method => 'GET',
     description => "Read cluster log",
-    permissions => { user => 'all' },
+    permissions => {
+        description => "The user needs 'Sys.Syslog' on '/' in order to get all logs.",
+        user => 'all',
+    },
     parameters => {
         additionalProperties => 0,
         properties => {
-- 
2.47.3





More information about the pve-devel mailing list