Hi guys,
I'm working on monitoring the completion of backup tasks in Proxmox Backup Server (PBS). My goal is to track when a backup task finishes and receive notifications when all backup tasks report a status of "ok."
I’ve reviewed the API documentation at Proxmox API Viewer, but it appears that the endpoint for checking the status of backup tasks isn't functioning as expected.
Has anyone encountered similar issues or can offer guidance on how to properly monitor backup task statuses using the PBS API?
Using curl I have the following:
So after this i noticed the \\x3act and that is
I then proceed to change the enconding to the : but once again I have the same error
This works just fine for other tasks, such as aptupdate
I'm working on monitoring the completion of backup tasks in Proxmox Backup Server (PBS). My goal is to track when a backup task finishes and receive notifications when all backup tasks report a status of "ok."
I’ve reviewed the API documentation at Proxmox API Viewer, but it appears that the endpoint for checking the status of backup tasks isn't functioning as expected.
Has anyone encountered similar issues or can offer guidance on how to properly monitor backup task statuses using the PBS API?
Using curl I have the following:
$ curl -H 'Authorization: PBSAPIToken=root@pam!api:<REDACTED>' 'https://PBS:8007/api2/json/nodes/localhost/tasks/UPID:nas1:000004D5:00000505:0000001D:66DED70D:backup:backupProxmox\\x3act-100:root@pam/log' -k
parameter verification failed - 'upid': value does not match the regex pattern
So after this i noticed the \\x3act and that is
:
I then proceed to change the enconding to the : but once again I have the same error
$ curl -H 'Authorization: PBSAPIToken=root@pam!api:<REDACTED>' 'https://PBS:8007/api2/json/nodes/localhost/tasks/UPID:nas1:000004D5:00000505:0000001D:66DED70D:backup:backupProxmox:ct-100:root@pam/log' -kparameter verification failed - 'upid': value does not match the regex pattern%
This works just fine for other tasks, such as aptupdate
$ curl -H 'Authorization: PBSAPIToken=root@pam!api:<REDACTED>' 'https://PBS:8007/api2/json/nodes/localhost/tasks/UPID:nas1:00019276:000B6B2D:00000000:66DEDAF9:aptupdate::root@pam:/log' -k
{"data":[{"n":1,"t":"2024-09-09T12:24:41+01:00: starting apt-get update"},{"n":2,"t":"2024-09-09T12:24:42+01:00: Hit:1 http://deb.debian.org/debian bookworm InRelease"},{"n":3,"t":"Get:2 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]"},{"n":4,"t":"Hit:3 http://deb.debian.org/debian bookworm-updates InRelease"},{"n":5,"t":"Get:4 http://download.proxmox.com/debian/pbs bookworm InRelease [2,782 B]"},{"n":6,"t":"Fetched 50.7 kB in 0s (125 kB/s)"},{"n":7,"t":"Reading package lists..."},{"n":8,"t":""},{"n":9,"t":"2024-09-09T12:24:42+01:00: TASK OK"}],"success":1,"total":9}%