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