Iterate over functions

async AsyncCogniteClient.functions.__call__(
chunk_size: int | None = None,
name: str | None = None,
owner: str | None = None,
file_id: int | None = None,
status: Literal['Queued', 'Deploying', 'Ready', 'Failed'] | None = None,
external_id_prefix: str | None = None,
created_time: dict[Literal['min', 'max'], int] | TimestampRange | None = None,
metadata: dict[str, str] | None = None,
limit: int | None = None,
) AsyncIterator[Function] | AsyncIterator[FunctionList]

Iterate over functions.

Parameters:
  • chunk_size (int | None) – Number of functions to yield per chunk. Defaults to yielding functions one by one.

  • name (str | None) – The name of the function.

  • owner (str | None) – Owner of the function.

  • file_id (int | None) – The file ID of the zip-file used to create the function.

  • status (FunctionStatus | None) – Status of the function. Possible values: [“Queued”, “Deploying”, “Ready”, “Failed”].

  • external_id_prefix (str | None) – External ID prefix to filter on.

  • created_time (dict[Literal['min', 'max'], int] | TimestampRange | None) – Range between two timestamps. Possible keys are min and max, with values given as time stamps in ms.

  • metadata (dict[str, str] | None) – No description.

  • limit (int | None) – Maximum number of functions to return. Defaults to yielding all functions.

Yields:

Function | FunctionList – An iterator over functions.