How to provision a ...
 
Notifications
Clear all

How to provision a hyper-v VPS from WHMCS automatically?

2 Posts
2 Users
0 Reactions
1,898 Views
Posts: 7
Topic starter
(@asofan)
Active Member
Joined: 7 years ago

When a customer signs up for a specific VPS plan in WHMCS, the solidcp module is able to create the customer account, but it will not provision the associated VPS. This means that for each customer sign up I have to login and create a VPS manually for the customer.

Is there a way to automate this already within the solidcp module?

If not, is it possible to create a script (php) upon customer sign up in WHMCS that contains a form filled with customer data and vps plan data (host name, admin password, RAM, Disk Space, etc...) then pass it along to solidcp API?

I looked at the API but I can't find any reference to this.

Any help is appreciated.

Best regards

1 Reply
Posts: 80
(@bogdan_k)
Member
Joined: 8 years ago

Hi,

currently there is no way to provision a VPS automatically from WHMCS. You can create the user space with the quotas, can also use configurable options in WHMCS to match with different addons in SolidCP (so for example the customer can choose the amount of cores, RAM, HDD and it can be automatically provisioned to the quota of a hosting space). You can also assign an external IP automatically to a hosting space after creating it, but that's all.

I'm considering to create a possibility in the WHMCS module to define custom scripts while ordering, suspending, unsuspending and cancelling a service. If this is done, you could use the API described in  https://git.key4ce.com/SolidCP/v2.x/blob/master/SolidCP/Sources/SolidCP.EnterpriseServer/esVirtualizationServer2012.asmx.cs to create a VPS after the order is activated. There is a function CreateVirtualMachine, which can be called via API. But right now I have no fixed schedule for it, because my free time is a bit limited.

Don't you think it would be possible to explain your customers with a "welcome" mail, how to create a VPS by themselves? It's really easy.

Please also note, that a VPS wouldn't be currently deleted, if you terminate/cancel a service. So the VHDX files and the VM will still remain on the servers.

Best regards

Bogdan

Reply
Share: