[pve-devel] [PATCH container] fix #5674: add missing 'proxyto' for LXC interfaces API
Fabian Grünbichler
f.gruenbichler at proxmox.com
Mon Sep 2 14:25:36 CEST 2024
else this API endpoint would only work when connected to the node where the
container is currently running.
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
src/PVE/API2/LXC.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 741f33c..d9f1c0a 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -2523,6 +2523,7 @@ __PACKAGE__->register_method({
path => '{vmid}/interfaces',
method => 'GET',
protected => 1,
+ proxyto => 'node',
permissions => {
check => ['perm', '/vms/{vmid}', [ 'VM.Audit' ]],
},
--
2.39.2
More information about the pve-devel
mailing list