get_tokens#
- geodesic.account.tokens.get_tokens(project=None, servicer_name=None, dataset_name=None, dataset_hash=None, domain=None, category=None, type=None, limit=None)[source]#
Returns all active tokens created by a user.
- Parameters:
project (Project | str | None) – the project name - returns only tokens for this project
servicer_name (str | None) – the servicer of the dataset (optional). If None, returns for all servicers
dataset_name (str | None) – the name of the dataset to find tokens for
dataset_hash (str | None) – the hash of the dataset to find tokens for
domain (str | None) – the domain of the dataset to find tokens for
category (str | None) – the category of the dataset to find tokens for
type (str | None) – the type of the dataset to find tokens for
limit (int | None) – the maximum number of tokens to return (default is None, which returns all tokens)
- Raises:
requests.HTTPErrror for fault –