API Guide
"State": true
}
/api/AlertService/AlertPolicies(Arg1)/PolicyCriteria
This URI represents the criteria used for matching the policy with incoming events. The criteria determine if the policy can trigger any
actions.
Table 66. Filters
Attribute name Description
Top Top records to return. Default value is 100.
Skip Maximum records to skip. Default value is 0.
Arg1 Filter by list of policies IDs. Default value is 0.
Id Filter by list of criteria IDs. Default value is 0.
Type Filter by list of criteria types ID. Default value is 0.
ComparisonType Filer by list of comparison types IDs. Default value is 0.
GET method for PolicyCriteria
This method returns the criteria that are used for matching the policy with incoming events.
Description
Returns the criteria used for matching the policy with incoming events.
Privilege VIEW
HTTP response
codes
200
Example
Input:
Output:
{
"@odata.context": "$metadata#Collection(AlertService.PolicyCriterion)",
"@odata.count": 1,
"value": [
{
"@odata.id": "/api/AlertService/AlertPolicies(314)/PolicyCriteria(4)",
"Id": 4,
"PolicyId": 314,
"Parameter": "",
"Value": "(catalogName == 'iDRAC' AND categoryId==3300) AND
(severityType==1 OR
severityType==2 OR severityType==4 OR severityType==8 OR
severityType==16)",
"Type": 3,
"TypeName": "EXPRESSION",
"ComparisonType": 3,
"ComparisonTypeName": "Equal"
}
]
}
Table 67. Attributes
Attribute name Description
Id ID of the criteria.
PolicyId ID of policy with which the criteria is associated.
Parameter Any extra parameter that can be used in the criteria.
96 Alerts