API Guide

Alert policies
/api/AlertService/AlertPolicies
This URI represents the policies that are created.
Table 62. Filters
Filter name Description
Top Top records to return. Default value is 100.
Skip Maximum records to skip. Default value is 0.
Id Filter by policy IDs.
State Filter by state—True or False.
Visible Filter by visible state—True or False.
GET method for AlertPolicies
This method returns the policies that are created.
Description Returns all the policies.
Privilege VIEW
HTTP response
codes
200
Example response
body
{
"@odata.context": "$metadata#Collection(AlertService.AlertPolicy)",
"@odata.count": 1,
"value": [
{
"@odata.id": "/api/AlertService/AlertPolicies(314)",
"Id": 314,
"Name": "Default OnDemand Health Policy",
"Description": "This policy is applicable to all devices. A health
task will be triggered if category is for system health.",
"Enabled": true,
"DefaultPolicy": true,
"PolicyData": {
"Catalogs": [
{
"CatalogName": "iDRAC",
"Categories": [
3300
],
"SubCategories": [
0
]
}
],
"Severities": [
1,
2,
4,
8,
16
],
"Devices": [],
"DeviceTypes": [],
"Groups": [
4
],
"Schedule": {
96
Alerts