Skip to end of metadata
Go to start of metadata

REST API Method: POST /rest/asmvirtualmachine?action=vmaction

This execute an action on single or multiple VM.

URL:

https://192.168.0.111/rest/asmvirtualmachine?action=vmaction

HTTP Method

POST

Requires Authentication:

true



Parameters

Parameter Name Required Service Affecting Data Type Default Value Possible Values Description
VmListYesYesstringnone255 - Max Length Identifies the virtual machines to apply the action on.

Perform a HTTP GET on the asmvirtualmachine resource to retrieve all the virtual machines present on the ASM.
Select the virtuals machines that you want to execute the action by creating a pipe separated list

ActionOnVmNoNoint0 Specify which action has to be executed on the VMs. The value indicates the action as follows:

Start a VM ==> Value is 2

Turn Off a VM ==> Value is 3

Shut Down a VM ==> Value is 4

Save a VM ==> Value is 6

Pause a VM ==> Value is 9

Reset a VM ==> Value is 11

Start Hyper-V ==> Value is 12

Stop Hyper-V ==> Value is 13

  • No labels