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}/tcsa.host.com/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
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
Remediation Rest Operations
POST
Create Remediation Connection
GET
Get All Remediation Connections
GET
Get Remediation Connection By Id
POST
Get Remediation Servertools
PATCH
Patch Remediation Connection By Id
POST
Remediation Create Action
POST
Remediation Create Policy
DELETE
Remediation Delete Action
DELETE
Remediation Delete Connection By Id
DELETE
Remediation Delete Policy By Id
GET
Remediation Get Action
GET
Remediation Get Actions All
GET
Remediation Get Policies
GET
Remediation Get Policy
POST
Remediation Run Action
PUT
Remediation Update Action
PUT
Remediation Update Policy