SolusVM API PHP Script
By Fahad Ahammed
- One minute read - 103 wordsThe client API is a http based API that allows you and your clients to interact directly with a virtual server with security and ease. The client API can be disabled at any time and access is only granted with a key and hash on a per vps basis.Currently available options are:
Here is the script:
From above image , you are seeing some button to reboot, shutdown, boot, reload. They are just html links having desired pattern of solusvm.
Links are:
Shutdown
https://vps1.domain.com:5656/api/client/command.php?key=AAAAA-BBBBB-CCCCC&hash=1a1a1a1a1a1a1a1a1a1aa1a1a1a1a1a1aa1a1a1a&action=shutdown
Reboot
https://vps1.domain.com:5656/api/client/command.php?key=AAAAA-BBBBB-CCCCC&hash=1a1a1a1a1a1a1a1a1a1aa1a1a1a1a1a1aa1a1a1a&action=reboot
Boot
https://vps1.domain.com:5656/api/client/command.php?key=AAAAA-BBBBB-CCCCC&hash=1a1a1a1a1a1a1a1a1a1aa1a1a1a1a1a1aa1a1a1a&action=boot
Reload
https://vps1.domain.com:5656/api/client/command.php?key=AAAAA-BBBBB-CCCCC&hash=1a1a1a1a1a1a1a1a1a1aa1a1a1a1a1a1aa1a1a1a&action=reload
Just replace your api key and hash and url of solusvm.
Thank You.