Remediation Create Policy
DescriptionThis API is used for creating a new remediation rule. Fields “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.
Request
URLURL
Path Parameters
Path Parameters
policy name.
Request Body
{
"action_name": "slack_action",
"events": [
{
"class": "KubernetesPod",
"name": "Failed",
"type": "event"
}
],
"policy_name": "CheckManualFilterPolicy1",
"policy_type": "manual"
}
Name of the remediation action
either manual or automated
JSON list of dicts containing class, name and type fields.
remediation rule name
JSON list of dicts containing propName, operation and propValue fields.
rule creation timestamp
rule last update timestamp
optional field for multi event rules
Authentication
Response
Response BodyResponse Body
201 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"
}
Name of the remediation action
either manual or automated
JSON list of dicts containing class, name and type fields.
remediation rule name
JSON list of dicts containing propName, operation and propValue fields.
rule creation timestamp
rule last update timestamp
optional field for multi event rules
Errors
Invalid Request sent by the user
Internal server error