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
    • 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
      • 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)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

creating service with core Automation

Solved73 views2 hours ago
4
Juan Falcon220 1 day ago 0 Comments

Hello

im using this code to create a service, works well but i can,t add the protocol and version of the protocol, how can i defined?

in aditional its posible update and existing service this core library?

Thanks

IDms dms = engine.GetDms();
int dmaId = 11111;
var agent = dms.GetAgents().First(a => a.Id == dmaId);

// Obtener elementos

var filters = new List<ElementParamFilterConfiguration>
{
new ElementParamFilterConfiguration(101,"", true),
new ElementParamFilterConfiguration(102,"filter", true),
};
// Crear servicio
ServiceConfiguration serviceConfig = new ServiceConfiguration(dms, "ServiceAutomate");
serviceConfig.Views.Add(dms.GetView(50));
serviceConfig.AddElement(new DmsElementId(11111, 446), filters);
//serviceConfig.AdvancedSettings.Protocol.Name("NombreDelProtocolo");
//serviceConfig.AdvancedSettings.Protocol.Version("1.0.0");
agent.CreateService(serviceConfig);

Juan Falcon Selected answer as best 2 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Miguel Obregon [SLC] [DevOps Catalyst]22.76K Posted 15 hours ago 1 Comment

Hi Juan,

You will need to instantiate a IDmsProtcol object to assign a service protocol to your service. See below example:

IDms dms = engine.GetDms();
IDma dma = dms.GetAgent(123);
IDmsProtocol dmsProtocol = dms.GetProtocol("MyServiceProtocol", "Production");

ServiceConfiguration serviceConfiguration = new ServiceConfiguration(dms, "MyNewService");
serviceConfiguration.AdvancedSettings.Protocol = dmsProtocol;

dma.CreateService(serviceConfiguration);

Hope it helps.

Juan Falcon Selected answer as best 2 hours ago
Juan Falcon commented 2 hours ago

Thanks Miguel, Works well.

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

© 2026 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