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
  • Swag Shop
  • Downloads
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Login using HTTP on Protocol

Solved119 views11 hours ago
3
Jose Araujo [DevOps Advocate]845 4th June 2025 0 Comments

Hi

I have issues when run this session:

<Sessionid="2"name="API Login">

<Connectionid="1"name="Credentials">

<Requestverb="POST"url="/api/v1/system/configuration/login">

<!--<Parameters>

<Parameter key="user" pid="135"></Parameter>

<Parameter key="password" pid="136"></Parameter>

</Parameters>-->

<Headers>

  <Header key="Content-Type">application/json</Header>

</Headers>

</Request>

<ResponsestatusCode="4">

<Contentpid="5"></Content>

</Response>

</Connection>

</Session>

in wireshark appear this session send post with this body "{"

for login need send this format in POST to endpoint

{
"user":"xxxxxx",
"password":"xxxxxxx"
}

Jose Araujo [DevOps Advocate] Selected answer as best 11 hours ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Jose Araujo [DevOps Advocate]845 Posted 7th June 2025 0 Comments

Hi Bram,

I use this QAction and work:

using System;
using System.Text;
using Skyline.DataMiner.Scripting;

public static class QAction
{
public static void Run(SLProtocol protocol)
{
try
{
string username = Convert.ToString(protocol.GetParameter(10));
string password = Convert.ToString(protocol.GetParameter(11));

string json = $"{{\"user\":\"{username}\",\"password\":\"{password}\"}}";protocol.SetParameter(12, json);
}
catch (Exception ex)
{
protocol.Log($"QAction Error: {ex.Message}");
}
}
}

Jose Araujo [DevOps Advocate] Selected answer as best 11 hours ago
1
Bram Devlaminck [SLC] [DevOps Advocate]390 Posted 5th June 2025 0 Comments

Hi Jose,

On this documentation page you can find an example of how DataMiner encodes the data from the "Parameter" tags when sending a POST (the example right above the "Response" section).
As you have noticed yourself, this is not in the format that you need.

Alternatively you can use the "data" tag, as shown here (the first example).
When using a POST the contents of the data tag is sent as the body, so in your case the contents of that data tag (set with pid='<parameterid>') will need to be the JSON data that you want to send.
The easiest way to put the data in that parameter in the right format will be with a QAction.

Hope this helps.

Kind regards,

Jose Araujo [DevOps Advocate] Unselected an answer 11 hours ago
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