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
    • Kanban workshop
    • 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
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Protocol: GET requests based on previous response?

Solved1.29K views9th May 2022protocol Protocol implementations
4
Robin Becker [DevOps Advocate]1.40K 6th May 2022 0 Comments

Hi,

What’s the best practice of doing follow up requests in a protocol based on a previous response. I’ve looked trough the DataMiner Connector Integration: HTTP Basics course but it barely touched on the subject.

The element is communicating with the devices REST API.

A first request: GET /inputs – retrieves basic info about all input devices, this I use to populate a table.

Then to get more info the API exposes a /input/:id/status endpoint which I want to call for each input.

What’s the recommended way of doing those second requests?

Robin Becker [DevOps Advocate] Selected answer as best 9th May 2022

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
5
Tom Waterbley [SLC] [DevOps Catalyst]8.90K Posted 6th May 2022 0 Comments

Hi Robin, first of all maybe check if there is no option that can be added to the initial GET /inputs to let it also return all details instead of only the basic list. On some APIs that option exists.

If above is not possible you’ll indeed need to send subsequent requests to retrieve the detailed information about each input. One way to do that is as follows:

  1. retrieve the list of all inputs with GET /inputs
  2. parse the response in a QAction and store the ID of all inputs in a queue. This can be a private field in a non-static QAction.
  3. take the first ID in the queue, and set it to a new parameter
  4. the set on a parameter triggers a new HTTP session (trigger > action > group > session)
  5. parse the response of that single input
  6. while there are still items on the queue, repeat steps 3-6
Robin Becker [DevOps Advocate] Selected answer as best 9th May 2022
4
Ive Herreman [SLC] [DevOps Enabler]13.61K Posted 6th May 2022 1 Comment

Hi Robin,

The subject was discussed recently in a webinar.
Can you let us know if this video covers your questions?

Ive Herreman [SLC] [DevOps Enabler] Posted new comment 6th May 2022
Ive Herreman [SLC] [DevOps Enabler] commented 6th May 2022

You can watch the recording by clicking on the event image.

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