[Engine-devel] restapi - removing template from a specified storage-domain

Omer Frenkel ofrenkel at redhat.com
Sun Jan 1 15:59:59 UTC 2012



----- Original Message -----
> From: "Ori Liel" <oliel at redhat.com>
> To: engine-devel at ovirt.org
> Sent: Sunday, January 1, 2012 3:15:18 PM
> Subject: [Engine-devel] restapi - removing template from a specified	storage-domain
> 
> I'm about to implement removing template from a specified
> storage-domain.
> 
> A template is meta-data + disks. The meta-data is in the ovirt-engine
> database, the disks are (potentially) scattered across several
> storage-domains. Removing a template from a specified storage domain
> means removing that template's disks from that storage-domain.
> API-wise, it's better to enable the deletion at the single-disk
> level, otherwise rollback and all sorts of unnecessary complexities
> enter the picture. So what I would like to go forward with is the
> following API:
> 
> DELETE /api/templates/{template_xxx}/disks/{disk_yyy}
> 
>    <storage_domain id="domain_zzz"/>
> 
> This means: "delete the disk 'disk_yyy' (which belongs to template
> 'template_xxx' from the storage-domain 'domain_zzz'.
> 
> Any comments?

just that CURRENT backend only allows removing per storage domain(s),
this functionallity is in plan, though (if that was what you meant..)

> 
> Thanks,
> 
> Ori.
> _______________________________________________
> Engine-devel mailing list
> Engine-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
> 



More information about the Devel mailing list