API Guide

Table 63. Attributes (continued)
Attribute name Description
Id ID of action.
Name Name associated with the action.
ParameterDetails Extra parameters that can be used for the action.
TemplateId ID of the template associated with the action.
PolicyActions Link to the list of actions that can be triggered for the policy.
PolicyCriteria Link to the criteria for the evaluation of the alert contents
with the policy contents. This evaluation determines if the
policy is valid and if any actions are triggered.
POST method for AlertPolicies
This method creates a policy.
Description Creates a policy.
Privilege MONITORING_SETUP
HTTP response
codes
201
Example request
body
{
"Id": 0,
"Name": "Policy",
"Description": "Policy",
"Enabled": true,
"DefaultPolicy": false,
"PolicyData": {
"Catalogs": [
{
"CatalogName": "iDRAC",
"Categories": [0],
"SubCategories": [0]
},
{
"CatalogName": "Application",
"Categories": [0],
"SubCategories": [0]
}
],
"Severities": [16, 1, 2, 4, 8],
"Devices": [1714],
"Groups": [],
"DeviceTypes": [1000],
"Schedule": {
"StartTime": "2016-06-06 15:02:46.000",
"EndTime": "2017-06-06 15:02:46.000",
"CronString": "* * * ? * * *"
},
"Actions": [
{
"TemplateId": 50,
"Name": "Email",
"ParameterDetails": [
{
"Name": "subject",
"Value": "Device Name: $name, Device IP Address:
$ip, Severity: $severity"
},
{
"Name": "to",
Alerts
101