@require_admin_context
def snapshot_get_all(context, filters=None, marker=None, limit=None, sort_keys=None, sort_dirs=None, offset=None):
 if (filters and (not is_valid_model_filters(models.Snapshot, filters, exclude_list=('host', 'cluster_name')))):
  return []
 session = get_session()
 with session.begin():
  query = _generate_paginate_query(context, session, marker, limit, sort_keys, sort_dirs, filters, offset, models.Snapshot)
 if (not query):
  return []
 return query.all()

@ require_admin_context def snapshot_get_all ( context , filters = None , marker = None , limit = None , sort_keys = None , sort_dirs = None , offset = None ) : if ( filters and ( not is_valid_model_filters ( models . Snapshot , filters , exclude_list = ( 'host' , 'cluster_name' ) ) ) ) : return [ ] session = get_session ( ) with session . begin ( ) : query = _generate_paginate_query ( context , session , marker , limit , sort_keys , sort_dirs , filters , offset , models . Snapshot ) if ( not query ) : return [ ] return query . all ( )
get all snapshots .