Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Retrieve deleted volumes/instances in horizon

Hi,

I'm almost finished coding a new horizon dashboard and I would like to be able to retrieve the list of deleted volumes and instances within the last 7 days. I have found this method:

cinder/cinder/db/api.py:501

def volume_get_active_by_window(context, begin, end=None, project_id=None)

Which fits perfectly because it uses the 'read_deleted=yes' search option when querying the db, but I'm guessing it is not possible to use it directly in the dashboard code. I would like to avoid querying the db directly...

Has anyone tried this before?

Many thanks, David