API Guide

Table Of Contents
Table 68. Attributes (continued)
Attribute name Description
Value Expression that is used during policy evaluation with events.
Type ID of the criteria type.
TypeName Name of the criteria type.
ComparisonType ID of comparison type.
ComparisonTypeName Name of comparison type.
/api/AlertService/AlertPolicies(Arg1)/PolicyActions
This URI represents the actions associated with a policy.
Table 69. 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 action IDs. Default value is 0.
TemplateId Filter by list of template IDs. Default value is 0.
GET method for PolicyActions
This method returns the actions that a policy can trigger.
Description
Returns the actions that a policy can trigger.
Privilege VIEW
HTTP response
codes
200
Example
Input:
Output:
{
"@odata.context": "$metadata#Collection(AlertService.PolicyAction)",
"@odata.count": 1,
"value": [
{
"@odata.id": "/api/AlertService/AlertPolicies(314)/
PolicyActions(1)",
"Id": 1,
"PolicyId": 314,
"Name": "OnDemandHealth",
"Parameters": "",
"TemplateId": 80,
"Template": {
"Id": 80,
"Name": "OnDemandHealth",
"Description": "OnDemandHealth",
"Disabled": false,
"ParameterDetails": []
}
}
]
}
100 Alerts