Delete VMs
Deleting multiple VMs
Request:
DELETE /api/vms
{
"action" : "delete",
"resources" : [
{ "href" : "http://localhost:3000/api/vms/348" },
{ "href" : "http://localhost:3000/api/vms/349" }
]
}
Response:
{
"results": [
{
"success": true,
"message": "VM id:348 name:'aab-temp1' deleting",
"task_id": "616",
"task_href": "http://localhost:3000/api/tasks/616",
"href": "http://localhost:3000/api/vms/348"
},
{
"success": true,
"message": "VM id:349 name:'aab-temp2' deleting",
"task_id": "617",
"task_href": "http://localhost:3000/api/tasks/617",
"href": "http://localhost:3000/api/vms/349"
}
]
}
Optionally monitoring the asynchronous Vm deletion by accessing the related Task as follows: