List transformations

async AsyncCogniteClient.transformations.list(
include_public: bool = True,
name_regex: str | None = None,
query_regex: str | None = None,
destination_type: str | None = None,
conflict_mode: Literal['abort', 'delete', 'update', 'upsert'] | None = None,
cdf_project_name: str | None = None,
has_blocked_error: bool | None = None,
created_time: dict[str, Any] | TimestampRange | None = None,
last_updated_time: dict[str, Any] | TimestampRange | None = None,
data_set_ids: int | list[int] | None = None,
data_set_external_ids: str | list[str] | None = None,
tags: TagsFilter | None = None,
limit: int | None = 25,
) TransformationList

List all transformations.

Parameters:
  • include_public (bool) – Whether public transformations should be included in the results. (default true).

  • name_regex (str | None) – Regex expression to match the transformation name

  • query_regex (str | None) – Regex expression to match the transformation query

  • destination_type (str | None) – Transformation destination resource name to filter by.

  • conflict_mode (Literal['abort', 'delete', 'update', 'upsert'] | None) – Filters by a selected transformation action type: abort/create, upsert, update, delete

  • cdf_project_name (str | None) – Project name to filter by configured source and destination project

  • has_blocked_error (bool | None) – Whether only the blocked transformations should be included in the results.

  • created_time (dict[str, Any] | TimestampRange | None) – Range between two timestamps

  • last_updated_time (dict[str, Any] | TimestampRange | None) – Range between two timestamps

  • data_set_ids (int | list[int] | None) – Return only transformations in the specified data sets with these id(s).

  • data_set_external_ids (str | list[str] | None) – Return only transformations in the specified data sets with these external id(s).

  • tags (TagsFilter | None) – Return only the resource matching the specified tags constraints. It only supports ContainsAny as of now.

  • limit (int | None) – Limits the number of results to be returned. To retrieve all results use limit=-1, default limit is 25.

Returns:

List of transformations

Return type:

TransformationList

Example

List transformations:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> transformations_list = client.transformations.list()