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
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • 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)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Curl examples for accessing to the Dataminer Webservices

Solved1.94K views19th July 2023API curl web services WebAPI
0
jordane plumel 2nd December 2020 0 Comments

Hi folks,

As per the subject, I’m looking for some examples of curl script in order to access to the API of Dataminer. I didn’t find them in the documentation.

Thanks in advance.

Jordane

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

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
3
Wim Bruynooghe [SLC] [DevOps Advocate]6.59K Posted 2nd December 2020 0 Comments

Should be possible to call an API method of DataMiner with cURL like this:

curl –header “Content-Type: application/json” \
–request POST \
–data ‘{“host”: “”, “login”: “Username”, “password”: “Password”, “clientAppName”: “myApp”, “clientAppVersion”: “1.0”, “clientComputerName”: “clientTestDevice”}’ \
https://mydma.mycompany.local/API/v1/Json.asmx/ConnectApp

The result will be a JSON string.
On Windows you might have to escape quotes:

curl –header “Content-Type: application/json” \
–request POST \
–data “{\”host\”: \”\”, \”login\”: \”Username\”, \”password\”: \”Password\”, \”clientAppName\”: \”myApp\”, \”clientAppVersion\”: \”1.0\”, \”clientComputerName\”: \”clientTestDevice\”}” \
https://mydma.mycompany.local/API/v1/Json.asmx/ConnectApp

Other web methods can be called in a similar way.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 19th July 2023
2
Wale Oguntoyinbo [SLC] [DevOps Advocate]3.39K Posted 2nd December 2020 1 Comment

An example running in windows PowerShell:

curl.exe –request POST ‘http://localhost/API/v1/soap.asmx’ –header “Content-Type: text/xml;charset=UTF-8” –header “SOAPAction:http://www.skyline.be/api/v1/ConnectApp” –data ‘@new3.xml’

new3.xml is a file with the xml payload as below and response is in xml.

<soap:Envelope xmlns:soap=”http://www.w3.org/2003/05/soap-envelope” xmlns:v1=”http://www.skyline.be/api/v1″><soap:Header/><soap:Body><v1:ConnectApp><v1:host>?</v1:host><v1:login>?</v1:login><v1:password>?</v1:password><v1:clientAppName>?</v1:clientAppName><v1:clientAppVersion>?</v1:clientAppVersion><v1:clientComputerName>?</v1:clientComputerName></v1:ConnectApp></soap:Body></soap:Envelope>

jordane plumel Edited comment 3rd December 2020
jordane plumel commented 3rd December 2020

Thank you both of you for your example. I will test them ASAP.

Jordane

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