pytimber.LoggingDB.get_snapshot_names
- LoggingDB.get_snapshot_names(pattern_or_list: Union[str, Iterable[str]], owner_pattern: str = '%', description_pattern: str = '%') List[str]
Get a list of snapshots names based on a list of strings or a pattern, filtered by owner pattern and description pattern.
Wildcard for the pattern is ‘%’.
- Parameters:
pattern_or_list – pattern for the selection of snapshot names or a list of snapshot names
owner_pattern – pattern for the filtering by owner name
description_pattern – pattern for the filtering by snapshot description
- Returns:
A list of snapshot names