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!
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!