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

Api deployments parameters

Solved1.15K views10th November 2022API deployment automation scripts Parameters
3
Gerwin van der Kamp [DevOps Enabler]2.91K 9th November 2022 0 Comments

Hi,

I'm playing around with deployment of automation scripts and i ran into some weird behaviour when using parameters. See script below:

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Skyline.DataMiner.Automation;

/// <summary>
/// DataMiner Script Class.
/// </summary>
class Script
{
/// <summary>
/// The Script entry point.
/// </summary>
/// <param name="engine">Link with SLScripting process.</param>
public void Run(Engine engine)
{
engine.GenerateInformation(engine.GetScriptParam("feed").Value);

engine.GenerateInformation(engine.GetScriptParam("feed2").Value);
}
}

When i start it by hand i can enter a value and in the information event i get the direct value i entered.

However when i deploy this script and i test this from the build in tester i get the following information:

POST /api/deploy/scripts/_logtoinformation HTTP/1.1
Host: <dmatestip>:5000
Token:
Content-Type: application/json; charset=utf-8
Content-Length: 59

{
"PARAMETER:1": "value1",
"PARAMETER:2": "value2"
}

and as result:

[
"-2147220815",
"Could not start script: there's no script parameter value provided for id 2"
]

if i remove feed2 as parameter so only feed will log:

i get as result: {} (as expected since i dont output any information)

and in the information events i find:

{
"PARAMETER:1": "value1"
} (Script 'logtoinformation')

What is the recomended aproach (since i want to send an Json string and parse that, i've got it working when i remove just the Json string but i'm uncertain if that is the general aproach)

Thomas Ghysbrecht [SLC] [DevOps Enabler] Answered question 9th November 2022

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Thomas Ghysbrecht [SLC] [DevOps Enabler]4.84K Posted 9th November 2022 1 Comment

Hi Gerwin,

I believe that deployments are by default of type 'JSON' right now. That means only one script parameter can be present and that the full HTTP body of the trigger request will be contained in that parameter. Cube does not detect this correctly in the tester right now.

Thomas Ghysbrecht [SLC] [DevOps Enabler] Answered question 9th November 2022
Gerwin van der Kamp commented 10th November 2022

That’s indeed what my testing showed. Just wanted to make sure that this indeed was the case.

You are viewing 1 out of 1 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