← Back to team overview

openstack team mailing list archive

Re: Image API v2 Draft 4

 

I'll let Waldon answer this, but I know that it is marked as "to be determined" currently in his notes on the API...

On 04/10/2012 09:21 AM, Eoghan Glynn wrote:
APPENDIX B: Outstanding issues
...
2) How do we fit the existing 'copy_from' functionality in?


Is the v2 API retaining some equivalent of the existing
x-image-meta-location header, to allow an externally-stored
image be registered with glance?

e.g. via an image field specified on create or update:

   POST /images HTTP/1.1
   {"external-location": "s3://access:secret@xxxxxxxxxxxxxxx/image", ...}

or:

   PUT /images/<IMAGE_ID>  HTTP/1.1
   {"external-location": "s3://access:secret@xxxxxxxxxxxxxxx/image", ...}

If so, the most straight-forward approach for copy-from would be to
follow a similar pattern with an image field such as:

   POST /images HTTP/1.1
   {"copy-from": "s3://access:secret@xxxxxxxxxxxxxxx/image", ...}

... etc.

Cheers,
Eoghan


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


References