• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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