Get Backup Nodes via API

NothingTV

Active Member
Nov 4, 2019
40
2
28
Hi there,

I have another question about the API, I see that there is an note endpoint, but it does not provide notes of the vm, I already know, that they are stored in qemu-server.conf.blob, is there a way to access this via API?

Best regards
 
I know both endpoints already, but I need the notes of the actual Backup that is stored in the qemu-server.conf.blob, is there a way to read this via API? Because the PBS does not store them in the group-notes.
 
you could use: https://pbs.proxmox.com/docs/api-viewer/index.html#/admin/datastore/{store}/download-decoded

to download the config and parse it yourself, but from pbs perspective, it's just some file and it does not know about PVE vm configs and does not have the ability to parse those
note that that only works for unencrypted backups, since PBS does not have access to the encryption key (only the client, so PVE, has that)

if you want to access that from the PVE side, you could use https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/vzdump/extractconfig to exctract the config from a pbs
 
Last edited:
the volume name must be the "volid" of the backup e.g. "pbs-storage:backup/vm/100/2024-06-18T12:26:27Z"