Skip to main content
Committed ⭐️⭐️
November 17, 2023
Solved

Python SDK - List, Search, Query Instance from FDM

  • November 17, 2023
  • 3 replies
  • 209 views

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

Best answer by Håkon V. Treider

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 ⭐️⭐️⭐️
November 17, 2023

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 ⭐️⭐️⭐️⭐️
November 30, 2023

Hi @Karguvel kalisekar,

Did the above help you? 

Br,

Dilini 

Committed ⭐️⭐️
November 30, 2023

Hi,

Yes, the information above was helpful.

Thank you.