Retrieve transformation schedules
- async AsyncCogniteClient.transformations.schedules.retrieve(
- id: int | None = None,
- external_id: str | None = None,
Retrieve a single transformation schedule by the id or external id of its transformation.
- Parameters:
id (int | None) – transformation ID
external_id (str | None) – transformation External ID
- Returns:
Requested transformation schedule or None if it does not exist.
- Return type:
TransformationSchedule | None
Examples
Get transformation schedule by transformation id:
>>> from cognite.client import CogniteClient, AsyncCogniteClient >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> res = client.transformations.schedules.retrieve(id=1)
Get transformation schedule by transformation external id:
>>> res = client.transformations.schedules.retrieve(external_id="1")