S sanojs Member Sep 13, 2019 44 1 13 36 Jun 16, 2021 #1 Hi, Please could someone tell me how we can export the global whitelist and blacklist -domain and email list outside of the PMG in .txt format Also need to export all outgoing and incoming email IDs list from proxmox for a year. Thanks,
Hi, Please could someone tell me how we can export the global whitelist and blacklist -domain and email list outside of the PMG in .txt format Also need to export all outgoing and incoming email IDs list from proxmox for a year. Thanks,
Stoiko Ivanov Proxmox Staff Member Staff member May 2, 2018 9,309 1,700 248 Jun 22, 2021 #2 You can use the PMG REST api for this - either by using pmgsh or via curl (see the wiki-page on the PVE wiki - the API's are quite similar: https://pve.proxmox.com/wiki/Proxmox_VE_API) The path you're looking for is: https://pmg.proxmox.com/pmg-docs/api-viewer/index.html#/config/ruledb/who/{ogroup}/objects pmgsh outputs json, which you can then parse to get a textfile also search the forum for posts mentioning pmgsh - e.g.: https://forum.proxmox.com/threads/pmg-whitelist-location.85199/#post-374819 I hope this helps
You can use the PMG REST api for this - either by using pmgsh or via curl (see the wiki-page on the PVE wiki - the API's are quite similar: https://pve.proxmox.com/wiki/Proxmox_VE_API) The path you're looking for is: https://pmg.proxmox.com/pmg-docs/api-viewer/index.html#/config/ruledb/who/{ogroup}/objects pmgsh outputs json, which you can then parse to get a textfile also search the forum for posts mentioning pmgsh - e.g.: https://forum.proxmox.com/threads/pmg-whitelist-location.85199/#post-374819 I hope this helps
R Rumen Vachev Active Member Nov 20, 2018 8 1 43 54 Jun 22, 2021 #3 Thank you Reactions: Stoiko Ivanov