Answer the question
In order to leave comments, you need to log in
How to automate the launch of virtual machines in a private cloud?
There is a service provider, they host virtual machines. Many servers are not used during non-office hours, and payment is made for the computing resources used.
There was a wonderful idea to turn off virtual servers at night and turn them on before the start of the working day. The provider does not provide an API, resource management occurs through a web application.
I want to send the necessary POST request to start the VM, but I'm not familiar with the internal device. The app runs as https://hostname/app/cloudmgr/cloudmgr.jsp#/vresources/ , with flash inside.
Ideally, you need to get a list of VMs with a script and send a command to turn it on for the necessary ones.
Where to dig?
Answer the question
In order to leave comments, you need to log in
Ask them for access to the management API. Many hosts have this. Or change host.
As an example https://developers.digitalocean.com/documentation/
If there is a proprietary protocol that they do not want to shine, then the maximum that can be done is to simulate requests to the front (and given the fact that there is a flash, most likely the maximum that can be done is to simulate pressing buttons on the keyboard) - which is crooked to say the least.
It seems to me easier to think about changing the supplier.
Have you tried sniffing the protocol of the control application? It is unlikely that there is a binary self-made protocol, most likely something based on HTTP / REST has been done.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question