How to get a list of Critical and Major alarms using the Rest API