update backup type with per instance and total backup count max

This commit is contained in:
2026-04-24 17:54:13 +00:00
parent eeaf366e28
commit 858c5889f1
+3 -2
View File
@@ -8,7 +8,7 @@ type Pool struct {
Templates Templates `json:"templates"` Templates Templates `json:"templates"`
AllowedNodes map[string]bool `json:"nodes-allowed"` AllowedNodes map[string]bool `json:"nodes-allowed"`
VMIDRange VMID `json:"vmid-allowed"` VMIDRange VMID `json:"vmid-allowed"`
Backups Backups `json:"backups-allowed"` // measured in numbers Backups Backups `json:"backups-allowed"`
} }
// proxmox typically formats as gid-realm for non pve realms // proxmox typically formats as gid-realm for non pve realms
@@ -44,7 +44,8 @@ type VMID struct {
} }
type Backups struct { type Backups struct {
Max int `json:"max"` MaxPerInstance int `json:"max-per-instance"`
MaxTotal int `json:"max-total"`
} }
type Templates struct { type Templates struct {