Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
  • Downloads
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

API Calls to Dataminer

Solved1.57K views18th July 2023
1
Daniel Ragol-Levy [DevOps Member] 21st June 2021 0 Comments

Hi Team,

https://help.dataminer.services/WebServices/#t=SLC_UM_DataMinerWebServices%2FWS_Methods_v0%2FConnect.htm

Can anyone please help me to understand why the following python code to make an API call to dataminer does not work

import requests

headers1 = {
"host": "localhost",
"Content-Type": "application/x-www-form-urlencoded"
}

data1 = {
"Login": "XXX",
"Password": "XXX",
"connection" : "10df979a-6bbd-412b-9182-66a38f0ec4eb",
"dmaID":"41303",
}

r = requests.post("http://10.207.7.224/api/v0/Connection", headers = headers1, data=data1)

print(r.text)

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 18th July 2023

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Miguel Obregon [SLC] [DevOps Catalyst]19.60K Posted 21st June 2021 0 Comments

Hi Daniel,

Checking the payload ('data1') in your question, it seems that it is not correct. According to DataMiner Help (DataMiner WebService: Connect), the following entries are required:

  • Connection: The IP address or the host name where the DMA is running
  • Login: User name
  • Password: The password

Based on this, the payload 'data1' should be defined as follows:

data1 = {

"Connection" : "10.1.2.3",

"Login": "myUser",

"Password": "myPassword"

}

The result of this query will be the connection ID (in your case, this is stored in the variable 'r'). With the connection ID, you can start querying data from the DMA.

Miguel Obregon [SLC] [DevOps Catalyst] Answered question 21st June 2021
You are viewing 1 out of 2 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin