Solved

Python SDK - List, Search, Query Instance from FDM

  • 17 November 2023
  • 3 replies
  • 130 views

Badge +2

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

icon

Best answer by Håkon V. Treider 17 November 2023, 17:18

View original

3 replies

Userlevel 4
Badge

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. 

Userlevel 4
Badge +2

Hi @Karguvel kalisekar,

Did the above help you? 

Br,

Dilini 

Badge +2

Hi,

Yes, the information above was helpful.

Thank you.

Reply