Posted By: ajmeireles on May 16, 2019, 4:15 pm |
Hello,
   I'm trying to create a custom button on WHMCS Admin Panel called as "Rebuild", only to the Admin user be able to rebuild a VPS with easy mode, because I do not use "User Rebuilt" on VPS panel to prevent any errors that the customer can do. I'm trying to use ADMIN API, but when I call the function, the system return this error: https://puu.sh/Dt6fR/84a806575a.png, say me this reason: "The VPS ID doesn't exists"    My questions is: 1. The Virtualizor admin API only work if the VPS is in Master server? 2. Can you check if have some error in this simple code? https://puu.sh/Dt6N7/eb597c694a.png On error log, it returns all data from the VPS as correct informations, but it simply doesn't process. |
Posted By: wolke on May 22, 2019, 8:30 am | Post: 3 |
seems that there were made some significant changes. I got it working too with connecting only to master.sounds like fun :-)
|
Posted By: chirag on November 18, 2019, 6:31 am | Post: 4 |
Hi,
Sir whenever you make any call using SDK you will need to make a call to Master server only.If you make call to Slave server it will work but Master will not be aware of that changes. So in next sync the DB changes will be overwirtten as per the master server entry. It should work from Master server.https://www.virtualizor.com/docs/admin-api/rebuild-vps/ Let us know if you are facing any issues. ----------------------- Virtualizor - VPS Control Panel Follow us on Facebook |