List

async AsyncCogniteClient.transformations.external_data_sources.list(
limit: int | None = 25,
) ExternalDataSourceList

List external data sources.

Parameters:

limit (int | None) – Maximum number of data sources to return. Defaults to 25. Set to -1, float(“inf”) or None to return all items.

Returns:

List of external data sources.

Return type:

ExternalDataSourceList

Examples

List data sources:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> data_sources = client.transformations.external_data_sources.list(limit=5)

Iterate over data sources, one-by-one:

>>> for data_source in client.transformations.external_data_sources():
...     data_source  # do something with the data source

Iterate over chunks of data sources to reduce memory load:

>>> for data_source_list in client.transformations.external_data_sources(chunk_size=25):
...     data_source_list  # do something with the data sources