Hello,
I'm trying to setup a Backup Job in Proxmox VE using the API.
My .json file:
I'm getting this response:
If I remove prune-backups the job will be created fine.
How can I pass prune-backups as a key by using the API?
Regards - Willi
I'm trying to setup a Backup Job in Proxmox VE using the API.
Bash:
root@...:~# pveversion
pve-manager/7.4-3/9002ab8a (running kernel: 5.15.107-1-pve)
My .json file:
JSON:
{
"compress":"zstd",
"enabled":1,
"mailnotification":"always",
"mailto":"...",
"mode":"snapshot",
"notes-template":"{{guestname}}",
"prune-backups": {
"keep-last": "5"
},
"schedule":"mon..fri 00:00",
"storage":"cephfs",
"vmid":"112"
}
I'm getting this response:
Bash:
HTTP/1.1 400 Parameter verification failed.
Cache-Control: max-age=0
Connection: close
Content-Length: 121
Content-Type: application/json;charset=UTF-8
Date: Mon, 17 Jul 2023 09:09:21 GMT
Expires: Mon, 17 Jul 2023 09:09:21 GMT
Pragma: no-cache
Server: pve-api-daemon/3.0
{
"data": null,
"errors": {
"prune-backups": "invalid format - value without key, but schema does not define a default key\n"
}
}
If I remove prune-backups the job will be created fine.
How can I pass prune-backups as a key by using the API?
Regards - Willi
Last edited: