Allow fetching quarantine link via API call

LucasRolff

New Member
May 1, 2021
9
2
3
30
Hi guys,

Currently, a user can request the quarantine link via the https://pmg.proxmox.com/pmg-docs/api-viewer/index.html#/quarantine/sendlink call - which sends them an email with the link to log into quarantine.

Would it be possible to add an authenticated version of this (so e.g. for admin/qmanager) that would return the URL directly in the API call?

This could be useful where one has a dashboard, where we have a button called "Access quarantine", which would trigger the API call, get the URL, and then redirect users to it, so it doesn't have to make people check their email.

Having this call would simplify integration with systems quite a lot, and from my understanding, it should be relatively easy to implement, since it involves:
- check if authenticated and in the right role
- return URL instead of sending the email (Possibly controlled via a skipemail=1 flag).

p.s.:
Also, would be nice to manage quarantine per domain, instead of per user, but I guess that's waaay harder to do :-D

Thanks in advance!
 
Thank you for the idea and the use case! Could you please add it to the PMG Bugzilla? There is certainly won't get lost beneath all the new posts.
 
Last edited:
Hi Dominic,

I'll create a PMG Bugzilla!

Fun fact, the email notification from this forum, somehow got marked as spam by PMG :oops:

Main trigger being KAM_MAILBOX2:
KAM_MAILBOX2 6.25 Mailbox Quota Phishing Scams

Have an awesome day!
 
  • Like
Reactions: Dominic

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!