Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To reset a VM using the API, use a POST request to the reset action link. If you are using a test environment, you may wish to add the --insecure option.

Expand

cURL:

Code Block
curl -X POST http://localhost:9000mjsabiquo.bcn.abiquo.com/api/cloud/virtualdatacenters/22102/virtualappliances/10851/virtualmachines/112647/action/reset \ 
	 -H 'Accept:application/vnd.abiquo.acceptedrequest+json; version=45.20' \ 
	 -u user:password --verbose | jq .

Success status code: 202

Request payload:

--none--

Response payload:

Code Block
{
  "message": "You can keep track of the progress in the link",
   "links": [
    {
      "title": "status",
      "rel": "status",
      "type": "application/vnd.abiquo.task+json",
      "href": "httphttps://localhost:9009mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/22102/virtualappliances/10851/virtualmachines/112647/tasks/1fd663d5af40013c-1e66ed14-44434872-b94c-f78d13c9e62f", 
      "rel": "status"
8906-0dc698df46c8"
    }
  ]
}