Skip to content

Instantly share code, notes, and snippets.

@luozengbin
Created April 21, 2013 14:09
Show Gist options
  • Save luozengbin/5429718 to your computer and use it in GitHub Desktop.
Save luozengbin/5429718 to your computer and use it in GitHub Desktop.
glance --debug --os-username=admin --os-password=secrete --os-tenant-name=demo --os-auth-url=http://127.0.0.1:35357/v2.0 image-list
curl -i -X GET -H 'X-Auth-Token: 677140c248354151a7c8d056fff8b290' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://localhost:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20
HTTP/1.1 401 Unauthorized
date: Sun, 21 Apr 2013 13:40:42 GMT
content-length: 253
content-type: text/plain; charset=UTF-8
401 Unauthorized
This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment