[SOLVED] API question

NothingTV

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

I try to automate few things within the Proxmox Backup Server and I'm missing one important endpoint: How can I get all Backups (with IDs, Notes etc.) of a namespace?

Best regards
 
Since it is a GET endpoint you add ?ns=NAMESPACE at the end, so the whole thing looks something like
Code:
https://<HOST>:8007/api2/json/admin/datastore/<DATASTORE>/groups?ns=<NAMESPACE>
for testing you can just login normally and then update the URL so you don't have to worry about authentication.
 
Is it possible, that it does'nt support any kind of special characters in the namespace? I already tried it like this and got the Bad Request response. The Namespace has a "-" in it's name, just tried another namespace without a special character and it seem to work (only seem, because they don't have any data).
 
  • Like
Reactions: NothingTV

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!