Remediation Update Policy
This API is used for updating a remediation rule or policy. Update API expects all parameters retrived via get API. Fields "policy_name", "created_on" and "last_updated" are read-only and can't be updated. Any missing non mandatory field in udpate request, will be set to default values.
Unique id, to indentify the user-preference
Show optional properties
{
"action_name": "slack_action",
"events": [
{
"class": "KubernetesPod",
"name": "Failed",
"type": "event"
}
],
"policy_name": "CheckManualFilterPolicy1",
"policy_type": "manual"
}
{
"policy_name": "string",
"policy_type": "manual",
"action_name": "string",
"action_params": "string",
"events": [
{}
],
"conditions": [
{}
],
"created_on": "string",
"last_updated": "string"
}
remediation rule name
either manual or automated
Name of the remediation action
optional field for multi event rules
JSON list of dicts containing class, name and type fields.
JSON list of dicts containing propName, operation and propValue fields.
rule creation timestamp
rule last update timestamp
Created
{
"action_name": "slack_action",
"action_params": "",
"conditions": [
{
"operation": "equals",
"propName": "Active",
"propValue": "true"
}
],
"created_on": "21 Nov, 2022, 00:42:45 UTC",
"description": "check servertools filterset",
"events": [
{
"class": "KubernetesPod",
"name": "Failed",
"type": "event"
}
],
"last_updated": "21 Nov, 2022, 00:42:45 UTC",
"policy_name": "CheckManualFilterPolicy1",
"policy_type": "manual"
}
remediation rule name
either manual or automated
Name of the remediation action
optional field for multi event rules
JSON list of dicts containing class, name and type fields.
JSON list of dicts containing propName, operation and propValue fields.
rule creation timestamp
rule last update timestamp
Invalid Request sent by the user
resouce not found
Internal server error