How Can We Help?
This section describes the Topology API for adding new Forensic and Heal actions for your Enterprise in HEAL. At run time, the action executes when an event occurs.
API Name – actions
Format – POST /api/accounts/<account_identifier>/actions
JSON Format
Input Parameters
Name | Description | Constraints | Mandatory/Optional |
name | Name of the action | It can be upto maximum 128 characters. It must be unique in the account (enterprise). | Mandatory |
identifier | Identifier of the action | It should be unique,if specified. It can be upto maximum 128 characters. | Optional |
downloadType | It specifies the output download format. | It can be either “PDF” or “CSV”.Default value is “PDF” | Optional |
actionType | Type of the action. | It should be “string”. It can be either “Heal Action” or “Forensic Action”. Default value is “Forensic Action”. | Optional |
categories | Categories to which the action is mapped. It can be single or multiple. | It is List<string>. List should have at least one category. Categories must be already existing. | Mandatory |
commandDetails | They specify additional information about the Command. | ||
commandDetails: Parameters for script execution. | |||
name | Name of the command | It can be upto maximum 128 characters. It must be unique in the account. | Mandatory |
identifier | Identifier of the command | It can be upto maximum 128 characters. | Optional |
commandName | Name of the script which gets executed | It can be upto maximum 128 characters. | Mandatory |
Command Arguments: They are optional. If specified, below attributes are mandatory. | |||
argumentKey | Identifier of the argument | It can be upto maximum 64 characters. | Mandatory |
argumentValue | Value of the argument | It can be upto maximum 128 characters. | Mandatory |
defaultValue | Default value of the argument | It can be upto maximum 128 characters. | Mandatory |
argumentType | CommandLine, StandardInput | Mandatory | |
argumentValueType | CheckBox, DropDown, Password, TextBox | Mandatory |
Sample
Input JSON to create a customized Forensic script to collect the Error Code data for XR Travels is as follows.
Success Rest Response
Failure Rest Response