...
Tip |
---|
|
For the Abiquo API documentation of this feature, see Abiquo API Resources and the pages for this resource VirtualMachineResource and VirtualApplianceResource. |
Code Block |
---|
title | DEPLOY a Virtual Machinevirtual machine |
---|
|
* This action requires the privilege VAPP_DEPLOY_UNDEPLOY
|
...
Code Block |
---|
title | UNDEPLOY a Virtual Machinevirtual machine |
---|
|
* This action requires the privilege VAPP_DEPLOY_UNDEPLOY
curl -X POST http://example.com:9000/api/cloud/virtualdatacenters/490/virtualappliances/836/virtualmachines/6376/action/undeploy \
-H 'Accept:application/vnd.abiquo.acceptedrequest+json; version=4.2' \
-H 'Content-Type:application/vnd.abiquo.virtualmachinetask+json; version=4.2' \
-d @requestpayload.json \
-u user:password --verbose
|
...
Code Block |
---|
title | The newly created Tasktask |
---|
|
{
"message": "You can keep track of the progress in the link",
"links": [
{
"rel": "status",
"href": "https://example.com:443/api/cloud/virtualdatacenters/490/virtualappliances/836/virtualmachines/6376/tasks/cec70487-6d29-4fde-b6ef-e3488f5fe239"
}
]
} |
...
We can query the progress using:
Code Block |
---|
|
* This action requires the privilege VAPP_CUSTOMISE_SETTINGS
curl -X GET https://example.com:443/api/cloud/virtualdatacenters/490/virtualappliances/836/virtualmachines/6376/tasks/cec70487-6d29-4fde-b6ef-e3488f5fe239 \
-H 'Accept:application/vnd.abiquo.task+json; version=4.2' \
-u user:password --verbose |
...