• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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