Retrieve feature types

async AsyncCogniteClient.geospatial.retrieve_feature_types(
external_id: str | list[str],
) FeatureType | FeatureTypeList

Retrieve feature types.

Parameters:

external_id (str | list[str]) – External ID

Returns:

Requested Type or None if it does not exist.

Return type:

FeatureType | FeatureTypeList

Examples

Get Type by external id:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> res = client.geospatial.retrieve_feature_types(external_id="1")