Hi, glance add is a deprecated command, use glance image-create instead.
When you want to reproduce the API request, you can always use -d arg to enter in debug mode and see the API request translation. For glance, you have something like (this is what I got from the -d option): curl -i -X POST -H 'x-image-meta-container_format: ami' -H 'User-Agent: python-glanceclient' -H 'x-image-meta-size: 1049624576' -H 'x-image-meta-is_public: True' -H 'X-Auth-Token: 80ce0867325f4ad9b1ebe6b17990bf28' -H 'Content-Type: application/octet-stream' -H 'x-image-meta-disk_format: ami' -H 'x-image-meta-name: test' -d '<open file 'your_image_path.img', mode 'r' at 0x2c03930>' http://IP_glance_registry_endpoint:9292/v1/images hope it helps! cheers! On Thu, Oct 18, 2012 at 9:21 AM, Matthieu Simonin <matthieu.simo...@inria.fr> wrote: > Hi, > > The API doc about glance api says that a post request to > "http://glance/v1/images". > How can I perform that ? Especially, I don't understant how i specify the > image I want to upload in the registry in the post request. > > I have no problem using glance client (glance add) but i don't understand > how to perform the same action using curl. > > Bye, > > Matt > > > > > _______________________________________________ > Mailing list: https://launchpad.net/~openstack > Post to : openstack@lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp