Remediation Update Policy
DescriptionThis 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.
Request
URLURL
Path Parameters
Path Parameters
Unique id, to indentify the user-preference
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
resouce not found
Internal server error