Hi,

I'm making some progress on creating images from instances. So for now
I propose this approach for all drivers:


POST /api/images (with 'instance_id' parameter).

This action will return 405 (Method not Allowed) in case that some
prerequires are missing (sandbox for GoGrid, EBS for Amazon).

This actions should be exposed in instance XML representation like:

<link href="http://localhost:3001/api/images"; method="post" rel="stop" 
id="i-12345"/>

but only in case that every prerequires for different clouds are satisfied.

So my idea is to add new method named '.create_image?' (maybe you will
propose better name ;-) which will indicate possibility of creating image
from instance.
So for example in GoGrid it will check if instance is 'sandbox' and for
'EC2' it will check if it's EBS.

Right now I added support for 'root_device_type' to AWS gem and sandbox
feature for GoGrid.

------------

Another approach, is to add 'create_image' action to instance, with same
checkings, like POST /api/instances/i-12345/create_image

Does it have sense? Any idea, or anything I forgot?

  -- Michal

--
--------------------------------------------------------
Michal Fojtik, [email protected]
Deltacloud API: http://deltacloud.org
--------------------------------------------------------

Reply via email to