E
E
Eugene2016-10-11 17:36:59
Automation
Eugene, 2016-10-11 17:36:59

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

4 answer(s)
A
Alexey Cheremisin, 2016-10-11
@misant

Ask them for access to the management API. Many hosts have this. Or change host.
As an example https://developers.digitalocean.com/documentation/

D
Dmitry Entelis, 2016-10-11
@DmitriyEntelis

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.

A
athacker, 2016-10-12
@athacker

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.

1
1cloud_ru, 2018-08-06
@1cloud_ru

Any self-respecting hoster has a public API, for example - https://1cloud.ru/api/server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question