Remediation Create Action

Remediation Create Action

This API is used for creating a new remediation action. Name, category are mandatory fields. Fields "created_on" and "last_updated" are read-only and can't be updated.

Request
URI
POST
https://{api_host}/remediation-rest/actions
COPY
Request Body
RemediationAction of type(s) application/json
Required

Show optional properties

{
    "action_name": "slack_action",
    "file_type": "PYTHON",
    "params": [
        {
            "parameterName": "slack_message",
            "option": "mandatory"
        },
        {
            "parameterName": "slack_channel",
            "option": "mandatory"
        }
    ]
}
{
    "action_name": "string",
    "file_data": "string",
    "created_on": "string",
    "last_updated": "string",
    "params": [
        {}
    ]
}
string
action_name
Required

Name of the remediation action

file_type
Required

either PYTHON or YAML

Possible values are : PYTHON, YAML,
string
file_data
Optional

file content

string
created_on
Optional

action creation timestamp

string
last_updated
Optional

action last update timestamp

array of object
params
Required

list of string parameterName and option, option can be mandatory or optional

Authentication
This operation uses the following authentication methods.
Responses
201

Created

Operation doesn't return any data structure

400

Invalid Request sent by the user

Operation doesn't return any data structure

500

Internal server error

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"action_name:"string","file_type":"{}","params":["object"]}' https://{api_host}/remediation-rest/actions