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 Method “CreateElement” supports JSON or not

Solved1.31K views18th July 2023
4
Tomoya Horiguchi(3365) 堀口 朋也 13th May 2021 0 Comments

I have tried sending "CreateElement" by Json but the response is 500 Internal Error.

Does DataMiner support Json format of this method?

The response is as belows.

{
"Message": "型 'System.String' のオブジェクトを型 'System.Int32[]' のオブジェクトに変換できません",
"StackTrace": " 場所 System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)\r\n 場所 System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)\r\n 場所 System.Web.Script.Services.WebServiceMethodData.StrongTypeParameters(IDictionary`2 rawParams)\r\n 場所 System.Web.Script.Services.WebServiceMethodData.CallMethodFromRawParams(Object target, IDictionary`2 parameters)\r\n 場所 System.Web.Script.Services.RestHandler.InvokeMethod(HttpContext context, WebServiceMethodData methodData, IDictionary`2 rawParams)\r\n 場所 System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)",
"ExceptionType": "System.InvalidOperationException"
}

The following is the request I send to DataMiner.

{
"connection":"10df979a-6bbd-412b-9182-66a38f0ec4eb",
"dmaID":"24202",
"viewIDs":"154",
"configuration":{
"Name":"APItest",
"Description":"",
"ProtocolName":"Microsoft Platform",
"protocolVersion":"5.0.0.2",
"Type":"Information Platform",
"AlarmTemplate":"",
"TrendTemplate":"",
"ForceAgent":"",
"IPAddress":"192.168.0.1",
"IPAddressMask":"255.255.255.0",
"CreateDVEs":"",
"EnableSnmpAgent":"",
"EnableTelnet":"",
"IsHidden":"",
"IsReadOnly":"",
"IsReplication":"",
"KeepOnline":"",
"SnmpReadCommunityString":"",
"SnmpWriteCommunityString":"",
"TimeoutTime":"1500",
"SlowPoll":"",
"State":"Stopped",
"Ports": {
"DMAElementBasePortInfo":{
"ElementTimeoutTime":"",
"TimeoutTime":"",
"Retries":""
}
}
}
}

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

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
6
Pedro Almeida [SLC]296 Posted 13th May 2021 1 Comment

Hello Tomoya,

Please, also consider using the IDP solution to help you to create/manage elements on your system.

Tomoya Horiguchi(3365) 堀口 朋也 Posted new comment 13th May 2021
Tomoya Horiguchi(3365) 堀口 朋也 commented 13th May 2021

Thank you. I understand that.

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