• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved REST API: how to generate auto-login links for reseller/customer

mjauvin

New Pleskian
Hello, I have been able to call the login cli command to generate an auto-login link for any user from the command line, but cannot find how to achieve this using the REST API.

The only method I was able to use from the REST API is the "admin --get-login-link" but this only works for the admin, not for other users.

# curl -k -i -u admin:*** -H "Content-Type: application/json" -H "Accept: application/json" https://<server-ip>:8443/api/v2/cli/admin/call -XPOST -d '{"params":["--get-login-link"]}'

{
"code": 0,
"stdout": "https:<server-ip>/login?secret=NMlQD3cw0NIvP1ZAYE3xGZs4Vktb1NKhGps5abU0o_T6e4Vh",
"stderr": ""
}

Anyone has insight on how to do this without using the XML API ?
 
Back
Top