ibridges.search.search_data

ibridges.search.search_data(session, path=None, checksum=None, key_vals=None)

Retrieve all collections and data objects.

(the absolute collection path, data object or collection name) to the given user-defined and system metadata. By Default all accessible collections and data objects will be returned. Wildcard: %

Parameters:
  • session (Session) – Session to search with.

  • path (str) – (Partial) path or IrodsPath

  • checksum (str) – (Partial) checksum

  • key_vals (dict) – Attribute name mapping to values.

Raises:

ValueError: – If no search criterium is supplied.

Returns:

list – List of dictionaries with keys: COLL_NAME (absolute path of the collection), DATA_NAME (name of the data object), D_DATA_CHECKSUM (checksum of the data object) The latter two keys are only present of the found item is a data object.

Return type:

[dict]