Master
Versions: Euwe / Fine / Latest /

Scan a VM

Request:

POST /api/vms/1922
{
  "action": "scan"
}

Response:

{
  "success": true,
  "message": "VM id:1922 name:'aab_test_vm' scanning",
  "task_id": 618,
  "task_href": "http://localhost:3000/api/tasks/618",
  "href": "http://localhost:3000/api/vms/1922"
}

And then optionally waiting for the task to complete as follows:

GET /api/tasks/618

Response:

{
  "href": "http://localhost:3000/api/tasks/618",
  "id": 618,
  "name": "VM id:1922 name:'aab_test_vm' scanning",
  "state": "Finished",
  "status": "Ok",
  "message": "Task completed successfully",
  "userid": "admin",
  "created_on": "2015-05-05T19:37:32Z",
  "updated_on": "2015-05-05T19:37:38Z"
}