Web API alarm list for single node
-
Hi all!
I tried out the web API interface (3.4.313 server and 3.4.318 web API version). Getting the full alarm list worked fine, but when I want to query a single node, the request is returned with status code 405 (method not allowed) and with body:
{ "description": "Internal error", "error": 46 }The path used is <ip>/netxms-websvc/alarms/<nodeid>
Am I using the wrong path?
Regards
-
Hi!
The way you tried is not yet implemented. What works is this way:
/alarms?objectId=123
/alarms?objectGuid=XXX
If you need to see alarms for all nodes under a container:
/alarms?objectId=123&includeChildObjects=true -
-
Yes, you can use createdBefore, createdAfter, updatedBefore, updatedAfter. Unix timestamp should be provided to these filters.
Also, you can filter by alarm state, e.g.
alarm=outstanding
or
alarm=outstanding,acknowledgedAnd there's a good thing resolveReferences=true, in this case you'll have names of all related objects in the json output.
There are also filters by user name, you can check in sources for these: src/client/nxapisrv/java/src/main/java/org/netxms/websvc/handlers/Alarms.java
-
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