[SOLVED] vzdump over rest api - bwlimit restricted to root

f4242

Renowned Member
Dec 19, 2016
104
5
83
Quebec, QC
Hello,

I created an API key for root@pam user (because -bwlimit option is restricted to root (why?)). But the API still return an error while using api key for the root user. The error is:

bwlimit: Only root may set this option.

pve-manager/6.3-3/eee5f901 (running kernel: 5.4.78-2-pve)
 
Hi,
the parameter is restricted, because with it, one can override the storage/node/datacenter-specific bandwidth limits. Of course one could argue that it should only fail if the override is less restrictive, but that's just not implemented. Maybe you can set one of those bandwidth limits instead? But naturally, that would affect other backups too.