- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Can't Retrieve alarms
Hello,
since Alarms bulk retrieve is not working, i retrieve AlarmEvents and use AlarmEvent.AlarmId to do a RetrieveByIdAsync for each Alarm.
I just get 404 Not found, I made sure that the AlarmId is double UrlEncoded but still same problem.
C# .Net
#Restful Ews Gateway
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Don't confuse get alarm and get an alarm event. They are two different things. Get alarm gets the information about the alarm object and to retrieve that, you need the id of the alarm object, not the id of the alarm event that is created when the alarm object goes into alarm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Hello Steve,
Thanks for your reply and hints 🙂
the Alarm object id which i have to use to retrieve infos about the alarm isn't the AlarmId atribute of the alarmevent object ?
{
"AlarmId": "02/Server/xyz/133rtgf4181",
"Acknowledgeable": 1,
"OccurredOn": "2024-05-02T10:38:16Z",
"LastTransitionedOn": "2024-05-02T10:38:16Z",
"Message": " ",
"Priority": 80,
"State": 1,
"Type": "",
"AlarmSourceName": "",
"Id": "02/server/xyz/15568d4f1"
},
because this is what i'm using in the Get Alarms/{id} endpoint to get the Alarm object but i still get 404 not found.
the curl looks like :
curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer ******' 'http://localhost:8083/Alarms/02%2FServer%2Fxyz%2F133rtgf4181
response : "Message": "Alarm Id 02/Server/xyz/133rtgf4181 not found"
Thanks in advance 🙂
kindly