API Guide

Table 65. Attributes(continued)
Attribute name Description
StartTime Start event-time to verify. This value indicates the start date and
time for policy validity. If defined. This field is checked during policy
evaluation.
EndTime End event-time to verify. This value indicates the end date and
time for policy validity. If defined. This field is checked during policy
evaluation.
CronString CRON string associated to the policy. This field indicates a special
CRON that can be applied to the policy to indicate values such as
the days for which the policy is valid.
Actions
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.
PUT method for AlertPolicies(Id)
This method updates a policy.
Description
Updates a policy.
Privilege MONITORING_SETUP
HTTP response
codes
201
Example
Input:
{
"Id": 4114,
"Name": "Policy Test 1",
"Description": "Policy Test 1",
"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": [1914],
"Groups": [],
"DeviceTypes": [1000],
"Schedule": {
"StartTime": "2016-06-06 15:02:46.000",
Alerts
93