[pmg-devel] Dump All objects

Stoiko Ivanov s.ivanov at proxmox.com
Fri May 10 18:33:25 CEST 2019


Hi,

You can use `pmgsh` for that (or curl via pmgproxy [0])
With that you get json back and can iterate further:
```
pmgsh get /config/ruledb/what
```
pmgsh also has an interactive mode where you can look around with
ls/get

apart from that you can also go through the postgres directly - however
PMGs schema might need some encoding and I don't know whether postgres
has builtins for that.

hope this helps!
stoiko


[0] on port 8006) -the instructions for PVE should work for PMG as well:
https://pve.proxmox.com/wiki/Proxmox_VE_API



On Fri, 10 May 2019 18:18:35 +0200
Davide Bozzelli <davide.bozzelli at gmail.com> wrote:

> Hi
> 
> Is there a simple way to dump like pmgdb dump ALL the objects ? i
> mean not only the ones used in rules.
> 
> Thx
> 




More information about the pmg-devel mailing list