Thanks Wei. But is there actually a way to disable/enable disk offerings?
There seems to be nothing via the API.

If there isn't, I will create an issue and work on it.

Cheers,

Patrick

On Thu, Oct 15, 2015 at 2:40 AM Wei ZHOU <ustcweiz...@gmail.com> wrote:

> Hi Patrick,
>
> If you remove/expunge a resource (instance,volume,offering, tempalte, etc),
> it means the resource will not be used any more.
> Hence, cloudstack will not list this kind of resources in the API response.
>
> If you want to disable offering temporarily, you can disable/enable it. If
> the offerings is removed by mistake, you need to modify the database
> manually: Update disk_offering set removed=NULL where id=XXX
> for vms, you can destroy/recover them.
>
> -Wei
>
> 2015-10-14 23:05 GMT+02:00 Patrick Dube <patrickdub...@gmail.com>:
>
> > Thanks ilya. Yeah, I can still see them in the db, but I was wondering if
> > they weren't exposed for a specific reason. I think it would be useful to
> > either be able to see deleted disk/service offerings or to be able to
> > disable them, like with network offerings, and filter them that way.
> > Opinions?
> >
> > Cheers,
> >
> > Patrick
> >
> >
> > On Wed, Oct 14, 2015 at 4:50 PM ilya <ilya.mailing.li...@gmail.com>
> wrote:
> >
> > > Patrick
> > >
> > > As you may know, nothing is deleted in cloudstack db (for the most
> > > part), hence records are still accessible via direct db query.
> > >
> > > I'm not aware of any API call that would show Deleted disk offerings,
> > > though, but should not be too hard to implement..
> > >
> > > Regards
> > > ilya
> > >
> > > On 10/14/15 10:41 AM, Patrick Dube wrote:
> > > > Is there any way to list all disk offerings (via the API), even those
> > > that
> > > > were deleted?
> > > > If not, is there any particular reason why?
> > > >
> > > > Thanks,
> > > >
> > > > Patrick
> > > >
> > >
> >
>

Reply via email to