Get the latest or a specific config revision

async AsyncCogniteClient.extraction_pipelines.config.retrieve(
external_id: str,
revision: int | None = None,
active_at_time: int | None = None,
) ExtractionPipelineConfig

Retrieve a specific configuration revision, or the latest by default.

By default the latest configuration revision is retrieved, or you can specify a timestamp or a revision number.

Parameters:
  • external_id (str) – External id of the extraction pipeline to retrieve config from.

  • revision (int | None) – Optionally specify a revision number to retrieve.

  • active_at_time (int | None) – Optionally specify a timestamp the configuration revision should be active.

Returns:

Retrieved extraction pipeline configuration revision

Return type:

ExtractionPipelineConfig

Examples

Retrieve latest config revision:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> res = client.extraction_pipelines.config.retrieve("extId")