Splunk Dev

Can I access datamodel endpoints using python SDK

luhadia_aditya
Path Finder

Can I access datamodel objects using python SDK ?
I am aware that I can access them via Java and Javascript SDK.

Another question is, can I access the aggregated data sets generated out of accelerated data models or reports using python SDK and feed those data sets to the integerating components ?
Its like, making available that aggregated data to the analytics platform via python SDK.

Please advise and thanks in advance!

0 Karma

jlin
Splunk Employee
Splunk Employee

I am also looking for a way to do this.

Depends on what you need and what you want to do, but a way to access them would be using Entity and Collections classes.

DATAMODEL_ENDPOINT = 'datamodel/model'
datamodels = Collection(self.service_wrapper.service, DATAMODEL_ENDPOINT)
for datamodel in datamodels:
  // do stuff


Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...