Skip to main content
Answer

Python SDK - List, Search, Query Instance from FDM

  • November 17, 2023
  • 3 replies
  • 170 views

Forum|alt.badge.img+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

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

Forum|alt.badge.img

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
Seasoned Practitioner
Forum|alt.badge.img+2
  • Seasoned Practitioner
  • November 30, 2023

Hi @Karguvel kalisekar,

Did the above help you? 

Br,

Dilini 


Forum|alt.badge.img+2

Hi,

Yes, the information above was helpful.

Thank you.