...
First, you can use the AllVirtualMachinesResource to retrieve all your VMs.
Div | ||||
---|---|---|---|---|
| ||||
Expand | ||||
cURL :
Success status code: 200 Request payload: --none-- Response payload:
|
The following links will provide information about the hard disks and volumes attached to the VM.
...
Your new VM DTO should look similar to the following example.
Div | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Reconfigure the VM
Perform a put request on the VM with the VM entity that you edited to include the new link.
...
We can check the progress of the task using:
...
Code Block | ||
---|---|---|
| ||
curl -X GET https://mjsabq.bcn.abiquo.com:443/api/cloud/virtualdatacenters/3/virtualappliances/4/virtualmachines/186/tasks/b6f195f4-7337-4f8e-acd7-73f60fa43c41 \
-u admin:xabiquo --verbose
|
Expand | ||
---|---|---|
|
...