RESTFUL API + item state

RESTFUL API + item state

Hi,

lately I was playing with RESTFUL API which I find very useful for batch tasks, but I came across situation I cannot overcome.

Is there a way to check e.g. if there is already alarm enabled for a certain group of monitors?

Let me give you an example

this should enable alarms for the group:
  1. http://127.0.0.1/AppManager/json/EnableDisableAlarmsAction?apikey=xxxxxxxxxxxxxxxxxxxx&haid=10000137&alteraction=enable

this should disable them
  1. http://127.0.0.1/AppManager/json/EnableDisableAlarmsAction?apikey=xxxxxxxxxxxxxxxxxxxx&haid=10000137&alteraction=disable

but how to check the state? How to check if it's enabled/ disabled?

Thanks