Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. HTTP/REST API Setup

HTTP/REST API Setup

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 15.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    C
    Carl Green
    wrote on last edited by
    #1

    Hi

    I have Windows installation of NetXMS v3.6.300 and would like to try REST API but when I run the following example curl command from https://wiki.netxms.org/wiki/Web_service_API it comes back with the following message:

    The normal web interface is working fine.

    Is there a guide on setting up REST API on Windows Version?

    Thanks

    Carl

    1 Reply Last reply
    0
    • P
      P
      pvo
      wrote on last edited by
      #2

      Check this: https://www.netxms.org/forum/general-support/(windows)-web-api-install/

      1 Reply Last reply
      0
      • C
        C
        Carl Green
        wrote on last edited by
        #3

        Thanks that helped, I also upgraded to v3.7.144 at the same time, if I hit following in a web browser:
        http://netxms:8080/webapi/

        I see:
        {"description":"NetXMS web service API version 3.7.130","version":"3.7.130","build":"3.7-130-gc909bacd30"}

        However if I try to use the curl command I got from the netxms page here: https://wiki.netxms.org/wiki/Web_service_API
        nothing is returned.

        curl -X POST --data '{"login":"admin","password":"xxxx"}' "http://netxms:8080/webapi"

        Have you got any examples of correct command?

        I am hoping to run a command that will return devices to get their status, ie: UP or DOWN

        1 Reply Last reply
        0
        • C
          C
          Carl Green
          wrote on last edited by
          #4

          After some trial and error got some json output from this command:

          curl -k -u admin http://netxms:8080/webapi/alarms -X GET -d '{"alarm":"outstanding"}'

          It is returning all alarms regardless of whether they are NORMAL, WARNING, CRITICAL but its a start.

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups