Reference Guide

2.9.2 AlertSubscription DELETE command
Deletion of the subscription (or unsubscribe) is accomplished using the standard HTTP DELETE operation.
Note: For the DELETE operation, you have to provide the DeviceId value to the alert subscription that
you want to delete.
2.9.3 AlertSubscription POST example Data
The payload for the POST command is an XML structure that defines the various fields that are needed to
create an Alert Subscription.
Note: All the values in the payload are case sensitive.
Of particular importance are Boolean values such as the <IsEnabled> included in the following example.
This type of attribute takes the values of ‘true’ or ‘false’ in lower case. Any other value, including ‘True’ and
‘False’ will create an invalid data error when posting.
<RESTSubscription >
<IdDevice>sshiphone4</IdDevice>
<IdSubscriberService>1</IdSubscriberService>
<UserName>SteveHeracleous</UserName>
<IsEnabled>true</IsEnabled>
<AlertFilterId>1006921498</AlertFilterId>
<Token>Token16</Token>
<Description>REST POST subscription creation</Description>
</RESTSubscription>
Note: The field for Id is read-only and its value is only applicable on a GET operation. For the POST
operation, this field is ignored; the recommendation is to set it to 0.
The following screenshot shows the result of executing an AlertSubscription POST command using
SoapUI 4.5.0.
42 REST API Guide OpenManage Essentials | Revision A02