Retrieve Download Urls

async AsyncCogniteClient.files.retrieve_download_urls(
id: int | Sequence[int] | None = None,
external_id: str | SequenceNotStr[str] | None = None,
instance_id: NodeId | Sequence[NodeId] | None = None,
extended_expiration: bool = False,
) dict[int | str | NodeId, str]

Get download links by id or external id.

Parameters:
  • id (int | Sequence[int] | None) – Id or list of ids.

  • external_id (str | SequenceNotStr[str] | None) – External id or list of external ids.

  • instance_id (NodeId | Sequence[NodeId] | None) – Instance id or list of instance ids.

  • extended_expiration (bool) – Extend expiration time of download url to 1 hour. Defaults to false.

Returns:

Dictionary containing download urls.

Return type:

dict[int | str | NodeId, str]