Hi,
I now tried for two days to disable a storage over the API but I can't make it work. Same as "pvesm set STORAGE --disable 1" would do.
My best guess is:
https://NODEIP:8006/api2/json/storage/STORAGENAME --data disable=1 --insecure --cookie PVEAuthCookie=COOKIE --header CSRFPreventionToken:TOKEN -X PUT
The token generation and permissions are okay. The scripts works for me for shutdown over the API (with different URL, permissions and POST of course).
Could somebody please give me a hint? Are there any logs I could check?
Thanks!
I now tried for two days to disable a storage over the API but I can't make it work. Same as "pvesm set STORAGE --disable 1" would do.
My best guess is:
https://NODEIP:8006/api2/json/storage/STORAGENAME --data disable=1 --insecure --cookie PVEAuthCookie=COOKIE --header CSRFPreventionToken:TOKEN -X PUT
The token generation and permissions are okay. The scripts works for me for shutdown over the API (with different URL, permissions and POST of course).
Could somebody please give me a hint? Are there any logs I could check?
Thanks!
Last edited: