Skip to content

Instantly share code, notes, and snippets.

/- Secret

Created February 10, 2016 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a0a40ceb0135fdadc397 to your computer and use it in GitHub Desktop.
Save anonymous/a0a40ceb0135fdadc397 to your computer and use it in GitHub Desktop.
[(keystone_demo):root@kilo-allinone:~]: glance -d image-delete cirros
curl -g -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}cd433bebb975ddd022f82c3d992aeb2bcef4c910' -H 'Content-Type: application/octet-stream' http://10.87.209.212:9292/v1/images/detail?limit=20&name=cirros
HTTP/1.1 200 OK
date: Wed, 10 Feb 2016 14:30:03 GMT
connection: keep-alive
content-type: application/json; charset=UTF-8
content-length: 495
x-openstack-request-id: req-req-1ac7cc1d-f5b4-4346-9880-7c5b976c9a29
{"images": [{"status": "active", "deleted_at": null, "name": "cirros", "deleted": false, "container_format": "bare", "created_at": "2015-12-28T16:34:11.000000", "disk_format": "qcow2", "updated_at": "2016-02-10T14:23:00.000000", "min_disk": 0, "protected": false, "id": "fe801bb8-ebfe-4f40-b591-3653bdb81305", "min_ram": 0, "checksum": "133eae9fb1c98f45894a4e60d8736619", "owner": "45d89cd131d44a1b8614329af0f255e5", "is_public": true, "virtual_size": null, "properties": {}, "size": 13200896}]}
curl -g -i -X DELETE -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}cd433bebb975ddd022f82c3d992aeb2bcef4c910' -H 'Content-Type: application/octet-stream' http://10.87.209.212:9292/v1/images/fe801bb8-ebfe-4f40-b591-3653bdb81305
Request returned failure status 403.
403 Forbidden: Forbidden to delete image: 403 Forbidden: Access was denied to this resource. (HTTP 403): Unable to delete image cirros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment