def list_objects(self, datastore_name=None):
        qual_ds_name = self._get_datastore_name(datastore_name)
        if self.profile == DataStore.DS_PROFILE.RESOURCES:
            all_docs = self._find_all_docs("_all_docs", id_only=True, filter={})
            return [doc_id for doc_id, _, _ in all_docs]
        else:
            with self.pool.cursor(**self.cursor_args) as cur:
                cur.execute("SELECT id FROM "+qual_ds_name)
                id_list = cur.fetchall()
                id_list = [e[0] for e in id_list]

            return id_list
List all object types existing in the datastore instance.
dataset/ETHPy150Open ooici/pyon/pyon/datastore/postgresql/base_store.py/PostgresDataStore.list_objects