uploading images to glance using curl

Asked by Diego Lalo on 2011-06-23

         Hi everyone, I'm writing this message because I want to use glance REST API to upload images and I would like to use curl to do the job, can anyone send me an example of how to build a POST request to upload images to a glance server with all the metadata?

Thanks in advance
Diego

Question information

Language:
English Edit question
Status:
Answered
For:
Glance Edit question
Assignee:
No assignee Edit question
Last query:
2011-06-23
Last reply:
2011-06-26
Jay Pipes (jaypipes) said : #1

Hi Diego,

Check out the examples in /test/functional/test_curl_api.py for lots of examples of all the REST API commands over cURL.

Cheers!
jay

Diego Lalo (diego-lalo) said : #2

Ty very very much Jay :) :) :) I'm having a look at the tests, it's just what I need, I will launch glance-api in debug mode and I will check if something is wrong with the middleware.

Cheers
Diego

Sajith Kariyawasam (sajhak) said : #3

Hi Diego,

Were you able to get this done successfully? I'm also looking for a way to upload an image to Glance server. Could you please help me on this? Im using Openstack "Essex" version.. and i couldnt find /test/functional/test_curl_api.py mentioned above.

A web site link will be very helpful

Thanks
Sajith

Can you help with this problem?

Provide an answer of your own, or ask Diego Lalo for more information if necessary.

To post a message you must log in.