Retrieve feature types

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

Retrieve feature types.

Deprecated since version 8.23.0: The Geospatial API is deprecated and is scheduled for removal on 2027-12-31. There is no replacement in the data modeling service; plan to stop using it. See https://docs.cognite.com/cdf/deprecated for details and migration guidance.

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")