Retrieve transformations by id
- async AsyncCogniteClient.transformations.retrieve_multiple(
- ids: Sequence[int] | None = None,
- external_ids: SequenceNotStr[str] | None = None,
- ignore_unknown_ids: bool = False,
Retrieve multiple transformations.
- Parameters:
ids (Sequence[int] | None) – List of ids to retrieve.
external_ids (SequenceNotStr[str] | None) – List of external ids to retrieve.
ignore_unknown_ids (bool) – Ignore IDs and external IDs that are not found rather than throw an exception.
- Returns:
Requested transformation or None if it does not exist.
- Return type:
Examples
Get multiple transformations:
>>> from cognite.client import CogniteClient, AsyncCogniteClient >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> res = client.transformations.retrieve_multiple( ... ids=[1, 2, 3], external_ids=["transform-1", "transform-2"] ... )