List destinations

async AsyncCogniteClient.hosted_extractors.destinations.list(
limit: int | None = 25,
) DestinationList

List destinations.

Parameters:

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

Returns:

List of requested destinations

Return type:

DestinationList

Examples

List destinations:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> destination_list = client.hosted_extractors.destinations.list(limit=5)

Iterate over destinations, one-by-one:

>>> for destination in client.hosted_extractors.destinations():
...     destination  # do something with the destination

Iterate over chunks of destinations to reduce memory load:

>>> for destination_list in client.hosted_extractors.destinations(chunk_size=25):
...     destination_list  # do something with the destinationss