API Guide
/api/AlertService/Actions/
AlertService.FilterAlertsByPolicy
This URI filters the alerts by using the policy ID.
GET method for AlertService.FilterAlertsByPolicy
This method returns alerts based on the policy ID.
Description Returns alerts based on the policy ID.
Privilege VIEW
HTTP response
codes
200
Example request
body
{
"PolicyId": 14164,
"Top": 2,
"Skip": 1
}
Example response
body
{
"@odata.context": "/api/$metadata#Collection(AlertService.Alert)",
"@odata.count": 1,
"value": [
{
"@odata.type": "#AlertService.Alert",
"@odata.id": "/api/AlertService/Alerts(1)",
"Id": 1,
"SeverityType": 2,
"SeverityName": "Info",
"AlertDeviceId": 0,
"AlertDeviceName": "10.210.137.100",
"AlertDeviceType": 0,
"AlertDeviceIpAddress": "xx.xx.xx.xx",
"AlertDeviceMacAddress": null,
"AlertDeviceIdentifier": null,
"AlertDeviceAssetTag": null,
"DefinitionId": -126170178,
"CatalogName": "OMSA",
"CategoryId": 1000,
"CategoryName": "System Health",
"SubCategoryId": 61,
"SubCategoryName": "Redundancy",
"StatusType": 2000,
"StatusName": "Not-Acknowledged",
"TimeStamp": "2018-09-10 17:45:46.967",
"Message": "Redundancy has returned to normal.; Received from
address: 10.210.137.100",
"EemiMessage": "Instrumentation didn't provide any detailed
description for this event.",
"RecommendedAction": "Instrumentation didn't provide any
recommended action for this event.",
"AlertMessageId": "N/A",
"AlertVarBindDetails": "<?xml version=\"1.0\" encoding=\"utf-8\"?
><trap><agentAddress>10.210.137.100</
agentAddress><enterpriseOID>.1.3.6.1.4.1.674.10892.1</
enterpriseOID><specificTrapId>1304</
specificTrapId><varbinds><varbind><oid>1.3.6.1.4.1.674.10892.1.5000.10.1.0</
oid><datatype>OctetString</datatype><value></value></
varbind><varbind><oid>1.3.6.1.4.1.674.10892.1.5000.10.2.0</
oid><datatype>OID</datatype><value>1.3</value></
varbind><varbind><oid>1.3.6.1.4.1.674.10892.1.5000.10.3.0</
oid><datatype>OctetString</datatype><value></value></
varbind><varbind><oid>1.3.6.1.4.1.674.10892.1.5000.10.4.0</
470
APIs specific to OpenManage Enterprise