Remediation Get Policy
policy name.
policy name.
OK
{
"action_name": "slack_action",
"category": "",
"conditions": [
{
"condition": "OR",
"filters": [
{
"condition": "AND",
"expression": "match",
"property": "Category",
"value": "Availability"
},
{
"condition": null,
"expression": "match",
"property": "Certainty",
"value": "100"
}
]
},
{
"condition": null,
"filters": [
{
"condition": null,
"expression": "match",
"property": "InstanceName",
"value": "C8-C7-C8-C3-5B-1C"
}
]
}
],
"connections": "[{\"task_post_slack_conn_id\": \"slack_connection\"}]",
"created_on": "27 Oct, 2023, 18:41:25 UTC",
"description": "example rule",
"events": [
{
"class": "WirelessAccessPoint",
"condition": null,
"name": "Down",
"type": "problem"
}
],
"last_updated": "27 Oct, 2023, 18:41:25 UTC",
"parameters": "[{\"slack_message\": \"TCSA slack\"}, {\"slack_channel\": \"#tcsa-notifs\"}]",
"path_type": "remediation",
"paths": [
{
"condition": {
"expression": "match",
"property": "",
"value": ""
},
"levels": [
{
"action": "slack_action",
"connections": [
{
"task_post_slack_conn_id": "slack_connection"
}
],
"duration": 1,
"level_description": "",
"level_name": "level0",
"parameters": [
{
"slack_message": "TCSA slack"
},
{
"slack_channel": "#tcsa-notifs"
}
]
}
],
"path_description": "",
"path_name": "Path0"
}
],
"policy_name": "examplerule",
"policy_type": "automated",
"state": "enable",
"userName": "admin",
"user_context": "{\"enterprise\":\"DEFAULT\",\"groups\":[\"Enterprise Administrator\"],\"organization\":\"DEFAULT\",\"roles\":[\"Enterprise Administrator\"],\"username\":\"admin\"}"
}
remediation rule name
either manual or automated
either remediation or escalation
optional either enable or disable
JSON list of dicts containing class, name and type fields.
JSON list of dicts containing propName, operation and propValue fields.
JSON list of dicts containing paths, levels and action names. The paths.levels.duration and paths.condition are mandatory for escalation policy.
rule creation timestamp
rule last update timestamp
in case of escalation it is the time value in minutes, upon expiry the level's action will be triggered.
optional field to specify escalation stop criteria. Either clear or ack, default value is clear
Invalid Request sent by the user
{
"errorCode": "string",
"message": "string",
"detailedMessage": "string"
}
Error code for the failed request
Short summary of the error occurred
Detailed message with probable solution
Cannot find requested resource
{
"errorCode": "string",
"message": "string",
"detailedMessage": "string"
}
Error code for the failed request
Short summary of the error occurred
Detailed message with probable solution
Internal server error
{
"errorCode": "string",
"message": "string",
"detailedMessage": "string"
}
Error code for the failed request
Short summary of the error occurred
Detailed message with probable solution