Remediation Get Policy

Remediation Get Policy

policy name.

Request
URI
GET
https://{api_host}/tcsa.host.com/policy/{policy_name}
COPY
Path Parameters
string
policy_name
Required

policy name.


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns RemediationPolicy of type(s) application/json
{
    "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"
}
string
policy_name
Required

remediation rule name

string
policy_type
Required

either manual or automated

string
action_name
Required

Name of the remediation action

string
action_params
Optional

optional field for multi event rules

array of object
events
Required

JSON list of dicts containing class, name and type fields.

array of object
conditions
Optional

JSON list of dicts containing propName, operation and propValue fields.

string
created_on
Optional

rule creation timestamp

string
last_updated
Optional

rule last update timestamp


400

Invalid Request sent by the user

Returns ErrorDetails of type(s) application/json
{
    "errorCode": "string",
    "message": "string",
    "detailedMessage": "string"
}
string
errorCode
Required

Error code for the failed request

string
message
Required

Short summary of the error occurred

string
detailedMessage
Optional

Detailed message with probable solution


404

Cannot find requested resource

Returns ErrorDetails of type(s) application/json
{
    "errorCode": "string",
    "message": "string",
    "detailedMessage": "string"
}
string
errorCode
Required

Error code for the failed request

string
message
Required

Short summary of the error occurred

string
detailedMessage
Optional

Detailed message with probable solution


500

Internal server error

Returns ErrorDetails of type(s) application/json
{
    "errorCode": "string",
    "message": "string",
    "detailedMessage": "string"
}
string
errorCode
Required

Error code for the failed request

string
message
Required

Short summary of the error occurred

string
detailedMessage
Optional

Detailed message with probable solution