White Papers

OpenManage Essentials-Specific Resource Model
38 REST API GuideOpenManage Essentials
The response will be in the following format:
<RESTResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Result>false</Result>
<Messages>
<RESTResponseMessage>
<Id>56465</Id>
<Message>Alert with id 56465 does not exist</Message>
</RESTResponseMessage>
<RESTResponseMessage>
<Id>46541</Id>
<Message>Alert with id 46541 does not exist</Message>
</RESTResponseMessage>
</Messages>
</RESTResponse>
If the requested action for all of the alerts in the list are successful, the return value will be true. No other
information will be in the response.
If the requested action for any of the alerts in the list fails, the return value will be false. Messages for only
actions that failed will be in the response. The ID of the alert and the error message will be reported.
Any alerts in the list for the requested action that are not in the response are successful.
2.8.3 Last alert IDs
<BASE_URI>/Alerts/LastAlertId
This API returns the ID of the last alert inserted in the OpenManage Essentials database.
2.8.4 Alerts since
<BASE_URI>/AlertsSince/{id}
This API returns the alerts since the identifier provided ({id}). This identifier will typically be obtained by a call to
<BASE_URI>/Alerts/LastAlertId at some time in the past.
2.9 Alert subscriptions
Alert subscriptions provide an option to register or subscribe for alerts that match a filter. The subscription
mechanism will allow notifications of alerts to external subscribers.
The following URI can be used to perform alert subscription operations:
Alert subscriptions: <BASE_URI>/AlertSubscriptions
Operations supported: GET, POST, PUT, and DELETE
Attributes (filtering): Id