Skip to main content
Committed ⭐️⭐️
Nov 17, 2023 3:26 PM UTC
Solved

Python SDK - List, Search, Query Instance from FDM

Hi Team,

Is there any sample code available for retrieving a list of instance objects from FDM? I've reviewed the documentation's sample code, but I need additional clarification on where to provide Space, Object Type, Version, and Data Model.
 
 Sample code available for Instance List.

 instance_list = c.data_modeling.instances.list(limit=5)


 I have also followed the steps outlined in the document URL below..
 advancedListInstance
 queryContent
 searchInstances
 
Thanks,

Karguvel K

Practitioner ⭐️⭐️⭐️
Nov 17, 2023 4:18 PM UTC

You mention the Python SDK in the title, but link to the official API documentation. Have you checked out the specific SDK documentation?

https://cognite-sdk-python.readthedocs-hosted.com/en/latest/data_modeling.html#instances

We’d love your feedback regarding which examples are unclear or which use cases are missing. 

3 replies

Practitioner ⭐️⭐️⭐️
Nov 17, 2023 4:18 PM UTC

You mention the Python SDK in the title, but link to the official API documentation. Have you checked out the specific SDK documentation?

https://cognite-sdk-python.readthedocs-hosted.com/en/latest/data_modeling.html#instances

We’d love your feedback regarding which examples are unclear or which use cases are missing. 

Dilini Fernando
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Nov 30, 2023 8:58 AM UTC

Hi @Karguvel kalisekar,

Did the above help you? 

Br,

Dilini 

Committed ⭐️⭐️
Nov 30, 2023 9:25 AM UTC

Hi,

Yes, the information above was helpful.

Thank you.