Skip to content

Action definitions

CYBERQUEST automation supports custom scripted actions using JavaScript, allowing advanced customization of mitigation workflows.

Creating a Custom Action:

1.Add a new DTS object in the system.

2.Access incoming data within the script via the Event object, which provides all relevant information from the triggering alert or event.

This approach enables the creation of tailored actions that can extend standard automation capabilities and handle complex or unique scenarios.


// new action to be executed in CQ Automation
// input data can be accessed by employing the "Event"

let currentInputData = Event;

if (currentInputData.EventID==4624 ) // validates a field in the event section
{
    // do something
}
else
{
    // do something else
}

JavaScript Customization in DTS

By default, the JavaScript section of each DTS object allows full customization of the actions to be performed within a playbook.

  • All standard JavaScript functionality is supported.
  • External data sources, including APIs, can be leveraged to implement custom use cases and extend automation capabilities.

let result = CQ.Communications.HttpRequest.get('https://www.exampleAPI.com');
// result will be an object of HttpResponse

let resultAsJSON = result.asJson();

if (resultAsJSON.exampleResponseProperty=="200"){
    // do something
}
else
{
    //do something else
}

All functionality available in the CYBERQUEST API is accessible and can be utilized within these objects. For more details, refer to the CYBERQUEST API