Initial a VM action
Perform an action on an existing VM. Set the type attribute to on of the supported action types:
| Action | Details |
|---|---|
start | Start a VM that isn't running |
shutdown | Attempt to gracefully shutdown a running VM. Normal shutdown may take some time because it simply sends a shutdown signal to the OS of the VM a few times and checks if the VM state has changed, the OS of the VM might ignore this call depending on its state (for example if its booting), there's 2 possibilities :
408 timeout response is returned. |
power_off | Force stop a running VM. This will stop the VM immediately similar to cutting power on a server. This may lead to undesirable results like data loss. |
reboot | Attempts to reboot a VM that is currently running. Note that this will not force the reboot by default, but merely send a signal to the VM's operating system to reboot, this signal might be ignored by the OS (for instance if VM is not fully booted). |
reset | Reset a running VM. Similar to pressing the reset button on a machine. This may have undesirable results like data loss. |
Authorization
AuthorizationRequiredBearer <token>OAuth Authentication
OpenScaler API uses OAuth, a standard for secure authorization. To access the API, obtain a token via the OpenScaler Platform.
Use the access_token in the Authorization header for requests:
Always keep your token secure and do not share it with anyone.
In: header
Request Body
application/jsonOptionalbodyobject | object & objectPath Parameters
vm_idRequiredstringA unique identifier for a VM instance.
If action was performed successfully, an empty success response is returned.