How to delete a volume via an API call

asked 2016-04-04 07:43:58 -0500

CloudIsMyLife gravatar image

I need an API for Deleting a Volume existing in the volumes of my Openstack.I wrote the following API for deleting the Volume after detaching it from then instance.

curl -g -i -X DELETE http://XX.XX.XX.XX/v2/698c07fcc8a4487... -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: c57bf7a79d0c4c968381404b934252b8"

HTTP/1.1 404 Not Found Content-Length: 52 Content-Type: text/plain; charset=UTF-8 X-Compute-Request-Id: req-155d6ca8-b710-4d4a-85b4-072ed77c078f Date: Mon, 04 Apr 2016 10:33:28 GMT

404 Not Found

The resource could not be found.

edit retag flag offensive close merge delete